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

312 APPENDIX A. API REFERENCE A.2.188 Task.putbound() Task.putbound( accmode, i, bk, bl, bu) Changes the bound for either one constraint or one variable. Arguments accmode : accmode Defines whether the bound for a constraint or a variable is changed. bk : boundkey New bound key. bl : double New lower bound. bu : double New upper bound. i : int Index of the constraint or variable. Description: See also Changes the bounds for either one constraint or one variable. If the a bound value specified is numerically larger than dparam.data tol bound inf it is considered infinite and the bound key is changed accordingly. If a bound value is numerically larger than dparam.data tol bound wrn, a warning will be displayed, but the bound is inputted as specified. • Task.putboundlist Changes the bounds of constraints or variables. A.2.189 Task.putboundlist() Task.putboundlist( accmode, sub, bk, bl, bu)

A.2. CLASS TASK 313 Changes the bounds of constraints or variables. Arguments accmode : accmode Defines whether bounds for constraints (accmode.con) or variables (accmode.var) are changed. bk : boundkey Constraint or variable index sub[t] is assigned the bound key bk[t]. bl : double[] Constraint or variable index sub[t] is assigned the lower bound bl[t]. bu : double[] Constraint or variable index sub[t] is assigned the upper bound bu[t]. sub : int[] Subscripts of the bounds that should be changed. Description: See also Changes the bounds for either some constraints or variables. If multiple bound changes are specified for a constraint or a variable, only the last change takes effect. • Task.putbound Changes the bound for either one constraint or one variable. • dparam.data tol bound inf Data tolerance threshold. • dparam.data tol bound wrn Data tolerance threshold. A.2.190 Task.putboundslice() Task.putboundslice( con, first, last, bk, bl, bu) Modifies bounds. Arguments bk : boundkey Bound keys.

A.2. CLASS TASK 313<br />

Changes the bounds of constraints or variables.<br />

Arguments<br />

accmode : accmode<br />

Defines whether bounds for constraints (accmode.con) or variables (accmode.var) are<br />

changed.<br />

bk : boundkey<br />

Constraint or variable index sub[t] is assigned the bound key bk[t].<br />

bl : double[]<br />

Constraint or variable index sub[t] is assigned the lower bound bl[t].<br />

bu : double[]<br />

Constraint or variable index sub[t] is assigned the upper bound bu[t].<br />

sub : int[]<br />

Subscripts of the bounds that should be changed.<br />

Description:<br />

See also<br />

Changes the bounds for either some constraints or variables. If multiple bound changes are<br />

specified for a constraint or a variable, only the last change takes effect.<br />

• Task.putbound Changes the bound for either one constraint or one variable.<br />

• dparam.data tol bound inf Data tolerance threshold.<br />

• dparam.data tol bound wrn Data tolerance threshold.<br />

A.2.190<br />

Task.putboundslice()<br />

Task.putboundslice(<br />

con,<br />

first,<br />

last,<br />

bk,<br />

bl,<br />

bu)<br />

Modifies bounds.<br />

Arguments<br />

bk : boundkey<br />

Bound keys.

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

Saved successfully!

Ooh no, something went wrong!