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 225<br />

idx : long<br />

Index of element that should be obtained information about. <strong>The</strong> value is an index of a<br />

symmetric sparse variable.<br />

num : long<br />

Number of terms that appears in weighted that forms the requested element.<br />

Description:<br />

Obtains information about about the ¯c ij .<br />

A.2.37<br />

Task.getbarcidxj()<br />

j = Task.getbarcidxj(idx)<br />

Obtains the row index of an element in barc.<br />

Arguments<br />

idx : long<br />

Index of the element that should be obtained information about.<br />

j : int<br />

Row index in ¯c.<br />

Description:<br />

Obtains the row index of an element in ¯c.<br />

A.2.38<br />

Task.getbarcsparsity()<br />

numnz = Task.getbarcsparsity(idxj)<br />

Get the positions of the nonzero elements in barc.<br />

Arguments<br />

idxj : long[]<br />

Internal positions of the nonzeros elements in ¯c.<br />

numnz : long<br />

Number of nonzero elements in ¯C.<br />

Description:<br />

Internally only the nonzero elements of ¯c is stored<br />

in a vector. This function returns which elements ¯c that are nonzero (in subj) and their internal<br />

position (in idx). Using the position detailed information about each nonzero ¯C j can be obatined<br />

using Task.getbarcidxinfo and Task.getbarcidx.

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

Saved successfully!

Ooh no, something went wrong!