Package elections
[frames] | no frames]

Package elections

source code

The elections module contains all of the classes and functions for working with elections.

Submodules
  • elections.blt: This module contains functions for reading and writing .blt files.
  • elections.condorcet: Implement all of the functions for computing the Condorcet winner and lower bound.
  • elections.cplex_ilp: This module implements the integer-linear programming methods for computing the IRV margin exactly using the CPLEX library.
  • elections.election: This module contains the Election class which holds all of the information about an election.
  • elections.irv: Implement all the functions for computing IRV margins and bounds.
  • elections.node: This module contains the Node class which is used to compactly represent and modify ballots in an IRV election.