{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,11,16]],"date-time":"2026-11-16T18:57:22Z","timestamp":1794855442450,"version":"4.9.1"},"publisher-location":"Cham","reference-count":36,"publisher":"Springer Nature Switzerland","isbn-type":[{"value":"9783032401076","type":"print"},{"value":"9783032401083","type":"electronic"}],"license":[{"start":{"date-parts":[[2026,10,16]],"date-time":"2026-10-16T00:00:00Z","timestamp":1792108800000},"content-version":"tdm","delay-in-days":0,"URL":"https:\/\/creativecommons.org\/licenses\/by\/4.0"},{"start":{"date-parts":[[2026,10,16]],"date-time":"2026-10-16T00:00:00Z","timestamp":1792108800000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/creativecommons.org\/licenses\/by\/4.0"}],"content-domain":{"domain":["link.springer.com"],"crossmark-restriction":false},"short-container-title":[],"published-print":{"date-parts":[[2027]]},"abstract":"<jats:title>Abstract<\/jats:title>\n                  <jats:p>Collective Systems (CS) are composed of a huge number of interacting components that cooperate and compete to reach local and global goals.Indeed, in this class of systems, each component operates without centralised control, following a behaviour that depends solely on local observations resulting from interactions with the environment and other components. The global behaviour emerges from the often unpredictable combination of the local ones.<\/jats:p>\n                  <jats:p>In the last few decades, a number of formalisms have been proposed that are based on formal methods to support the specification and analysis of CS. These formalisms are often equipped with tools that rely on simulation and statistical analysis to automate them. Unfortunately, many of the proposed tools suffer from two main limitations. First, they are specific to a given framework, making it difficult to extend or integrate other solutions or methodologies.Moreover, their portability and usability are often limited.<\/jats:p>\n                  <jats:p>In this paper, we present , a Python framework that provides a clean, extensible environment for simulating and analysing CS models. In the paper, the overall structure of Pythia is presented, along with a few examples demonstrating its features.<\/jats:p>","DOI":"10.1007\/978-3-032-40108-3_14","type":"book-chapter","created":{"date-parts":[[2026,10,16]],"date-time":"2026-10-16T09:44:42Z","timestamp":1792143882000},"page":"234-252","update-policy":"https:\/\/doi.org\/10.1007\/springer_crossmark_policy","source":"Crossref","is-referenced-by-count":0,"title":["Pythia: A Python Framework for\u00a0the\u00a0Simulation and\u00a0Statistical Analysis of\u00a0Collective Adaptive Systems"],"prefix":"10.1007","author":[{"ORCID":"https:\/\/orcid.org\/0000-0003-3061-863X","authenticated-orcid":false,"given":"Michele","family":"Loreti","sequence":"first","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0009-0002-4392-8186","authenticated-orcid":false,"given":"Marco","family":"Quadrini","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"297","published-online":{"date-parts":[[2026,10,16]]},"reference":[{"key":"14_CR1","series-title":"Lecture Notes in Computer Science","doi-asserted-by":"publisher","first-page":"429","DOI":"10.1007\/978-3-319-16310-9_13","volume-title":"Software Engineering for Collective Autonomic Systems","author":"DB Abeywickrama","year":"2015","unstructured":"Abeywickrama, D.B., et al.: Tools for ensemble design and runtime. In: Wirsing, M., H\u00f6lzl, M., Koch, N., Mayer, P. (eds.) Software Engineering for Collective Autonomic Systems. LNCS, vol. 8998, pp. 429\u2013448. Springer, Cham (2015). https:\/\/doi.org\/10.1007\/978-3-319-16310-9_13"},{"key":"14_CR2","doi-asserted-by":"publisher","unstructured":"Alrahman, Y.A., Nicola, R.D., Loreti, M.: A calculus for collective-adaptive systems and its behavioural theory. Inf. Comput. 268 (2019). https:\/\/doi.org\/10.1016\/J.IC.2019.104457","DOI":"10.1016\/J.IC.2019.104457"},{"key":"14_CR3","doi-asserted-by":"publisher","unstructured":"Alrahman, Y.A., Nicola, R.D., Loreti, M., Tiezzi, F., Vigo, R.: A calculus for attribute-based communication. In: Wainwright, R.L., Corchado, J.M., Bechini, A., Hong, J. (eds.) Proceedings of the 30th Annual ACM Symposium on Applied Computing, Salamanca, Spain, 13\u201317 April 2015, pp. 1840\u20131845. ACM (2015). https:\/\/doi.org\/10.1145\/2695664.2695668","DOI":"10.1145\/2695664.2695668"},{"key":"14_CR4","doi-asserted-by":"publisher","unstructured":"Aspnes, J., Ruppert, E.: An introduction to population protocols. In: Garbinato, B., Miranda, H., Rodrigues, L.E.T. (eds.) Middleware for Network Eccentric and Mobile Applications, pp. 97\u2013120. Springer, Heidelberg (2009). https:\/\/doi.org\/10.1007\/978-3-540-89707-1_5","DOI":"10.1007\/978-3-540-89707-1_5"},{"key":"14_CR5","unstructured":"Bellifemine, F., Poggi, A., Rimassa, G.: JADE\u2013a FIPA-compliant agent framework. In: Proceedings of PAAM, vol.\u00a099, p.\u00a033. London (1999)"},{"issue":"5","key":"14_CR6","doi-asserted-by":"publisher","first-page":"317","DOI":"10.1016\/J.PEVA.2013.01.001","volume":"70","author":"L Bortolussi","year":"2013","unstructured":"Bortolussi, L., Hillston, J., Latella, D., Massink, M.: Continuous approximation of collective system behaviour: a tutorial. Perform. Eval. 70(5), 317\u2013349 (2013). https:\/\/doi.org\/10.1016\/J.PEVA.2013.01.001","journal-title":"Perform. Eval."},{"key":"14_CR7","doi-asserted-by":"publisher","unstructured":"Bortolussi, L., Hillston, J., Loreti, M.: Fluid approximation of broadcasting systems. Theor. Comput. Sci. 816, 221\u2013248 (2020). https:\/\/doi.org\/10.1016\/J.TCS.2020.02.020","DOI":"10.1016\/J.TCS.2020.02.020"},{"key":"14_CR8","doi-asserted-by":"publisher","unstructured":"Bortolussi, L., et al.: CARMA: collective adaptive resource-sharing Markovian agents. In: Bertrand, N., Tribastone, M. (eds.) Proceedings Thirteenth Workshop on Quantitative Aspects of Programming Languages and Systems, QAPL 2015, London, UK, 11\u201312 April 2015. EPTCS, vol.\u00a0194, pp. 16\u201331 (2015). https:\/\/doi.org\/10.4204\/EPTCS.194.2","DOI":"10.4204\/EPTCS.194.2"},{"key":"14_CR9","doi-asserted-by":"publisher","unstructured":"Boudec, J.L., McDonald, D.D., Mundinger, J.: A generic mean field convergence result for systems of interacting objects. In: Fourth International Conference on the Quantitative Evaluaiton of Systems (QEST 2007), Edinburgh, Scotland, UK, 17\u201319 September 2007, pp. 3\u201318. IEEE Computer Society (2007). https:\/\/doi.org\/10.1109\/QEST.2007.8","DOI":"10.1109\/QEST.2007.8"},{"key":"14_CR10","series-title":"Lecture Notes in Computer Science","doi-asserted-by":"publisher","first-page":"522","DOI":"10.1007\/978-3-642-20401-2_25","volume-title":"Rigorous Software Engineering for Service-Oriented Systems","author":"I Cappello","year":"2011","unstructured":"Cappello, I., et al.: Quantitative analysis of services. In: Wirsing, M., H\u00f6lzl, M. (eds.) Rigorous Software Engineering for Service-Oriented Systems. LNCS, vol. 6582, pp. 522\u2013540. Springer, Heidelberg (2011). https:\/\/doi.org\/10.1007\/978-3-642-20401-2_25"},{"key":"14_CR11","doi-asserted-by":"publisher","unstructured":"Ciocchetta, F., Duguid, A., Gilmore, S., Guerriero, M.L., Hillston, J.: The bio-pepa tool suite. In: QEST 2009, Sixth International Conference on the Quantitative Evaluation of Systems, Budapest, Hungary, 13\u201316 September 2009. pp. 309\u2013310. IEEE Computer Society (2009). https:\/\/doi.org\/10.1109\/QEST.2009.27","DOI":"10.1109\/QEST.2009.27"},{"key":"14_CR12","doi-asserted-by":"publisher","unstructured":"De Nicola, R., Stefano, L.D., Inverso, O., Valiani, S.: Modelling flocks of birds from the bottom up. In: Margaria, T., Steffen, B. (eds.) Leveraging Applications of Formal Methods, Verification and Validation. Adaptation and Learning - 11th International Symposium, ISoLA 2022, Rhodes, Greece, 22\u201330 October 2022, Proceedings, Part III. Lecture Notes in Computer Science, vol. 13703, pp. 82\u201396. Springer, Heidelberg (2022)https:\/\/doi.org\/10.1007\/978-3-031-19759-8_6","DOI":"10.1007\/978-3-031-19759-8_6"},{"key":"14_CR13","doi-asserted-by":"publisher","unstructured":"Del Giudice, N., Loreti, M.: YODA: yet anOther agent Description lAnguage. In: Casadei, R., et al. (eds.) IEEE International Conference on Autonomic Computing and Self-Organizing Systems Companion, ACSOS-C 2022, Virtual, CA, USA, 19\u201323 September 2022, pp. 82\u201387. IEEE (2022). https:\/\/doi.org\/10.1109\/ACSOSC56246.2022.00038","DOI":"10.1109\/ACSOSC56246.2022.00038"},{"key":"14_CR14","doi-asserted-by":"publisher","unstructured":"Del Giudice, N., Matteucci, L., Quadrini, M., Rehman, A., Loreti, M.: Sibilla: a tool for reasoning about collective systems. In: ter Beek, M.H., Sirjani, M. (eds.) Coordination Models and Languages - 24th IFIP WG 6.1 International Conference, COORDINATION 2022, Held as Part of the 17th International Federated Conference on Distributed Computing Techniques, DisCoTec 2022, Lucca, Italy, 13\u201317 June 2022, Proceedings. Lecture Notes in Computer Science, vol. 13271, pp. 92\u201398. Springer, Heidelberg (2022). https:\/\/doi.org\/10.1007\/978-3-031-08143-9_6","DOI":"10.1007\/978-3-031-08143-9_6"},{"key":"14_CR15","doi-asserted-by":"publisher","unstructured":"Del Giudice, N., Matteucci, L., Quadrini, M., Rehman, A., Loreti, M.: Sibilla: a tool for reasoning about collective systems. Sci. Comput. Program. 235, 103095 (2024). https:\/\/doi.org\/10.1016\/J.SCICO.2024.103095","DOI":"10.1016\/J.SCICO.2024.103095"},{"key":"14_CR16","series-title":"Lecture Notes in Computer Science","doi-asserted-by":"publisher","first-page":"264","DOI":"10.1007\/978-3-642-39799-8_19","volume-title":"Computer Aided Verification","author":"A Donz\u00e9","year":"2013","unstructured":"Donz\u00e9, A., Ferr\u00e8re, T., Maler, O.: Efficient robust monitoring for STL. In: Sharygina, N., Veith, H. (eds.) CAV 2013. LNCS, vol. 8044, pp. 264\u2013279. Springer, Heidelberg (2013). https:\/\/doi.org\/10.1007\/978-3-642-39799-8_19"},{"key":"14_CR17","doi-asserted-by":"publisher","unstructured":"Galpin, V., Zon, N., Wilsdorf, P., Gilmore, S.: Mesoscopic modelling of pedestrian movement using carma and its tools. ACM Trans. Model. Comput. Simul. 28(2), 11:1\u201311:26 (2018). https:\/\/doi.org\/10.1145\/3155338","DOI":"10.1145\/3155338"},{"key":"14_CR18","series-title":"Lecture Notes in Computer Science","doi-asserted-by":"publisher","first-page":"353","DOI":"10.1007\/3-540-58021-2_20","volume-title":"Computer Performance Evaluation Modelling Techniques and Tools","author":"S Gilmore","year":"1994","unstructured":"Gilmore, S., Hillston, J.: The PEPA workbench: a tool to support a process algebra-based approach to performance modelling. In: Haring, G., Kotsis, G. (eds.) TOOLS 1994. LNCS, vol. 794, pp. 353\u2013368. Springer, Heidelberg (1994). https:\/\/doi.org\/10.1007\/3-540-58021-2_20"},{"issue":"4","key":"14_CR19","doi-asserted-by":"publisher","first-page":"589","DOI":"10.1007\/S10009-021-00633-Z","volume":"24","author":"C Hensel","year":"2022","unstructured":"Hensel, C., Junges, S., Katoen, J., Quatmann, T., Volk, M.: The probabilistic model checker storm. Int. J. Softw. Tools Technol. Transf. 24(4), 589\u2013610 (2022). https:\/\/doi.org\/10.1007\/S10009-021-00633-Z","journal-title":"Int. J. Softw. Tools Technol. Transf."},{"key":"14_CR20","series-title":"Lecture Notes in Computer Science","doi-asserted-by":"publisher","first-page":"167","DOI":"10.1007\/978-3-319-43425-4_12","volume-title":"Quantitative Evaluation of Systems","author":"J Hillston","year":"2016","unstructured":"Hillston, J., Loreti, M.: CARMA eclipse plug-in: a tool supporting design and analysis of collective adaptive systems. In: Agha, G., Van Houdt, B. (eds.) QEST 2016. LNCS, vol. 9826, pp. 167\u2013171. Springer, Cham (2016). https:\/\/doi.org\/10.1007\/978-3-319-43425-4_12"},{"key":"14_CR21","doi-asserted-by":"publisher","unstructured":"ter Hoeven, E., Kwakkel, J., Hess, V., Pike, T., Wang, B., Rht, Kazil, J.: Mesa 3: agent-based modeling with python in 2025. J. Open Source Softw. 10(109), 7668 (2025). https:\/\/doi.org\/10.21105\/JOSS.07668","DOI":"10.21105\/JOSS.07668"},{"key":"14_CR22","series-title":"Lecture Notes in Computer Science","doi-asserted-by":"publisher","first-page":"200","DOI":"10.1007\/3-540-46029-2_13","volume-title":"Computer Performance Evaluation: Modelling Techniques and Tools","author":"M Kwiatkowska","year":"2002","unstructured":"Kwiatkowska, M., Norman, G., Parker, D.: PRISM: probabilistic symbolic model checker. In: Field, T., Harrison, P.G., Bradley, J., Harder, U. (eds.) TOOLS 2002. LNCS, vol. 2324, pp. 200\u2013204. Springer, Heidelberg (2002). https:\/\/doi.org\/10.1007\/3-540-46029-2_13"},{"key":"14_CR23","doi-asserted-by":"publisher","unstructured":"Latella, D., Loreti, M., Massink, M.: On-the-fly PCTL fast mean-field approximated model-checking for self-organising coordination. Sci. Comput. Program. 110, 23\u201350 (2015). https:\/\/doi.org\/10.1016\/J.SCICO.2015.06.009","DOI":"10.1016\/J.SCICO.2015.06.009"},{"key":"14_CR24","series-title":"Lecture Notes in Computer Science","doi-asserted-by":"publisher","first-page":"303","DOI":"10.1007\/978-3-662-54580-5_18","volume-title":"Tools and Algorithms for the Construction and Analysis of Systems","author":"D Latella","year":"2017","unstructured":"Latella, D., Loreti, M., Massink, M.: FlyFast: a mean field model checker. In: Legay, A., Margaria, T. (eds.) TACAS 2017. LNCS, vol. 10206, pp. 303\u2013309. Springer, Heidelberg (2017). https:\/\/doi.org\/10.1007\/978-3-662-54580-5_18"},{"key":"14_CR25","doi-asserted-by":"publisher","unstructured":"van Lon, R.R.S., Holvoet, T.: Rinsim: a simulator for collective adaptive systems in transportation and logistics. In: Sixth IEEE International Conference on Self-Adaptive and Self-Organizing Systems, SASO 2012, Lyon, France, 10\u201314 September 2012, pp. 231\u2013232. IEEE Computer Society (2012). https:\/\/doi.org\/10.1109\/SASO.2012.41","DOI":"10.1109\/SASO.2012.41"},{"key":"14_CR26","unstructured":"Luke, S., Balan, G.C., Panait, L., Cioffi-Revilla, C., Paus, S.: Mason: a java multi-agent simulation library. In: Proceedings of Agent 2003 Conference on Challenges in Social Simulation, vol. 9 (2003)"},{"key":"14_CR27","series-title":"Lecture Notes in Computer Science","doi-asserted-by":"publisher","first-page":"152","DOI":"10.1007\/978-3-540-30206-3_12","volume-title":"Formal Techniques, Modelling and Analysis of Timed and Fault-Tolerant Systems","author":"O Maler","year":"2004","unstructured":"Maler, O., Nickovic, D.: Monitoring temporal properties of continuous signals. In: Lakhnech, Y., Yovine, S. (eds.) FORMATS\/FTRTFT -2004. LNCS, vol. 3253, pp. 152\u2013166. Springer, Heidelberg (2004). https:\/\/doi.org\/10.1007\/978-3-540-30206-3_12"},{"issue":"1","key":"14_CR28","doi-asserted-by":"publisher","first-page":"42","DOI":"10.1016\/J.TCS.2007.05.008","volume":"382","author":"RD Nicola","year":"2007","unstructured":"Nicola, R.D., Katoen, J., Latella, D., Loreti, M., Massink, M.: Model checking mobile stochastic logic. Theor. Comput. Sci. 382(1), 42\u201370 (2007). https:\/\/doi.org\/10.1016\/J.TCS.2007.05.008","journal-title":"Theor. Comput. Sci."},{"key":"14_CR29","doi-asserted-by":"publisher","unstructured":"Nicola, R.D., Loreti, M., Pugliese, R., Tiezzi, F.: A formal approach to autonomic systems programming: the SCEL language. ACM Trans. Auton. Adapt. Syst. 9(2), 7:1\u20137:29 (2014). https:\/\/doi.org\/10.1145\/2619998","DOI":"10.1145\/2619998"},{"key":"14_CR30","doi-asserted-by":"publisher","unstructured":"North, M.J., et al.: Complex adaptive systems modeling with repast simphony. Complex Adapt. Syst. Model 1, 3 (2013). https:\/\/doi.org\/10.1186\/2194-3206-1-3","DOI":"10.1186\/2194-3206-1-3"},{"issue":"3","key":"14_CR31","doi-asserted-by":"publisher","first-page":"202","DOI":"10.1057\/JOS.2012.27","volume":"7","author":"D Pianini","year":"2013","unstructured":"Pianini, D., Montagna, S., Viroli, M.: Chemical-oriented simulation of computational systems with ALCHEMIST. J. Simul. 7(3), 202\u2013215 (2013). https:\/\/doi.org\/10.1057\/JOS.2012.27","journal-title":"J. Simul."},{"key":"14_CR32","doi-asserted-by":"publisher","unstructured":"Pianini, D., Sebastio, S., Vandin, A.: Distributed statistical analysis of complex systems modeled through a chemical metaphor. In: 2014 International Conference on High Performance Computing & Simulation (HPCS), pp. 416\u2013423 (2014). https:\/\/doi.org\/10.1109\/HPCSim.2014.6903715","DOI":"10.1109\/HPCSim.2014.6903715"},{"key":"14_CR33","doi-asserted-by":"publisher","unstructured":"Reynolds, C.W.: Flocks, herds and schools: a distributed behavioral model. In: Stone, M.C. (ed.) Proceedings of the 14th Annual Conference on Computer Graphics and Interactive Techniques, SIGGRAPH 1987, Anaheim, California, USA, 27\u201331July 1987, pp. 25\u201334. ACM (1987). https:\/\/doi.org\/10.1145\/37401.37406","DOI":"10.1145\/37401.37406"},{"issue":"2","key":"14_CR34","doi-asserted-by":"publisher","first-page":"299","DOI":"10.1007\/S10707-018-00339-6","volume":"23","author":"P Taillandier","year":"2019","unstructured":"Taillandier, P., et al.: Building, composing and experimenting complex spatial models with the GAMA platform. GeoInformatica 23(2), 299\u2013322 (2019). https:\/\/doi.org\/10.1007\/S10707-018-00339-6","journal-title":"GeoInformatica"},{"key":"14_CR35","unstructured":"Tisue, S., Wilensky, U.: Netlogo: a simple environment for modeling complexity. In: International Conference on Complex Systems, vol. 21, pp. 16\u201321. Citeseer (2004)"},{"key":"14_CR36","doi-asserted-by":"publisher","unstructured":"Vandin, A.: Statistical model checking of python agent-based models: an integration of multivesta and mesa. In: Steffen, B. (ed.) Bridging the Gap Between AI and Reality - Second International Conference, AISoLA 2024, Crete, Greece, 30 October\u20133 November 2024, Proceedings. Lecture Notes in Computer Science, vol. 15217, pp. 398\u2013419. Springer, Heidelberg (2024). https:\/\/doi.org\/10.1007\/978-3-031-75434-0_26","DOI":"10.1007\/978-3-031-75434-0_26"}],"container-title":["Lecture Notes in Computer Science","Leveraging Applications of Formal Methods, Verification and Validation. Rigorous Engineering of Collective Adaptive Systems"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/link.springer.com\/content\/pdf\/10.1007\/978-3-032-40108-3_14","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2026,10,16]],"date-time":"2026-10-16T09:44:43Z","timestamp":1792143883000},"score":1,"resource":{"primary":{"URL":"https:\/\/link.springer.com\/chapter\/10.1007\/978-3-032-40108-3_14"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2026,10,16]]},"ISBN":["9783032401076","9783032401083"],"references-count":36,"URL":"https:\/\/doi.org\/10.1007\/978-3-032-40108-3_14","relation":{"is-part-of":[{"id-type":"doi","id":"https:\/\/doi.org\/10.1007\/978-3-032-40108-3","asserted-by":"object"}]},"ISSN":["0302-9743","1611-3349"],"issn-type":[{"value":"0302-9743","type":"print"},{"value":"1611-3349","type":"electronic"}],"subject":[],"published":{"date-parts":[[2026,10,16]]},"assertion":[{"value":"16 October 2026","order":1,"name":"first_online","label":"First Online","group":{"name":"ChapterHistory","label":"Chapter History"}},{"value":"ISoLA","order":1,"name":"conference_acronym","label":"Conference Acronym","group":{"name":"ConferenceInfo","label":"Conference Information"}},{"value":"International Symposium on Leveraging Applications of Formal Methods","order":2,"name":"conference_name","label":"Conference Name","group":{"name":"ConferenceInfo","label":"Conference Information"}},{"value":"Kos","order":3,"name":"conference_city","label":"Conference City","group":{"name":"ConferenceInfo","label":"Conference Information"}},{"value":"Greece","order":4,"name":"conference_country","label":"Conference Country","group":{"name":"ConferenceInfo","label":"Conference Information"}},{"value":"2026","order":5,"name":"conference_year","label":"Conference Year","group":{"name":"ConferenceInfo","label":"Conference Information"}},{"value":"24 October 2026","order":7,"name":"conference_start_date","label":"Conference Start Date","group":{"name":"ConferenceInfo","label":"Conference Information"}},{"value":"28 October 2026","order":8,"name":"conference_end_date","label":"Conference End Date","group":{"name":"ConferenceInfo","label":"Conference Information"}},{"value":"13","order":9,"name":"conference_number","label":"Conference Number","group":{"name":"ConferenceInfo","label":"Conference Information"}},{"value":"isola2026","order":10,"name":"conference_id","label":"Conference ID","group":{"name":"ConferenceInfo","label":"Conference Information"}},{"value":"https:\/\/2026-isola.isola-conference.org\/","order":11,"name":"conference_url","label":"Conference URL","group":{"name":"ConferenceInfo","label":"Conference Information"}}]}}