25.11.2015 Views

The MOSEK command line tool Version 7.0 (Revision 141)

The MOSEK command line tool. Version 7.0 ... - Documentation

The MOSEK command line tool. Version 7.0 ... - Documentation

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

290 CHAPTER 14. THE LP FILE FORMAT<br />

• u c ∈ R m is the upper limit on the activity for the constraints.<br />

• l x ∈ R n is the lower limit on the activity for the variables.<br />

• u x ∈ R n is the upper limit on the activity for the variables.<br />

• q : R n → R is a vector of quadratic functions. Hence,<br />

where it is assumed that<br />

q i (x) = x T Q i x<br />

Q i = (Q i ) T .<br />

• J ⊆ {1, 2, . . . , n} is an index set of the integer constrained variables.<br />

14.1 <strong>The</strong> sections<br />

An LP formatted file contains a number of sections specifying the objective, constraints, variable<br />

bounds, and variable types. <strong>The</strong> section keywords may be any mix of upper and lower case letters.<br />

14.1.1 <strong>The</strong> objective<br />

<strong>The</strong> first section beginning with one of the keywords<br />

max<br />

maximum<br />

maximize<br />

min<br />

minimum<br />

minimize<br />

defines the objective sense and the objective function, i.e.<br />

c T x + 1 2 xT Q o x.<br />

<strong>The</strong> objective may be given a name by writing<br />

myname:<br />

before the expressions. If no name is given, then the objective is named obj.<br />

<strong>The</strong> objective function contains <strong>line</strong>ar and quadratic terms. <strong>The</strong> <strong>line</strong>ar terms are written as<br />

4 x1 + x2 - 0.1 x3<br />

and so forth. <strong>The</strong> quadratic terms are written in square brackets ([]) and are either squared or<br />

multiplied as in the examples<br />

x1^2<br />

and

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

Saved successfully!

Ooh no, something went wrong!