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

234 APPENDIX A. API REFERENCE index : int If the name somename is assigned to a cone, then index is the name of the cone. somename : str The name which should be checked. Description: Checks whether the name somename has been assigned to any cone. If it has been assigned to cone, then index of the cone is reported. A.2.55 Task.getconenamelen() len = Task.getconenamelen(i) Obtains the length of a name of a cone. Arguments i : int Index. len : int Returns the length of the indicated name. Description: Obtains the length of a name of a cone. See also • Task.getbarvarname Obtains a name of a semidefinite variable. A.2.56 Task.getconname() name = Task.getconname(i) Obtains a name of a constraint. Arguments i : int Index. name : str Is assigned the required name.

A.2. CLASS TASK 235 Description: Obtains a name of a constraint. See also • Task.getconnamelen Obtains the length of a name of a constraint variable. A.2.57 Task.getconnameindex() asgn,index = Task.getconnameindex(somename) Checks whether the name somename has been assigned to any constraint. Arguments asgn : int Is non-zero if the name somename is assigned to a constraint. index : int If the name somename is assigned to a constraint, then index is the name of the constraint. somename : str The name which should be checked. Description: Checks whether the name somename has been assigned to any constraint. If it has been assigned to constraint, then index of the constraint is reported. A.2.58 Task.getconnamelen() len = Task.getconnamelen(i) Obtains the length of a name of a constraint variable. Arguments i : int Index. len : int Returns the length of the indicated name. Description: Obtains the length of a name of a constraint variable. See also • Task.getbarvarname Obtains a name of a semidefinite variable.

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

index : int<br />

If the name somename is assigned to a cone, then index is the name of the cone.<br />

somename : str<br />

<strong>The</strong> name which should be checked.<br />

Description:<br />

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

cone, then index of the cone is reported.<br />

A.2.55<br />

Task.getconenamelen()<br />

len = Task.getconenamelen(i)<br />

Obtains the length of a name of a cone.<br />

Arguments<br />

i : int<br />

Index.<br />

len : int<br />

Returns the length of the indicated name.<br />

Description:<br />

Obtains the length of a name of a cone.<br />

See also<br />

• Task.getbarvarname Obtains a name of a semidefinite variable.<br />

A.2.56<br />

Task.getconname()<br />

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

Obtains a name of a constraint.<br />

Arguments<br />

i : int<br />

Index.<br />

name : str<br />

Is assigned the required name.

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

Saved successfully!

Ooh no, something went wrong!