compare_two
Direct head-to-head comparison of exactly two options. Returns the winner, the score margin, how many criteria each option wins, and a per-criterion breakdown of who each criterion favours. Pass option_a and option_b (names) or a 2-element options array, plus criteria and scores.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| 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 | No | 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)}. | |
| option_a | No | ||
| option_b | No |