节奏与预算
原能力
制作发布节奏和预算对照,标出审核时点及各阶段的资源压力。(细化版 p.6–7)
首选项目
OpenProject(GPL-3.0(社区代码))。 OpenProject
匹配范围
工作包排期与 CP-SAT 资源限制。
源码
OpenProject · class WorkPackages::SetAttributesService
app/services/work_packages/set_attributes_service.rb · 30–43 行。 在 GitHub 查看源码 · 许可证与声明
源码片段
class WorkPackages::SetAttributesService < BaseServices::SetAttributes
include Attachments::SetReplacements
private
def validate_and_result
result = super
# restore identifier for error messages
work_package.restore_identifier_after_failed_move unless result.success?
result
end
def set_attributes(attributes)
validate_custom_fields = attributes.delete(:validate_custom_fields)
- #-- 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
实现与验收要点
实际成本、审核工期、执行人员与变更审批。