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

256 APPENDIX A. API REFERENCE Description: Deprecated. Obtains the primal bound infeasibility. If acmode is accmode.con then pbi[i] = max(x c sub[i] − uc sub[i] , lc sub[i] − xc sub[i] , 0) for i = 0, . . . , len − 1 If acmode is accmode.var then pbi[i] = max(x sub[i] − u x sub[i] , lx sub[i] − x sub[i], 0) for i = 0, . . . , len − 1 A.2.105 Task.getpcni() Task.getpcni( whichsol, sub, pcni) Deprecated. Arguments pcni : double[] pcni[i] contains primal cone infeasibility for the cone with index sub[i]. sub : int[] Constraint indexes for which to calculate the equation infeasibility. whichsol : soltype Selects a solution. Description: Deprectaed. A.2.106 Task.getpeqi() Task.getpeqi( whichsol, sub, peqi, normalize) Deprecated. Arguments

A.2. CLASS TASK 257 normalize : int If non-zero, normalize with largest absolute value of the input data used to compute the individual infeasibility. peqi : double[] peqi[i] contains equation infeasibility of constraint sub[i]. sub : int[] Constraint indexes for which to calculate the equation infeasibility. whichsol : soltype Selects a solution. Description: Deprecated. Obtains the primal equation infeasibility. peqi[i] = ∣ ∣(Ax − x c ) sub[i] ∣ ∣ for i = 0, . . . , len − 1. A.2.107 Task.getprimalobj() primalobj = Task.getprimalobj(whichsol) Computes the primal objective value for the desired solution. Arguments primalobj : double Objective value corresponding to the primal solution. whichsol : soltype Selects a solution. Description: Computes the primal objective value for the desired solution. Note if the solution is an infeasibility certificate, then the fixed term in the objective is not included. A.2.108 Task.getprobtype() probtype = Task.getprobtype() Obtains the problem type.

A.2. CLASS TASK 257<br />

normalize : int<br />

If non-zero, normalize with largest absolute value of the input data used to compute the<br />

individual infeasibility.<br />

peqi : double[]<br />

peqi[i] contains equation infeasibility of constraint sub[i].<br />

sub : int[]<br />

Constraint indexes for which to calculate the equation infeasibility.<br />

whichsol : soltype<br />

Selects a solution.<br />

Description:<br />

Deprecated.<br />

Obtains the primal equation infeasibility.<br />

peqi[i] = ∣ ∣(Ax − x c ) sub[i]<br />

∣ ∣ for i = 0, . . . , len − 1.<br />

A.2.107<br />

Task.getprimalobj()<br />

primalobj = Task.getprimalobj(whichsol)<br />

Computes the primal objective value for the desired solution.<br />

Arguments<br />

primalobj : double<br />

Objective value corresponding to the primal solution.<br />

whichsol : soltype<br />

Selects a solution.<br />

Description:<br />

Computes the primal objective value for the desired solution. Note if the solution is an infeasibility<br />

certificate, then the fixed term in the objective is not included.<br />

A.2.108<br />

Task.getprobtype()<br />

probtype = Task.getprobtype()<br />

Obtains the problem type.

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

Saved successfully!

Ooh no, something went wrong!