I was trying to use Ipopt from JuMP and got the following error
julia> using JuMP, Ipopt, Gurobi
julia> m = Model(with_optimizer(Ipopt.Optimizer))
ERROR: MethodError: no method matching supports_default_copy_to(::Ipopt.Optimizer, ::Bool)
Closest candidates are:
supports_default_copy_to(::MathOptInterface.Utilities.AbstractModel, ::Bool) at /Users/myHome/.julia/packages/MathOptInterface/C3lip/src/Utilities/model.jl:394
supports_default_copy_to(::MathOptInterface.Utilities.MockOptimizer, ::Bool) at /Users/myHome/.julia/packages/MathOptInterface/C3lip/src/Utilities/mockoptimizer.jl:383
supports_default_copy_to(::MathOptInterface.Utilities.CachingOptimizer, ::Bool) at /Users/myHome/.julia/packages/MathOptInterface/C3lip/src/Utilities/cachingoptimizer.jl:146
...
Stacktrace:
[1] #set_optimizer#78(::Bool, ::Function, ::Model, ::OptimizerFactory) at /Users/myHome/.julia/packages/JuMP/ibcEh/src/optimizer_interface.jl:43
[2] #Model#7 at ./none:0 [inlined]
[3] Model(::OptimizerFactory) at /Users/myHome/.julia/packages/JuMP/ibcEh/src/JuMP.jl:220
[4] top-level scope at none:0
I am using JuMP 0.19.2. My IPOPT passes local tests. Thanks for any comment.