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

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

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

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

See also<br />

maximize (l c ) T s c l − (u c ) T s c u<br />

+ (l x ) T s x l − (u x ) T s x u + c f<br />

subject to A T y + s x l − s x u + s x n = c,<br />

− y + s c l − s c u = 0,<br />

s c l , s c u, s x l , s x u ≥ 0,<br />

s x n ∈ C ∗<br />

This introduces one additional dual variable s x n.<br />

solitem as solitem.snx.<br />

This variable can be acceded by selecting<br />

<strong>The</strong> meaning of the values returned by this function also depends on the solution status which<br />

can be obtained with Task.getsolsta. Depending on the solution status value will be:<br />

solsta.optimal<br />

A part of the optimal solution satisfying the optimality criteria for continuous problems.<br />

solsta.integer optimal<br />

A part of the optimal solution satisfying the optimality criteria for integer problems.<br />

solsta.prim feas<br />

A part of the solution satisfying the feasibility criteria.<br />

solsta.prim infeas cer<br />

A part of the primal certificate of infeasibility.<br />

solsta.dual infeas cer<br />

A part of the dual certificate of infeasibility.<br />

• Task.getsolution Obtains the complete solution.<br />

• Task.getsolutioni Obtains the solution for a single constraint or variable.<br />

A.2.135<br />

Task.getsparsesymmat()<br />

Task.getsparsesymmat(<br />

idx,<br />

subi,<br />

subj,<br />

valij)<br />

Gets a single symmetric matrix from the matrix store.<br />

Arguments<br />

idx : long<br />

Index of the matrix to get.

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

Saved successfully!

Ooh no, something went wrong!