Description
The routine CPXgetrhs() is used to access the right-hand side coefficients for a range of constraints in 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 CPXgetrhs (CPXENVptr env,
CPXLPptr lp,
double *rhs,
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 *rhsAn array where the specified right-hand side coefficients are to be returned. This array must be of length at least (
end - begin + 1). The right-hand side of constraint i will be returned in rhs[i - begin].
int beginAn integer indicating the beginning of the range of right-hand side terms to be returned.
int endAn integer indicating the end of the range of right-hand side terms to be returned.
status = CPXgetrhs (env, lp, rhs, 0, cur_numrows-1);