relog-web: Make time limit configurable

This commit is contained in:
2022-09-08 11:35:11 -05:00
parent bae39a4ff4
commit d84b74a8a7
3 changed files with 14 additions and 3 deletions

View File

@@ -11,7 +11,7 @@ function solve(root, filename)
ref_file = "$root/$filename"
optimizer = optimizer_with_attributes(
Cbc.Optimizer,
"seconds" => 900,
"seconds" => parse(Int, ENV["RELOG_TIME_LIMIT_SEC"]),
)
ref_solution, ref_model = RELOG.solve(
ref_file,