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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

A.2. CLASS TASK 235<br />

Description:<br />

Obtains a name of a constraint.<br />

See also<br />

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

A.2.57<br />

Task.getconnameindex()<br />

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

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

Arguments<br />

asgn : int<br />

Is non-zero if the name somename is assigned to a constraint.<br />

index : int<br />

If the name somename is assigned to a constraint, then index is the name of the constraint.<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 constraint. If it has been assigned<br />

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

A.2.58<br />

Task.getconnamelen()<br />

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

Obtains the length of a name of a constraint variable.<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 constraint variable.<br />

See also<br />

• Task.getbarvarname Obtains a name of a semidefinite variable.

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

Saved successfully!

Ooh no, something went wrong!