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.

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

A.2.31<br />

Task.getbaraidxij()<br />

i,j = Task.getbaraidxij(idx)<br />

Obtains information about an element barA.<br />

Arguments<br />

i : int<br />

Row index of the element at position idx.<br />

idx : long<br />

Position of the element in the vectorized form.<br />

j : int<br />

Column index of the element at position idx.<br />

Description:<br />

Obtains information about an element in Ā. Since Ā is a sparse matrix of symmetric matrixes<br />

only the nonzero elements in Ā are stored in order to save space. Now Ā is stored vectorized<br />

form i.e. as one long vector. This function makes it possible to obtain information such as the<br />

row index and the column index of a particular element of the vectorized form of Ā.<br />

Please note that if one element of Ā is inputted multiple times then it may be stored several<br />

times in vectorized form. In that case the element with the highest index is the one that is used.<br />

A.2.32<br />

Task.getbaraidxinfo()<br />

num = Task.getbaraidxinfo(idx)<br />

Obtains the number terms in the weighted sum that forms a particular element in barA.<br />

Arguments<br />

idx : long<br />

<strong>The</strong> internal position of the element that should be obtained information for.<br />

num : long<br />

Number of terms in the weighted sum that forms the specified element in Ā.<br />

Description:<br />

Each nonzero element in Āij is formed as a weighted sum of symmtric matrixes. Using this function<br />

the number terms in the weigthted sum can be obtained. See description of Task.appendsparsesymmat<br />

for details about the weighted sum.

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

Saved successfully!

Ooh no, something went wrong!