Daniel Stolfi's web page

Generating realistic urban traffic flows with evolutionary techniques

We present a novel approach for calculating realistic traffic flows for traffic simulators, called Flow Generator Algorithm (FGA). We start with an original map from OpenStreetMap and traffic data collected at different measurement points, published by the city’s authorities, to produce a model consisting of the simulation map and a series of traffic flows (routes + vehicles) which match the real number of vehicles at those streets. Our approach does not need a full dataset to calculate the flows. In fact, just a few measurement points indicating the number of vehicles in the analyzed time interval were used. This and the use of evolutionary algorithms for such a complex task make our proposal different from the studies found in literature. Despite the fact we have chosen the SUMO traffic simulator for our experiments, this idea can be easily adapted to others. We have tested our proposal on two geographical areas of the city of Malaga, comprising different map sizes, number of sensors and vehicles, and have achieved measurement values from the simulation that are closer to the real values, showing an error lower than 10%. Our algorithm, as well as the realistic scenarios generated by using it, can be used as the basis for other research approaches, especially those focused on road traffic optimization.

FGA Architecture
Architecture of the Flow Generator Algorithm (FGA)


Two case studies in Malaga, Spain, imported from OpenStreetMap into SUMO
Two case studies in Malaga, Spain, imported from OpenStreetMap into SUMO


  • Daniel H. Stolfi and Enrique Alba. Generating Realistic Urban Traffic Flows with Evolutionary Techniques. In: Engineering Applications of Artificial Intelligence, vol. 75, pp. 36-47, 2018. doi> 10.1016/j.engappai.2018.07.009
  • Daniel H. Stolfi and Enrique Alba. An Evolutionary Algorithm to Generate Real Urban Traffic Flows. In: Advances in Artificial Intelligence, volume 9422 of Lecture Notes in Computer Science, Springer International Publishing, 2015, pp. 332-343.
    doi> 10.1007/978-3-319-24598-0_30

Download Scripts and Problem Instances


This research is partially funded by the Spanish MINECO and FEDER projects TIN2014-57341-R (moveON), TIN2016-81766-REDT (CI-RTI), and TIN2017-88213-R (6city). Daniel H. Stolfi is supported by a FPU grant (FPU13/00954) from the Spanish Ministry of Education, Culture and Sports.


LA PAGINA DE DANIEL STOLFI - Version 5.09 - 1993-2024 - Cookies Policy
Creative Commons License