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

338 APPENDIX A. API REFERENCE A.2.231 Task.putsolutionyi() Task.putsolutionyi( i, whichsol, y) Inputs the dual variable of a solution. Arguments i : int Index of the dual variable. whichsol : soltype Selects a solution. y : double Solution value of the dual variable. Description: See also Inputs the dual variable of a solution. • Task.putsolutioni Sets the primal and dual solution information for a single constraint or variable. A.2.232 Task.putstrparam() Task.putstrparam( param, parvalue) Sets a string parameter. Arguments param : sparam Which parameter. parvalue : str Parameter value. Description: Sets the value of a string parameter.

A.2. CLASS TASK 339 A.2.233 Task.putsuc() Task.putsuc( whichsol, suc) Sets the suc vector for a solution. Arguments suc : double[] The s c u vector. whichsol : soltype Selects a solution. Description: See also Sets the s c u vector for a solution. • Task.putsucslice Sets a slice of the suc vector for a solution. A.2.234 Task.putsucslice() Task.putsucslice( whichsol, first, last, suc) Sets a slice of the suc vector for a solution. Arguments first : int First index in the sequence. last : int Last index plus 1 in the sequence. suc : double[] Dual variables corresponding to the upper bounds on the constraints. whichsol : soltype Selects a solution.

A.2. CLASS TASK 339<br />

A.2.233<br />

Task.putsuc()<br />

Task.putsuc(<br />

whichsol,<br />

suc)<br />

Sets the suc vector for a solution.<br />

Arguments<br />

suc : double[]<br />

<strong>The</strong> s c u vector.<br />

whichsol : soltype<br />

Selects a solution.<br />

Description:<br />

See also<br />

Sets the s c u vector for a solution.<br />

• Task.putsucslice Sets a slice of the suc vector for a solution.<br />

A.2.234<br />

Task.putsucslice()<br />

Task.putsucslice(<br />

whichsol,<br />

first,<br />

last,<br />

suc)<br />

Sets a slice of the suc vector for a solution.<br />

Arguments<br />

first : int<br />

First index in the sequence.<br />

last : int<br />

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

suc : double[]<br />

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

whichsol : soltype<br />

Selects a solution.

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

Saved successfully!

Ooh no, something went wrong!