Originally posted by: LeandroCC
Hello,
Back in CPLEX 12.3 we have hit a bug and the suggestion was to work around it using the following piece of code before adding a cut in a callback (assuming that the cut is in an IloRange instance called 'cut'):
IloRange cut = ...;
// Explicitly normalize expression to work around bug in CPLEX 12.3.
IloExpr e = cut.getExpr();
e.normalize();
cut.setExpr(e);
e.end();
add(cut);
This was needed in the first place because our cuts do not guarantee that each variable appears only once.
It worked fine until CPLEX 12.7.1 and we never changed it. Compiling with 12.8 and running it cause the program to stall when calling e.normalize().
Any words of advice?
Thanks!
#CPLEXOptimizers#DecisionOptimization