Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chamberlain-Courant, Approval, Range Types #56

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

andrewmhong
Copy link

Added Chamberlain-Courant, Approval, Range election type classes; updated PreferenceProfile class (in profile.py) with new RangeBallot class (in ballot.py)

Added Chamberlain-Courant, Approval, Range classes; updated ballot.py with RangeBallot class and updated PrefProfile Class to be compatible with Range Voting election type (class).
@realdavemccune
Copy link

I was looking at the Cham Cour code, and sorry if I missed it but how are partial ballots being processed? Or does this function assume complete ballots? Also, does the function handle ties? Ties are obnoxious so I would deal with them in the easiest possible way and just document the choice.

@andrewmhong
Copy link
Author

andrewmhong commented Sep 11, 2023

  1. Partial ballots: The code runs with partial ballots, but am now realizing it does not handle them correctly. It stops adding Borda weights when the ballot runs out (all ranks read), and does not distribute remaining unranked Borda weights correctly. I'll work on this. How would you like to handle those partial ballots/remaining Borda weights?
  2. Ties: The code submitted kind of handles ties. It simply chooses the first indexed committee when sorting committee total Borda scores—so pseudo-randomly.

@andrewmhong andrewmhong reopened this Sep 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants