目标与硬约束
原能力
把长期目标、阶段要求、资源上限和不能越过的边界列入同一决策底稿。(细化版 p.8–9)
首选项目
Pyomo(BSD-3-Clause 上游标注)。 Pyomo
匹配范围
用约束表达式与规则求值记录可计算上限。
源码
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
实现与验收要点
审批目标与权重、确定资源权源、保留非量化约束。