sensitivity_analysis
Test how robust the winner is to changes in criteria weights. Sweeps each criterion's weight +/- 'variation' (default 0.2 = 20%) over 'steps' (default 10) increments, recomputes the ranking, and reports a robustness score, which criteria are most likely to flip the result, and the flip points.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| steps | No | Number of weight steps per criterion (2-100). | |
| method | No | weighted_sum | |
| scores | Yes | Score matrix. Object form: {"Option A": {"Criterion 1": 8, ...}, ...}. Array form: [{"option":"Option A","scores":{...}}]. Or inline scores on each option object. | |
| options | Yes | Named alternatives. Strings ["A","B"] or objects [{"name":"A","scores":{...}}]. | |
| criteria | Yes | Weighted criteria. Each: {name, weight (relative, >=0), direction: 'benefit' (higher better, default) | 'cost' (lower better)}. | |
| variation | No | Fractional weight sweep, 0<v<=1. 0.2 = +/-20%. |