mirror of
https://github.com/kalmarek/PropertyT.jl.git
synced 2024-10-19 01:00:36 +02:00
fix double assignment of constraints
This commit is contained in:
parent
8a6707eddd
commit
0c40e16e9e
@ -3,7 +3,7 @@ import MathProgBase: AbstractMathProgSolver
|
|||||||
|
|
||||||
function constraints_from_pm(pm, total_length=maximum(pm))
|
function constraints_from_pm(pm, total_length=maximum(pm))
|
||||||
n = size(pm,1)
|
n = size(pm,1)
|
||||||
constraints = constraints = [Array{Int,1}[] for x in 1:total_length]
|
constraints = [Array{Int,1}[] for x in 1:total_length]
|
||||||
for j in 1:n
|
for j in 1:n
|
||||||
for i in 1:n
|
for i in 1:n
|
||||||
idx = pm[i,j]
|
idx = pm[i,j]
|
||||||
|
Loading…
Reference in New Issue
Block a user