TightenConstraintFromVars

(类来自 pyomo.contrib.preprocessing.plugins.constraint_tightener)

class pyomo.contrib.preprocessing.plugins.constraint_tightener.TightenConstraintFromVars[source]

基础类:IsomorphicTransformation

已弃用。

根据变量边界收紧约束的上下界。

遍历每个变量,并使用从变量边界推断出的值来收紧约束边界。

目前,这仅适用于线性约束。

自版本5.7起已弃用:约束收紧转换的使用已被弃用。其功能可以通过pyomo.contrib.fbbt.compute_bounds_on_expr(constraint.body)部分复制。

__init__()[source]

已弃用。

自版本5.7起已弃用:约束收紧转换的使用已被弃用。其功能可以通过pyomo.contrib.fbbt.compute_bounds_on_expr(constraint.body)部分复制。

方法

__init__()

已弃用。

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)

使用此转换创建一个新模型