mirror of
https://github.com/kalmarek/PropertyT.jl.git
synced 2024-11-14 06:10:28 +01:00
compute_\lambdaandP does only that
This commit is contained in:
parent
25f7b528fc
commit
cd66f8d914
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user