CPXXobjsa and CPXobjsa

The routine CPXXobjsa/CPXobjsa accesses upper and lower sensitivity ranges for objective function coefficients for a specified range of variable indices.

int  CPXXobjsa( CPXCENVptr env, CPXCLPptr lp, CPXDIM begin, CPXDIM end, double * lower, double * upper )

int  CPXobjsa( CPXCENVptr env, CPXCLPptr lp, int begin, int end, double * lower, double * upper )

Description

The routine CPXXobjsa/CPXobjsa accesses upper and lower sensitivity ranges for objective function coefficients for a specified range of variable indices. The beginning and end of the range of variable indices must be specified.

Note: Information for variable j, where begin <= j <= end, is returned in position (j-begin) of the arrays lower and upper. The items lower[j-begin] and upper[j-begin] contain the lowest and highest value the objective function coefficient for variable j can assume without affecting the optimality of the solution.

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

Return

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

Example


status = CPXobjsa (env, lp, 0, CPXgetnumcols(env,lp)-1,
	    lower, upper);