I am trying to use Ipopt, as “shipped” with Ipopt.jl, using AmplNLWriter.jl.
The way indicated in the AmplNLWriter.jl readme, myModel = Model(() -> AmplNLWriter.Optimizer(Ipopt.amplexe)), returns me a MethodError.
However AmplNLWriter.jl.Optimizer() accepts directly the solver path. Is there a way to get the path to Ipopt from Ipopt.jl and pass it to AmplNLWriter.jl.Optimizer() as a string ?
Thank you. I do actually have Ipopt with HSL locally installed and noticed that out of some hundred optimisations sometimes with Ipopt from Ipopt.jl it couldn’t find the optimal solution, while with AmplNLWriter.jl it always did, and I wondered if it was the different Ipopt/linear solver or the different autodiff method, and it ended up it is the second: by wrapping everything in Ipopt from Ipopt.jl, interfaced trough AmplNLWriter.jl I solved the problem, i.e. it always find the (local) optimal solution, thanks.