jump-dev / ParametricOptInterface.jl

Extension for dealing with parameters
MIT License
37 stars 7 forks source link

default_copy_to accesses private methods #149

Closed odow closed 4 months ago

odow commented 4 months ago

See https://github.com/jump-dev/ParametricOptInterface.jl/blob/4ec565acdac480a19e772deb3274636ceef2b3b7/src/MOI_wrapper.jl#L1390-L1428

x-ref https://github.com/jump-dev/MathOptInterface.jl/pull/2520

odow commented 4 months ago

This is effectively a duplicate of #146.

The default_copy_to method hacks around the fact that the NLPBlock models do not support re-ordering parameters by permuting the variable order. So if we remove NLPBlock support (#147), then this method isn't needed.