Skip to content

Election simulator and election implementation for scored methods, ranked Condorcet methods, IRV, multi-winner, and more.

License

Notifications You must be signed in to change notification settings

johnh865/election_sim

Repository files navigation

Election Sim

Election simulator for comparing plurality with score, instant-runoff, condorcet methods, and others.

Features

  • numpy-style array operations
  • N-dimensional, spatial voter preference model
  • Single and multiwinner election methods
  • Run election method benchmarks to gauge performance

Usage Guide

  • Example scripts scan be found in /sims/ folder.
  • Python importable module found at /votesim/

Votesim Package Contents

  • 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
  • Voter models found in votesim.models
  • Voter evaluation metrics found in votesim.metrics

Votesim Benchmarks

Benchmarks combine the voter, candidate, and election model as well as assumed parameters for the models in order to assess any inputed voting system.

Installation for Windows for Dummies

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

Running some Simulations

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.

About

Election simulator and election implementation for scored methods, ranked Condorcet methods, IRV, multi-winner, and more.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published