Skip to content
HALOWERK

Agent Interfaces

petrinet minimum initial marking

Return the componentwise minimal initial tokens needed for a supplied fixed firing sequence.

POST https://agent.halowerk.com/v1/petrinet-minimum-initial-marking

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
placesintegerYes
transitionsarrayYes
sequencearrayYes
Show full input schema
{
  "type": "object",
  "properties": {
    "places": {
      "type": "integer",
      "minimum": 1,
      "maximum": 8
    },
    "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
    },
    "sequence": {
      "type": "array",
      "items": {
        "type": "integer",
        "minimum": 0,
        "maximum": 15
      },
      "maxItems": 100,
      "minItems": 0
    }
  },
  "required": [
    "places",
    "transitions",
    "sequence"
  ],
  "additionalProperties": false
}

Open original schema

Published input example

{
  "places": 2,
  "transitions": [
    {
      "consume": [
        1,
        0
      ],
      "produce": [
        0,
        1
      ]
    },
    {
      "consume": [
        0,
        1
      ],
      "produce": [
        1,
        0
      ]
    }
  ],
  "sequence": [
    0,
    1,
    0
  ]
}

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 โ†’