jontingvold / pyrankvote

PyRankVote is a python library for different ranked-choice voting systems, like IRV, STV and PBV. Created in June 2019.
MIT License
53 stars 16 forks source link

Fixed STV Droop-Quota #23

Open glennlp opened 2 years ago

glennlp commented 2 years ago

After running a simulation, I noticed that the elected candidates were being elected with partial votes like 30.33. I believe this small fix to conform to the correct droop-quota as listed in Wikipedia will make more accurate results considering candidates shouldn't be able to have partial votes.

image

However, there are still issues with other candidates having decimal votes while the elected candidate does not, which is a potential issue to be opened.