Purpose
Synopsis
int XPRBsetub(XPRBvar var, double bdu);
Arguments
var
|
BCL reference to a variable.
|
bdu
|
The variable's new upper bound.
|
Return value
0 if function executed successfully, 1 otherwise.
Example
The following code changes the upper bound of x1 to 200.
XPRBprob prob;
XPRBvar x1;
...
x1 = XPRBnewvar(prob, XPRB_UI, "abc3", 1, 100);
XPRBsetub(x1, 200.0);
Further information
This function sets the upper bound on a variable.
Related topics
If you have any comments or suggestions about these pages,
please send mail to docs@dashoptimization.com.