MPS format exporting tool

Convert linear programming problem (MATLAB matrices) to MPS format
3.1K Downloads
Updated 2 May 2010

View License

Build MPS matrix string that contains linear programming problem:

Minimizing (for x in R^n): f(x) = cost'*x, subject to
A*x <= b (LE)
Aeq*x = beq (EQ)
L <= x <= U (BD).

Only single rhs (b and beq) is supported.

The MPS file format was introduced for an IBM program, but has also been
accepted by most subsequent linear programming codes.

To learn about MPS format, please see:
http://lpsolve.sourceforge.net/5.5/mps-format.htm
http://www-fp.mcs.anl.gov/OTC/Guide/OptWeb/continuous/constrained/linearprog/mps.html

Cite As

Bruno Luong (2024). MPS format exporting tool (https://www.mathworks.com/matlabcentral/fileexchange/19618-mps-format-exporting-tool), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2008a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Linear Programming and Mixed-Integer Linear Programming in Help Center and MATLAB Answers
Acknowledgements

Inspired: Extract solution from CPLEX .sol file

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.4.0.0

Extended MPS with quadratic term

1.2.0.0

Integer/Binary formulation supported

1.1.0.0

Better handling sparse matrix

1.0.0.0

Improved number formatting (one more digit accuracy in some circumtances)