NO FRAMES

CPXgetmipqconstrslack

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

The routine CPXgetmipqconstrslack is used to access the slack values for a range of the quadratic constraints of an MIQCP. The beginning and end of the range must be specified.

Example

 status = CPXgetmipqconstrslack (env, lp, qcslack, 0,
                                 CPXgetnumqconstrs(env,lp)-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.

qcslack

An array to contain the values of the quadratic constraint qcslack variables for the problem. This array must be of length at least (end-begin+1). If successful, qcslack[0] through qcslack[end-begin] contain the quadratic constraint slack variables begin through end.

begin

An integer indicating the beginning of the range of quadratic constraint slack values to be returned.

end

An integer indicating the end of the range of quadratic constraint slack values to be returned.

Returns:

The routine returns zero on success and nonzero if an error occurs. If no integer solution has been found, the value CPXERR_NO_INT_SOLUTION is returned.