Chains pre-built rankers: the first provides the primary ranking, each subsequent one breaks remaining ties.
new Election({ rankers: [ new InstantRunoff({ ballots, candidates, tieBreakers: [tb(Copeland)] }), new Schulze(matrixFromBallots(ballots, candidates)), new RandomCandidates({ candidates, rng: myRng }), ],}) Copy
new Election({ rankers: [ new InstantRunoff({ ballots, candidates, tieBreakers: [tb(Copeland)] }), new Schulze(matrixFromBallots(ballots, candidates)), new RandomCandidates({ candidates, rng: myRng }), ],})
Chains pre-built rankers: the first provides the primary ranking, each subsequent one breaks remaining ties.
Example