NO FRAMES

CPXgetqconstrinfeas

public int CPXgetqconstrinfeas(CPXCENVptr env, CPXCLPptr lp, const double * x, double * infeasout, int begin, int end)
Definition file: cplex.h

The routine CPXgetqconstrinfeas computes the infeasibility of a given solution for a range of quadratic constraints. The beginning and end of the range must be specified. For each constraint, the infeasibility value returned is 0 (zero) if the constraint is satisfied. Otherwise, the infeasibility value returned is the amount by which the righthand side of the constraint must be changed to make the queried solution valid. It is positive for a less-than-or-equal-to constraint and negative for a greater-than-or-equal-to constraint.

Example

 status = CPXgetqconstrinfeas (env, lp, NULL, infeasout, 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.

x

The solution whose infeasibility is to be computed. May be NULL in which case the resident solution is used.

infeasout

An array to receive the infeasibility value for each of the quadratic constraints. This array must be of length at least (end - begin + 1).

begin

An integer indicating the beginning of the range of quadratic constraints whose infeasibility is to be returned.

Returns:

The routine returns zero if successful and nonzero if an error occurs.