A microsimulation model of traffic described using the Modelica language in combination with the Modelica libraries developed by the authors, ABMLib and CellularAutomataLib2, is presented. Modelica facilitates the description of equation-based models using the physical modeling paradigm, and its combination with the discrete-event and agent-based modeling functionality of the developed libraries constitutes a powerful and versatile tool. The functionality of ABMLib is extended to facilitate the description of individual agent behavior as a combination of equation-based and discrete-event models. In this way, vehicle dynamics and fuel consumption are modeled using equations, while driver behavior is described using an agent-based model. Vehicles move along the road, which is described as a combination of interconnected segments that constitute the environment for the agents. A cellular automaton is used to model the CO2 emissions of vehicles to the environment. A model that represents two consecutive road segments with a semaphore between them is used to illustrate the provided functionality.
The registered version of this article, first published in Computing in Science & Engineering, is available online at the publisher's website: IEEEE https://doi.org/10.1109/MCSE.2023.3267327
Notas adicionales
La versión registrada de este artículo, publicado por primera vez en Computing in Science & Engineering, está disponible en línea en el sitio web del editor: IEEEE https://doi.org/10.1109/MCSE.2023.3267327