Zum Inhalt
HALOWERK

Technische Prüfungen & Formate

commerce / commerce bounded knapsack certificate

An agent that selects a finite stock promotion bundle under an integer capacity needs whether its claimed item counts are feasible and attain the exact maximum supplied value.

POST https://detect.halowerk.com/v1/commerce/commerce-bounded-knapsack-certificate

Eingaben

Felder des veröffentlichten Eingabeschemas
FeldTypPflichtBeschreibung
artifactobjectJa
Vollständiges Eingabeschema anzeigen
{
  "type": "object",
  "properties": {
    "artifact": {
      "type": "object",
      "properties": {
        "capacity": {
          "type": "integer",
          "minimum": 0,
          "maximum": 2048
        },
        "items": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "weight": {
                "type": "integer",
                "minimum": 1,
                "maximum": 2048
              },
              "value": {
                "type": "integer",
                "minimum": 0,
                "maximum": 1000000
              },
              "available": {
                "type": "integer",
                "minimum": 0,
                "maximum": 64
              }
            },
            "required": [
              "weight",
              "value",
              "available"
            ],
            "additionalProperties": false
          },
          "minItems": 0,
          "maxItems": 32
        },
        "claimed_counts": {
          "type": "array",
          "items": {
            "type": "integer",
            "minimum": 0,
            "maximum": 64
          },
          "minItems": 0,
          "maxItems": 32
        }
      },
      "required": [
        "capacity",
        "items",
        "claimed_counts"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "artifact"
  ],
  "additionalProperties": false
}

Originalschema öffnen

Veröffentlichtes Eingabebeispiel

{
  "artifact": {
    "capacity": 1,
    "items": [
      {
        "weight": 1,
        "value": 1,
        "available": 1
      }
    ],
    "claimed_counts": [
      1
    ]
  }
}

Ergebnis & Dokumentation

Maschinenlesbare Dokumentation dieses Hubs

Quelle dieser Seite: der veröffentlichte HALOWERK-Katalog. Stand: 2026-11-01, 15:19 UTC.

Weitere Endpunkte dieses Hubs

Alle Endpunkte dieses Hubs →