责任与资源分配
原能力
给阶段任务标注责任、可调用资源和待确认支持,暴露跨方依赖。(细化版 p.8–9)
首选项目
OpenProject(GPL-3.0(社区代码))。 OpenProject
匹配范围
工作包分配与资源可行性排程。
源码
OpenProject · class WorkPackage
app/models/work_package.rb · 30–43 行。 在 GitHub 查看源码 · 许可证与声明
源码片段
class WorkPackage < ApplicationRecord
include WorkPackage::SemanticIdentifier
include WorkPackage::Validations
include WorkPackage::SchedulingRules
include WorkPackage::StatusTransitions
include WorkPackage::AskBeforeDestruction
include WorkPackage::TimeEntriesCleaner
include WorkPackage::Ancestors
include WorkPackage::Automatable
include WorkPackage::Hooks
include WorkPackage::Origin
# Must stay above WorkPackage::Journalized: its after_save persists the
# version rows that the journal snapshot then reads.
include WorkPackage::Versions
- #-- copyright
- # Copyright (C) the OpenProject GmbH
- # OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:
- # Copyright (C) 2006-2013 Jean-Philippe Lang
- # Copyright (C) 2010-2013 the ChiliProject Team
- # See COPYRIGHT and LICENSE files for more details.
OR-Tools · def add_cumulative(
ortools/sat/python/cp_model.py · 1476–1489 行。 在 GitHub 查看源码 · 许可证与声明
源码片段
def add_cumulative(
self,
intervals: Iterable[IntervalVar],
demands: Iterable[LinearExprT],
capacity: LinearExprT,
) -> Constraint:
"""Adds Cumulative(intervals, demands, capacity).
This constraint enforces that:
for all t:
sum(demands[i]
if (start(intervals[i]) <= t < end(intervals[i])) and
(intervals[i] is present)) <= capacity
- # Copyright 2010-2025 Google LLC
实现与验收要点
责任确认、授权可用性和不可并用的承诺。