@@ -51,13 +51,16 @@ function conicconstraintdata(m::Model)
5151 V_s = Float64[]
5252
5353 # Fill it up
54- tmprow = JuMP. IndexedVector (Float64,m. numCols)
54+ if numMasterCols > 0
55+ tmprow_m = JuMP. IndexedVector (Float64, parent. numCols)
56+ end
57+ tmprow_s = JuMP. IndexedVector (Float64, m. numCols)
5558
5659 JuMP. fillconstrRHS! (b, con_cones, 0 , m. linconstr)
5760 if numMasterCols > 0
58- JuMP. fillconstrLHS! (I_m, J_m, V_m, tmprow , 0 , m. linconstr, parent, true )
61+ JuMP. fillconstrLHS! (I_m, J_m, V_m, tmprow_m , 0 , m. linconstr, parent, true )
5962 end
60- c = JuMP. fillconstrLHS! (I_s, J_s, V_s, tmprow , 0 , m. linconstr, m, true )
63+ c = JuMP. fillconstrLHS! (I_s, J_s, V_s, tmprow_s , 0 , m. linconstr, m, true )
6164
6265 for idx in 1 : m. numCols
6366 # identify integrality information
@@ -70,16 +73,16 @@ function conicconstraintdata(m::Model)
7073
7174 JuMP. fillconstrRHS! (b, con_cones, c, m. socconstr)
7275 if numMasterCols > 0
73- JuMP. fillconstrLHS! (I_m, J_m, V_m, tmprow , c, m. socconstr, parent, true )
76+ JuMP. fillconstrLHS! (I_m, J_m, V_m, tmprow_m , c, m. socconstr, parent, true )
7477 end
75- c = JuMP. fillconstrLHS! (I_s, J_s, V_s, tmprow , c, m. socconstr, m, true )
78+ c = JuMP. fillconstrLHS! (I_s, J_s, V_s, tmprow_s , c, m. socconstr, m, true )
7679
7780 @assert c == numLinRows + numBounds + numSOCRows
7881
7982 if numMasterCols > 0
80- c, d = JuMP. fillconstr! (I_m, J_m, V_m, b, con_cones, tmprow , constr_to_row, c, d, m. sdpconstr, m, true )
83+ c, d = JuMP. fillconstr! (I_m, J_m, V_m, b, con_cones, tmprow_m , constr_to_row, c, d, m. sdpconstr, m, true )
8184 end
82- c, d = JuMP. fillconstr! (I_s, J_s, V_s, b, con_cones, tmprow , constr_to_row, c, d, m. sdpconstr, m, true )
85+ c, d = JuMP. fillconstr! (I_s, J_s, V_s, b, con_cones, tmprow_s , constr_to_row, c, d, m. sdpconstr, m, true )
8386
8487 if c < length (b)
8588 # This happens for example when symmetry constraints are dropped with SDP
0 commit comments