In JuMP Version 0.21 it says
deepcopy(::AbstractModel)now throws an error.
Is there a new way to do
As far as I understand
copy()is not what I want because the copied and original model are modified together (I am not sure to get the usage).
Ideally what I would like to do is define some model with optimize, constraints, objective variable etc…
Then copy all that in some model
for m in 1 to M ML = deepcopy(ML0) @constraint( f(m) ) optimize!(ML) end