Originally posted by: SystemAdmin
Modifying the model within a callback will either cause the universe to implode spectacularly, result in an exception, or maybe have no effect until the solver is exited (I lean toward an exception being thrown). AFAIK you cannot directly modify the model on the fly. (Adding user cuts/lazy constraints via callbacks does not actually modify the model; they're handled on the side.)
Paul
Mathematicians are like Frenchmen: whenever you say something to them, they translate it into their own language, and at once it is something entirely different. (Goethe)
#CPLEXOptimizers#DecisionOptimization