RelaxDiscreteVars

(类来自 pyomo.core.plugins.transform.discrete_vars)

class pyomo.core.plugins.transform.discrete_vars.RelaxDiscreteVars(**kwds)[source]

基础:RelaxIntegerVars

已弃用。

此插件在Pyomo模型中放宽了整数性。

自版本5.7起已弃用:core.relax_discrete 已弃用。请使用 core.relax_integer_vars

__init__(**kwds)[源代码]

已弃用。

自版本5.7起已弃用:core.relax_discrete 已被弃用。请使用 core.relax_integer_vars

方法

__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)

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