Originally posted by: LGFearnley
I'm looking for the most efficient way to clone an IloCplex model using the Java API.
Essentially I have a core problem which I'm solving, then deriving child problems from (which add additional constraints to the original).
I've tried two candidate approaches:
1) Load an lp file from disk using IloCplex.importModel(), then load subsequent copies from the same file using IloCplex.importModel();
2) Load an lp file from disk using IloCplex.importModel(), then clone the objective and ranges using an IloCopyManager instance as described in this Technote from the FAQs.
Loading the lp file from disk seems to be dramatically faster - loading and solving an individual IloCplex instance takes on the order of 0.1s, whereas using the IloCopyManager is taking about 7s per problem from copying to solution.
Is there a faster way to achieve what I'm after here?
#CPLEXOptimizers#DecisionOptimization