和顺 / 势衡 返回所属 Agent
SH-06.01

影响与机会成本

原能力

比较不同方案对各阶段目标、资源占用和相关方的影响。(细化版 p.8–9)

首选项目

Pyomo(BSD-3-Clause 上游标注)。 Pyomo

匹配范围

构造基线与资源约束模型,比较目标差与占用量。

源码

Pyomo · class Objective(

pyomo/core/base/objective.py · 212–225 行。 在 GitHub 查看源码 · 许可证与声明

源码片段
class Objective(ActiveIndexedComponent):
    """
    This modeling component defines an objective expression.

    Note that this is a subclass of NumericValue to allow
    objectives to be used as part of expressions.

    Constructor arguments:
        expr
            A Pyomo expression for this objective
        rule
            A function that is used to construct objective expressions
        sense
            Indicate whether minimizing (the default) or maximizing
  • # Copyright (c) 2008-2026 National Technology and Engineering Solutions of Sandia, LLC

Pyomo · class Constraint(

pyomo/core/base/constraint.py · 563–576 行。 在 GitHub 查看源码 · 许可证与声明

源码片段
class Constraint(ActiveIndexedComponent):
    """
    This modeling component defines a constraint expression using a
    rule function.

    Constructor arguments:
        expr
            A Pyomo expression for this constraint
        rule
            A function that is used to construct constraint expressions
        name
            A name for this component
        doc
            A text string describing this component
  • # Copyright (c) 2008-2026 National Technology and Engineering Solutions of Sandia, LLC

实现与验收要点

会计口径、反事实基线和非量化影响估定。