LinearRepn
(class from pyomo.repn.linear)
- class pyomo.repn.linear.LinearRepn[source]
Bases:
objectMethods
__init__()append(other)Append a child result from acceptChildResult
duplicate()to_expression(visitor)walker_exitNode()Attributes
multiplierconstantlinearnonlinearMember Documentation
- append(other)[source]
Append a child result from acceptChildResult
Notes
This method assumes that the operator was “+”. It is implemented so that we can directly use a LinearRepn() as a data object in the expression walker (thereby allowing us to use the default implementation of acceptChildResult [which calls data.append()] and avoid the function call for a custom callback).