NLWriterInfo
(类来自 pyomo.repn.plugins.nl_writer)
- class pyomo.repn.plugins.nl_writer.NLWriterInfo(var, con, obj, external_libs, row_labels, col_labels, eliminated_vars, scaling)[source]
基础类:
objectNLWriter.write() 的返回类型
- constraints
NL文件中按写入顺序列出的(活动)Pyomo模型约束列表
- Type:
列表[ConstraintData]
- objectives
NL文件中按顺序列出的(活动)Pyomo模型目标列表
- Type:
列表[ObjectiveData]
- row_labels
约束/目标的字符串名称列表,按照与
constraints+objectives相同的顺序写入NL文件,并生成.row文件。- Type:
列表[str]
- eliminated_vars
模型中通过预求解消除的变量列表。每个条目是一个2元组,包含(
VarData, :py:class`NumericExpression`|`float`)。列表按正确评估所需的顺序排列(即,表达式中出现的所有变量必须已发送到求解器,或在此列表中较早出现)。- Type:
列表[元组[VarData, NumericExpression]]
- scaling
namedtuple 包含 3 个列表(变量、约束、目标) 缩放因子的顺序(和大小)与上面的 variables、constraints 和 objectives 属性相同。
- Type:
ScalingFactors 或 None
方法
__init__(var, con, obj, external_libs, ...)成员文档