This repository has been archived by the owner on Apr 21, 2022. It is now read-only.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
First step in converting benchmark sets like MIPLIB into MathOptFormat to see how we fare.
The implementation is pretty slow and memory intensive. A better approach might be to scan through the file once and record the names of all variables and constraints, pre-allocate the storage, and then re-scan.
I might end up making this package a "MathOptFileFormats" type job.
Docs
http://lpsolve.sourceforge.net/5.5/mps-format.htm
https://docs.mosek.com/8.1/capi/mps-format.html
http://plato.asu.edu/cplex_mps.pdf
Related Julia codes:
https://github.com/JuliaOpt/JuMP.jl/blob/release-0.18/src/writers.jl
https://github.com/odow/MPSWriter.jl
https://github.com/ds4dm/Tulip.jl/blob/master/src/readmps.jl