NO FRAMES

CPXgetnumint

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

The routine CPXgetnumint is used to access the number of general integer variables in a CPLEX problem object.

Example

 numint = CPXgetnumint (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.

Example

 numint = CPXgetnumint (env, lp);
 

Returns:

If the problem object or environment does not exist, CPXgetnumint returns zero. Otherwise, it returns the number of general integer variables in the problem object.