votes
    Preparing search index...

    Class Election<C>

    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 }),
    ],
    })

    Type Parameters

    • C extends string

    Implements

    Index

    Constructors

    Methods

    Constructors

    Methods