NO FRAMES

CPXboundsa

int CPXPUBLIC CPXboundsa(CPXCENVptr env, CPXCLPptr lp, int begin, int end, double * lblower, double * lbupper, double * ublower, double * ubupper)
Definition file: cplex.h
Include files: cplex.h

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

Note
If only lower bound ranges are desired, then both lblower and lbupper should be non-NULL, and ublower and ubupper can be NULL.

Example

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

Parameters:

env

A pointer to the CPLEX environment as returned by CPXopenCPLEX.

lp

A pointer to a CPLEX problem object as returned by CPXcreateprob.

begin

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

end

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

lblower

An array where the lower bound lower range values are to be returned. The length of this array must be at least (end - begin + 1). May be NULL.

lbupper

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

ublower

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

ubupper

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

Example

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

Returns:

The routine returns zero on success and nonzero if an error occurs. This routine fails if no basis exists.