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
I used PuLP to read the MPS files for MIPLIB2017 problems such as beasleyC3. I then used PuLP to call solvers to optimize the model. I also used PuLP to write the MPS file back to disk without optimizing it and used multiple MIP solvers to solve the MPS file that was written back to disk.
What did you expect to see?
I expected to see the objective value of 754, which is known to be optimal. If I use a solver on the MPS file downloaded directly from MIPLIB2017, this value is achieved.
What did you see instead?
If PuLP is used to dispatch a solver after reading the MPS file, the solution reported is less than 50. If a MIP solver is used on its own to solve the MPS file that PuLP wrote to disk after reading in the beasleyC3 problem's MPS file, the MIP solver reports a solution that is less than 50.
This implies that PuLP is not reading the file correctly. I found that this is the case for multiple MIPLIB2017 problems that have no integer variables but do have binary variables.
Useful extra information
The info below often helps, please fill it out if you're able to. :)
hello, thanks for reporting.
Did you compare the original mps file to the one exported by pulp?
Is the solution given by pulp different or just the objective function value?
Hello, thank you for quickly responding. I did compare these files, and while I did see some differences, I didn't see anything that obviously would be causing the issue.
The solution solvers produce when solving the PuLP-read MPS file seems to be the solution to the relaxation of the problem, but when solvers read the MPS directly they correctly solve the integer version.
Details for the issue
What did you do?
I used PuLP to read the MPS files for MIPLIB2017 problems such as beasleyC3. I then used PuLP to call solvers to optimize the model. I also used PuLP to write the MPS file back to disk without optimizing it and used multiple MIP solvers to solve the MPS file that was written back to disk.
What did you expect to see?
I expected to see the objective value of 754, which is known to be optimal. If I use a solver on the MPS file downloaded directly from MIPLIB2017, this value is achieved.
What did you see instead?
If PuLP is used to dispatch a solver after reading the MPS file, the solution reported is less than 50. If a MIP solver is used on its own to solve the MPS file that PuLP wrote to disk after reading in the beasleyC3 problem's MPS file, the MIP solver reports a solution that is less than 50.
This implies that PuLP is not reading the file correctly. I found that this is the case for multiple MIPLIB2017 problems that have no integer variables but do have binary variables.
Useful extra information
The info below often helps, please fill it out if you're able to. :)
What operating system are you using?
I installed PuLP via:
Did you also
The text was updated successfully, but these errors were encountered: