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.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Notes
- 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.
The symbol \(*\) is used in SNexpression to denote the intersection operator.
References
Ajmone Marsan, M., Balbo, G., Conte, G., Donatelli, S., Franceschinis, G.: Modelling with Generalized Stochastic Petri Nets. John Wiley & Sons Ltd. (1995)
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
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)
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
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
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
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)
Gillespie, D.T.: Exact stochastic simulation of coupled chemical reactions. J. Phys. Chem. 81(25), 2340–2361 (1977)
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)
Law, A.M.: Simulation Modeling and Analysis, Fifth Edition. McGraw-Hill (2015)
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)
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)
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)
Voit, E.O., Martens, H.A., Omholt, S.W.: 150 years of the mass action law. PLoS Comput. Biol. 11(1), e1004012 (2015)
Wilensky, U.: NetLogo (1999). www.ccl.northwestern.edu/netlogo/
Author information
Authors and Affiliations
Corresponding authors
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2023 The Author(s), under exclusive license to Springer Nature Switzerland AG
About this paper
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)