Skip to content

Commit 1e57bde

Browse files
authored
Merge pull request #30 from JuliaDecisionFocusedLearning/dynamic-interface-poc
Interface overhaul and new dynamic benchmarks
2 parents 0b9a376 + eb5b67f commit 1e57bde

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

62 files changed

+2635
-190
lines changed

Project.toml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ version = "0.2.4"
55

66
[deps]
77
Colors = "5ae59095-9a9b-59fe-a467-6f913c188581"
8+
Combinatorics = "861a8166-3701-5b0c-9a16-15d98fcdc6aa"
89
ConstrainedShortestPaths = "b3798467-87dc-4d99-943d-35a1bd39e395"
910
DataDeps = "124859b0-ceae-595e-8997-d05f6a7a8dfe"
1011
Distributions = "31c24e10-a181-5473-b8eb-7969acd0382f"
@@ -13,7 +14,10 @@ Flux = "587475ba-b771-5e3f-ad9e-33799f191a9c"
1314
Graphs = "86223c79-3864-5bf0-83f7-82e725a168b6"
1415
HiGHS = "87dc4568-4c63-4d18-b0c0-bb2238e4078b"
1516
Images = "916415d5-f1e6-5110-898d-aaa5f9f070e0"
17+
InferOpt = "4846b161-c94e-4150-8dac-c7ae193c601f"
1618
Ipopt = "b6b21f68-93f8-5de0-b562-5493be1d77c9"
19+
IterTools = "c8e1da08-722c-5040-9ed9-7db0dc04731e"
20+
JSON = "682c06a0-de6a-54ab-a142-c8b1cf79cde6"
1721
JuMP = "4076af6c-e467-56ae-b986-b466b2749572"
1822
LaTeXStrings = "b964fa9f-0449-5b57-a5c2-d3ea65f4040f"
1923
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
@@ -31,6 +35,7 @@ StatsBase = "2913bbd2-ae8a-5f71-8c99-4fb6c76f3a91"
3135

3236
[compat]
3337
Colors = "0.13.1"
38+
Combinatorics = "1.0.3"
3439
ConstrainedShortestPaths = "0.6.0"
3540
DataDeps = "0.7"
3641
Distributions = "0.25"
@@ -39,7 +44,10 @@ Flux = "0.14, 0.15, 0.16"
3944
Graphs = "1.11"
4045
HiGHS = "1.9"
4146
Images = "0.26.1"
47+
InferOpt = "0.7.0"
4248
Ipopt = "1.6"
49+
IterTools = "1.10.0"
50+
JSON = "0.21.4"
4351
JuMP = "1.22"
4452
LaTeXStrings = "1.4.0"
4553
LinearAlgebra = "1"

docs/make.jl

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ api_dir = joinpath(@__DIR__, "src", "api")
1212
api_files = map(x -> joinpath("api", x), readdir(api_dir))
1313
tutorial_files = readdir(tutorial_dir)
1414
md_tutorial_files = [split(file, ".")[1] * ".md" for file in tutorial_files]
15-
benchmark_files = readdir(benchmarks_dir)
16-
md_benchmark_files = [split(file, ".")[1] * ".md" for file in benchmark_files]
15+
benchmark_files = [joinpath("benchmarks", e) for e in readdir(benchmarks_dir)]
16+
# md_benchmark_files = [split(file, ".")[1] * ".md" for file in benchmark_files]
1717

1818
include_tutorial = true
1919

@@ -25,20 +25,14 @@ if include_tutorial
2525
end
2626

2727
makedocs(;
28-
modules=[DecisionFocusedLearningBenchmarks, DecisionFocusedLearningBenchmarks.Warcraft],
28+
modules=[DecisionFocusedLearningBenchmarks],
2929
authors="Members of JuliaDecisionFocusedLearning",
3030
sitename="DecisionFocusedLearningBenchmarks.jl",
31-
format=Documenter.HTML(),
31+
format=Documenter.HTML(; size_threshold=typemax(Int)),
3232
pages=[
3333
"Home" => "index.md",
3434
"Tutorials" => include_tutorial ? md_tutorial_files : [],
35-
"Benchmark problems list" => [
36-
"benchmarks/subset_selection.md",
37-
"benchmarks/fixed_size_shortest_path.md",
38-
"benchmarks/warcraft.md",
39-
"benchmarks/portfolio_optimization.md",
40-
"benchmarks/vsp.md",
41-
],
35+
"Benchmark problems list" => benchmark_files,
4236
"API reference" => api_files,
4337
],
4438
)

docs/src/api/0_interface.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
```@meta
2+
CollapsedDocStrings = true
3+
```
4+
15
# Interface
26

37
## Public

docs/src/api/argmax.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
```@meta
2+
CollapsedDocStrings = true
3+
```
4+
15
# Argmax
26

37
## Public

docs/src/api/argmax_2d.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
```@meta
2+
CollapsedDocStrings = true
3+
```
4+
15
# Argmax2D
26

37
## Public

docs/src/api/dvsp.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
```@meta
2+
CollapsedDocStrings = true
3+
```
4+
5+
# Dynamic Vehicle Scheduling
6+
7+
## Public
8+
9+
```@autodocs
10+
Modules = [DecisionFocusedLearningBenchmarks.DynamicVehicleScheduling]
11+
Private = false
12+
```
13+
14+
## Private
15+
16+
```@autodocs
17+
Modules = [DecisionFocusedLearningBenchmarks.DynamicVehicleScheduling]
18+
Public = false
19+
```

docs/src/api/dynamic_assorment.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
```@meta
2+
CollapsedDocStrings = true
3+
```
4+
5+
# Dynamic Assortment
6+
7+
## Public
8+
9+
```@autodocs
10+
Modules = [DecisionFocusedLearningBenchmarks.DynamicAssortment]
11+
Private = false
12+
```
13+
14+
## Private
15+
16+
```@autodocs
17+
Modules = [DecisionFocusedLearningBenchmarks.DynamicAssortment]
18+
Public = false
19+
```

docs/src/api/fixed_shortest_path.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
```@meta
2+
CollapsedDocStrings = true
3+
```
4+
15
# Fixed-size shortest path
26

37
## Public

docs/src/api/portfolio_optimization.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
```@meta
2+
CollapsedDocStrings = true
3+
```
4+
15
# Subset selection
26

37
## Public

docs/src/api/ranking.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
```@meta
2+
CollapsedDocStrings = true
3+
```
4+
15
# Ranking
26

37
## Public

0 commit comments

Comments
 (0)