Description
The routine CPXgetrngval() is used to access the RHS range coefficients for a set of constraints in a CPLEX LP problem object. The beginning and end of the set must be specified. CPXgetrngval() checks if ranged constraints are present in the problem object.Return Value
The routine returns a zero on success, and a nonzero if an error occurs.Synopsis
int CPXgetrngval (CPXENVptr env,
CPXLPptr lp,
double *rngval,
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 *rngvalAn array where RHS range coefficients are returned. This array must be of length at least (
end - begin + 1). A value of 0 for any entry means that the corresponding row is not ranged.
int beginAn integer indicating the beginning of the set of rows for which RHS range coefficients are returned.
int endAn integer indicating the end of the set of rows for which RHS range coefficients are returned.
status = CPXgetrngval (env, lp, rngval, 0, cur_numrows-1);