CPXXgetxqxax and CPXgetxqxax
The routine CPXXgetxqxax/CPXgetxqxax accesses
quadratic constraint activity levels for a range of
quadratic constraints in a quadratically constrained program (QCP).
int CPXXgetxqxax( CPXCENVptr env, CPXCLPptr lp, double * xqxax, CPXDIM begin, CPXDIM end )
int CPXgetxqxax( CPXCENVptr env, CPXCLPptr lp, double * xqxax, int begin, int end )
Description
The routine CPXXgetxqxax/CPXgetxqxax accesses
quadratic constraint activity levels for a range of
quadratic constraints in a quadratically constrained program (QCP).
The beginning and end of the range must be specified.
Quadratic constraint activity is the sum of the linear and quadratic terms of the constraint evaluated with the values of the structural variables in the problem.
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. - xqxax
-
An array to receive the values of the quadratic constraint activity levels for each of the constraints in the specified range. The array must be of length at least (
end-begin+1). If successful,xqxax[0]throughxqxax[end-begin]contain the quadratic constraint activities. - begin
- An integer specifying the beginning of the range of quadratic constraint activities to be returned.
- end
- An integer specifying the end of the range of quadratic constraint activities to be returned.
Return
The routine returns 0 (zero) on success and nonzero if an error occurs.Example
status = CPXgetxqxax (env, lp, xqxax, 0, CPXgetnumqconstrs(env,lp)-1);