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 597<br />

Please note that a quadratic cone must have at least one member whereas a rotated quadratic cone<br />

must have at least two members. A record in the CSECTION has the format<br />

[vname1]<br />

where the requirements for each field are<br />

Field Starting Maximum Re- Description<br />

position width quired<br />

[vname1] 2 8 Yes A valid variable name<br />

<strong>The</strong> most important restriction with respect to the CSECTION is that a variable must occur in only one<br />

CSECTION.<br />

F.1.1.12<br />

ENDATA<br />

This keyword denotes the end of the MPS file.<br />

F.1.2<br />

Integer variables<br />

Using special bound keys in the BOUNDS section it is possible to specify that some or all of the variables<br />

should be integer-constrained i.e. be members of J . However, an alternative method is available.<br />

This method is available only for backward compatibility and we recommend that it is not used. This<br />

method requires that markers are placed in the COLUMNS section as in the example:<br />

COLUMNS<br />

x1 obj -10.0 c1 0.7<br />

x1 c2 0.5 c3 1.0<br />

x1 c4 0.1<br />

* Start of integer-constrained variables.<br />

MARK000 ’MARKER’ ’INTORG’<br />

x2 obj -9.0 c1 1.0<br />

x2 c2 0.8333333333 c3 0.66666667<br />

x2 c4 0.25<br />

x3 obj 1.0 c6 2.0<br />

MARK001 ’MARKER’ ’INTEND’<br />

* End of integer-constrained variables.<br />

Please note that special marker lines are used to indicate the start and the end of the integer variables.<br />

Furthermore be aware of the following<br />

• IMPORTANT: All variables between the markers are assigned a default lower bound of 0 and<br />

a default upper bound of 1. This may not be what is intended. If it is not intended, the<br />

correct bounds should be defined in the BOUNDS section of the MPS formatted file.<br />

• <strong>MOSEK</strong> ignores field 1, i.e. MARK0001 and MARK001, however, other optimization systems require<br />

them.<br />

• Field 2, i.e. ’MARKER’, must be specified including the single quotes. This implies that no row<br />

can be assigned the name ’MARKER’.

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

Saved successfully!

Ooh no, something went wrong!