CPXgetlb


Description

The routine CPXgetlb() is used to access a range of lower bounds on the variables of a CPLEX problem object. The beginning and end of the range must be specified.

Return Value

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

Synopsis

  int CPXgetlb (CPXCENVptr env,
                CPXCLPptr lp,
                double *lb,
                int begin,
                int end);

Arguments

CPXCENVptr env

The pointer to the CPLEX environment as returned by CPXopenCPLEX().

CPXCLPptr lp

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

double *lb

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

int begin

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

int end

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

Example

  status = CPXgetlb (env, lp, lb, 0, cur_numcols-1);


Previous Page: CPXgetitcnt Return to Top Next Page: CPXgetlogfile