Skip to content

Commit

Permalink
Do more multiwinner.cc cleanup and add "Random ballots" multiwinnner …
Browse files Browse the repository at this point in the history
…method.

Also cap the number of rounds to 100 for debugging purposes.

The "random ballots" method keeps picking first preferences from random
ballots until enough winners have been elected. This is different from
the "random dictator" method which lets a single winner decide the whole
council.
  • Loading branch information
kristomu committed Aug 30, 2024
1 parent 4a9665d commit 73df7c9
Show file tree
Hide file tree
Showing 8 changed files with 286 additions and 270 deletions.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,7 @@ add_library(qe_multiwinner_methods
src/multiwinner/quotas.cc
src/multiwinner/qbuck.cc
# src/multiwinner/qpq.cc
src/multiwinner/randballots.cc
src/multiwinner/shuntsstv.cc
src/multiwinner/stv.cc
src/stats/multiwinner/mwstats.cc)
Expand Down
Loading

0 comments on commit 73df7c9

Please sign in to comment.