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

25.11.2015 Views

306 CHAPTER 15. THE OPF FORMAT [/constraints] [bounds] # We let all variables default to the positive orthant [b] 0 = sqrt( x1^2 + x2^2 ) [cone quad ’k1’] x4, x1, x2 [/cone] # Define rotated quadratic cone: 2 x5 x6 >= x3^2 [cone rquad ’k2’] x5, x6, x3 [/cone] [/bounds] 15.5.4 Mixed integer example milo1.opf Consider the mixed integer problem: This can be implemented in OPF with: [comment] The milo1 example in OPF format [/comment] [hints] [hint NUMVAR] 2 [/hint] [hint NUMCON] 2 [/hint] [hint NUMANZ] 4 [/hint] [/hints] [variables disallow new variables] x1 x2 [/variables] [objective maximize ’obj’] x1 + 6.4e-1 x2 [/objective] [constraints] [con ’c1’] 5e+1 x1 + 3.1e+1 x2

15.5. EXAMPLES 307 x1 x2 [/integer]

15.5. EXAMPLES 307<br />

x1 x2<br />

[/integer]

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

Saved successfully!

Ooh no, something went wrong!