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.

14.1. THE SECTIONS 291<br />

x1 * x2<br />

<strong>The</strong>re may be zero or more pairs of brackets containing quadratic expressions.<br />

An example of an objective section is:<br />

minimize<br />

myobj: 4 x1 + x2 - 0.1 x3 + [ x1^2 + 2.1 x1 * x2 ]/2<br />

Please note that the quadratic expressions are multiplied with 1 2<br />

, so that the above expression means<br />

minimize 4x 1 + x 2 − 0.1 · x 3 + 1 2 (x2 1 + 2.1 · x 1 · x 2 )<br />

If the same variable occurs more than once in the <strong>line</strong>ar part, the coefficients are added, so that 4 x1<br />

+ 2 x1 is equivalent to 6 x1. In the quadratic expressions x1 * x2 is equivalent to x2 * x1 and as<br />

in the <strong>line</strong>ar part , if the same variables multiplied or squared occur several times their coefficients are<br />

added.<br />

14.1.2 <strong>The</strong> constraints<br />

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

subj to<br />

subject to<br />

s.t.<br />

st<br />

defines the <strong>line</strong>ar constraint matrix (A ) and the quadratic matrices (Q i ).<br />

A constraint contains a name (optional), expressions adhering to the same rules as in the objective<br />

and a bound:<br />

subject to<br />

con1: x1 + x2 + [ x3^2 ]/2

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

Saved successfully!

Ooh no, something went wrong!