1
0
mirror of https://github.com/kalmarek/PropertyT.jl.git synced 2024-11-27 01:10:28 +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:48:22 +01:00
parent 07877556db
commit adb9d1b273

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.0
κ, A = try
solve_SDP(SDP_problem, solver)
catch y
warn(solver_logger, y)
end
end
κ_fname, A_fname = κSDPfilenames(name)
if κ > 0
save(κ_fname, "κ", κ)