the default number of constraints is the length of laplacian
This commit is contained in:
parent
3c8c3e4e2a
commit
403984e8d2
@ -109,7 +109,7 @@ function constrLHS(m::JuMP.Model, data::OrbitData, t)
|
|||||||
return lhs
|
return lhs
|
||||||
end
|
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]
|
λ = m[var]
|
||||||
for t in 1:l
|
for t in 1:l
|
||||||
d, d² = data.laplacian[t], data.laplacianSq[t]
|
d, d² = data.laplacian[t], data.laplacianSq[t]
|
||||||
|
Loading…
Reference in New Issue
Block a user