Originally posted by: SystemAdmin
[chicoscience said:]
Oh well, i just tried to clear all cuts (just for test) and no cuts have been removed, i probably didn't use it well.
In my CutCallback function, i have separation algorithms which find violated cuts and add them to the problem. My problem has an exponential number of constraints, so i do not start it with them all. I add cuts, via cutCallback, as i find them violated.
I passed the IloCplex object as a parameter to my CutCallback function. Inside that function, just for test, i called cplex.clearCuts(). It does not make any difference to the problem. I believe i must use the clearCuts function only after calling cplex.solve.
Then, how can i remove the cuts i've added in my callback function? Especifically, how can i remove the cuts i added which are no longer violated? Can i remove them inside my cutcallback?
Thanks for any help (deadline is coming :-) ),
Chicoscience
#CPLEXOptimizers#DecisionOptimization