From bbcaec5bae2bde43e59fec60918f8503f9b7116c Mon Sep 17 00:00:00 2001 From: kalmarek Date: Fri, 1 Dec 2017 17:04:53 +0100 Subject: [PATCH] build JuMP.Model first --- src/PropertyT.jl | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/PropertyT.jl b/src/PropertyT.jl index e4c456d..5e509e8 100644 --- a/src/PropertyT.jl +++ b/src/PropertyT.jl @@ -164,8 +164,12 @@ end function compute_λandP(m, varλ, varP; warmstart=nothing) λ = 0.0 P = nothing + + traits = JuMP.ProblemTraits(m, relaxation=false) + while λ == 0.0 try + JuMP.build(m, traits=traits) if warmstart != nothing p_sol, d_sol, s = warmstart MathProgBase.SolverInterface.setwarmstart!(m.internalModel, p_sol; dual_sol = d_sol, slack=s);