docs.rs failed to build maximal-lottery-0.1.1
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
maximal-lottery
A Rust library for computing maximal lotteries from preference profiles.
Maximal lottery is a probabilistic voting rule: voters express pairwise preferences between candidates, the profile is turned into a margin matrix, and that matrix is treated as a symmetric zero-sum game. A maximal lottery is a maximin strategy of that game.
Ranked ballots
use RankedBallot;
use *;
let n = 3;
let c = Candidate;
let ballot = total.unwrap;
let profile = try_new.unwrap;
let margins = profile.tally_margins;
let lottery = CentroidSolver.solve.unwrap;
Pairwise ballots
use ;
use *;
let n = 3;
let c = Candidate;
let ballot = from_pairs
.unwrap;
let profile = try_new.unwrap;
let margins = profile.tally_margins;
let lottery = CentroidSolver.solve.unwrap;