Coder Social home page Coder Social logo

voting's Introduction

Voting system simulator

This is a voting system simulator intended to simulate various methods used in proportional voting systems, in particular those that use a biproportional apportionment method for allocation of adjustment seats based on national outcomes. Such systems are common, such as in Iceland, Sweden, and Norway.

Usage

Example using the 2013 elections in Iceland and d'Hondt method:

python cli.py apportion \
	--constituencies=../data/constituencies/constituencies_iceland_2013.csv \
	--votes=../data/elections/island_2013.csv \
	--divider=dhondt
	--adjustment-method=alternating-scaling --adjustment-method=relative-superiority
	--show-entropy
	--output=simple

For help, try:

python cli.py --help

Features

  • d'Hondt method
  • Sainte-Lague method
  • Nordic Sainte-Lague method
  • One dimensional greedy apportionment
  • Constituency seat allocation
  • Read constituency data files
  • Read vote data files
  • Threshold elimination (on matrices and vectors)
  • Alternating-Scaling Algorithm (AS)
  • Relative Superiority Algorithm (RS)
  • Relative Inferiority Algorithm (RI)
  • Icelandic voting law algorithm
  • Swedish voting law algorithm
  • Norwegian voting law algorithm
  • Entropy measurement
  • Comparative error estimation
  • Election fuzzing
  • Monotonicty violation detection
  • Basic click UI
  • Per ruleset click UI options
  • Compare multiple rulesets

Authors

Smári McCarthy, Þorkell Helgason and Kurt Jörnsten

Licence

Released under the terms of the Affero GNU General Public License version 3.

voting's People

Contributors

smari avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.