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

250 APPENDIX A. API REFERENCE A.2.89 Task.getnumbarcnz() nz = Task.getnumbarcnz() Obtains the number of nonzero elements in barc. Arguments nz : long The number of nonzeros in ¯c i.e. the number of elements ¯c j that is diffrent from 0. Description: Obtains the number of nonzero elements in ¯c. A.2.90 Task.getnumbarvar() numbarvar = Task.getnumbarvar() Obtains the number of semidefinite variables. Arguments numbarvar : int Number of semidefinite variable in the problem. Description: Obtains the number of semidefinite variables. A.2.91 Task.getnumcon() numcon = Task.getnumcon() Obtains the number of constraints. Arguments numcon : int Number of constraints. Description: Obtains the number of constraints.

A.2. CLASS TASK 251 A.2.92 Task.getnumcone() numcone = Task.getnumcone() Obtains the number of cones. Arguments numcone : int Number conic constraints. Description: Obtains the number of cones. A.2.93 Task.getnumconemem() nummem = Task.getnumconemem(k) Obtains the number of members in a cone. Arguments k : int Index of the cone. nummem : int Number of member variables in the cone. Description: Obtains the number of members in a cone. A.2.94 Task.getnumintvar() numintvar = Task.getnumintvar() Obtains the number of integer-constrained variables. Arguments numintvar : int Number of integer variables. Description: Obtains the number of integer-constrained variables.

A.2. CLASS TASK 251<br />

A.2.92<br />

Task.getnumcone()<br />

numcone = Task.getnumcone()<br />

Obtains the number of cones.<br />

Arguments<br />

numcone : int<br />

Number conic constraints.<br />

Description:<br />

Obtains the number of cones.<br />

A.2.93<br />

Task.getnumconemem()<br />

nummem = Task.getnumconemem(k)<br />

Obtains the number of members in a cone.<br />

Arguments<br />

k : int<br />

Index of the cone.<br />

nummem : int<br />

Number of member variables in the cone.<br />

Description:<br />

Obtains the number of members in a cone.<br />

A.2.94<br />

Task.getnumintvar()<br />

numintvar = Task.getnumintvar()<br />

Obtains the number of integer-constrained variables.<br />

Arguments<br />

numintvar : int<br />

Number of integer variables.<br />

Description:<br />

Obtains the number of integer-constrained variables.

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

Saved successfully!

Ooh no, something went wrong!