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

238 APPENDIX A. API REFERENCE Arguments accmode : accmode If set to accmode.con the dual equation infeasibilities corresponding to constraints are retrieved. Otherwise for a variables. deqi : double[] Dual equation infeasibilities corresponding to constraints or variables. normalize : int If non-zero, normalize with largest absolute value of the input data used to compute the individual infeasibility. sub : int[] Indexes of constraints or variables. whichsol : soltype Selects a solution. Description: Deprecated. Optains the dual equation infeasibility. If acmode is accmode.con then If acmode is accmode.var then pbi[i] = ∣ ∣(−y + s c l − s c u) sub[i] ∣ ∣ for i = 0, . . . , len − 1 pbi[i] = ∣ ∣(A T y + s x l − s x u − c) sub[i] ∣ ∣ for i = 0, . . . , len − 1 A.2.63 Task.getdimbarvarj() dimbarvarj = Task.getdimbarvarj(j) Obtains the dimension of a symmetric matrix variable. Arguments dimbarvarj : int The dimension of the j’th semidefinite variable. j : int Index of the semidefinite variable whose dimension is requested. Description: Obtains the dimension of a symmetric matrix variable.

A.2. CLASS TASK 239 A.2.64 Task.getdouinf() dvalue = Task.getdouinf(whichdinf) Obtains a double information item. Arguments dvalue : double The value of the required double information item. whichdinf : dinfitem A double float information item. Description: Obtains a double information item from the task information database. A.2.65 Task.getdouparam() parvalue = Task.getdouparam(param) Obtains a double parameter. Arguments param : dparam Which parameter. parvalue : double Parameter value. Description: Obtains the value of a double parameter. A.2.66 Task.getdualobj() dualobj = Task.getdualobj(whichsol) Computes the dual objective value associated with the solution. Arguments

A.2. CLASS TASK 239<br />

A.2.64<br />

Task.getdouinf()<br />

dvalue = Task.getdouinf(whichdinf)<br />

Obtains a double information item.<br />

Arguments<br />

dvalue : double<br />

<strong>The</strong> value of the required double information item.<br />

whichdinf : dinfitem<br />

A double float information item.<br />

Description:<br />

Obtains a double information item from the task information database.<br />

A.2.65<br />

Task.getdouparam()<br />

parvalue = Task.getdouparam(param)<br />

Obtains a double parameter.<br />

Arguments<br />

param : dparam<br />

Which parameter.<br />

parvalue : double<br />

Parameter value.<br />

Description:<br />

Obtains the value of a double parameter.<br />

A.2.66<br />

Task.getdualobj()<br />

dualobj = Task.getdualobj(whichsol)<br />

Computes the dual objective value associated with the solution.<br />

Arguments

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

Saved successfully!

Ooh no, something went wrong!