Election simulator for comparing plurality with score, instant-runoff, condorcet methods, and others.
- numpy-style array operations
- N-dimensional, spatial voter preference model
- Single and multiwinner election methods
- Run election method benchmarks to gauge performance
- Example scripts scan be found in /sims/ folder.
- Python importable module found at /votesim/
- Various voting systems implemented in votesim.votesystems
- Single Winner
- Scored methods
- Condorcet Smith minimax
- Condorcet Ranked Pairs
- Multi-winner methods
- Reweighted range
- Sequential Monroe
- Single Transferable Vote
- Single Winner
- Voter models found in votesim.models
- Voter evaluation metrics found in votesim.metrics
Benchmarks combine the voter, candidate, and election model as well as assumed parameters for the models in order to assess any inputed voting system.
This installation guide is written for non-developers and hobbyists.
The first step is to download this package and extract it somewhere on your computer.
Then you probably need to install the Python Anaconda distribution found in https://www.anaconda.com . Download and install.
Next open up "Anaconda Prompt". Navigate to where this package is located and run this command:
install.bat
To make sure everything went right, you can run the test suite:
python runtests.py
Example simulations can be found in the /sims/ folder. In each folder,
you can run a run.py
script to perform the assessment.
Each simulation also has corresponding post-processing scripts which can be found in each of the subdirectories.