-
Notifications
You must be signed in to change notification settings - Fork 52
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
Problems with ipopt as solver #254
Comments
Egret is tested with Ipopt, not cyipopt, so we haven't seen this issue. I see two potential resolutions:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi there,
currently I am trying to get egret running with ipopt and have some problems due to some packages version incompatibilities I guess. First of all, I tried to use ipopt, but when trying to import it I get following message:
import ipopt
..\anaconda3\envs\phd\lib\site-packages\ipopt_init_.py:13: FutureWarning: The module has been renamed to 'cyipopt' from 'ipopt'. Please import using 'import cyipopt' and remove all uses of 'import ipopt' in your code as this will be deprecated in a future release.
warnings.warn(msg, FutureWarning)
Therefore, I don't use ipopt, but cyipopt instead. Thus, when I call acopf.solve_acopf I set the solver equals to "cyipopt". When I try to run my code then, I get the following message:
AttributeError: 'PyomoCyIpoptSolver' object has no attribute 'name'
The error is raised in solver_interface.py. I debugged into it and checked the solver. The solver doesn't seem to have a name. Calling 'solver.__ dict __' in the debug mode I get:
'solver.__ dict __'
{'config': <pyomo.common.config.ConfigDict object at 0x00000184AA5235E0>}
Do you have any clue what might be the problem here? Is egret sill supporting ipopt?
Here are my package versions:
I am using the Egret main branch.
Thanks in advance. Looking forward hearing from you,
Kind regards,
Simon
The text was updated successfully, but these errors were encountered: