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

248 APPENDIX A. API REFERENCE A.2.83 Task.getmemusage() meminuse,maxmemuse = Task.getmemusage() Obtains information about the amount of memory used by a task. Arguments maxmemuse : long Maximum amount of memory used by the task until now. meminuse : long Amount of memory currently used by the task. Description: Obtains information about the amount of memory used by a task. A.2.84 Task.getnumanz() numanz = Task.getnumanz() Obtains the number of non-zeros in the coefficient matrix. Arguments numanz : int Number of non-zero elements in the linear constraint matrix. Description: Obtains the number of non-zeros in A. A.2.85 Task.getnumanz64() numanz = Task.getnumanz64() Obtains the number of non-zeros in the coefficient matrix. Arguments numanz : long Number of non-zero elements in the linear constraint matrix. Description: Obtains the number of non-zeros in A.

A.2. CLASS TASK 249 A.2.86 Task.getnumbarablocktriplets() num = Task.getnumbarablocktriplets() Obtains an upper bound on the number of scalar elements in the block triplet form of bara. Arguments num : long Number elements in the block triplet form of Ā. Description: Obtains an upper bound on the number of elements in the block triplet form of Ā. A.2.87 Task.getnumbaranz() nz = Task.getnumbaranz() Get the number of nonzero elements in barA. Arguments nz : long The number of nonzero elements in Ā i.e. the number of ā ij elements that is nonzero. Description: Get the number of nonzero elements in Ā. A.2.88 Task.getnumbarcblocktriplets() num = Task.getnumbarcblocktriplets() Obtains an upper bound on the number of elements in the block triplet form of barc. Arguments num : long An upper bound on the number elements in the block trip let form of ¯c. Description: Obtains an upper bound on the number of elements in the block triplet form of ¯C.

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

A.2.83<br />

Task.getmemusage()<br />

meminuse,maxmemuse = Task.getmemusage()<br />

Obtains information about the amount of memory used by a task.<br />

Arguments<br />

maxmemuse : long<br />

Maximum amount of memory used by the task until now.<br />

meminuse : long<br />

Amount of memory currently used by the task.<br />

Description:<br />

Obtains information about the amount of memory used by a task.<br />

A.2.84<br />

Task.getnumanz()<br />

numanz = Task.getnumanz()<br />

Obtains the number of non-zeros in the coefficient matrix.<br />

Arguments<br />

numanz : int<br />

Number of non-zero elements in the linear constraint matrix.<br />

Description:<br />

Obtains the number of non-zeros in A.<br />

A.2.85<br />

Task.getnumanz64()<br />

numanz = Task.getnumanz64()<br />

Obtains the number of non-zeros in the coefficient matrix.<br />

Arguments<br />

numanz : long<br />

Number of non-zero elements in the linear constraint matrix.<br />

Description:<br />

Obtains the number of non-zeros in A.

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

Saved successfully!

Ooh no, something went wrong!