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

282 APPENDIX A. API REFERENCE last : int Last index plus 1 in the sequence. sux : double[] Dual variables corresponding to the upper bounds on the variables. whichsol : soltype Selects a solution. Description: Obtains a slice of the s x u vector for a solution. See also • Task.getsux Obtains the sux vector for a solution. A.2.142 Task.getsymmatinfo() dim,nz,type = Task.getsymmatinfo(idx) Obtains information of a matrix from the symmetric matrix storage E. Arguments dim : int Returns the dimension of the requested matrix. idx : long Index of the matrix that is requested information about. nz : long Returns the number of non-zeros in the requested matrix. type : symmattype Returns the type of the requested matrix. Description: MOSEK maintains a vector denoted E of symmetric data matrixes. possible to obtain important information about an data matrix in E. This function makes it A.2.143 Task.gettaskname() taskname = Task.gettaskname() Obtains the task name.

A.2. CLASS TASK 283 Arguments taskname : str Is assigned the task name. Description: Obtains the name assigned to the task. A.2.144 Task.gettasknamelen() len = Task.gettasknamelen() Obtains the length the task name. Arguments len : int Returns the length of the task name. Description: Obtains the length the task name. See also • Task.getbarvarname Obtains a name of a semidefinite variable. A.2.145 Task.getvarbound() bk,bl,bu = Task.getvarbound(i) Obtains bound information for one variable. Arguments bk : boundkey Bound keys. bl : double Values for lower bounds. bu : double Values for upper bounds. i : int Index of the variable for which the bound information should be obtained. Description: Obtains bound information for one variable.

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

last : int<br />

Last index plus 1 in the sequence.<br />

sux : double[]<br />

Dual variables corresponding to the upper bounds on the variables.<br />

whichsol : soltype<br />

Selects a solution.<br />

Description:<br />

Obtains a slice of the s x u vector for a solution.<br />

See also<br />

• Task.getsux Obtains the sux vector for a solution.<br />

A.2.142<br />

Task.getsymmatinfo()<br />

dim,nz,type = Task.getsymmatinfo(idx)<br />

Obtains information of a matrix from the symmetric matrix storage E.<br />

Arguments<br />

dim : int<br />

Returns the dimension of the requested matrix.<br />

idx : long<br />

Index of the matrix that is requested information about.<br />

nz : long<br />

Returns the number of non-zeros in the requested matrix.<br />

type : symmattype<br />

Returns the type of the requested matrix.<br />

Description:<br />

<strong>MOSEK</strong> maintains a vector denoted E of symmetric data matrixes.<br />

possible to obtain important information about an data matrix in E.<br />

This function makes it<br />

A.2.143<br />

Task.gettaskname()<br />

taskname = Task.gettaskname()<br />

Obtains the task name.

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

Saved successfully!

Ooh no, something went wrong!