NO FRAMES

CPXgetnumbin

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

The routine CPXgetnumbin is used to access the number of binary variables in a CPLEX problem object.

Example

 numbin = CPXgetnumbin (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

 numbin = CPXgetnumbin (env, lp);

Returns:

If the problem object or environment does not exist, CPXgetnumbin returns zero. Otherwise, it returns the number of binary variables in the problem object.