Initializing help system before first use

XPRBgetrange

XPRBgetrange


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

© 2001-2019 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.