Skip to content
HALOWERK

Govwerk

ballot kemeny optimal orders

Return exact Kemeny agreement maxima, optimum-order counts and up to100 deterministic witnesses.

POST https://gov.halowerk.com/v1/ballot-kemeny-optimal-orders

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
optionsarrayYes
ballotsarrayYes
Show full input schema
{
  "type": "object",
  "properties": {
    "options": {
      "type": "array",
      "items": {
        "type": "string",
        "maxLength": 24,
        "minLength": 1
      },
      "maxItems": 7,
      "minItems": 1
    },
    "ballots": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "ranking": {
            "type": "array",
            "items": {
              "type": "string",
              "maxLength": 24,
              "minLength": 1
            },
            "maxItems": 7,
            "minItems": 1
          },
          "weight": {
            "type": "integer",
            "minimum": 0,
            "maximum": 1000000
          }
        },
        "required": [
          "ranking",
          "weight"
        ],
        "additionalProperties": false
      },
      "maxItems": 200,
      "minItems": 1
    }
  },
  "required": [
    "options",
    "ballots"
  ],
  "additionalProperties": false
}

Open original schema

Published input example

{
  "options": [
    "A",
    "B"
  ],
  "ballots": [
    {
      "ranking": [
        "A",
        "B"
      ],
      "weight": 3
    },
    {
      "ranking": [
        "B",
        "A"
      ],
      "weight": 1
    }
  ]
}

Result & documentation

Machine-readable documentation of this hub

Source of this page: the published HALOWERK catalog. Updated: 2026-11-18 UTC.

More endpoints in this hub

All endpoints in this hub โ†’