-
Notifications
You must be signed in to change notification settings - Fork 525
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
Quadratic term not identified by generate_standard_repn #1287
Comments
@michaelbynum good catch. We should also consider adding an explicit QuadraticExpression object like we have for LinearExpression. |
@michaelbynum I also just came across this issue. I noticed that there is a test which asks for this behaviour. Is this by design for some reason? pyomo/pyomo/repn/tests/test_standard.py Lines 3121 to 3157 in 7920516
|
@johwiebe The test you mentioned does not actually expect this behavior. The key is the |
@michaelbynum I think that's just the first part of the test. On line 3141 the same expression is tested with pyomo/pyomo/repn/tests/test_standard.py Lines 3141 to 3157 in 7920516
The expected outcome with and without quadratic=False seems to be the same.
|
@johwiebe Oh, I apologize. I did not scroll far enough. Good catch. I don't think this behavior is by design. |
The text was updated successfully, but these errors were encountered: