标准表单
(类来自 pyomo.core.plugins.transform.standard_form)
- class pyomo.core.plugins.transform.standard_form.StandardForm(**kwds)[source]
-
生成模型的标准形式表示。这种形式包含系数矩阵(A)、成本向量(c)和约束向量(b),其中“标准形式”问题为
\[\begin{split}\min/\max\ & c'x \\ s.t.\ & Ax = b \\ & x >= 0\end{split}\]- Options
slack_names 默认 auxiliary_slack excess_names 默认 auxiliary_excess lb_names 默认 _lower_bound up_names 默认 _upper_bound pos_suffix 默认 _plus neg_suffix 默认 _neg
方法
__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)
使用此转换创建一个新模型