CPXXgetnumcuts and CPXgetnumcuts

The routine CPXXgetnumcuts/CPXgetnumcuts accesses the number of cuts of the specified type in use at the end of the previous optimization.

int CPXXgetnumcuts( CPXCENVptrenv, CPXCLPptrlp, intcuttype, CPXDIM *num_p )

int CPXgetnumcuts( CPXCENVptrenv, CPXCLPptrlp, intcuttype, int *num_p )

Description

The routine CPXXgetnumcuts/CPXgetnumcuts accesses the number of cuts of the specified type in use at the end of the previous optimization.

Possible values for the cuttype argument:

cuttype description
CPX_CUT_COVER cover cuts
CPX_CUT_GUBCOVER GUB cover cuts
CPX_CUT_FLOWCOVER flow cover cuts
CPX_CUT_CLIQUE clique cuts
CPX_CUT_FRAC Gomory fractional cuts
CPX_CUT_MIR mixed integer rounding cuts
CPX_CUT_FLOWPATH flow path cuts
CPX_CUT_DISJ disjunctive cuts
CPX_CUT_IMPLBD implied bound cuts
CPX_CUT_ZEROHALF zero-half cuts
CPX_CUT_MCF multi-commodity flow cuts
CPX_CUT_LANDP lift and project cuts
CPX_CUT_USER user cuts
CPX_CUT_TABLE lazy constraints
CPX_CUT_SOLNPOOL solution pool cuts
CPX_CUT_LOCALIMPLBD local implied bound cuts
CPX_CUT_BQP Boolean-quadratic polytope cuts
CPX_CUT_RLT reformulation-linearization technique cuts
CPX_CUT_BENDERS Benders cuts

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.
cuttype
An integer specifying the type of cut for which to return the number.
num_p
An pointer to an integer to contain the number of cuts.

Return

The routine returns 0 (zero) if successful and nonzero if an error occurs.

Example


 status = CPXgetnumcuts (env, lp, CPX_CUT_COVER, &numcovers);