CPXXgetnodecnt and CPXgetnodecnt

The routine CPXXgetnodecnt/CPXgetnodecnt accesses the number of nodes used to solve a mixed integer problem.

CPXCNT  CPXXgetnodecnt( CPXCENVptr env, CPXCLPptr lp )

int  CPXgetnodecnt( CPXCENVptr env, CPXCLPptr lp )

Description

The routine CPXXgetnodecnt/CPXgetnodecnt accesses the number of nodes used to solve a mixed integer problem.

Arguments

env
A pointer to the CPLEX environment as returned by CPXXopenCPLEX/CPXopenCPLEX.
lp
A pointer to a CPLEX problem object as returned by CPXXcreateprob/CPXcreateprob.

Return

This routine returns the number of nodes that CPLEX processed during the search for a solution to a mixed integer programming problem (MIP). If that information is not available (for example, because the model is not a MIP, or no environment exists, or no optimizer ran, or other anomalies), this routine returns 0 (zero).

Example


 nodecount = CPXgetnodecnt (env, lp);