(require("compute/socialChoiceMethods/olprA"))(votes, socialChoiceOptions) → {types.typesSocialChoice.socialChoiceResults}
Run an Open List Proportional Representation method. Call this variant by the name "A".
Return a list of winning candidates and a list of allocated seats to parties.
A voter votes for a candidate. Party lists help candidates pool their votes.
Party lists are allocated seats. The most popular candidates in a party are elected.
Parameters:
Name | Type | Description |
---|---|---|
votes |
types.typesVotes.votes | The object for vote data. |
socialChoiceOptions |
types.typesSocialChoice.socialChoiceOptions | options to specify a social choice function. |
Returns:
- the results returned from a social choice function.
- Type
- types.typesSocialChoice.socialChoiceResults
Members
(static, constant) olprAMetadata :object
an object: this function and descriptions of its name, input, and output
Type:
- object