From 92340ac6400f1f547d2165e60658cdbb92aeec62 Mon Sep 17 00:00:00 2001 From: Gabriel Ponte Date: Tue, 28 Jun 2022 08:44:59 -0300 Subject: [PATCH] add slow progress due to numerical instability --- src/util.jl | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/util.jl b/src/util.jl index 10d9a1d..a63542b 100644 --- a/src/util.jl +++ b/src/util.jl @@ -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 """ @@ -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 """