From 91c7e8cc8d567af4b2baaa406b848fd3c20c60d5 Mon Sep 17 00:00:00 2001 From: kalmarek Date: Tue, 14 Feb 2017 02:10:25 +0100 Subject: [PATCH] update status_mapt to latest constants Does `SCS_SOLVED_INACCURATE` qualify for `:UserLimit`? --- src/types.jl | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/types.jl b/src/types.jl index e38d875a..29f4a09e 100644 --- a/src/types.jl +++ b/src/types.jl @@ -80,13 +80,16 @@ immutable SCSCone end -# TODO needs to be updated for newest constants const status_map = Dict{Int, Symbol}( + 2 => :UserLimit, 1 => :Optimal, - -2 => :Infeasible, -1 => :Unbounded, + -2 => :Infeasible, -3 => :Indeterminate, - -4 => :Error + -4 => :Error, + -5 => :Interrupted, + -6 => :UnboundedInaccurate, + -7 => :InfeasibleInaccurate ) type Solution