mirror of
https://github.com/ANL-CEEESA/UnitCommitment.jl.git
synced 2025-12-06 08:18:51 -06:00
benchmarks: use provided gap and time limit
This commit is contained in:
@@ -126,9 +126,13 @@ formulations = Dict(
|
|||||||
|
|
||||||
# Solution methods
|
# Solution methods
|
||||||
# -----------------------------------------------------------------------------
|
# -----------------------------------------------------------------------------
|
||||||
|
const gap_limit = parse(Float64, args["--gap"])
|
||||||
|
const time_limit = parse(Float64, args["--time-limit"])
|
||||||
methods = Dict(
|
methods = Dict(
|
||||||
"default" =>
|
"default" => XavQiuWanThi2019.Method(
|
||||||
XavQiuWanThi2019.Method(time_limit = 3600.0, gap_limit = 1e-4),
|
time_limit = time_limit,
|
||||||
|
gap_limit = gap_limit,
|
||||||
|
),
|
||||||
)
|
)
|
||||||
|
|
||||||
# MIP solvers
|
# MIP solvers
|
||||||
@@ -154,8 +158,6 @@ end
|
|||||||
if !isempty(args["--solver"])
|
if !isempty(args["--solver"])
|
||||||
optimizers = filter(p -> p.first in args["--solver"], optimizers)
|
optimizers = filter(p -> p.first in args["--solver"], optimizers)
|
||||||
end
|
end
|
||||||
const time_limit = parse(Float64, args["--time-limit"])
|
|
||||||
const gap_limit = parse(Float64, args["--gap"])
|
|
||||||
const ntrials = parse(Int, args["--trials"])
|
const ntrials = parse(Int, args["--trials"])
|
||||||
|
|
||||||
# Print benchmark settings
|
# Print benchmark settings
|
||||||
|
|||||||
Reference in New Issue
Block a user