setub
setub |
Purpose
Synopsis
procedure setub(x:mpvar,r:real)
Arguments
x
|
A decision variable
|
r
|
Upper bound value
|
Further information
This procedure changes the upper bound of a variable directly in the Optimizer, that is, the bound is modified in the problem that is currently loaded in the Optimizer but does not get recorded in the problem definition held in Mosel. If the problem has not yet been loaded into the Optimizer then the new bound value is ignored. Reloading the problem into the Optimizer after a call to
setub will reset the upper bound for the variable to the value computed by Mosel, that is, the bound value resulting from
setub is overwritten.
Related topics
Module