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

230 APPENDIX A. API REFERENCE Obtains all objective coefficients. Arguments c : double[] Linear terms of the objective as a dense vector. The lengths is the number of variables. Description: Obtains all objective coefficients c. A.2.47 Task.getcfix() cfix = Task.getcfix() Obtains the fixed term in the objective. Arguments cfix : double Fixed term in the objective. Description: Obtains the fixed term in the objective. A.2.48 Task.getcj() cj = Task.getcj(j) Obtains one coefficient of c. Arguments cj : double The value of c j . j : int Index of the variable for which c coefficient should be obtained. Description: Obtains one coefficient of c. See also • Task.getcslice Obtains a sequence of coefficients from the objective.

A.2. CLASS TASK 231 A.2.49 Task.getconbound() bk,bl,bu = Task.getconbound(i) Obtains bound information for one constraint. Arguments bk : boundkey Bound keys. bl : double Values for lower bounds. bu : double Values for upper bounds. i : int Index of the constraint for which the bound information should be obtained. Description: Obtains bound information for one constraint. A.2.50 Task.getconboundslice() Task.getconboundslice( first, last, bk, bl, bu) Obtains bounds information for a slice of the constraints. Arguments bk : mosek.boundkey[] Bound keys. bl : double[] Values for lower bounds. bu : double[] Values for upper bounds. first : int First index in the sequence.

A.2. CLASS TASK 231<br />

A.2.49<br />

Task.getconbound()<br />

bk,bl,bu = Task.getconbound(i)<br />

Obtains bound information for one constraint.<br />

Arguments<br />

bk : boundkey<br />

Bound keys.<br />

bl : double<br />

Values for lower bounds.<br />

bu : double<br />

Values for upper bounds.<br />

i : int<br />

Index of the constraint for which the bound information should be obtained.<br />

Description:<br />

Obtains bound information for one constraint.<br />

A.2.50<br />

Task.getconboundslice()<br />

Task.getconboundslice(<br />

first,<br />

last,<br />

bk,<br />

bl,<br />

bu)<br />

Obtains bounds information for a slice of the constraints.<br />

Arguments<br />

bk : mosek.boundkey[]<br />

Bound keys.<br />

bl : double[]<br />

Values for lower bounds.<br />

bu : double[]<br />

Values for upper bounds.<br />

first : int<br />

First index in the sequence.

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

Saved successfully!

Ooh no, something went wrong!