CPXXgetnumusercuts and CPXgetnumusercuts

The routine CPXXgetnumusercuts/CPXgetnumusercuts accesses the number of user cuts in a CPLEX problem object.

CPXDIM  CPXXgetnumusercuts( CPXCENVptr env, CPXCLPptr lp )

int  CPXgetnumusercuts( CPXCENVptr env, CPXCLPptr lp )

Description

The routine CPXXgetnumusercuts/CPXgetnumusercuts accesses the number of user cuts 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, CPXXgetnumusercuts/CPXgetnumusercuts returns the value 0 (zero); otherwise, it returns the number of user cuts.

Example


 cur_numusercuts = CPXgetnumusercuts (env, lp);