CPXXboundsa and CPXboundsa

The routine CPXXboundsa/CPXboundsa accesses upper and lower sensitivity ranges for lower and upper variable bounds for a specified range of variable indices.

int  CPXXboundsa( CPXCENVptr env, CPXCLPptr lp, CPXDIM begin, CPXDIM end, double * lblower, double * lbupper, double * ublower, double * ubupper )

int  CPXboundsa( CPXCENVptr env, CPXCLPptr lp, int begin, int end, double * lblower, double * lbupper, double * ublower, double * ubupper )

Description

The routine CPXXboundsa/CPXboundsa accesses upper and lower sensitivity ranges for lower and upper variable bounds for a specified range of variable indices. 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.

When the routine returns, the element lblower[j-begin] and lbupper[j-begin] will contain the lowest and highest value the lower bound of variable j can assume without affecting the optimality of the solution. Likewise, ublower[j-begin] and ubupper[j-begin] will contain the lowest and highest value the upper bound of variable j can assume without affecting the optimality of the solution.

Note: If you want sensitivity ranges only for lower bound, then both lblower and lbupper should be non NULL, and ublower and ubupper can be NULL.

Arguments

env
A pointer to the CPLEX environment as returned by CPXXopenCPLEX/CPXopenCPLEX.
lp
A pointer to a CPLEX problem object as returned by CPXXcreateprob/CPXcreateprob.
begin
An integer specifying the beginning of the range of ranges to be returned.
end
An integer specifying 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.

Return

The routine returns 0 (zero) if successful and nonzero if an error occurs. This routine fails if no basis exists.

Example


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