Skip to content

Commit

Permalink
Fix for matrix read in from MPS file
Browse files Browse the repository at this point in the history
  • Loading branch information
tkralphs committed May 11, 2020
1 parent a96c0e5 commit 7503e07
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/cuppy/cuttingPlanes.py
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,10 @@ def solve(m, whichCuts = [], use_cglp = False, debug_print = False, eps = EPS,
else:
b = m.lp.constraintsLower.copy()
mult = 1.0
A = m.A.copy()
if type(m.A) == csc_matrixPlus:
A = m.A.toarray()
else:
A = m.A.copy()
for i in range(m.lp.nCols):
e = np.zeros((1, m.lp.nCols))
if m.lp.variablesUpper[i] < infinity:
Expand Down

0 comments on commit 7503e07

Please sign in to comment.