Skip to content

Commit

Permalink
Update benchmarks (#490)
Browse files Browse the repository at this point in the history
  • Loading branch information
odow authored Nov 16, 2021
1 parent 182820d commit 5ec8a2e
Show file tree
Hide file tree
Showing 9 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions benchmarks/benchmark.jl
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ function benchmark(; kwargs...)
# Precompile to avoid polluting the results!
benchmark_file(joinpath(model_dir, models[1]); kwargs...)
solutions = Dict{String,Any}(
benchmark_file(joinpath(model_dir, file); kwargs...) for file in models
file => benchmark_file(joinpath(model_dir, file); kwargs...) for
file in models
)
time = Dates.format(Dates.now(), "Y_mm_dd_HHMM_SS")
data = Dict("date" => time, "solutions" => solutions)
Expand Down Expand Up @@ -114,7 +115,7 @@ filename_A = benchmark(
filename_B = benchmark(
time_limit = 60,
stopping_rules = [SDDP.BoundStalling(10, 1e-6)],
duality_handler = SDDP.BanditDuality(),
duality_handler = SDDP.LagrangianDuality(),
)

report(filename_A, filename_B)
Binary file modified benchmarks/models/generation_expansion.sof.json.gz
Binary file not shown.
Binary file modified benchmarks/models/sldp_example_two_2.sof.json.gz
Binary file not shown.
Binary file modified benchmarks/models/sldp_example_two_3.sof.json.gz
Binary file not shown.
Binary file modified benchmarks/models/sldp_example_two_6.sof.json.gz
Binary file not shown.
Binary file modified benchmarks/models/user_0001.sof.json.gz
Binary file not shown.
Binary file modified benchmarks/models/vehicle_location.sof.json.gz
Binary file not shown.
Empty file modified benchmarks/update.sh
100644 → 100755
Empty file.
2 changes: 1 addition & 1 deletion docs/src/examples/sldp_example_two.jl
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ function sldp_example_two(; first_stage_integer::Bool = true, N = 2)
joinpath(model_dir, "sldp_example_two_$(N).sof.json.gz");
test_scenarios = 30,
)
exit(0)
return
end
SDDP.train(model, iteration_limit = 100, log_frequency = 10)
bound = SDDP.calculate_bound(model)
Expand Down

2 comments on commit 5ec8a2e

@odow
Copy link
Owner Author

@odow odow commented on 5ec8a2e Dec 11, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/50346

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.4.4 -m "<description of version>" 5ec8a2e4baa66453af480a539b3cdc3d7679c6fe
git push origin v0.4.4

Please sign in to comment.