mirror of
https://github.com/tgorordo/smithy.git
synced 2026-06-05 16:22:15 -07:00
A simple Smith set solver for ranked-choice ballots.
https://pages.uoregon.edu/tgorordo/files/smithy/src/cgi/form.html
| src | ||
| test | ||
| justfile | ||
| pyproject.toml | ||
| README.md | ||
| requirements.txt | ||
| shell.nix | ||
| smithy.spec | ||
| uv.lock | ||
Smithy
A simple smith set solver for ranked-choice ballots.
The Smith set is the minimal set of candidates which can beat all others pairwise - if there is a single winner in the set they are guaranteed the standard Condorcet i.e. Majority winner (they beat all others pairwise).
TODO
- add cli options & flexibility
- relevant column selection flags
- eligible voter filter flags (row selection)
- output control flags (whether to show input ballots or the voter ids on them, whether to pretty print output, etc.)
cgiinterface on pages.uoregon.edu.- instructions/writeup and README
- polish/finalize packaging and usage (might be some refactoring of where the cli goes)