NO FRAMES

CPXgetnumqconstrs

int CPXPUBLIC CPXgetnumqconstrs(CPXCENVptr env, CPXCLPptr lp)
Definition file: cplex.h
Include files: cplex.h

The routine CPXgetnumqconstrs is used to access the number of quadratic constraints in a CPLEX problem object.

Example

 cur_numqconstrs = CPXgetnumqconstrs (env, lp);
 

Parameters:

env

A pointer to the CPLEX environment as returned by CPXopenCPLEX.

lp

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

Returns:

If the problem object or environment does not exist, CPXgetnumqconstrs returns the value 0 (zero); otherwise, it returns the number of quadratic constraints.