零和传播器
(类来自 pyomo.contrib.preprocessing.plugins.zero_sum_propagator)
- class pyomo.contrib.preprocessing.plugins.zero_sum_propagator.ZeroSumPropagator(**kwds)[源代码]
-
传播仅正(或负)变量之和的固定到零。
如果 \(z\) 被固定为零,并且 \(z = x_1 + x_2 + x_3\) 且 \(x_1\), \(x_2\), \(x_3\) 都是非负或都是 非正,那么 \(x_1\), \(x_2\), 和 \(x_3\) 将被固定 为零。
- __init__(**kwds)
方法
__init__(**kwds)apply(model, **kwds)已弃用。
apply_to(model, **kwds)将转换应用于给定的模型。
create_using(model, **kwds)使用此转换创建一个新模型
成员文档
- apply(model, **kwds)
已弃用。
自版本4.3.11323起已弃用:Transformation.apply() 已被弃用。请使用 Transformation.apply_to() 进行原地转换,或使用 Transformation.create_using() 创建新的独立转换模型实例。
- apply_to(model, **kwds)
将转换应用于给定的模型。
- create_using(model, **kwds)
使用此转换创建一个新模型