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.

A.2. CLASS TASK 259<br />

Description:<br />

Let ( ¯X j ) ∗ be the value of variable ¯X j for the specified solution. <strong>The</strong>n the primal violation of the<br />

solution associated with variable ¯X j is given by<br />

max(−λ min ( ¯X j ), 0.0).<br />

A.2.111<br />

Task.getpviolcon()<br />

Task.getpviolcon(<br />

whichsol,<br />

sub,<br />

viol)<br />

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

Arguments<br />

sub : int[]<br />

An array of indexes of constraints.<br />

viol : double[]<br />

viol[k] associated with the solution for the sub[k]’th constraint.<br />

whichsol : soltype<br />

Selects a solution.<br />

Description:<br />

<strong>The</strong> primal violation of the solution associated of constraint is computed by<br />

numvar−1<br />

∑<br />

max(li c τ − (x c i) ∗ ), (x c i) ∗ τ − u c iτ, | a ij x ∗ j − x c i|)<br />

where τ is defined as follows. If the solution is a certificate of dual infeasibility, then τ = 0 and<br />

otherwise τ = 1. Both when the solution is a valid certificate of dual infeasibility or when it is<br />

primal feasibible solution the violation should be small. <strong>The</strong> above is only shown for linear case<br />

but is appropriately generalized for the other cases.<br />

j=0<br />

A.2.112<br />

Task.getpviolcones()<br />

Task.getpviolcones(<br />

whichsol,<br />

sub,<br />

viol)

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

Saved successfully!

Ooh no, something went wrong!