Nonconvex.jl
Nonconvex.jl copied to clipboard
Errors with some Ipopt Solver Settings
Given that #130 was resolved I wanted to checkout the performance of Zygote for AC-OPF (i.e. the rosetta-opf example). I ran into a couple issues you may have some ideas about,
result = Nonconvex.optimize(
model,
IpoptAlg(),
NonconvexCore.getinit(model);
options = IpoptOptions(; first_order=false, symbolic=true, sparse=true), # works
#options = IpoptOptions(; symbolic=true, sparse=true), # works
#options = IpoptOptions(; first_order=false, sparse=true), # MethodError
#options = IpoptOptions(; first_order=false, symbolic=true), # BoundsError
#options = IpoptOptions(; first_order=false), # executes but does not converge, most likely incorrect derivatives
#options = IpoptOptions(; symbolic=true), # BoundsError
#options = IpoptOptions(; sparse=true), # works
#options = IpoptOptions(), # executes but does not converge, most likely incorrect derivatives
)
The executes but does not converge are the most mysterious to me because the code runs but with unexpected results.
It was not clear to me which AD backend was being used for these different settings, is there an easy way to query this in the result data?
CC @odow
The documentation explains all these settings. I will look into these errors, thanks for the reproducer.
Could you please post a MWE to get the error? The code you linked to works for me.
ah sorry I missed that I had to replace the options
I can reproduce all the errors and non-convergence bugs you mentioned. Time to dig in...