coin-or / pulp

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

Problem read from MPS is solved incorrectly #511

Open mkturtledude opened 2 years ago

mkturtledude commented 2 years ago

(All files I refer to are attached here)

I'm trying to solve the problem in mkt.mps. If I solve it using CBC on the command line, it takes about 2 minutes and it finds a solution with value -170 (see cbc-output.txt).

However, if I solve it using PuLP as in example.py, it terminates immediately and PuLP claims to have found a solution of value 0. See pulp-output.txt.

Could it be a problem with reading the MPS file? I found issue https://github.com/coin-or/pulp/issues/459, but I have no way of telling whether it's the same bug.

As you can see in the logs, PuLP is using CBC version 2.10.5, and on the command line I used 2.10.3. The PuLP version I'm using is 2.6.0.

Useful extra information

The info below often helps, please fill it out if you're able to. :)

What operating system are you using?

I'm using python version:

I installed PuLP via:

Did you also

mkturtledude commented 2 years ago

Any progress on this?