NAME
Vote::Count::BottomRunOff
VERSION 2.02
Description
Bottom RunOff is an elimination method which takes the two lowest choices, the choice which would lose a runoff is eliminated.
Synopsis
my $eliminate = $Election->BottomRunOff();
# log the pairing result
$Election->logd( $eliminate->{'runoff'} );
# log elimination in the short log too.
$Election->logt( "eliminated ${\ $eliminate->{'eliminate'} }.");
# Perform the elimination
$Election->Defeat( $eliminate->{'eliminate'} );
BottomRunOff
The TieBreakMethod must either be 'precedence' or TieBreakerFallBackPrecedence must be true or BottomRunOff will die. Takes an optional named parameter of an active set.
my $result = $Election->BottomRunOff();
my $result = $Election->BottomRunOff( 'active' => $active );
my $result = $Election->BottomRunOff( 'ranking2' => $othermethod );
Orders the Choices according to Top Count and uses Precedence to resolve any equal rankings. Then conducts a runoff between the two lowest choices in the order.
The returned value is a hashref with the keys: eliminate, continuing, and runoff, runoff describes the totals for the two choices in the runoff.
The optional values are ranking2 and active. See UnTieList in Vote::Count::TieBreaker, the ranking1 passed to it is always TopCount. active is used to provide a hashref to override the current active list.
BUG TRACKER
https://github.com/brainbuz/Vote-Count/issues
AUTHOR
John Karr (BRAINBUZ) brainbuz@cpan.org
CONTRIBUTORS
Copyright 2019-2021 by John Karr (BRAINBUZ) brainbuz@cpan.org.
LICENSE
This module is released under the GNU Public License Version 3. See license file for details. For more information on this license visit http://fsf.org.
SUPPORT
This software is provided as is, per the terms of the GNU Public License. Professional support and customisation services are available from the author.