Originally posted by: Q2W8_Emanuele_Manni
Hello,
I am using Cplex 12.3 with the Java API to solve a MIP. Once that I have created the optimization model, I need to solve it multiple times. What changes from one call of cplex.solve() to the other, is that I fix the values of some integer variables and I remove/add a constraint. My problem is that, when calling cplex.solve() with big instances, there is a setup time before the optimization starts, which is not negligible. So, calling it many times increase very much the whole computing time of my procedure. A sketch of my code is attached.
Moreover, I have also tried to implement it using Java and OPL. The code is attached as well. There is only a little improvement in terms of running times with respect to the first implementation.
Am I doing something wrong? Could it be done more efficiently?
Thanks in advance for your help.
Emanuele
#CPLEXOptimizers#DecisionOptimization