the default number of constraints is the length of laplacian

This commit is contained in:
kalmar 2017-06-21 16:42:09 +02:00
parent 3c8c3e4e2a
commit 403984e8d2

View File

@ -109,7 +109,7 @@ function constrLHS(m::JuMP.Model, data::OrbitData, t)
return lhs
end
function addconstraints!(m::JuMP.Model, data::OrbitData, l::Int=length(data.cnstr); var::Symbol = )
function addconstraints!(m::JuMP.Model, data::OrbitData, l::Int=length(data.laplacian); var::Symbol = )
λ = m[var]
for t in 1:l
d, = data.laplacian[t], data.laplacianSq[t]