16.01.2015 Views

GAMS — The Solver Manuals - Available Software

GAMS — The Solver Manuals - Available Software

GAMS — The Solver Manuals - Available Software

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

MPSWRITE<br />

Contents<br />

1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 395<br />

2 An Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 396<br />

3 Name Generation: A Short Note . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 398<br />

4 <strong>The</strong> Option File . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 398<br />

5 Illustrative Example Revisited . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 398<br />

6 Using Analyze with MPSWRITE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 400<br />

7 <strong>The</strong> <strong>GAMS</strong>/MPSWRITE Options . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 402<br />

7.1 Name Generation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 402<br />

7.2 Name Design . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 402<br />

7.3 Using Files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 403<br />

7.4 Writing Files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 403<br />

8 Name Generation Examples . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 404<br />

9 Integrating <strong>GAMS</strong> and ANALYZE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 410<br />

Release Notes<br />

MPSWRITE 1.2 - February 22, 2000 - Differences from 1.1<br />

• Enabled the use of long identifier and label (set element) names. In earlier versions, the length of identifier<br />

and element names was limited to 10 characters.<br />

• Added the option OBJLAST (OBJective row LAST) to place the objective row as the last/first row in<br />

the MPS matrix. Most solution systems have MPS file readers which take the first free row (N) to be the<br />

objective row. Previous versions of MPSWRITE placed the objective row as the last row in the matrix.<br />

MPSWRITE 1.1 - April 15, 1999 - Differences from 1.0<br />

• Updated the ANALYZE link to be compatible with the book by Harvey J. Greenberg, A Computer-Assisted<br />

Analysis for Mathematical Programming Models and Solutions: A User’s Guide to ANALYZE, Kluwer<br />

Academic Publishers, Boston, 1993.<br />

• Added the option MCASE (Mixed CASE names) to control the casing of MPS names.<br />

1 Introduction<br />

<strong>The</strong> <strong>GAMS</strong> modeling language allows you to represent a mathematical programming model in a compact and<br />

easily understood form and protects the user from having to represent the model in the form that is required by<br />

any particular solver. This solver specific form is usually difficult to write and even more difficult to read and<br />

understand. However, there may be cases in which you require the model data in precisely such a form. You may

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!