Allow changing default cache for instantiate#1381
Conversation
odow
left a comment
There was a problem hiding this comment.
This is really only useful for the cache inside a bridge, correct?
But this seems like you want JuMP to go with Option 2 as discussed here: jump-dev/Clp.jl#114 (comment).
This has some pretty big implications that I don't fully understand. Like it's now not possible to modify a cache after copy_to has been called.
Yes, it is breaking. However, this cache is mostly there because the bridges need the underlying model to support incremental loading of the model, not to support modification if the solver don't support it. If the user want to be sure to be able to do modification |
|
Before merging, I'd like to see this implemented by a solver. |
5202dfe to
4af302c
Compare
The main use case for this is that once a solver defines a fast
copy_tomethod with aMatrixOfConstraintmodel, then it can use it as cache directly to avoid having to store an extra cache. Asinstantiateis used by JuMP, this will be what's used by default in JuMP.