scipopt / soplex

Sequential object-oriented simPlex
Other
59 stars 18 forks source link

how should I load MPS files? #8

Closed BrannonKing closed 1 year ago

BrannonKing commented 1 year ago

It looks like the basis loader that uses MPS files is excluded from the build. What is the recommended way to load MPS files for Soplex? Is there some 3rd-party loader that is recommended?

leoneifler commented 1 year ago

I'm not sure I understand your question. On the command line, you can read a .bas file using --readbas=<basfile>. Using the API it is readBasisFile.

BrannonKing commented 1 year ago

readBasisFile doesn't read the MPS format, true?

leoneifler commented 1 year ago

The documentation states (and I have no reason to doubt it):


Load basis from filename in MPS format. If rowNames and colNames are NULL, default names are used for the constraints and variables.
BrannonKing commented 1 year ago

My doubt came from the MPS reader being commented out here: https://github.com/scipopt/soplex/blob/22a415c791853db4e3614873cbd923e4f1cd3cd1/src/soplex.hpp#L9403

However, I see now that the readBasis method is implemented. I just hope it reads the whole problem and not just the basis.