稳健性与取舍
原能力
识别关键假设改变后哪些方案仍可行,保留互有优劣的选择和反对意见。(细化版 p.8–9)
首选项目
SALib(MIT)。 SALib
匹配范围
敏感性筛查与 Pareto 排序找出稳健或互优方案。
源码
SALib · def analyze(
src/SALib/analyze/morris.py · 17–30 行。 在 GitHub 查看源码 · 许可证与声明
源码片段
def analyze(
problem: Dict,
X: np.ndarray,
Y: np.ndarray,
num_resamples: int = 100,
conf_level: float = 0.95,
scaled: bool = False,
print_to_console: bool = False,
num_levels: int = 4,
seed=None,
keep_resamples: bool = False,
) -> Dict:
"""Perform Morris Analysis on model outputs.
SALib · def analyze(
src/SALib/analyze/sobol.py · 22–35 行。 在 GitHub 查看源码 · 许可证与声明
源码片段
def analyze(
problem,
Y,
calc_second_order=True,
num_resamples=100,
conf_level=0.95,
print_to_console=False,
parallel=False,
n_processors=None,
keep_resamples=False,
seed=None,
):
"""Perform Sobol Analysis on model outputs.
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
实现与验收要点
保留不可比、信息不足及相关方不同偏好。