@@ -51,11 +51,19 @@ include("maximizer.jl")
5151$TYPEDEF
5252
5353Abstract type for dynamic vehicle scheduling benchmarks.
54+
55+ # Fields
56+ $TYPEDFIELDS
5457"""
5558@kwdef struct DVSPBenchmark <: AbstractDynamicBenchmark
59+ " todo"
5660 max_requests_per_epoch:: Int = 10
61+ " todo"
5762 Δ_dispatch:: Float64 = 1.0
63+ " todo"
5864 epoch_duration:: Float64 = 1.0
65+ " todo"
66+ two_dimensional_features:: Bool = false
5967end
6068
6169function Utils. generate_dataset (b:: DVSPBenchmark , dataset_size:: Int = 1 )
@@ -74,14 +82,6 @@ function Utils.generate_dataset(b::DVSPBenchmark, dataset_size::Int=1)
7482 ]
7583end
7684
77- function Utils. generate_scenario_generator (:: DVSPBenchmark )
78- return generate_scenario
79- end
80-
81- function Utils. generate_anticipative_solver (:: DVSPBenchmark ; kwargs... )
82- return anticipative_solver
83- end
84-
8585function Utils. generate_environment (:: DVSPBenchmark , instance:: Instance ; kwargs... )
8686 return DVSPEnv (instance; kwargs... )
8787end
@@ -90,6 +90,14 @@ function Utils.generate_maximizer(::DVSPBenchmark)
9090 return LinearMaximizer (oracle; g, h)
9191end
9292
93+ function Utils. generate_scenario_generator (:: DVSPBenchmark )
94+ return generate_scenario
95+ end
96+
97+ function Utils. generate_anticipative_solver (b:: DVSPBenchmark ; kwargs... )
98+ return AnticipativeSolver (b. two_dimensional_features)
99+ end
100+
93101export DVSPBenchmark # , generate_environment # , generate_sample, generate_anticipative_solver
94102export run_policy!,
95103 GreedyVSPPolicy, LazyVSPPolicy, KleopatraVSPPolicy, AnticipativeVSPPolicy
0 commit comments