Hi,
I am using docplex and I want to know the difference between model.copy() and model.clone() .
I am implementing a branch and price algorithm, and at each new node visited in the search tree, I need to recreate the model without the columns I have generated for the previous node. Thus, I need an efficient way to either clean the model used in the previous node from the new columns (and some rows), or recreate the initial model at each node, or (deep) copy the initial model at each node.
would model.copy() or model.clone() do the job? if so what is the difference ? if not what do you suggest?
I will also need to add constraint to the new model, however these constraint are defined using another model. how is it possible to add these constraints to the new model?
Thanks in advance!
#DecisionOptimization