CPXgetax


Description

The routine CPXgetax() is used to access row activity levels for a range of constraints of a linear or quadratic program. The beginning and end of the range must be specified. A row activity is the inner product of a row in the constraint matrix and the structural variables in the problem.

Return Value

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

Synopsis

  int CPXgetax (CPXCENVptr env,
                CPXCLPptr lp,
                double *x,
                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 *x

An array to receive the values of the row activity levels for each of the constraints in the specified range. The array must be of length at least (end-begin+1). If successful, x[0] through x[end-begin] contain the row activities.

int begin

An integer indicating the beginning of the range of row activities to be returned.

int end

An integer indicating the end of the range of row activities to be returned.


Previous Page: CPXfreeprob Return to Top Next Page: CPXgetbaritcnt