NO FRAMES

CPXgetub

int CPXPUBLIC CPXgetub(CPXCENVptr env, CPXCLPptr lp, double * ub, int begin, int end)
Definition file: cplex.h
Include files: cplex.h

The routine CPXgetub is used to access a range of upper bounds on the variables of a CPLEX problem object. The beginning and end of the range must be specified.

Example

 status = CPXgetub (env, lp, ub, 0, cur_numcols-1);
 

Parameters:

env

A pointer to the CPLEX environment as returned by CPXopenCPLEX.

lp

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

ub

An array where the specified upper bounds on the variables are to be returned. This array must be of length at least (end - begin+1). The upper bound of variable j is returned in ub[j-begin].

begin

An integer indicating the beginning of the range of upper bounds to be returned.

end

An integer indicating the end of the range of upper bounds to be returned.

Returns:

The routine returns zero on success and nonzero if an error occurs.