You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In my test, all MPS files whose RHS section contains definitions in Fields 5 & 6 are not imported correctly. The following modification of the MPS file is imported correctly (I simply manually moved the LIM2 RHS specification):
NAME TESTPROB
ROWS
N COST
L LIM1
G LIM2
E MYEQN
COLUMNS
XONE COST 1 LIM1 1
XONE LIM2 1
YTWO COST 4 LIM1 1
YTWO MYEQN -1
ZTHREE COST 9 LIM2 1
ZTHREE MYEQN 1
RHS
RHS1 LIM1 5
RHS1 LIM2 10
RHS1 MYEQN 7
BOUNDS
UP BND1 XONE 4
LO BND1 YTWO -1
UP BND1 YTWO 1
ENDATA
I tested with pysmps and it imports both versions of the MPS file correctly.
Details for the issue
Consider the MPS file (taken from here)
What did you do?
Executed
_, problem = pulp.LpProblem.fromMPS('test.mps')
What did you expect to see?
I expected for the
LIM2
constraint to beLIM2: XONE + ZTHREE >= 10
What did you see instead?
In my test, all MPS files whose
RHS
section contains definitions in Fields 5 & 6 are not imported correctly. The following modification of the MPS file is imported correctly (I simply manually moved theLIM2
RHS specification):I tested with pysmps and it imports both versions of the MPS file correctly.
Useful extra information
What operating system are you using?
Linux: (Fedora)
I'm using python version:
3.10.2
I installed PuLP via:
Did you also
It seems related to #459
The text was updated successfully, but these errors were encountered: