NO FRAMES

CPXqconstrslackfromx

int CPXPUBLIC CPXqconstrslackfromx(CPXCENVptr env, CPXCLPptr lp, const double * x, double * qcslack)
Definition file: cplex.h
Include files: cplex.h
Note

This is an advanced routine. Advanced routines typically demand a profound understanding of the algorithms used by ILOG CPLEX. Thus they incur a higher risk of incorrect behavior in your application, behavior that can be difficult to debug. Therefore, ILOG encourages you to consider carefully whether you can accomplish the same task by means of other Callable Library routines instead.

The routine CPXqconstrslackfromx computes an array of slack values for quadratic constraints from primal solution values.

Example

 status = CPXqconstrslackfromx (env, lp, x, qcslack);

Parameters:

env

A pointer to the CPLEX environment, as returned by CPXopenCPLEX.

lp

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

x

An array that contains primal solution (x) values for the problem, as returned by routines such as CPXcrushx and CPXuncrushx. The array must be of length at least the number of columns in the LP problem object.

qcslack

An array to receive the quadratic constraint slack values computed from the x values for the problem object. The array must be of length at least the number of quadratic constraints in the LP problem object.

Returns:

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