I am solving large optimization problems with CPLEX Java API. Currently I just
IloCplex cplex = new IloCplex();
... add lots of variables and constraints ...
cplex.solve();
cplex.end();
This works great, but I repeat the process frequently where I am just changing co-efficients. Each time I repeat I create a new cplex
object and re-create all the variables.
Is there a more efficient way to do this? The IBM documentation has language like 'adding the model to the instance of the model', which sounds weird, but I thought it was hinting at being able to re-use things.
Any suggestions from more experienced users would be great. Thanks.