- VERSION 1.213
- Floor Rules
- The Floor Methods
In real elections it is common to have choices with very little support, with write-ins there can be a large number of these choices, with iterative dropping like IRV it can take many rounds to work through them. A Floor Rule sets a criteria to remove the weakly supported choices early in a single operation.
my $Election = Vote::Count->new( BallotSet => $someballotset ); my $ChoicesAfterFloor = $Election->ApprovalFloor(); $Election->SetActive( $ChoicesAfterFloor ); # To apply the floor $Election->ApplyFloor( 'TopCountFloor', @options ); # One Step
The default rounding is up. If a calculated cutoff is 11.2, the cutoff will become greater than or equal to 12. Set FloorRounding to 'down' to change this to round down for 11.9 to become 11. Set FloorRounding to 'round' to change this to round .5 or greater up. If the comparison needs to be Greater than, a FloorRounding of 'nextint' will use the next higher integer.
# When creating the Election. my $Election = Vote::Count->new( FloorRounding => 'round', ... ); # Before applying the floor. $Election->FloorRounding( 'down');
All Methods in this Module apply a floor rule, log the eliminations and return the set of remaining choices as a HashRef. Use the ApplyFloor Method to immediately apply the results.
Takes as an argument the Method Name as a string of the rule to apply ( ApprovalFloor, TopCountFloor, TCA), followed by any optional arguments for the rule. Sets the Active Set as defined by that rule and returns the new Active Set as a hashref.
# Apply a TopCount Floor of 10%. my $newactive = $Election->ApplyFloor( 'TopCountFloor', 10);
Requires a percent of votes cast in Approval or TopCount. The default is 5% for Approval and 2% for TopCount.
# TopCountFloor with 3% threshold. my $Floored = $Election->TopCountFloor( 3 );
Both of these methods take an optional parameter which is the percentage for the floor. If the parameter is 1 or greater the parameter will be interpreted as a percentage, if it is less than 1 it will be interpreted as a decimal fraction, .1 and 10 will both result in a 10% floor.
For Range Ballots using ApprovalFloor there is an additional optional value for cutoff that sets the score below which choices are not considered approved of.
# Applies 5% floor with cutoff 5 (appropriate for Range 0-10) my $active = $Range->ApprovalFloor( 5, 5 );
Aggressive but (effectively) safe for Condorcet Methods. It requires the Approval for a choice be at least half of the leading Top Count Vote.
This rule takes an optional argument to change the floor from .5.
# uses default of 1/2 my $active = $Election->TCA(); # requires approval equal leader my $active = $Election->TCA( 1 );
If there is a Loop or Condorcet Winner, either it will be/include the Top Count Leader or it must be a choice which defeats the Top Count leader. To defeat the Top Count Leader a Choice's Approval must be greater than the Lead Top Count. To be able to defeat a choice it is necessary to have more than half of the approval of that choice. Thus to be able to defeat a choice which can defeat the Top Count Leader it will be necessary to have more than half of the Approval of a choice with an Approval greater than the lead Top Count.
There is a small possibility for a situation with a deeply nested knotted result that this rule could eliminate a member of the Dominant Set. For the common simple dropping rules (Approval, Top Count, Greatest Loss, Borda) this choice would never win.
For IRV any choice with an Approval that is not greater than the current TopCount of any other choice will always be eliminated prior to that choice. Unfortunately, with IRV any change to dropping order can alter the result. If it is used in IRV the Election Rules must specify it. Also because it is a high Approval based Floor, it can be construed as adding a small risk of Later Harm violation. If the reason for choosing IRV was Later Harm, then the only safe floor is a TopCount floor.
John Karr (BRAINBUZ) email@example.com
Copyright 2019-2021 by John Karr (BRAINBUZ) firstname.lastname@example.org.
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.
This software is provided as is, per the terms of the GNU Public License. Professional support and customisation services are available from the author.