I am using CPLEX's 12.9 auto-Benders decomposition feature (from the CPLEX Java API). Following the documentation I let CPLEX decide the decomposition strategy as
// model is an IloCplex object and is currently modeling a MIP problem.
// The following lets Cplex decide how to decompose the problem.
model.setParam(IloCplex.Param.Benders.Strategy,IloCplex.BendersStrategy.Full);
It works, and in the output to screen I read
CPXPARAM_Benders_Strategy 3
CPXPARAM_Simplex_Tolerances_Feasibility 9.9999999999999995e-08
CPXPARAM_MIP_Tolerances_MIPGap 9.9999999999999995e-07
and
Benders cuts applied: 120
However, I cannot manage to access that number 120. I tried
model.getNcuts(IloCplex.CutType.Benders);
but it returns 0. So my question is: How do I access the number of Benders cuts? And is there a way to tell optimality and feasibility cuts apart?