fix double assignment of constraints

This commit is contained in:
kalmarek 2017-08-27 19:01:32 +02:00
parent 8a6707eddd
commit 0c40e16e9e
1 changed files with 1 additions and 1 deletions

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]