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.

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

Arguments<br />

probtype : problemtype<br />

<strong>The</strong> problem type.<br />

Description:<br />

Obtains the problem type.<br />

A.2.109<br />

Task.getprosta()<br />

prosta = Task.getprosta(whichsol)<br />

Obtains the problem status.<br />

Arguments<br />

prosta : prosta<br />

Problem status.<br />

whichsol : soltype<br />

Selects a solution.<br />

Description:<br />

Obtains the problem status.<br />

A.2.110<br />

Task.getpviolbarvar()<br />

Task.getpviolbarvar(<br />

whichsol,<br />

sub,<br />

viol)<br />

Computes the violation of a primal solution for a list of barx variables.<br />

Arguments<br />

sub : int[]<br />

An array of indexes of ¯X variables.<br />

viol : double[]<br />

viol[k] is how much the solution violate the constraint ¯X sub[k] ∈ S + .<br />

whichsol : soltype<br />

Selects a solution.

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

Saved successfully!

Ooh no, something went wrong!