Skip to main content

PySPN: An Extendable Python Library for Modeling & Simulation of Stochastic Petri Nets

  • Conference paper
  • First Online:
Simulation Tools and Techniques (SIMUtools 2023)

Abstract

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 & Simulation (M &S) of SPNs. 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.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 64.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 84.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

References

  1. Amparore, E.G., Balbo, G., Beccuti, M., Donatelli, S., Franceschinis, G.: 30 years of GreatSPN. In: Fiondella, L., Puliafito, A. (eds.) Principles of Performance and Reliability Modeling and Evaluation. SSRE, pp. 227–254. Springer, Cham (2016). https://doi.org/10.1007/978-3-319-30599-8_9

    Chapter  Google Scholar 

  2. Azevedo, C.: cazevedo/gspn-framework. https://github.com/cazevedo/gspn-framework

  3. Banks, J., Carson, J., II., Nelson, B., Nicol, D.: Discrete-Event System Simulation, 5th edn. Pearson, Upper Saddle River (2009)

    Google Scholar 

  4. Chay, Z.E., Goh, B.F., Ling, M.H.: PNet: a Python library for Petri net modeling and simulation, February 2023. https://doi.org/10.48550/arXiv.2302.12054

  5. Ellson, J., Gansner, E., Koutsofios, L., North, S.C., Woodhull, G.: Graphviz—open source graph drawing tools. In: Mutzel, P., Jünger, M., Leipert, S. (eds.) GD 2001. LNCS, vol. 2265, pp. 483–484. Springer, Heidelberg (2002). https://doi.org/10.1007/3-540-45848-4_57

    Chapter  Google Scholar 

  6. Friederich, J.: PySPN (2023). https://github.com/jo-chr/pyspn

  7. Friederich, J., Francis, D.P., Lazarova-Molnar, S., Mohamed, N.: A framework for data-driven digital twins of smart manufacturing systems. Comput. Ind. 136, 103586 (2022). https://doi.org/10.1016/j.compind.2021.103586

    Article  Google Scholar 

  8. Friederich, J., Lazarova-Molnar, S.: Data-driven reliability modeling of smart manufacturing systems using process mining. In: 2022 Winter Simulation Conference (WSC), pp. 2534–2545, December 2022. https://doi.org/10.1109/WSC57314.2022.10015301

  9. Paolieri, M., Biagi, M., Carnevali, L., Vicario, E.: The ORIS tool: quantitative evaluation of non-Markovian systems. IEEE Trans. Software Eng. 47(6), 1211–1225 (2021). https://doi.org/10.1109/TSE.2019.2917202

    Article  Google Scholar 

  10. Pommereau, F.: SNAKES: a flexible high-level Petri nets library (tool paper). In: Devillers, R., Valmari, A. (eds.) PETRI NETS 2015. LNCS, vol. 9115, pp. 254–265. Springer, Cham (2015). https://doi.org/10.1007/978-3-319-19488-2_13

    Chapter  Google Scholar 

  11. Ratzer, A.V., et al.: CPN tools for editing, simulating, and analysing coloured Petri nets. In: van der Aalst, W.M.P., Best, E. (eds.) ICATPN 2003. LNCS, vol. 2679, pp. 450–462. Springer, Heidelberg (2003). https://doi.org/10.1007/3-540-44919-1_28

    Chapter  Google Scholar 

  12. Tüysüz, F., Kahraman, C.: Modeling a flexible manufacturing cell using stochastic Petri nets with fuzzy parameters. Expert Syst. Appl. 37(5), 3910–3920 (2010). https://doi.org/10.1016/j.eswa.2009.11.026

    Article  Google Scholar 

  13. Virtanen, P., et al.: SciPy 1.0: fundamental algorithms for scientific computing in Python. Nat. Methods 17(3), 261–272 (2020). https://doi.org/10.1038/s41592-019-0686-2

    Article  Google Scholar 

  14. Wang, J.: Patient flow modeling and optimal staffing for emergency departments: a Petri net approach. IEEE Trans. Comput. Soc. Syst. 10(4), 2022–2032 (2023). https://doi.org/10.1109/TCSS.2022.3186249

    Article  Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Jonas Friederich .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2024 ICST Institute for Computer Sciences, Social Informatics and Telecommunications Engineering

About this paper

Check for updates. Verify currency and authenticity via CrossMark

Cite this paper

Friederich, J., Lazarova-Molnar, S. (2024). PySPN: An Extendable Python Library for Modeling & Simulation of Stochastic Petri Nets. In: Guisado-Lizar, JL., Riscos-Núñez, A., Morón-Fernández, MJ., Wainer, G. (eds) Simulation Tools and Techniques. SIMUtools 2023. Lecture Notes of the Institute for Computer Sciences, Social Informatics and Telecommunications Engineering, vol 519. Springer, Cham. https://doi.org/10.1007/978-3-031-57523-5_6

Download citation

  • DOI: https://doi.org/10.1007/978-3-031-57523-5_6

  • Published:

  • Publisher Name: Springer, Cham

  • Print ISBN: 978-3-031-57522-8

  • Online ISBN: 978-3-031-57523-5

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics