CPXXgetnumlazyconstraints and CPXgetnumlazyconstraints
The routine CPXXgetnumlazyconstraints/CPXgetnumlazyconstraints
accesses the number of lazy constraints in a CPLEX problem object.
CPXDIM CPXXgetnumlazyconstraints( CPXCENVptr env, CPXCLPptr lp )
int CPXgetnumlazyconstraints( CPXCENVptr env, CPXCLPptr lp )
Description
The routine CPXXgetnumlazyconstraints/CPXgetnumlazyconstraints
accesses the number of lazy constraints in a CPLEX problem object.
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
If the problem object or environment does not exist, CPXXgetnumlazyconstraints/CPXgetnumlazyconstraints returns the value 0 (zero); otherwise, it returns the number of lazy constraints.
Example
cur_numlazyconstrs = CPXgetnumlazyconstraints (env, lp);