Description
The routine CPXgetub() is used to access a range of upper bounds on the variables of a CPLEX LP problem object. The beginning and end of the range must be specified.Return Value
The routine returns a zero on success, and a nonzero if an error occurs.Synopsis
int CPXgetub (CPXENVptr env,
CPXLPptr lp,
double *ub,
int begin,
int end);
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().
double *ubAn array where the specified upper bounds on the variables are to be returned. This array must be of length at least (
end - begin + 1). The upper bound of variable j will be returned in ub[j- begin].
int beginAn integer indicating the beginning of the range of upper bounds to be returned.
int endAn integer indicating the end of the range of upper bounds to be returned.
status = CPXgetub (env, lp, ub, 0, cur_numcols-1);