二次表示

(类来自 pyomo.repn.quadratic)

class pyomo.repn.quadratic.QuadraticRepn[源代码]

基础类:object

__init__()[source]

方法

__init__()

append(other)

从acceptChildResult追加一个子结果

duplicate()

to_expression(visitor)

walker_exitNode()

属性

multiplier

constant

linear

quadratic

nonlinear

成员文档

append(other)[source]

从acceptChildResult追加一个子结果

注释

该方法假设操作符为“+”。它的实现使得我们可以直接在表达式遍历器中使用QuadraticRepn()作为数据对象(从而避免为自定义回调进行函数调用)