johnh865 / election_sim

Election simulator and election implementation for scored methods, ranked Condorcet methods, IRV, multi-winner, and more.
MIT License
11 stars 1 forks source link
condorcet election jupyter-notebooks python ranked-pairs stv voter voter-models

Election Sim

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

Features

Usage Guide

Votesim Package Contents

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.