Originally posted by: SystemAdmin
[oussedik said:]
Hi,
To add cuts you need to use a user cut callback (IloCplex.UserCutCallback), you can look at the example AdMIPex5 that is provided in Java, C++, .Net with CPLEX.
In general, you can customize B&C using callbacks by creating your own class that extends the callback you want to use and write your own logic in it, then you use cplex.use(yourclass) to declare it to CPLEX.
Notice also that callbacks other than informational callbacks (introduced in CPLEX 11) are not compatible with CPLEX dynamic search (introduced in CPLEX 11), so when other callbacks than Informational callbacks are used, CPLEX uses classical B&C and not dynamic search for the resolution.
Sofiane
#CPLEXOptimizers#DecisionOptimization