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

224 APPENDIX A. API REFERENCE valijkl : double[] A list indexes of the elements from symmetric matrix storage that appers in the weighted sum. Description: Obtains ¯C in block triplet form. A.2.35 Task.getbarcidx() j,num = Task.getbarcidx( idx, sub, weights) Obtains information about an element in barc. Arguments idx : long Index of the element that should be obtained information about. j : int Row index in ¯c. num : long Number of terms in the weighted sum. sub : long[] Elements appearing the weighted sum. weights : double[] Weights of terms in the weighted sum. Description: Obtains information about an element in ¯c. A.2.36 Task.getbarcidxinfo() num = Task.getbarcidxinfo(idx) Obtains information about an element in barc. Arguments

A.2. CLASS TASK 225 idx : long Index of element that should be obtained information about. The value is an index of a symmetric sparse variable. num : long Number of terms that appears in weighted that forms the requested element. Description: Obtains information about about the ¯c ij . A.2.37 Task.getbarcidxj() j = Task.getbarcidxj(idx) Obtains the row index of an element in barc. Arguments idx : long Index of the element that should be obtained information about. j : int Row index in ¯c. Description: Obtains the row index of an element in ¯c. A.2.38 Task.getbarcsparsity() numnz = Task.getbarcsparsity(idxj) Get the positions of the nonzero elements in barc. Arguments idxj : long[] Internal positions of the nonzeros elements in ¯c. numnz : long Number of nonzero elements in ¯C. Description: Internally only the nonzero elements of ¯c is stored in a vector. This function returns which elements ¯c that are nonzero (in subj) and their internal position (in idx). Using the position detailed information about each nonzero ¯C j can be obatined using Task.getbarcidxinfo and Task.getbarcidx.

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

valijkl : double[]<br />

A list indexes of the elements from symmetric matrix storage that appers in the weighted<br />

sum.<br />

Description:<br />

Obtains ¯C in block triplet form.<br />

A.2.35<br />

Task.getbarcidx()<br />

j,num = Task.getbarcidx(<br />

idx,<br />

sub,<br />

weights)<br />

Obtains information about 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 />

num : long<br />

Number of terms in the weighted sum.<br />

sub : long[]<br />

Elements appearing the weighted sum.<br />

weights : double[]<br />

Weights of terms in the weighted sum.<br />

Description:<br />

Obtains information about an element in ¯c.<br />

A.2.36<br />

Task.getbarcidxinfo()<br />

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

Obtains information about an element in barc.<br />

Arguments

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

Saved successfully!

Ooh no, something went wrong!