compute_\lambdaandP does only that

This commit is contained in:
kalmar 2017-06-04 20:32:40 +02:00
parent 25f7b528fc
commit cd66f8d914
1 changed files with 4 additions and 6 deletions

View File

@ -125,16 +125,14 @@ function λandP(name::String, opts...)
end
end
function compute_λandP(sdp_constraints, Δ::GroupRingElem, solver::AbstractMathProgSolver, upper_bound=Inf)
t = @timed SDP_problem = create_SDP_problem(sdp_constraints, Δ; upper_bound=upper_bound)
info(logger, timed_msg(t))
function compute_λandP(m, varλ, varP)
λ = 0.0
P = nothing
while λ == 0.0
try
λ, P = solve_SDP(SDP_problem, solver)
solve_SDP(m)
λ = JuMP.getvalue(varλ)
P = JuMP.getvalue(varP)
catch y
warn(solver_logger, y)
end