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

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

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

306 CHAPTER 15. THE OPF FORMAT<br />

[/constraints]<br />

[bounds]<br />

# We let all variables default to the positive orthant<br />

[b] 0 = sqrt( x1^2 + x2^2 )<br />

[cone quad ’k1’] x4, x1, x2 [/cone]<br />

# Define rotated quadratic cone: 2 x5 x6 >= x3^2<br />

[cone rquad ’k2’] x5, x6, x3 [/cone]<br />

[/bounds]<br />

15.5.4 Mixed integer example milo1.opf<br />

Consider the mixed integer problem:<br />

This can be implemented in OPF with:<br />

[comment]<br />

<strong>The</strong> milo1 example in OPF format<br />

[/comment]<br />

[hints]<br />

[hint NUMVAR] 2 [/hint]<br />

[hint NUMCON] 2 [/hint]<br />

[hint NUMANZ] 4 [/hint]<br />

[/hints]<br />

[variables disallow new variables]<br />

x1 x2<br />

[/variables]<br />

[objective maximize ’obj’]<br />

x1 + 6.4e-1 x2<br />

[/objective]<br />

[constraints]<br />

[con ’c1’] 5e+1 x1 + 3.1e+1 x2

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

Saved successfully!

Ooh no, something went wrong!