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.

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

Obtains the number of non-zeros in a slice of rows or columns of the coefficient matrix.<br />

Arguments<br />

accmode : accmode<br />

Defines whether non-zeros are counted in a column slice or a row slice.<br />

first : int<br />

Index of the first row or column in the sequence.<br />

last : int<br />

Index of the last row or column plus one in the sequence.<br />

numnz : long<br />

Number of non-zeros in the slice.<br />

Description:<br />

Obtains the number of non-zeros in a slice of rows or columns of A.<br />

A.2.29<br />

Task.getbarablocktriplet()<br />

num = Task.getbarablocktriplet(<br />

subi,<br />

subj,<br />

subk,<br />

subl,<br />

valijkl)<br />

Obtains barA in block triplet form.<br />

Arguments<br />

num : long<br />

Number of elements in the block triplet form.<br />

subi : int[]<br />

Constraint index.<br />

subj : int[]<br />

Symmetric matrix variable index.<br />

subk : int[]<br />

Block row index.<br />

subl : int[]<br />

Block column index.

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

Saved successfully!

Ooh no, something went wrong!