coin-or / pulp

A python Linear Programming API
http://coin-or.github.io/pulp/
Other
2.06k stars 383 forks source link

skip PL bounds when reading MPS file #746

Closed rutger-van-beek-cqm closed 4 months ago

rutger-van-beek-cqm commented 5 months ago

Fixes #635

Some software writes MPS-files including PL bounds, but without a value. When reading these lines the readMPSSetBounds raises an IndexError, when trying to read the value.

PL-bounds can be ignored. This PR implements a case in the readMPSSetBounds to ignore the PL-type bounds.

Next to that a test is added, to test whether a MPS-file containing a PL-bound can be read.