Previous Page: CPXreallocFirst PageNext Page: CPXsetdblparam

CPXrhssa


Description

The routine CPXrhssa() is used to access a range of upper and lower ranges for right-hand side values. The beginning and end of the range must be specified. Note that information for constraint j, where begin j end, will be returned in position(j-begin) of the arrays lower and upper.

Return Value

The routine returns a zero on success, and a nonzero if an error occurs. This routine will fail if no optimal basis exists.

Synopsis

int CPXrhssa (CPXENVptr env,
              CPXLPptr lp,
              int begin,
              int end,
              double *lower,
              double *upper);

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().

int begin
An integer indicating the beginning of the range of ranges to be returned.

int end
An integer indicating the end of the range of ranges to be returned.

double *lower
An array where the right-hand side lower range values are to be returned. This array must be of length at least (end - begin + 1).

double *upper
An array where the right-hand side upper range values are to be returned. This array must be of length at least (end - begin + 1).

Example

status = CPXrhssa (env, lp, 0, CPXgetnumrows(env,lp)-1,
                   lower, upper);
Previous Page: CPXreallocFirst PageNext Page: CPXsetdblparam