1
0
mirror of https://github.com/kalmarek/PropertyT.jl.git synced 2024-11-23 08:15:29 +01:00

Workaround to SCS ERROR: A->p (column pointers) decreasing

loop solver when SCS gives the error (works in Jupyter)
This commit is contained in:
kalmar 2017-03-20 21:43:33 +01:00
parent 07877556db
commit 79b2e615d2

View File

@ -88,7 +88,16 @@ function κandA(name::String, sdp_constraints, Δ::GroupAlgebraElement, solver::
t = @timed SDP_problem = create_SDP_problem(sdp_constraints, Δ; upper_bound=upper_bound)
info(logger, timed_msg(t))
κ, A = solve_SDP(SDP_problem, solver)
κ = 0.0
A = nothing
while κ == 0
κ, A = try
solve_SDP(SDP_problem, solver)
catch y
warn(logger, y)
end
end
κ_fname, A_fname = κSDPfilenames(name)
if κ > 0
save(κ_fname, "κ", κ)