-
-
Notifications
You must be signed in to change notification settings - Fork 393
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
copy conflict fails when model has parameters #2649
Comments
I don't think copying a model with parameters is going to work. ParameterJuMP would need to implement Lines 6 to 13 in 6901e8f
However, we should have some fallback so this doesn't error: copy_extension_data(data, new_model, model) = missing |
@odow FWIW I wasn't actually trying to copy the model, just playing with the conflict features to debug a model. |
Copying the conflict is just copying a subset of the model, so it goes through the same system. As a work-around, just add this to your script: JuMP.copy_extension_data(::Any, ::Any, ::Any) = missing |
It seems that models with ParameterJuMP parameters fail to copy and throw an error. Looks like a missing method error.
The text was updated successfully, but these errors were encountered: