Introduction
MPS, for Mathematical Programming System, is a plain text format for stating linear
and mixed integer programming problems. It began at IBM and became a de facto standard
that optimisation solvers read. Files use the extension .mps.
Structure
The file is divided into sections, each opened by a header line that starts in
column 1: NAME, ROWS, COLUMNS,
RHS, the optional RANGES and BOUNDS, and
ENDATA at the end. The original fixed format places fields in set
columns and limits names to eight characters. A free format variant separates fields
by white space and allows longer names, which then may not contain blanks.
Not described
This page is a first outline.
Known, not yet covered
- Reference: the column positions, row and bound types, integer markers and the sections added by individual solvers.
- Viewer: the site has no viewer for this format.
Links
Software
- lp_solve – linear programming solver that reads and writes MPS
- CPLEX – IBM’s optimisation solver
- Wolfram Language – imports MPS problems
- MATLAB Optimization Toolbox – loads MPS files with mpsread
Reference
- MPS file format – the lp_solve documentation
- Records in MPS format – IBM’s CPLEX documentation
- MPS (format) – Wikipedia’s summary