The MOSEK Python optimizer API manual Version 7.0 (Revision 141)

Optimizer API for Python - Documentation - Mosek Optimizer API for Python - Documentation - Mosek

25.11.2015 Views

262 APPENDIX A. API REFERENCE Arguments numqonz : int Number of non-zero elements in the quadratic objective terms. qosubi : int[] Row subscripts for quadratic objective coefficients. qosubj : int[] Column subscripts for quadratic objective coefficients. qoval : Description: double[] Quadratic objective coefficient values. Obtains the quadratic terms in the objective. The required quadratic terms are stored sequentially in qosubi, qosubj, and qoval. A.2.116 Task.getqobj64() numqonz = Task.getqobj64( qosubi, qosubj, qoval) Obtains all the quadratic terms in the objective. Arguments numqonz : long Number of non-zero elements in the quadratic objective terms. qosubi : int[] Row subscripts for quadratic objective coefficients. qosubj : int[] Column subscripts for quadratic objective coefficients. qoval : Description: double[] Quadratic objective coefficient values. Obtains the quadratic terms in the objective. The required quadratic terms are stored sequentially in qosubi, qosubj, and qoval.

A.2. CLASS TASK 263 A.2.117 Task.getqobjij() qoij = Task.getqobjij( i, j) Obtains one coefficient from the quadratic term of the objective Arguments i : int Row index of the coefficient. j : int Column index of coefficient. qoij : double The required coefficient. Description: Obtains one coefficient q o ij in the quadratic term of the objective. A.2.118 Task.getreducedcosts() Task.getreducedcosts( whichsol, first, last, redcosts) Obtains the difference of (slx-sux) for a sequence of variables. Arguments first : int See formula (A.1) for the definition. last : int See formula (A.1) for the definition. redcosts : double[] The reduced costs in the required sequence of variables are stored sequentially in redcosts starting at redcosts[0]. whichsol : soltype Selects a solution.

A.2. CLASS TASK 263<br />

A.2.117<br />

Task.getqobjij()<br />

qoij = Task.getqobjij(<br />

i,<br />

j)<br />

Obtains one coefficient from the quadratic term of the objective<br />

Arguments<br />

i : int<br />

Row index of the coefficient.<br />

j : int<br />

Column index of coefficient.<br />

qoij : double<br />

<strong>The</strong> required coefficient.<br />

Description:<br />

Obtains one coefficient q o ij<br />

in the quadratic term of the objective.<br />

A.2.118<br />

Task.getreducedcosts()<br />

Task.getreducedcosts(<br />

whichsol,<br />

first,<br />

last,<br />

redcosts)<br />

Obtains the difference of (slx-sux) for a sequence of variables.<br />

Arguments<br />

first : int<br />

See formula (A.1) for the definition.<br />

last : int<br />

See formula (A.1) for the definition.<br />

redcosts : double[]<br />

<strong>The</strong> reduced costs in the required sequence of variables are stored sequentially in redcosts<br />

starting at redcosts[0].<br />

whichsol : soltype<br />

Selects a solution.

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

Saved successfully!

Ooh no, something went wrong!