PetriRL Studio

Technology

PetriRL Studio rests on a line of research on reinforcement learning for discrete event systems, developed at South Westphalia University of Applied Sciences. Each paper has its own open repository; this page explains what each one adds.

Journal of Manufacturing Systems 74, 2024 published

PetriRL: Petri nets and event-based reinforcement learning

The foundation. A job shop is modeled as a colored timed Petri net: tokens are operations, their color says which job and machine they belong to, timed transitions process them. The net is the environment the agent acts in, a light digital twin of the shop.

How it works

  • Guard functions as action masks. The net already knows which transitions may fire. Infeasible actions are masked before the agent chooses, so it never learns from impossible moves.
  • Event-based decisions. Between decisions the net fires its automatic and timed transitions and the clock jumps to the next event. The agent is called only when a choice exists.
  • Explainable by construction. Every action is a transition firing that can be replayed as token flow.

Result

A masked PPO agent schedules Taillard instances on the net and is compared with dispatching rules and learning-based methods. The same model is the starting point of all following work.

Journal of Manufacturing Systems 82, 2025 published

Intralogistics: AGVs and tool sharing in flexible manufacturing

Real shops move parts and tools. This work adds automated guided vehicles that carry jobs between machines and tool transporters that share tools, all in the same colored timed Petri net.

How it works

  • Job, AGV and tool decisions share one net; guard functions keep the larger action space tractable.
  • An actor-critic agent with a model-based lookahead on the net decides where AGVs should wait for their next transport.

Result

Evaluated on small public FMS benchmarks and on a new large-scale benchmark derived from Taillard's instances.

Preprint, submitted to Knowledge-Based Systems under review

Hyper-heuristics: the agent chooses the rule

Instead of picking a job, the agent picks one of 14 dispatching rules (shortest processing time, most work remaining, ...). Each decision stays readable: at any moment you know which rule is in charge and why its job was chosen.

How it works

  • Prefiltering. The net's guard functions remove infeasible actions before the rules see them.
  • Commitment. A chosen rule stays active for k decisions. This temporal abstraction shortens the horizon and stabilizes training; with a fixed k the problem stays a Markov decision process, which allows a convergence argument through Mirror Learning.

Result

On the Taillard groups from 15×15 to 100×20 the hyper-heuristic matches or beats the best single rule on every instance and reaches the lowest average makespan (2856) among the compared learning-based methods. A commitment of 5 decisions works best on average.

Preprint, arXiv 2026 in revision

Dynamic job shops: random arrivals and machine failures

Plans break when orders arrive late or machines fail. Here jobs arrive following a Gamma distribution and machines fail following a Weibull distribution while the agent schedules.

How it works

  • A failure disables the machine's start transition; jobs waiting for that machine are masked indirectly.
  • Two ways to handle the mask are compared: overriding the probability of invalid actions, and pushing it down with an extra gradient during training.

Result

The learned policy keeps scheduling through disruptions without retraining and gives lower makespans than classical dispatching rules on the dynamic benchmarks.

In preparation, 2027 upcoming

Revisiting action masking

In a job shop often only a few of all actions are valid at a time. This work studies whether the usual hard mask is the best choice in such highly constrained systems, and compares it with gradient-based masking for faster and more robust training.

CoDIT 2026 presented

Conference work

  • Just-in-time aware scheduling with PetriRL.
  • Fuzzy multi-objective optimization (with Diyar Altinses).

Free for noncommercial use, 2026 this app

PetriRL Studio

Everything above in one place, without writing code.

  • Solve your instances or 242 classic benchmarks with 15 dispatching rules, three metaheuristics (genetic algorithm, simulated annealing, tabu search, all able to use the wait action) or trained agents, and compare them by their gap to the optimum.
  • Train agents in the dispatching or hyper-heuristic environment, or OR-informed: tabu search solves the training instances, the agent clones its decisions, then PPO fine-tunes.
  • Replay any plan on the Petri net with the agent's probabilities, or replay your own solution (machine orders or a firing sequence).