Description
The routine CPXboundsa() is used to access a range of upper and lower ranges for lower and/or upper bound values. The beginning and end of the range must be specified. Note that information for variable j, where begin ![]()
j ![]()
end, will be returned in position (j-begin) of the arrays lblower, lbupper, ublower and ubupper.lblower and lbupper should be non-NULL, and ublower and ubupper can be NULL. Similarly, if only upper bound ranges are desired, then both ublower and ubupper should be non-NULL, and lblower and lbupper can be NULL.Return Value
The routine returns a zero on success, and a nonzero if an error occurs. This routine will fail if no basis exists.Synopsis
int CPXboundsa (CPXENVptr env,
CPXLPptr lp,
int begin,
int end,
double *lblower,
double *lbupper,
double *ublower,
double *ubupper);
CPXENVptr envThe pointer to the CPLEX environment as returned by one of the
CPXopenCPLEX routines.
CPXLPptr lpA pointer to a CPLEX LP problem object as returned by
CPXcreateprob().
int beginAn integer indicating the beginning of the range of ranges to be returned.
int endAn integer indicating the end of the range of ranges to be returned.
double *lblowerAn array where the lower bound lower range values are to be returned. This array must be of length at least
(end - begin + 1). May be NULL.
double *lbupperAn array where the lower bound upper range values are to be returned. This array must be of length at least
(end - begin + 1). May be NULL.
double *ublowerAn array where the upper bound lower range values are to be returned. This array must be of length at least
(end - begin + 1). May be NULL.
double *ubupperAn array where the upper bound upper range values are to be returned. This array must be of length at least (
end - begin + 1). May be NULL.
status = CPXboundsa (env, lp, 0, CPXgetnumcols(env,lp)-1,
lblower, lbupper, ublower, ubupper);