Visualising Real Time Large Scale Micro-Simulation of Transport Networks
.
Peter Heywood, Paul Richmond & Steve Maddock
Department of Computer Science, The University of Sheffield
Visualising Real Time Large Scale Micro-Simulation of Transport - - PowerPoint PPT Presentation
Visualising Real Time Large Scale Micro-Simulation of Transport Networks . Peter Heywood, Paul Richmond & Steve Maddock Department of Computer Science, The University of Sheffield Overview . Introduction Road Traffic Network Simulation
Department of Computer Science, The University of Sheffield
Heywood P., Richmond P. & Maddock S.
Rush hour traffic on the M motorway (Mat Fascione - CC BY-SA .)
Heywood P., Richmond P. & Maddock S.
An example of traffic microsimulation visualisation (sumo-gui)
Heywood P., Richmond P. & Maddock S.
Heywood P., Richmond P. & Maddock S.
Heywood P., Richmond P. & Maddock S.
N = 3 N = 4 N = 5
Heywood P., Richmond P. & Maddock S.
Nvidia Tesla C (Source - CC .) CC .
Heywood P., Richmond P. & Maddock S.
Heywood P., Richmond P. & Maddock S.
Heywood P., Richmond P. & Maddock S.
Heywood P., Richmond P. & Maddock S.
Heywood P., Richmond P. & Maddock S.
Host Device
Initial Agent Data
FLAME GPU simulation
Agent Data
Instanced Rendering
.obj model file
T exture Buffers
TBO1 TBO2 ... n ... 1 Model VBOs
PCI Bus
Instanced rendering memory transfers
Heywood P., Richmond P. & Maddock S.
Heywood P., Richmond P. & Maddock S.
28 29 210 211 212 213 214 215 216 217 218 Number of Agents 10−1 100 101 102 103 104 Simulation time (ms) per iteration Non Partitioned Messaging Spatially Partitioned (radius = 5000m) Spatially Partitioned (radius = 2500m) Spatially Partitioned (radius = 250m)
Performance comparison between FLAME GPU message partitioning schemes
Heywood P., Richmond P. & Maddock S.
Heywood P., Richmond P. & Maddock S.
Heywood P., Richmond P. & Maddock S.
Heywood P., Richmond P. & Maddock S.
τ − bn[[xn−(t) − sn− − xn(t)] − vn(t)τ − vn−(t)/ˆ
an the maximum acceleration of vehicle n bn the most severe braking that the vehicle n will undertake sn the effective size of vehicle n, including a margin 1n the target speed of vehicle n xn(t) the location of the front of vehicle n at time t vn(t) the speed of vehicle n at time t τ constant reaction time for all vehicles ˆ b estimate of leading vehicles most severe braking
5 10 15 20 25 t 5 10 15 20 25 vn(t + τ)
Free-flow and Braking components of Gipps’ Car Following Model
Free-flow Component (Vn = 15, vn(0) = 0) Braking Component (Vn−1 = 10, xn−1(t) = 50)
Heywood P., Richmond P. & Maddock S.
28 29 210 211 212 213 214 215 216 217 218 Number of Agents 10−1 100 101 102 103 104 Simulation time (ms) per iteration Non Partitioned Messaging Spatially Partitioned (radius = 5000m) Spatially Partitioned (radius = 2500m) Spatially Partitioned (radius = 250m)
Heywood P., Richmond P. & Maddock S.
28 29 210 211 212 213 214 215 216 217 218 Number of Agents 10−5 10−4 10−3 10−2 10−1 Simulation time (ms) per agent per iteration Non Partitioned Spatially Partitioned (radius = 5000m) Spatially Partitioned (radius = 2500m) Spatially Partitioned (radius = 250m)
Non-partitioned
Partitioned Messaging r = 250 100 200 300 400 500 600 700 800 Average Kernel Time (ms) Average Kernel Execution Times inputdata
reorder location messages hist location messages
Non-partitioned Partitioned r = 5000Partitioned r = 2500 Partitioned r = 250 Message Partitioning Scheme 20000 40000 60000 80000 100000 120000 Average Kernel Time (ms) Average inputdata Kernel Execution Time inputdata Non-partitioned Partitioned r = 5000Partitioned r = 2500 Partitioned r = 250 Message Partitioning Scheme 10 20 30 40 50 Average Kernel Time (ms) Average outputdata Kernel Execution Time
Heywood P., Richmond P. & Maddock S.
512 (N=2) 3072 (N=4) 7680 (N=6) 14336 (N=8) 23040 (N=10) 33792 (N=12) 46592 (N=14) 61440 (N=16) 78336 (N=18) 97280 (N=20) 118272 (N=22) 141312 (N=24) Number of Agents & Grid Size 10−1 100 101 102 103 104 Simulation time (ms) per iteration
Average iteration execution time for increasing Grid Size N with a fixed vehicle density of 64 agents per 1000m
Non Partitioned Messaging Spatially Partitioned Messaging (radius = 500m) Spatially Partitioned Messaging (radius = 250m)
Heywood P., Richmond P. & Maddock S.
[CPM] Ciuffo B., Punzo 3., Montanino M.:
Thirty years of gipps’ car-following model. Transportation Research Record: Journal of the Transportation Research Board , (), –.
[Dep] Department for Transport:
Road traffic forecasts 5. https://www.gov.uk/government/uploads/system/uploads/attachment_data/file// road-transport-forecasts--extended-version.pdf, Mar. .
[Gip] Gipps P. G.:
A behavioural car-following model for computer simulation. Transportation Research Part B: Methodological , (), –.
[HRM] Heywood P., Richmond P., Maddock S.:
Road network simulation using flame gpu. In Euro-Par : Parallel Processing 2orkshops, Lecture Notes in Computer Science. . forthcoming.
[Khr] Khronos Group:
OpenGL SDK glDrawArraysInstanced manpage. https://www.opengl.org/sdk/docs/man/html/glDrawArraysInstanced.xhtml.
[Khr] Khronos Group:
GL_ARB_draw_instanced specification. https://www.opengl.org/registry/specs/ARB/draw_instanced.txt, . Last accessed --. Heywood P., Richmond P. & Maddock S.
[Khr] Khronos Group:
OpenGl SDK - texelFetch. https://www.opengl.org/sdk/docs/man/html/texelFetch.xhtml, . Last accessed --.
[NFN∗] Neffendorf H., Fletcher G., North R., 4orsley T., Bradley R.:
Modelling for intelligent mobility. https://ts.catapult.org.uk/documents///Modelling+Intelligent+Mobility,+Feb+/ bcf-da-fca-adf-eedb, Feb. .
[Nvi] Nvidia C.:
Cuda c programming guide. http://docs.nvidia.com/cuda/pdf/CUDA_C_Programming_Guide.pdf, Mar. . Last accessed --.
[Ric] Richmond P.:
FLAME GPU technical report and user guide.
[Ric] Richmond P.:
Resolving conflicts between multiple competing agents in parallel simulations. In Euro-Par : Parallel Processing 2orkshops, Lopes L., Žilinskas J., Costan A., Cascella R., Kecskemeti G., Jeannot E., Cannataro M., Ricci L., Benkner S., Petit S., Scarano 3., Gracia J., Hunold S., Scott S., Lankes S., Lengauer C., Carretero J., Breitbart J., Alexander M., (Eds.), vol. of Lecture Notes in Computer Science. Springer International Publishing, , pp. –.
[SDL] Simple DirectMedia Layer (libSDL).
https://www.libsdl.org/. Heywood P., Richmond P. & Maddock S.
[SN] Strippgen D., Nagel K.:
Multi-agent traffic simulation with cuda. In High Performance Computing & Simulation, 9. HPCS’9. International Conference on (), IEEE, pp. –.
[SYGD] Sommer C., Yao Z., German R., Dressler F.:
On the need for bidirectional coupling of road traffic microsimulation and network simulation. In Proceedings of the st ACM SIGMOBILE workshop on Mobility models (), ACM, pp. –.
[UK ] UK Department for Transport:
Quarterly Road Traffic Estimates: Great Britain Quarter 4 (October - December) 4. https: //www.gov.uk/government/uploads/system/uploads/attachment_data/file//road-traffic-estimates-quarter--.pdf, Feb. .
[4S] 4ang K., Shen Z.:
A gpu based trafficparallel simulation module of artificial transportation systems. In Service Operations and Logistics, and Informatics (SOLI), IEEE International Conference on (), IEEE, pp. –. Heywood P., Richmond P. & Maddock S.