Skip to main content

Exploiting Structural Dependency Relations for Efficient Agent Based Model Simulation

  • Conference paper
  • First Online:
Computer Performance Engineering and Stochastic Modelling (EPEW 2023, ASMTA 2023)

Abstract

In the last few years Agent Based Models (ABMs) have attracted growing interest in the field of computational simulation thanks to their applicability in very heterogeneous landscapes, usability for fine-grained descriptions and comprehensibility for application domain experts. However, the lack of a well-defined semantics for specifying how agents behave and how they get coupled and scheduled may lead to inconsistent results. To fill this gap we proposed a well defined ABMs semantics that, using Extended Stochastic Symmetric Nets for model description, allows the modeller to automatically derive the corresponding ABM simulator that is directly executable in the NetLogo ABM framework. In the present paper we propose an improvement that exploits locality of state change effects to avoid recomputing the rates of the enabled events at each state change. This is achieved by exploiting structural properties of the ESSN model to generate optimized NetLogo code (semi)automatically. The results obtained for an example case-study demonstrate a relevant improvement in terms of execution time when structural optimizations are employed to reduce rates calculations.

Giuliana Franceschinis and Marzio Pennisi are members of the CNIT (Consorzio Nazionale Interuniversitario per le Telecomunicazioni) Research Unit of the Universitá del Piemonte Orientale.

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 59.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 74.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

Notes

  1. 1.

    The notation \(f_1.f_2\) used in SNexpression corresponds to the composition of functions: \(f_1 \circ f_2\); \(S_A\) is a constant function returning the whole set A.

  2. 2.

    The symbol \(*\) is used in SNexpression to denote the intersection operator.

References

  1. Ajmone Marsan, M., Balbo, G., Conte, G., Donatelli, S., Franceschinis, G.: Modelling with Generalized Stochastic Petri Nets. John Wiley & Sons Ltd. (1995)

    Google Scholar 

  2. 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, pp. 227–254. Springer, Cham (2016). https://doi.org/10.1007/978-3-319-30599-8_9

    Chapter  Google Scholar 

  3. Amparore, E.G., Beccuti, M., Castagno, P., Franceschinis, G., Pennisi, M., Pernice, S.: Multiformalism modeling and simulation of immune system mechanisms. In: Proceedings - 2021 IEEE International Conference on Bioinformatics and Biomedicine, BIBM 2021, pp. 3259–3266 (2021)

    Google Scholar 

  4. Beccuti, M., Castagno, P., Franceschinis, G., Pennisi, M., Pernice, S.: A petri net formalism to study systems at different scales exploiting agent-based and stochastic simulations. In: Ballarini, P., Castel, H., Dimitriou, I., Iacono, M., Phung-Duc, T., Walraevens, J. (eds.) Performance Engineering and Stochastic Modeling: 17th European Workshop, EPEW 2021, and 26th International Conference, ASMTA 2021, Virtual Event, December 9–10 and December 13–14, 2021, Proceedings, pp. 22–43. Springer, Cham (2021). https://doi.org/10.1007/978-3-030-91825-5_2

    Chapter  Google Scholar 

  5. Capra, L., De Pierro, M., Franceschinis, G.: Computing structural properties of symmetric nets. In: Campos, J., Haverkort, B.R. (eds.) Quantitative Evaluation of Systems: 12th International Conference, QEST 2015, Madrid, Spain, September 1-3, 2015, Proceedings, pp. 125–140. Springer, Cham (2015). https://doi.org/10.1007/978-3-319-22264-6_9

    Chapter  Google Scholar 

  6. Capra, L., De Pierro, M., Franceschinis, G.: SNexpression: a symbolic calculator for symmetric net expressions. In: Janicki, R., Sidorova, N., Chatain, T. (eds.) Application and Theory of Petri Nets and Concurrency: 41st International Conference, PETRI NETS 2020, Paris, France, June 24–25, 2020, Proceedings, pp. 381–391. Springer, Cham (2020). https://doi.org/10.1007/978-3-030-51831-8_19

    Chapter  Google Scholar 

  7. Chiola, G., Dutheillet, C., Franceschinis, G., Haddad, S.: Stochastic well-formed coloured nets for symmetric modelling applications. IEEE Tran. Comput. 42(11), 1343–1360 (1993)

    Article  Google Scholar 

  8. Gillespie, D.T.: Exact stochastic simulation of coupled chemical reactions. J. Phys. Chem. 81(25), 2340–2361 (1977)

    Article  Google Scholar 

  9. Kreikemeyer, J.N., Köster, T., Uhrmacher, A.M., Warnke, T.: Inferring dependency graphs for agent-based models using aspect-oriented programming. In: 2021 Winter Simulation Conference (WSC), pp. 1–12 (2021)

    Google Scholar 

  10. Law, A.M.: Simulation Modeling and Analysis, Fifth Edition. McGraw-Hill (2015)

    Google Scholar 

  11. Pernice, S., et al.: A computational approach based on the colored Petri net formalism for studying multiple sclerosis. BMC Bioinform. 20(6), 1–17 (2019)

    Google Scholar 

  12. Reinhardt, O., Uhrmacher, A.M.: An efficient simulation algorithm for continuous-time agent-based linked lives models. In: Proceedings of the 50th Annual Simulation Symposium, pp. 9:1–9:12. SCS International / ACM (2017)

    Google Scholar 

  13. Reinhardt, O., Warnke, T., Uhrmacher, A.M.: A language for agent-based discrete-event modeling and simulation of linked lives. ACM Trans. Model. Comput. Simul. (TOMACS) 32(1), 1–26 (2022)

    Article  Google Scholar 

  14. Voit, E.O., Martens, H.A., Omholt, S.W.: 150 years of the mass action law. PLoS Comput. Biol. 11(1), e1004012 (2015)

    Article  Google Scholar 

  15. Wilensky, U.: NetLogo (1999). www.ccl.northwestern.edu/netlogo/

Download references

Author information

Authors and Affiliations

Authors

Corresponding authors

Correspondence to Marzio Pennisi , Elvio G. Amparore or Giuliana Franceschinis .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2023 The Author(s), under exclusive license to Springer Nature Switzerland AG

About this paper

Check for updates. Verify currency and authenticity via CrossMark

Cite this paper

Pennisi, M., Amparore, E.G., Franceschinis, G. (2023). Exploiting Structural Dependency Relations for Efficient Agent Based Model Simulation. In: Iacono, M., Scarpa, M., Barbierato, E., Serrano, S., Cerotti, D., Longo, F. (eds) Computer Performance Engineering and Stochastic Modelling. EPEW ASMTA 2023 2023. Lecture Notes in Computer Science, vol 14231. Springer, Cham. https://doi.org/10.1007/978-3-031-43185-2_24

Download citation

  • DOI: https://doi.org/10.1007/978-3-031-43185-2_24

  • Published:

  • Publisher Name: Springer, Cham

  • Print ISBN: 978-3-031-43184-5

  • Online ISBN: 978-3-031-43185-2

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics