PySPN: a Python library for stochastic Petri net modeling, simulation, and event log generation
Stochastic Petri Nets (SPNs) are a powerful formalism, widely used for modeling complex systems in various domains, ranging from manufacturing and logistics to healthcare and computer networks. In this paper, we introduce PySPN , a flexible and easily extendable Python library for Modeling and Simulation of SPNs. Besides the simulation of SPNs, we further extended PySPN with the functionality of generating synthetic data in the form of event logs from SPNs’ simulations. Event logs in simulation models are essential for ensuring model accuracy, evaluating performance, debugging, and facilitating decision-making processes. Event logs offer a comprehensive record of simulated events, which can be analyzed to gain insights into systems’ behaviors and performance. PySPN aims to provide researchers, engineers, and simulation practitioners with a user-friendly and efficient toolset to model, simulate, and analyze SPNs, facilitating the understanding and optimization of stochastic processes in dynamic systems.
Authors
- Jonas Friederich (ORCID: https://orcid.org/0000-0001-9034-5907)
- Atieh Khodadadi (ORCID: https://orcid.org/0009-0001-5084-4856)
- Sanja Lazarova‐Molnar (ORCID: https://orcid.org/0000-0002-6052-0863)
Institutions
- Karlsruhe Institute of Technology (DE)
- University of Southern Denmark (DK)
Publication Details
- Journal
- SIMULATION
- Published
- 2025-06-19
- DOI
- https://doi.org/10.1177/00375497251343625
- Citations
- 1
- Primary Topic
- Business Process Modeling and Analysis
- Type
- article
- Field-Weighted Citation Impact
- 2.28