Usage

First steps

To use SVVAMP in a project:

import svvamp

Create a population of 10 voters with preferences over 5 candidates, using the Spheroid model (extending Impartial Culture to utilities):

pop = svvamp.PopulationSpheroid(V=10, C=5)

Demonstrate the functions of superclass Population:

pop.demo()

Create an election, using Approval voting:

election = svvamp.Approval(pop)

Demonstrate the functions of superclass Election:

election.demo()

Tutorials