25.11.2015 Views

The MOSEK Python optimizer API manual Version 7.0 (Revision 141)

Optimizer API for Python - Documentation - Mosek

Optimizer API for Python - Documentation - Mosek

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

F.1. THE MPS FILE FORMAT 589<br />

Fields:<br />

All items surrounded by brackets appear in fields. <strong>The</strong> fields named ”valueN” are numerical<br />

values. Hence, they must have the format<br />

[+|-]XXXXXXX.XXXXXX[[e|E][+|-]XXX]<br />

where<br />

Sections:<br />

X = [0|1|2|3|4|5|6|7|8|9].<br />

<strong>The</strong> MPS file consists of several sections where the names in capitals indicate the beginning of a<br />

new section. For example, COLUMNS denotes the beginning of the columns section.<br />

Comments:<br />

Keys:<br />

Lines starting with an ”*” are comment lines and are ignored by <strong>MOSEK</strong>.<br />

<strong>The</strong> question marks represent keys to be specified later.<br />

Extensions:<br />

<strong>The</strong> sections QSECTION and CSECTION are <strong>MOSEK</strong> specific extensions of the MPS format.<br />

<strong>The</strong> standard MPS format is a fixed format, i.e. everything in the MPS file must be within certain<br />

fixed positions. <strong>MOSEK</strong> also supports a free format. See Section F.1.5 for details.<br />

F.1.1.1<br />

Linear example lo1.mps<br />

A concrete example of a MPS file is presented below:<br />

* File: lo1.mps<br />

NAME<br />

lo1<br />

OBJSENSE<br />

MAX<br />

ROWS<br />

N obj<br />

E c1<br />

G c2<br />

L c3<br />

COLUMNS<br />

x1 obj 3<br />

x1 c1 3<br />

x1 c2 2<br />

x2 obj 1<br />

x2 c1 1<br />

x2 c2 1<br />

x2 c3 2<br />

x3 obj 5<br />

x3 c1 2<br />

x3 c2 3<br />

x4 obj 1<br />

x4 c2 1<br />

x4 c3 3

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

Saved successfully!

Ooh no, something went wrong!