Originally posted by: JamieKang
Hello,
Is there any way to shallow copy IloCplex object in Java?
For example, I have IloCplex model1: max (x1+x2) s.t x1+x2<=2.
Then, I want to add more constraints to it in model2: max (x1+x2) s.t (x1+x2<=2 and 2x1+x2<=5), while still keeping model1 as it is, because later on I want to build another model from that.
Or, is there any way to copy all constraints from model1 and add to model2? I do not really care about objective function at this point.
Any help would be appreciated.
Thank you,
Jamie
#CPLEXOptimizers#DecisionOptimization