5.0

5.0 | 1 rating Rate this file 13 Downloads (last 30 days) File Size: 10.31 KB File ID: #19618

MPS format exporting tool

by Bruno Luong

 

17 Apr 2008 (Updated 02 May 2010)

Convert linear programming problem (MATLAB matrices) to MPS format

| Watch this File

File Information
Description

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

Acknowledgements
This submission has inspired the following:
Extract solution from CPLEX .sol file
MATLAB release MATLAB 7.6 (R2008a)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (4)
08 Sep 2009 Thomas Trötscher

Works nicely with ILOG CPLEX 11 at least

21 Mar 2010 kostas

Dear Bruno

I was wondering if it is possible to add a new feature to the MPS exporting tool, i.e. to support also quadratic constraints. In other words, to support quadratically constrained optimization problems:

Minimizing (for x in R^n): f(x) = c' * x,
subject to
      1/2 x' * Q * x + r * x <= bquad
      A*x <= b (LE)
      Aeq*x = beq (EQ)
      L <= x <= U (BD).

thanks in advance, kostas

19 Apr 2010 kostas

Dear Bruno

any news about the above extension to the MPS exporting tool?

02 May 2010 Bruno Luong

Extended MPS with quadratic terms is submitted (kostas's request). I have just implemented according to the reference document. However I cannot test since I do not access to any solver that supports this format.

Please login to add a comment or rating.
Updates
21 Apr 2008

Improvement of precision
More options to BuildMPS function
Stricker error checking

30 May 2008

Bug fixed when L or U are respectively column and row (or the reverse)

16 Jul 2008

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

25 Aug 2009

Better handling sparse matrix

03 Sep 2009

Integer/Binary formulation supported

02 May 2010

Extended MPS with quadratic term

Tag Activity for this File
Tag Applied By Date/Time
optimization Bruno Luong 22 Oct 2008 09:58:10
mps Bruno Luong 22 Oct 2008 09:58:10
linear programming Bruno Luong 22 Oct 2008 09:58:10
lp Bruno Luong 22 Oct 2008 09:58:10
integer programming Bruno Luong 03 Sep 2009 13:21:25
mps fabio freschi 28 Apr 2010 09:34:14

Contact us at files@mathworks.com