Initializing help system before first use

setub

setub


Purpose
Set the upper bound of a variable.
Synopsis
procedure setub(x:mpvar,r:real)
Arguments
A decision variable
Upper bound value
Further information
This procedure changes the upper(lower) 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(setlb) will reset the upper (lower) bound for the variable to the value computed by Mosel, that is, the bound value resulting from setub(setlb) is overwritten.
Related topics
Module