mirror of
https://github.com/kalmarek/PropertyT.jl.git
synced 2024-11-30 10:00:28 +01:00
variables in blocks are reused; define A before try
or face UndefVarError: A not defined
This commit is contained in:
parent
6fe0f9bda0
commit
3dc571a47c
@ -89,9 +89,10 @@ function κandA(name::String, sdp_constraints, Δ::GroupAlgebraElement, solver::
|
||||
info(logger, timed_msg(t))
|
||||
|
||||
κ = 0.0
|
||||
A = nothing
|
||||
while κ == 0.0
|
||||
κ, A = try
|
||||
solve_SDP(SDP_problem, solver)
|
||||
try
|
||||
κ, A = solve_SDP(SDP_problem, solver)
|
||||
catch y
|
||||
warn(solver_logger, y)
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user