(class from pyomo.repn.linear_template)
pyomo.repn.linear_template
Bases: LinearRepn
LinearRepn
Methods
__init__()
__init__
append(other)
append
Append a child result from StreamBasedExpressionVisitor.acceptChildResult()
compile(env, smap, expr_cache, args[, ...])
compile
duplicate()
duplicate
to_expression(visitor)
to_expression
walker_exitNode()
walker_exitNode
Attributes
linear_sum
constant
linear
multiplier
nonlinear
Member Documentation
Notes
This method assumes that the operator was “+”. It is implemented so that we can directly use a QuadraticRepn() as a data object in the expression walker (thereby avoiding the function call for a custom callback)