MPS format exporting tool

Convert linear programming problem (MATLAB matrices) to MPS format

You are now following this Submission

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 (2026). MPS format exporting tool (https://www.mathworks.com/matlabcentral/fileexchange/19618-mps-format-exporting-tool), MATLAB Central File Exchange. Retrieved .

Acknowledgements

Inspired: Extract solution from CPLEX .sol file

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
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)