1
0
mirror of https://github.com/kalmarek/PropertyT.jl.git synced 2024-11-14 14:15:28 +01:00

fix double assignment of constraints

This commit is contained in:
kalmarek 2017-08-27 19:01:32 +02:00
parent 8a6707eddd
commit 0c40e16e9e

View File

@ -3,7 +3,7 @@ import MathProgBase: AbstractMathProgSolver
function constraints_from_pm(pm, total_length=maximum(pm))
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 i in 1:n
idx = pm[i,j]