Skip to content
Snippets Groups Projects
Unverified Commit 32e24f48 authored by Michiel Cottaar's avatar Michiel Cottaar
Browse files

Remove leeway from previous objective

parent ae231ecd
No related branches found
No related tags found
1 merge request!8Make optimisation more robust
Pipeline #25454 failed
......@@ -78,7 +78,7 @@ function build_sequence(f::Function, scanner::Union{Nothing, Scanner}, model::Tu
prev_cost_func = nothing
for cost_func in iterate_cost()
if !isnothing(prev_cost_func)
@constraint jump_model prev_cost_func <= (objective_value(jump_model) + 1e-5 * abs(objective_value(jump_model)))
@constraint jump_model prev_cost_func <= objective_value(jump_model)
end
optimise_with_cost_func(jump_model, cost_func, n_attempts)
prev_cost_func = cost_func
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment