NO FRAMES

CPXgetnumquad

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

The routine CPXgetnumquad returns the number of variables that have quadratic objective coefficients in a CPLEX problem object.

Example

 numquad = CPXgetnumquad (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 successful, the routine returns the number of variables having quadratic coefficients. If an error occurs, 0 is returned.