mirror of
https://github.com/kalmarek/PropertyT.jl.git
synced 2024-11-23 16:20:28 +01:00
tad better try...catch syntax
This commit is contained in:
parent
837988c381
commit
69e74190af
@ -124,13 +124,11 @@ function compute_κandA(sdp_constraints, Δ::GroupAlgebraElement, solver::Abstra
|
|||||||
t = @timed SDP_problem = create_SDP_problem(sdp_constraints, Δ; upper_bound=upper_bound)
|
t = @timed SDP_problem = create_SDP_problem(sdp_constraints, Δ; upper_bound=upper_bound)
|
||||||
info(logger, timed_msg(t))
|
info(logger, timed_msg(t))
|
||||||
|
|
||||||
κ = 0.0
|
|
||||||
A = nothing
|
|
||||||
while κ == 0.0
|
while κ == 0.0
|
||||||
try
|
κ, A = try
|
||||||
κ, A = solve_SDP(SDP_problem, solver)
|
solve_SDP(SDP_problem, solver)
|
||||||
catch y
|
catch y
|
||||||
warn(solver_logger, y)
|
warn(logger, y)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
return κ, A
|
return κ, A
|
||||||
|
Loading…
Reference in New Issue
Block a user