mirror of
https://github.com/kalmarek/PropertyT.jl.git
synced 2024-12-26 02:30:29 +01:00
non :Optimal solution is worth a warning, not error
This commit is contained in:
parent
f89dd7641c
commit
35f669595d
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user