Initializing help system before first use

# setub

Purpose
Set the upper bound of a variable.
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
getlb, getub, loadprob, setlb.
Module
mmxprs
Parent Topic Procedures and functions

© 2001-2026 Fair Isaac Corporation. All rights reserved. This documentation is the property of Fair Isaac Corporation (“FICO”). Receipt or possession of this documentation does not convey rights to disclose, reproduce, make derivative works, use, or allow others to use it except solely for internal evaluation purposes to determine whether to purchase a license to the software described in this documentation, or as otherwise set forth in a written software license agreement between you and FICO (or a FICO affiliate). Use of this documentation and the software described in it must conform strictly to the foregoing permitted uses, and no other use is permitted.