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 - x)^2 + p * (x - x^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)
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?