From 0c40e16e9e0a369c89d68b78580bbb8c78f91e15 Mon Sep 17 00:00:00 2001 From: kalmarek Date: Sun, 27 Aug 2017 19:01:32 +0200 Subject: [PATCH] fix double assignment of constraints --- src/SDPs.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SDPs.jl b/src/SDPs.jl index 60ca75f..ab1cffb 100644 --- a/src/SDPs.jl +++ b/src/SDPs.jl @@ -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]