Originally posted by: SystemAdmin
In a callback you can definitely not create new variables.
If you add the cuts before you invoke solve() then it may help to explicitly IloModel::add() the variables before you start the solve. Or include the variables in some dummy constraints like
model.add(x.getLB() <= x);
#CPLEXOptimizers#DecisionOptimization