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

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

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

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

must be present to specify the type of the constraint. <strong>The</strong> key can have the values E, G, L, or N with<br />

the following interpretation:<br />

Constraint<br />

type<br />

li c u c i<br />

E finite li<br />

c<br />

G finite ∞<br />

L −∞ finite<br />

N −∞ ∞<br />

In the MPS format an objective vector is not specified explicitly, but one of the constraints having the<br />

key N will be used as the objective vector c . In general, if multiple N type constraints are specified,<br />

then the first will be used as the objective vector c .<br />

F.1.1.6<br />

COLUMNS<br />

In this section the elements of A are specified using one or more records having the form<br />

[vname1] [cname1] [value1] [cname2] [value2]<br />

where the requirements for each field are as follows:<br />

Field Starting Maximum Re- Description<br />

position width quired<br />

[vname1] 5 8 Yes Variable name<br />

[cname1] 15 8 Yes Constraint name<br />

[value1] 25 12 Yes Numerical value<br />

[cname2] 40 8 No Constraint name<br />

[value2] 50 12 No Numerical value<br />

Hence, a record specifies one or two elements a ij of A using the principle that [vname1] and [cname1]<br />

determines j and i respectively. Please note that [cname1] must be a constraint name specified in<br />

the ROWS section. Finally, [value1] denotes the numerical value of a ij . Another optional element<br />

is specified by [cname2], and [value2] for the variable specified by [vname1]. Some important<br />

comments are:<br />

• All elements belonging to one variable must be grouped together.<br />

• Zero elements of A should not be specified.<br />

• At least one element for each variable should be specified.<br />

F.1.1.7<br />

RHS (optional)<br />

A record in this section has the format<br />

[name] [cname1] [value1] [cname2] [value2]<br />

where the requirements for each field are as follows:

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

Saved successfully!

Ooh no, something went wrong!