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

232 APPENDIX A. API REFERENCE last : int Last index plus 1 in the sequence. Description: Obtains bounds information for a slice of the constraints. A.2.51 Task.getcone() conetype,conepar,nummem = Task.getcone( k, submem) Obtains a conic constraint. Arguments conepar : double This argument is currently not used. Can be set to 0.0. conetype : conetype Specifies the type of the cone. k : int Index of the cone constraint. nummem : int Number of member variables in the cone. submem : int[] Variable subscripts of the members in the cone. Description: Obtains a conic constraint. A.2.52 Task.getconeinfo() conetype,conepar,nummem = Task.getconeinfo(k) Obtains information about a conic constraint. Arguments conepar : double This argument is currently not used. Can be set to 0.0.

A.2. CLASS TASK 233 conetype : conetype Specifies the type of the cone. k : int Index of the conic constraint. nummem : int Number of member variables in the cone. Description: Obtains information about a conic constraint. A.2.53 Task.getconename() name = Task.getconename(i) Obtains a name of a cone. Arguments i : int Index. name : str Is assigned the required name. Description: See also Obtains a name of a cone. • Task.getconnamelen Obtains the length of a name of a constraint variable. A.2.54 Task.getconenameindex() asgn,index = Task.getconenameindex(somename) Checks whether the name somename has been assigned to any cone. Arguments asgn : int Is non-zero if the name somename is assigned to a cone.

A.2. CLASS TASK 233<br />

conetype : conetype<br />

Specifies the type of the cone.<br />

k : int<br />

Index of the conic constraint.<br />

nummem : int<br />

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

Description:<br />

Obtains information about a conic constraint.<br />

A.2.53<br />

Task.getconename()<br />

name = Task.getconename(i)<br />

Obtains a name of a cone.<br />

Arguments<br />

i : int<br />

Index.<br />

name : str<br />

Is assigned the required name.<br />

Description:<br />

See also<br />

Obtains a name of a cone.<br />

• Task.getconnamelen Obtains the length of a name of a constraint variable.<br />

A.2.54<br />

Task.getconenameindex()<br />

asgn,index = Task.getconenameindex(somename)<br />

Checks whether the name somename has been assigned to any cone.<br />

Arguments<br />

asgn : int<br />

Is non-zero if the name somename is assigned to a cone.

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

Saved successfully!

Ooh no, something went wrong!