Originally posted by: Farouk HAMMAMI
Hello,
I would just ask how to add new decision variables to a model at each callback?
Suppose, i am solving a model using CPLEX and Java. At each callback, i want to create three new boolean decision variables, to the main model, namely u_{callback_counter*3}, u_{callbackcounter*3+1} and u_{callbackcounter*3+2}.
Example, in the first callback (0), i create u_0, u_1 and u_2.
At the second callback (1) i create u_3, u_4 and u_5...
and so on.
Any example?
Thanks.
#CPLEXOptimizers#DecisionOptimization