Score a deal against the Pareto frontier
score_dealScore how good a deal is against your floor/target — free, no account or key needed.
Score a settled package against the exact Pareto frontier — the SNHP leaderboard metric ("dollars left on the table") for YOUR negotiation.
Args: issues: one dict per issue: {"name": str, "options": [labels], "my_utility": [per-option value to me], "their_utility": [per-option value to them]} — both sides' TRUE per-option values. my_weights: {issue_name: weight} — my true priorities (any scale). their_weights: {issue_name: weight} — their true priorities. package: the settled deal, {issue_name: option_label}. notional: deal size in dollars for the dollars-left framing.
Returns realized joint welfare, the frontier best, the naive middle-split baseline, frontier capture, logroll capture, and dollars_left_on_table.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| issues | Yes | One dict per issue: {name, options, my_utility, their_utility} — both sides' TRUE per-option values (one number per option). | |
| package | Yes | The settled deal as {issue_name: chosen_option_label}. | |
| notional | No | Deal size in dollars, used for the 'dollars left on the table' framing (default 10000). | |
| my_weights | Yes | {issue_name: weight} — your true priorities (any scale). | |
| their_weights | Yes | {issue_name: weight} — their true priorities (any scale). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | ||
| my_utility | No | ||
| naive_split | No | ||
| frontier_best | No | ||
| joint_welfare | No | ||
| their_utility | No | ||
| logroll_capture | No | ||
| frontier_capture | No | ||
| dollars_left_on_table | No |