Hi everyone,

Is there a way to register a user-defined function, generated from the Interpolations.jl package, into a JuMP model? Whenever I do, I get a method error. Here’s a MWE:

```
using JuMP, MadNLP
using Interpolations
x = LinRange(0, 1, 100); #Random input for interpolation
y = rand(100); #Random output for interpolation
func = LinearInterpolation(x, y, extrapolation_bc = Line()); #Function I want to register
model = Model(MadNLP.Optimizer; add_bridges = false)
JuMP.register(model, :func, 1, func, autodiff = true)
ERROR: MethodError: no method matching register(::Model, ::Symbol, ::Int64, ::Interpolations.Extrapolation{…}; autodiff::Bool)
```

Is there a workaround/alternative way to bypass this MethodError?

Cheers!