mirror of
https://github.com/kalmarek/PropertyT.jl.git
synced 2024-11-19 07:20:28 +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
|
||||
warn("The solver did not solve the problem successfully!")
|
||||
end
|
||||
|
||||
κ = SDP_problem.objVal;
|
||||
A = JuMP.getvalue(JuMP.getvariable(SDP_problem, :A));;
|
||||
end
|
||||
return κ, A
|
||||
end
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user