Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions src/util.jl
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ end
Returns true if either ALMOST_OPTIMAL or ALMOST_LOCALLY_SOLVED
"""
function only_almost_solved(state::MOI.TerminationStatusCode)
return state == MOI.ALMOST_OPTIMAL || state == MOI.ALMOST_LOCALLY_SOLVED
return state == MOI.ALMOST_OPTIMAL || state == MOI.ALMOST_LOCALLY_SOLVED || state == MOI.SLOW_PROGRESS
end

"""
Expand All @@ -201,7 +201,8 @@ function state_is_optimal(
return state == MOI.OPTIMAL ||
state == MOI.LOCALLY_SOLVED ||
(allow_almost && state == MOI.ALMOST_LOCALLY_SOLVED) ||
(allow_almost && state == MOI.ALMOST_OPTIMAL)
(allow_almost && state == MOI.ALMOST_OPTIMAL) ||
(allow_almost && state == MOI.SLOW_PROGRESS)
end

"""
Expand Down