Previous Page: CPXbaroptFirst PageNext Page: CPXcheckaddcols

CPXboundsa


Description

The routine CPXboundsa() is used to access a range of upper and lower ranges for lower and/or upper bound values. The beginning and end of the range must be specified. Note that information for variable j, where begin j end, will be returned in position (j-begin) of the arrays lblower, lbupper, ublower and ubupper.

Note also that if only lower bound ranges are desired, then both lblower and lbupper should be non-NULL, and ublower and ubupper can be NULL. Similarly, if only upper bound ranges are desired, then both ublower and ubupper should be non-NULL, and lblower and lbupper can be NULL.

Return Value

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

Synopsis

int CPXboundsa (CPXENVptr env,
                CPXLPptr lp,
                int begin,
                int end,
                double *lblower,
                double *lbupper,
                double *ublower,
                double *ubupper);

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 *lblower
An array where the lower bound lower range values are to be returned. This array must be of length at least (end - begin + 1). May be NULL.

double *lbupper
An array where the lower bound upper range values are to be returned. This array must be of length at least (end - begin + 1). May be NULL.

double *ublower
An array where the upper bound lower range values are to be returned. This array must be of length at least (end - begin + 1). May be NULL.

double *ubupper
An array where the upper bound upper range values are to be returned. This array must be of length at least (end - begin + 1). May be NULL.

Example

status = CPXboundsa (env, lp, 0, CPXgetnumcols(env,lp)-1,
                     lblower, lbupper, ublower, ubupper);

Previous Page: CPXbaroptFirst PageNext Page: CPXcheckaddcols