Skip to content
HALOWERK

Agent Interfaces

petrinet target shortest firing

Return a shortest legal transition sequence reaching a supplied exact marking under declared place capacities.

POST https://agent.halowerk.com/v1/petrinet-target-shortest-firing

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
initialarrayYes
transitionsarrayYes
capacityarrayYes
targetarrayYes
Show full input schema
{
  "type": "object",
  "properties": {
    "initial": {
      "type": "array",
      "items": {
        "type": "integer",
        "minimum": 0,
        "maximum": 32
      },
      "maxItems": 8,
      "minItems": 1
    },
    "transitions": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "consume": {
            "type": "array",
            "items": {
              "type": "integer",
              "minimum": 0,
              "maximum": 32
            },
            "maxItems": 8,
            "minItems": 1
          },
          "produce": {
            "type": "array",
            "items": {
              "type": "integer",
              "minimum": 0,
              "maximum": 32
            },
            "maxItems": 8,
            "minItems": 1
          }
        },
        "required": [
          "consume",
          "produce"
        ],
        "additionalProperties": false
      },
      "maxItems": 16,
      "minItems": 1
    },
    "capacity": {
      "type": "array",
      "items": {
        "type": "integer",
        "minimum": 0,
        "maximum": 32
      },
      "maxItems": 8,
      "minItems": 1
    },
    "target": {
      "type": "array",
      "items": {
        "type": "integer",
        "minimum": 0,
        "maximum": 32
      },
      "maxItems": 8,
      "minItems": 1
    }
  },
  "required": [
    "initial",
    "transitions",
    "capacity",
    "target"
  ],
  "additionalProperties": false
}

Open original schema

Published input example

{
  "initial": [
    1,
    0
  ],
  "transitions": [
    {
      "consume": [
        1,
        0
      ],
      "produce": [
        0,
        1
      ]
    },
    {
      "consume": [
        0,
        1
      ],
      "produce": [
        1,
        0
      ]
    }
  ],
  "capacity": [
    1,
    1
  ],
  "target": [
    0,
    1
  ]
}

Result & documentation

Machine-readable documentation of this hub

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

More endpoints in this hub

All endpoints in this hub โ†’