mirror of
https://github.com/kalmarek/PropertyT.jl.git
synced 2024-11-19 15:25: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
|
verbose && @show solution_status
|
||||||
|
|
||||||
if solution_status != :Optimal
|
if solution_status != :Optimal
|
||||||
throw(ExceptionError("The solver did not solve the problem successfully!"))
|
warn("The solver did not solve the problem successfully!")
|
||||||
else
|
end
|
||||||
|
|
||||||
κ = SDP_problem.objVal;
|
κ = SDP_problem.objVal;
|
||||||
A = JuMP.getvalue(JuMP.getvariable(SDP_problem, :A));;
|
A = JuMP.getvalue(JuMP.getvariable(SDP_problem, :A));;
|
||||||
end
|
|
||||||
return κ, A
|
return κ, A
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user