Zum Inhalt
HALOWERK

Finopswerk

restricted block assignment unrank

Count exactly the binary assignments satisfying supplied block quotas, fixed arms and same/different restrictions, then return the lexicographic assignment for a caller-supplied rank. Bounded caller-supplied synthetic records only; no experiment execution or real-world model certification. A schema-valid unknown is a successful result at the same fixed price. Invalid input raises native HTTP400 before settlement.

POST https://finops.halowerk.com/v1/restricted-block-assignment-unrank

Eingaben

Felder des veröffentlichten Eingabeschemas
FeldTypPflichtBeschreibung
blocksarrayJa
unitsarrayJa
constraintsarrayJa
rankstringJa
Vollständiges Eingabeschema anzeigen
{
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "blocks": {
      "type": "array",
      "items": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "id": {
            "type": "string",
            "pattern": "^[A-Za-z0-9_-]{1,16}$"
          },
          "arm1_count": {
            "type": "integer",
            "minimum": 0,
            "maximum": 12
          }
        },
        "required": [
          "id",
          "arm1_count"
        ]
      },
      "minItems": 1,
      "maxItems": 4
    },
    "units": {
      "type": "array",
      "items": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "id": {
            "type": "string",
            "pattern": "^[A-Za-z0-9_-]{1,16}$"
          },
          "block": {
            "anyOf": [
              {
                "type": "string",
                "pattern": "^[A-Za-z0-9_-]{1,16}$"
              },
              {
                "type": "null"
              }
            ]
          },
          "fixed": {
            "enum": [
              null,
              0,
              1
            ]
          }
        },
        "required": [
          "id",
          "block",
          "fixed"
        ]
      },
      "minItems": 1,
      "maxItems": 12
    },
    "constraints": {
      "type": "array",
      "items": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "left": {
            "type": "string",
            "pattern": "^[A-Za-z0-9_-]{1,16}$"
          },
          "right": {
            "type": "string",
            "pattern": "^[A-Za-z0-9_-]{1,16}$"
          },
          "relation": {
            "enum": [
              "same",
              "different"
            ]
          }
        },
        "required": [
          "left",
          "right",
          "relation"
        ]
      },
      "minItems": 0,
      "maxItems": 24
    },
    "rank": {
      "type": "string",
      "pattern": "^(0|[1-9][0-9]{0,3})$"
    }
  },
  "required": [
    "blocks",
    "units",
    "constraints",
    "rank"
  ]
}

Originalschema öffnen

Veröffentlichtes Eingabebeispiel

{
  "blocks": [
    {
      "id": "B",
      "arm1_count": 2
    }
  ],
  "units": [
    {
      "id": "U0",
      "block": "B",
      "fixed": null
    },
    {
      "id": "U1",
      "block": "B",
      "fixed": null
    },
    {
      "id": "U2",
      "block": "B",
      "fixed": null
    },
    {
      "id": "U3",
      "block": "B",
      "fixed": null
    }
  ],
  "constraints": [],
  "rank": "0"
}

Ergebnis & Dokumentation

Maschinenlesbare Dokumentation dieses Hubs

Quelle dieser Seite: der veröffentlichte HALOWERK-Katalog. Stand: 2026-11-07, 02:42 UTC.

Weitere Endpunkte dieses Hubs

Alle Endpunkte dieses Hubs →