From d94549dc42d067e3649dcd73999f932c61a9b54d Mon Sep 17 00:00:00 2001 From: RunasSudo Date: Sat, 19 Mar 2022 01:47:40 +1100 Subject: [PATCH] Initial implementation of NSW Local Government STV --- docs/options.md | 1 + html/index.html | 4 +- html/index.js | 437 +------------------------------- html/presets.js | 473 +++++++++++++++++++++++++++++++++++ src/stv/gregory/transfers.rs | 52 ++-- 5 files changed, 514 insertions(+), 453 deletions(-) create mode 100644 html/presets.js diff --git a/docs/options.md b/docs/options.md index 7767ea0..b471b7e 100644 --- a/docs/options.md +++ b/docs/options.md @@ -13,6 +13,7 @@ The preset dropdown allows you to choose from a hardcoded list of preloaded STV | • Meek STV (2006) | Operates according to Hill's 2006 revisions ([*Voting Matters* 2006;(22):7–10](http://www.votingmatters.org.uk/ISSUE22/I22P2.pdf)). This is the algorithm referred to in OpenSTV/OpaVote as ‘Meek STV’, and forms the basis of New Zealand's Meek STV rules. | [E1] | ✓ | | • Meek STV (New Zealand) | Operates according to Schedule 1A of the [*Local Electoral Regulations 2001*](https://www.legislation.govt.nz/regulation/public/2001/0145/latest/DLM57125.html). | [E1] | ✓ | | Australian Senate STV | Rules from the [*Commonwealth Electoral Act 1918*](https://www.legislation.gov.au/Details/C2020C00400/Html/Text#_Toc59107700), using the unweighted inclusive Gregory method. | [E2] [E3] [E4] | ✓ | +| NSW Local Government STV | Rules from the [*Local Government (General) Regulation 2021*](https://legislation.nsw.gov.au/view/html/inforce/current/sl-2021-0460), using the weighted inclusive Gregory method. | [E2] | | | Western Australia STV | Rules from the [*Electoral Act 1907* (WA)](https://www.legislation.wa.gov.au/legislation/prod/filestore.nsf/FileURL/mrdoc_29498.pdf/$FILE/Electoral%20Act%201907%20-%20[17-a0-06].pdf), using the weighted inclusive Gregory method. | [E2] [E3] | | | Australian Capital Territory STV | Rules from the [*Electoral Act 1992* (ACT)](https://www.legislation.act.gov.au/View/a/1992-71/current/PDF/1992-71.PDF), using the exclusive Gregory method. | | ✓ | | Minneapolis STV | Rules from chapter 167 of the [*Minneapolis Code of Ordinances*](https://library.municode.com/mn/minneapolis/codes/code_of_ordinances?nodeId=COOR_TIT8.5EL_CH167MUELRUCO), using the weighted inclusive Gregory method. | [E5] | ✓ | diff --git a/html/index.html b/html/index.html index 452df24..3673466 100644 --- a/html/index.html +++ b/html/index.html @@ -1,6 +1,6 @@