-
Notifications
You must be signed in to change notification settings - Fork 517
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
Pyomo AD fails with constant Expressions #2986
Comments
@dallan-keylogic - please provide this information: Information on your systemPyomo version: |
@mrmundt Added to the main issue. |
@michaelbynum , any idea when this is going to be fixed? I want to use AD for calculating excess enthalpy as part of the IDAES eNRTL models. |
Previously, I was able to work around this issue by replacing every "0" in my code with a constant zero
It would be nice to have a fix for this. |
Summary
Pyomo AD raises an error when encountering
Expressions
with a constant value.Steps to reproduce the issue
Error Message
Information on your system
Pyomo version: 6.6.2
Python version: 3.10.10 | packaged by Anaconda, Inc. | (main, Mar 21 2023, 18:39:17) [MSC v.1916 64 bit (AMD64)]
Operating system: Windows 10
How Pyomo was installed (PyPI, conda, source): From sources
Solver (if applicable): n/a
The text was updated successfully, but these errors were encountered: