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

254 APPENDIX A. API REFERENCE A.2.100 Task.getnumvar() numvar = Task.getnumvar() Obtains the number of variables. Arguments numvar : int Number of variables. Description: Obtains the number of variables. A.2.101 Task.getobjname() objname = Task.getobjname() Obtains the name assigned to the objective function. Arguments objname : str Assigned the objective name. Description: Obtains the name assigned to the objective function. A.2.102 Task.getobjnamelen() len = Task.getobjnamelen() Obtains the length of the name assigned to the objective function. Arguments len : int Assigned the length of the objective name. Description: Obtains the length of the name assigned to the objective function.

A.2. CLASS TASK 255 A.2.103 Task.getobjsense() sense = Task.getobjsense() Gets the objective sense. Arguments sense : objsense The returned objective sense. Description: See also Gets the objective sense of the task. • Task.putobjsense Sets the objective sense. A.2.104 Task.getpbi() Task.getpbi( whichsol, accmode, sub, pbi, normalize) Deprecated. Arguments accmode : accmode If set to accmode.var return bound infeasibility for x otherwise for x c . normalize : int If non-zero, normalize with largest absolute value of the input data used to compute the individual infeasibility. pbi : double[] Bound infeasibility for x or x c . sub : int[] An array of constraint or variable indexes. whichsol : soltype Selects a solution.

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

A.2.100<br />

Task.getnumvar()<br />

numvar = Task.getnumvar()<br />

Obtains the number of variables.<br />

Arguments<br />

numvar : int<br />

Number of variables.<br />

Description:<br />

Obtains the number of variables.<br />

A.2.101<br />

Task.getobjname()<br />

objname = Task.getobjname()<br />

Obtains the name assigned to the objective function.<br />

Arguments<br />

objname : str<br />

Assigned the objective name.<br />

Description:<br />

Obtains the name assigned to the objective function.<br />

A.2.102<br />

Task.getobjnamelen()<br />

len = Task.getobjnamelen()<br />

Obtains the length of the name assigned to the objective function.<br />

Arguments<br />

len : int<br />

Assigned the length of the objective name.<br />

Description:<br />

Obtains the length of the name assigned to the objective function.

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

Saved successfully!

Ooh no, something went wrong!