# Options and advanced options
## Preset
The preset dropdown allows you to choose from a hardcoded list of preloaded STV counting rules. These are:
Method | Description | Exceptions | Validated against |
OpenTally WIGM | A recommended set of simple STV rules designed for computer counting, using the weighted inclusive Gregory method and rational arithmetic. | | |
Scottish STV | Rules from the Scottish Local Government Elections Order 2011, using the weighted inclusive Gregory method. | | 2007 Linn ward local election (eSTV 2.0.16) |
Meek STV | Advanced STV rules designed for computer counting, recognised by the Proportional Representation Society of Australia (Victoria–Tasmania) as the superior STV system. | | |
• OpenTally Meek | Operates according to the original 1987 Hill–Wichmann–Woodall ‘Algorithm 123’ specification of Meek STV, except that (a) ties are broken backwards then at random, (b) fixed-point arithmetic with 5 decimal places is used, and (c) candidates are elected on strictly exceeding the quota. | | Ballot papers derived from the ERS97 model election (Hill–Wichmann–Woodall implementation) |
• Meek STV (2006) | Operates according to Hill's 2006 revisions. This is the algorithm referred to in OpenSTV/OpaVote as ‘Meek STV’, and forms the basis of New Zealand's Meek STV rules. | [E1] | Ballot papers derived from the ERS97 model election (OpenSTV 1.7) |
• Meek STV (New Zealand) | Operates according to Schedule 1A of the Local Electoral Regulations 2001. | [E1] | Ballot papers derived from the ERS97 model election (OpenSTV 1.7, Hill's nzmeek 6.7.7) |
Australian Senate STV | Rules from the Commonwealth Electoral Act 1918, using the unweighted inclusive Gregory method. | [E2] [E3] | 2019 Tasmanian Senate election (AEC EasyCount) |
Western Australia STV | Rules from the Electoral Act 1907 (WA), using the weighted inclusive Gregory method. | [E2] [E3] | |
Wright STV | Rules proposed by Anthony van der Craats designed for computer counting, involving reset and re-iteration of the count after each candidate exclusion. | | EVE Online CSM 15 election (EVE reference implementation) |
PRSA 1977 | Simple rules designed for hand counting, using the exclusive Gregory method, with counting performed in thousandths of a vote. | | Example 1 of the PRSA's Proportional Representation Manual |
ERS97 | More complex rules designed for hand counting, using the exclusive Gregory method. | | Ballot papers derived from the ERS97 model election |
• ERS76 | Former rules from the 1976 2nd edition. | [E4] | |
• ERS73 | Former rules from the 1973 1st edition. | [E4] | |
Church of England | Rules from the Church of England Single Transferable Vote Rules 2020, similar to ERS73. | | |
[E1]: When generating random numbers, OpenTally uses a [deterministic random number generator based on SHA-256](rng.md), rather than the Wichmann–Hill(-based) algorithm.
[E2]: When breaking ties forwards/backwards, OpenTally selects the candidate who had more/fewer votes at the first/last stage when *any* tied candidate had more/fewer votes than the others, rather than when each all had unequal votes.
[E3]: A tie between 2 candidates for the final vacancy will be broken backwards then at random, rather than the method described in the legislation.
[E4]: The quota is always calculated to 2 decimal places. For full ERS76 (ERS73) compliance, set *Round quota to 0 d.p.* when the quota is more than 100 (100 or more).
This functionality is not available on the command line.
## Quota-related options
### Quota (-q/--quota)
The quota dropdowns allow you to define the quota used in the election, and the quota criterion used to elect candidates. The quota may be set to:
* *Droop* and *Droop (exact)*: *V*/(*S*+1)
* *Hare* and *Hare (exact)*: *V*/*S*
where *V* is the number of votes and *S* is the number of seats.
The ‘*(exact)*’ version of each quota has effect only if *Round quota to [n] d.p.* is enabled. When that setting is enabled, *Droop* and *Hare* will increment the quota up to the next available rounded unit (even if the quotient is exact already), while the ‘*(exact)*’ versions will round the quota up if and only if the quotient is not already exact.
When *Round quota to [n] d.p.* is not enabled, *Droop* (or *Droop (exact)*) is also known as the Newland–Britton or Hagenbach-Bischoff quota.
### Quota criterion (-c/--quota-criterion)
The quota criterion may be set to *>=* (candidates are elected if they meet or exceed the quota) or *>* (candidates are elected only if they strictly exceed the quota).
Note that the combination ‘*>= Droop (exact)*’ (with *Round quota to [n] d.p.* enabled) can result in more candidates meeting the quota than there are available vacancies, hence this particular combination is not recommended.
### Quota mode (--quota-mode)
This option allows you to specify whether the votes required for election can change during the count. The options are:
* *Static quota*: The quota is calculated once after all first-preference votes are allocated, and remains constant throughout the count.
* *Static with ERS97 rules*: The quota is static, but candidates may be elected if their vote exceeds (or equals, according to the *Quota criterion*) the total active vote, divided by (*S* + 1) (or *S*, according to the *Quota* option).
When *Surplus method* is set to *Meek method*, this setting is ignored, and the progressively reducing quota of the Meek method is instead applied.
## STV variants
### Surplus order (--surplus-order)
This dropdown allows you to select in what order surpluses are distributed:
* *By size* (default): When multiple candidates exceed the quota, the largest surplus is transferred (even if it arose at a later stage of the count).
* *By order*: When multiple candidates exceed the quota, the surplus of the candidate elected first is transferred (even if it is smaller than another). Candidates are always declared elected in descending order of number of votes.
Some STV counting rules provide, for example, that ‘no surplus shall be transferred before a surplus that arose earlier in the counting whether larger or not’ (PRSA 1977). In this case, the option ‘*By order*’ should be selected.
### Surplus method (-s/--surplus)
This dropdown allows you to select how ballots are transferred during surplus transfers. The recommended methods are:
* *Weighted inclusive Gregory* (default): During surplus transfers, all applicable ballot papers of the transferring candidate are examined. Transfers are weighted according to the weights of the ballot papers.
* *Meek method*: Transfers are computed as described at