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:
parent
07877556db
commit
adb9d1b273
@ -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, "κ", κ)
|
||||
|
Loading…
Reference in New Issue
Block a user