-
Notifications
You must be signed in to change notification settings - Fork 109
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
Ipopt test doesn't pass--too many arguments to nlp.solve. #7
Comments
I have push up an old version that I think I must have used: https://github.com/rwl/pyipopt However, it seems that PyIPOPT has received a considerable amount of attention since I last looked at it: https://github.com/xuy/pyipopt I will leave this issue open until PYPOWER has been updated to use that branch. Ultimately, platform specific eggs should be available here: |
Running the latest pyipopt with Ipopt 3.11.1 and removing the 2nd argument (m) now results in a segmentation fault in Ipopt running the t_opf_ipopt.py test. It's not clear where the issue is (pypower, pyipopt, ipopt)...lots of moving parts. I will try your uploaded pyipopt to see if that changes things (obviously you got it working at one point). |
Unfortunately, I still get errors using rwl/pyipopt (in fact it segfaults when creating the problem) which would suggest some api change in Ipopt that I have versus the version that pyipopt works with. |
I just remembered that I wrote this guide for setting up external solvers: https://github.com/rwl/PYPOWER/blob/master/doc/solvers.rst It looks like I was using Ipopt 3.9.3. |
I tried this from scratch at home using the Ipopt 3.11.5 and pyipopt from the current github master and was able to run the optimization part successfully by simply just removing the (m) argument and the modifying the output arguments (zg is moved). So clearly the segfaults are something on my end. |
I don't know if any user still have this problem.. but if so, i found a solution for this problem: change the output of eval_jac_g and eval_h functions when flag=True to: return ((Js.row).astype(int), (Js.col).astype(int)) and return ((Hs.row).astype(int), (Hs.col).astype(int)), respectively. Apparentely without this the solver returns a segmentation fault. |
Hi kennyvinente, how did you solve the original problem: |
Hello @daetzm .. some changes that i performed was: the seg fault problem is because this functions are not returning the results appropriately, so i did those changes and now its fine.. here is an image with ipopt running an opf problem |
I'm trying to use the Ipopt solver but am wondering if you made local changes to your pyipopt package. Specifically, solve only takes two arguments, x0 and userdata. What version of pyipopt and Ipopt are you using?
In ipopt_solver.m:
Thank you for your great work on this port.
The text was updated successfully, but these errors were encountered: