配置取舍说明
原能力
写明各方案获得的目标改善、承担的风险和不能直接比较的原因。(细化版 p.16–17)
首选项目
Platypus(GPL-3.0)。 Platypus
匹配范围
比较标准 Pareto 目标和敏感性。
源码
Platypus · class ParetoDominance
platypus/core.py · 780–793 行。 在 GitHub 查看源码 · 许可证与声明
源码片段
class ParetoDominance(Dominance):
"""Pareto dominance with constraints.
If either solution violates constraints, then the solution with a smaller
constraint violation is preferred. If both solutions are feasible, then
Pareto dominance is used to select the preferred solution.
"""
def __init__(self):
super().__init__()
def compare(self, solution1, solution2):
problem = solution1.problem
- # Copyright 2015-2024 David Hadka
实现与验收要点
按业务规则说明不可比及选择理由。