Hello!

I’m trying to use GalacticOptim.jl with AmplNLWriter.jl optimizer but it’s not working.

using GalacticOptim, AmplNLWriter, Ipopt_jll

rosenbrock(x,p) = (p[1] - x[1])^2 + p[2] * (x[2] - x[1]^2)^2

x0 = zeros(2)

p = [1.0,100.0]

prob = OptimizationProblem(rosenbrock,x0,p)

optimizer = GalacticOptim.MOI.OptimizerWithAttributes(AmplNLWriter.Optimizer(Ipopt_jll.amplexe))

sol = solve(prob, optimizer)

println(sol)

Here I use Ipopt_jll just for example, but it’s not working even with it. Could you please help me to find an error?

Thank you