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.

A.2. CLASS TASK 261<br />

max(l x j τ − x ∗ j , x ∗ j − u x j τ).<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.<br />

A.2.114<br />

Task.getqconk()<br />

numqcnz = Task.getqconk(<br />

k,<br />

qcsubi,<br />

qcsubj,<br />

qcval)<br />

Obtains all the quadratic terms in a constraint.<br />

Arguments<br />

k : int<br />

Which constraint.<br />

numqcnz : long<br />

Number of quadratic terms.<br />

qcsubi : int[]<br />

Row subscripts for quadratic constraint matrix.<br />

qcsubj : int[]<br />

Column subscripts for quadratic constraint matrix.<br />

qcval : double[]<br />

Quadratic constraint coefficient values.<br />

Description:<br />

Obtains all the quadratic terms in a constraint. <strong>The</strong> quadratic terms are stored sequentially<br />

qcsubi, qcsubj, and qcval.<br />

A.2.115<br />

Task.getqobj()<br />

numqonz = Task.getqobj(<br />

qosubi,<br />

qosubj,<br />

qoval)<br />

Obtains all the quadratic terms in the objective.

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

Saved successfully!

Ooh no, something went wrong!