From 35f669595def515bde0ce17a271f8c0a7edbc392 Mon Sep 17 00:00:00 2001 From: kalmar Date: Sun, 26 Feb 2017 13:48:31 +0100 Subject: [PATCH] non :Optimal solution is worth a warning, not error --- property(T).jl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/property(T).jl b/property(T).jl index 44a1966..1b3bea1 100644 --- a/property(T).jl +++ b/property(T).jl @@ -80,11 +80,11 @@ function solve_SDP(sdp_constraints, Δ, solver; verbose=true) verbose && @show solution_status if solution_status != :Optimal - throw(ExceptionError("The solver did not solve the problem successfully!")) - else - κ = SDP_problem.objVal; - A = JuMP.getvalue(JuMP.getvariable(SDP_problem, :A));; + warn("The solver did not solve the problem successfully!") end + + κ = SDP_problem.objVal; + A = JuMP.getvalue(JuMP.getvariable(SDP_problem, :A));; return κ, A end