Clarify Output of generate_standard_repn(compute_values=False)
for Expressions with Mutable Params
#3128
Labels
generate_standard_repn(compute_values=False)
for Expressions with Mutable Params
#3128
Summary
Consider the following setup:
As the snippet shows,
generate_standard_repn
returns a representation with a nonempty list of nonlinearVar
s. This may lead one to believe that the nonlinearities ofm.con.body
are beyond quadratic in nature. The accuracy ofcontrib.pyros.util.coefficient_matching
, which utilizesgenerate_standard_repn
to analyze constraint expressions, may be affected.I originally expected
generate_standard_repn
would returnAt the very least, it would be nice to add a docstring to the function
generate_standard_repn()
to clarify the meanings of the function's parameters.Information on your system
Pyomo version: 6.7.1dev0 @ 1e259f6c1
Python version: 3.9.17
Operating system: Ubuntu 20.04
How Pyomo was installed (PyPI, conda, source): source
Solver (if applicable): N/A
The text was updated successfully, but these errors were encountered: