mirror of
https://github.com/kalmarek/PropertyT.jl.git
synced 2024-11-25 16:50:27 +01:00
fix for solve_in_loop script
This commit is contained in:
parent
9afbccda15
commit
ed832d69fb
@ -81,15 +81,14 @@ function solve_in_loop(model::JuMP.Model, args...; logdir, optimizer, data)
|
||||
abs(certified_λ - old_lambda) /
|
||||
(abs(certified_λ) + abs(old_lambda))
|
||||
@info "Certification failed with λ = $λ" certified_λ rel_change status
|
||||
end
|
||||
|
||||
old_lambda = certified_λ
|
||||
|
||||
if rel_change < 1e-9
|
||||
@info "No progress detected, breaking" certified_λ rel_change status
|
||||
break
|
||||
end
|
||||
end
|
||||
|
||||
old_lambda = certified_λ
|
||||
end
|
||||
|
||||
return status == JuMP.OPTIMAL ? old_lambda : NaN
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user