Previous Page: CPXgetrhsFirst PageNext Page: CPXgetrowindex

CPXgetrngval


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);

Arguments


CPXENVptr env
The pointer to the CPLEX environment as returned by one of the CPXopenCPLEX routines.

CPXLPptr lp
A pointer to a CPLEX LP problem object as returned by CPXcreateprob().

double *rngval
An 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 begin
An integer indicating the beginning of the set of rows for which RHS range coefficients are returned.

int end
An integer indicating the end of the set of rows for which RHS range coefficients are returned.

Example

status = CPXgetrngval (env, lp, rngval, 0, cur_numrows-1);
Previous Page: CPXgetrhsFirst PageNext Page: CPXgetrowindex