LinearTemplateRepn

(class from pyomo.repn.linear_template)

class pyomo.repn.linear_template.LinearTemplateRepn[source]

Bases: LinearRepn

__init__()[source]

Methods

__init__()

append(other)

Append a child result from StreamBasedExpressionVisitor.acceptChildResult()

compile(env, smap, expr_cache, args[, ...])

duplicate()

to_expression(visitor)

walker_exitNode()

Attributes

linear_sum

constant

linear

multiplier

nonlinear

Member Documentation

append(other)[source]

Append a child result from StreamBasedExpressionVisitor.acceptChildResult()

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)