Purpose
Get the
range values for a range constraint.
Synopsis
int XPRBgetrange(XPRBctr ctr, double *bdl, double *bdu);
Arguments
ctr
|
Reference to a range constraint.
|
bdl
|
Lower bound on the range constraint. May be NULL if not required.
|
bdu
|
Upper bound on the range constraint. May be NULL if not required.
|
Return value
0 if function executed successfully, 1 otherwise.
Example
XPRBprob prob;
XPRBctr ctr2;
XPRBarrvar ty1;
double bdl, bdu;
...
ty1 = XPRBnewarrvar(prob, 5, XPRB_PL, "arry1", 0, 500);
ctr2 = XPRBnewsum(prob, "r2", ty1, XPRB_E, 9);
XPRBgetrange(ctr2, &bdl, &bdu);
This obtains the range values for ctr2.
Further information
This function returns the range values of the given constraint. If bdl or bdu is set to NULL, no value is returned into the corresponding argument.
Related topics
If you have any comments or suggestions about these pages,
please send mail to docs@dashoptimization.com.