NO FRAMES

CPXobjsa

public int CPXobjsa(CPXCENVptr env, CPXCLPptr lp, int begin, int end, double * lower, double * upper)
Definition file: cplex.h

The routine 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.

Example

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

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.

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).

Returns:

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