Skip to content

Commit 5ec8a2e

Browse files
authored
Update benchmarks (#490)
1 parent 182820d commit 5ec8a2e

File tree

9 files changed

+4
-3
lines changed

9 files changed

+4
-3
lines changed

benchmarks/benchmark.jl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ function benchmark(; kwargs...)
3030
# Precompile to avoid polluting the results!
3131
benchmark_file(joinpath(model_dir, models[1]); kwargs...)
3232
solutions = Dict{String,Any}(
33-
benchmark_file(joinpath(model_dir, file); kwargs...) for file in models
33+
file => benchmark_file(joinpath(model_dir, file); kwargs...) for
34+
file in models
3435
)
3536
time = Dates.format(Dates.now(), "Y_mm_dd_HHMM_SS")
3637
data = Dict("date" => time, "solutions" => solutions)
@@ -114,7 +115,7 @@ filename_A = benchmark(
114115
filename_B = benchmark(
115116
time_limit = 60,
116117
stopping_rules = [SDDP.BoundStalling(10, 1e-6)],
117-
duality_handler = SDDP.BanditDuality(),
118+
duality_handler = SDDP.LagrangianDuality(),
118119
)
119120

120121
report(filename_A, filename_B)
-56 Bytes
Binary file not shown.
-66 Bytes
Binary file not shown.
-1.43 KB
Binary file not shown.
-2 KB
Binary file not shown.
-1.36 KB
Binary file not shown.
-9.1 KB
Binary file not shown.

benchmarks/update.sh

100644100755
File mode changed.

docs/src/examples/sldp_example_two.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ function sldp_example_two(; first_stage_integer::Bool = true, N = 2)
5353
joinpath(model_dir, "sldp_example_two_$(N).sof.json.gz");
5454
test_scenarios = 30,
5555
)
56-
exit(0)
56+
return
5757
end
5858
SDDP.train(model, iteration_limit = 100, log_frequency = 10)
5959
bound = SDDP.calculate_bound(model)

0 commit comments

Comments
 (0)