Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Errors with some Ipopt Solver Settings #154

Open
ccoffrin opened this issue Sep 6, 2022 · 4 comments
Open

Errors with some Ipopt Solver Settings #154

ccoffrin opened this issue Sep 6, 2022 · 4 comments

Comments

@ccoffrin
Copy link

ccoffrin commented Sep 6, 2022

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

@mohamed82008
Copy link
Member

The documentation explains all these settings. I will look into these errors, thanks for the reproducer.

@mohamed82008
Copy link
Member

Could you please post a MWE to get the error? The code you linked to works for me.

@mohamed82008
Copy link
Member

ah sorry I missed that I had to replace the options

@mohamed82008
Copy link
Member

I can reproduce all the errors and non-convergence bugs you mentioned. Time to dig in...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants