approval
Determine the election winner using approval voting. Each approved candidate accumulates the ballot's weight; the candidate with the highest total weight is selected.
Instructions
Approval voting: each candidate scores the total weight approving it.
Consumes approval ballots ({kind: "approval", approved: [...]}). An empty
approval set is valid and adds nothing. Errors if any ballot is not approval.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| seed | No | ||
| profile | Yes | ||
| tie_break | No | lexicographic |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | ||
| rule | Yes | ||
| scores | No | ||
| winner | Yes | ||
| ranking | No | ||
| winners | Yes | ||
| tie_break | No | lexicographic |