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

Create successful ePaper yourself

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

206 APPENDIX A. <strong>API</strong> REFERENCE<br />

Arguments<br />

dim : int[]<br />

Dimension of symmetric matrix variables to be added.<br />

Description:<br />

Appends a positive semidefinite matrix variable of dimension dim to the problem.<br />

A.2.5<br />

Task.appendcone()<br />

Task.appendcone(<br />

conetype,<br />

conepar,<br />

submem)<br />

Appends a new cone constraint to the problem.<br />

Arguments<br />

conepar : double<br />

This argument is currently not used. Can be set to 0.0.<br />

conetype : conetype<br />

Specifies the type of the cone.<br />

submem : int[]<br />

Variable subscripts of the members in the cone.<br />

Description:<br />

Appends a new conic constraint to the problem. Hence, add a constraint<br />

ˆx ∈ C<br />

to the problem where C is a convex cone. ˆx is a subset of the variables which will be specified<br />

by the argument submem.<br />

Depending on the value of conetype this function appends a normal (conetype.quad) or rotated<br />

quadratic cone (conetype.rquad). Define<br />

ˆx = x submem[0] , . . . , x submem[nummem−1]<br />

. Depending on the value of conetype this function appends one of the constraints:<br />

• Quadratic cone (conetype.quad) :<br />

√<br />

ˆx 0 ≥<br />

∑<br />

√ i

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

Saved successfully!

Ooh no, something went wrong!