I'm solving an integer linear programming problem with CPLEX 12.7 using a branch-and-cut framework. I'm using the CPLEX callable library in C++.
Therefore, I implemented an UserCutCallback callback. However, it takes a very long time to separate my cuts, and I'm interested in running this callback only during the processing of the root node and disables it thereafter.
Please, anyone knows how can I run a UserCutCallback only in the root node?