A Fast Embedded Language for Continuous-Time Agent-Based Simulation
Till Köster (),
Oliver Reinhardt (),
Martin Hinsch (),
Jakub Bijak () and
Adelinde M. Uhrmacher ()
Additional contact information
Till Köster: https://mosi.informatik.uni-rostock.de/team/staff/till-koester/
Oliver Reinhardt: https://mosi.informatik.uni-rostock.de/en/group/staff/reinhardt/
Martin Hinsch: https://www.gla.ac.uk/schools/healthwellbeing/staff/martinhinsch/
Jakub Bijak: https://www.southampton.ac.uk/socsci/about/staff/jb1d08.page
Adelinde M. Uhrmacher: https://mosi.informatik.uni-rostock.de/en/group/staff/uhrmacher/
Journal of Artificial Societies and Social Simulation, 2024, vol. 27, issue 1, 10
Abstract:
In agent-based simulation methods and applications, discrete timestep approaches prevail. To support continuous-time agent-based simulation, we analyze how methods for simulating population-based Con-tinu-ous-Time Markov Chains (CMTCs) can be adopted and derive implications for the concrete realization. To corroborate our findings, we develop an efficient internal domain-specific language (DSL) based on ML3, a modeling language for linked lives in demography. The design as an internal DSL, implemented within the Rust programming language, allows the modeler to exploit the complete feature set of the host language, such as data types and structures, when programming decision processes. A concise and expressive modeling of an agent's discrete decisions and behavior introducing exponentially distributed sojourn times can be supported by adapting the concept of guarded commands from population-based CTMCs. The execution of models relies on an optimized version of the direct method. This method is a variant of stochastic simulation algorithms, an established method for executing population-based CTMCs in other application areas, notably biochemistry. To efficiently handle the large set of possible transitions inherent to continuous-time agent-based models, we use a dependency graph whose updating scheme caters to the dynamic dependencies within agent-based models and the need for efficient implementation. The presented case studies include implementations of a continuous-time, agent-based migration model and a comparative performance study based on an extended SIR model of infection spread, allowing us to draw conclusions about the impact of different design choices on efficiency.
Keywords: Domain-Specific Language; Population-Based Models; Agent-Based Models; Continuous-Time Markov Chains; Simulation; Performance (search for similar items in EconPapers)
Date: 2024-01-31
References: Add references at CitEc
Citations:
Downloads: (external link)
https://www.jasss.org/27/1/10/10.pdf (application/pdf)
Related works:
This item may be available elsewhere in EconPapers: Search for items with the same title.
Export reference: BibTeX
RIS (EndNote, ProCite, RefMan)
HTML/Text
Persistent link: https://EconPapers.repec.org/RePEc:jas:jasssj:2023-2-2
Access Statistics for this article
More articles in Journal of Artificial Societies and Social Simulation from Journal of Artificial Societies and Social Simulation
Bibliographic data for series maintained by Francesco Renzini ().