# 微观交通仿真

微观交通仿真是一种计算方法，它逐辆建模道路网络上的每辆车，逐秒计算其位置、速度和驾驶决策，以再现交通流动力学。它处于三种粒度中最精细的一层：介观模型以中间细节层次表示交通，通过简化的聚合交互规则描述单个车辆、车辆包或车队，而不是完整的驾驶动力学；宏观模型则将交通视为由守恒定律支配的连续流，无法表示单个车辆之间的交互。<sup>[1](https://ops.fhwa.dot.gov/trafficanalysistools/tat_vol3/sectapp_a.htm)</sup> 平台包括Aimsun、TransModeler、SUMO、PTV VISSIM和[MATSim](https://www.edgepedia.org/zh/matsim)。<sup>[2](https://www.microsimulation.pub/articles/00342)</sup>

| 关键事实 | 细节 |
|---|---|
| 输出 | 逐车轨迹，包含加速、减速、换道和超车逻辑<sup>[1](https://ops.fhwa.dot.gov/trafficanalysistools/tat_vol3/sectapp_a.htm)</sup> |
| 核心纵向模型 | 跟驰规律，例如IDM，参数包括期望速度、车头时距、加速度和拥堵距离<sup>[3](https://mtreiber.de/publications/micro_tgf99.pdf)</sup> |
| 验证目标 | 超过85%的路段流量GEH小于5；超过85%的情况下仿真行程时间与观测值相差在15%以内<sup>[4](https://www.osti.gov/pages/servlets/purl/2584498)</sup> |
| 随机性 | 随机种子改变驾驶员-车辆抽样，因此不同运行之间结果会变化；需要预热和多次运行<sup>[5](https://www.txdot.gov/manuals/des/tsp/chapter-13-microsimulation-analysis/13-4-base-model-development.html)</sup> |
| 规模 | 基于GPU的仿真器在26分钟内完成24小时、2800万次出行的旧金山湾区（San Francisco Bay Area）场景<sup>[6](https://www.mdpi.com/2076-3417/15/13/6960)</sup> |
| 与介观模型的成本对比 | 在一项疏散研究中，微观分析耗费100小时计算，而介观分析仅需7.5分钟，两者结果相差在5%以内<sup>[7](https://rosap.ntl.bts.gov/view/dot/60302/dot_60302_DS1.pdf)</sup> |

## 工作原理

微观仿真器以固定时间步推进（SUMO默认为1秒，可通过--step-length设置<sup>[8](https://arxiv.org/html/2502.09561v1)</sup>），并对每辆车根据[跟驰模型](https://www.edgepedia.org/zh/car-following-model)计算纵向加速度，根据换道模型计算横向决策。跟驰被视为一种刺激-反应机制；自20世纪50年代初交通流理论创立以来，这一框架就被采用，并在[通用汽车](https://www.edgepedia.org/zh/general-motors)（General Motors）实验室进行了大量实验；大多数仿真软件包使用失效安全算法，维持受最大加速度和安全跟驰规则约束的目标车头时距。<sup>[1](https://ops.fhwa.dot.gov/trafficanalysistools/tat_vol3/sectapp_a.htm)</sup>

一种广泛使用的规律是智能驾驶员模型（Intelligent Driver Model，IDM），其中加速度是速度、净间距和接近率的连续函数：<sup>[3](https://mtreiber.de/publications/micro_tgf99.pdf)</sup>

\[ a_{\mathrm{IDM}} = a\left[1-\left(\frac{v}{v_{0}}\right)^{\delta}\right] - a\left(\frac{s^{*}}{s}\right)^{2} \]

其中期望间距为

\[ s^{*} = s_{0} + v \cdot T + \frac{v \cdot \Delta v}{2\sqrt{a \cdot b}} \]

参数包括期望速度 \(v_{0}\)、安全车头时距 \(T\)、最大加速度 \(a\)、舒适减速度 \(b\)、加速度指数 \(\delta\) 和最小拥堵距离 \(s_{0}\)。<sup>[3](https://mtreiber.de/publications/micro_tgf99.pdf)</sup> 间距方程将平衡项 \(s_{0} + v \cdot T\) 与实现“智能”制动策略的动态项 \(v \cdot \Delta v/(2\sqrt{a \cdot b})\) 分开；当更新步长低于0.5秒时，数值解基本上与步长无关。<sup>[9](https://www.imaginary.org/sites/default/files/trafficsimulation_documentation.pdf)</sup>

换道是间隙接受：若目标车道中的可用间隙超过其临界间隙，车辆便换道；换道类型包括强制换道、自由换道和预判换道。<sup>[1](https://ops.fhwa.dot.gov/trafficanalysistools/tat_vol3/sectapp_a.htm)</sup> 在MOBIL换道模型中，安全准则要求施加给新后车的制动减速度不超过限值 \(b_{\mathrm{safe}}\)，激励准则要求 \(a_{0,\mathrm{IDM}} > a_{\mathrm{IDM}} + \Delta a_{\mathrm{thr}} \pm \Delta a_{\mathrm{bias}}\)，其中偏置项偏向某一侧。<sup>[9](https://www.imaginary.org/sites/default/files/trafficsimulation_documentation.pdf)</sup> 路径选择要么是一次性随机选择，要么是朝动态用户均衡迭代分配；动态用户均衡是指没有驾驶员能通过改换路径缩短出行时间的状态。<sup>[10](https://bayen.berkeley.edu/sites/default/files/0e0284222cf7d2d690f1b277b970de8e3f61294a.pdf)</sup>

## 实施方法

模型构建始于路网编码：几何、冲突区域、期望速度决策、车辆类型和以辆/小时为单位的输入，以及路径决策；这些概念同样适用于Vissim、CORSIM、SUMO、Aimsun、TransModeler和SimTraffic。<sup>[5](https://www.txdot.gov/manuals/des/tsp/chapter-13-microsimulation-analysis/13-4-base-model-development.html)</sup> 需求既可以按交叉口转向百分比指定（这是历史上的做法），也可以按起讫点矩阵指定；该矩阵可由交通量计数、车牌匹配、驾驶员调查或区域[出行需求模型](https://www.edgepedia.org/zh/travel-demand-model)估计。基于矩阵的估计可实现真正的动态分配，并免去针对每个路网备选方案进行人工重新分配，代价是需要大量数据收集。<sup>[11](https://www.fhwa.dot.gov/publications/research/operations/13026/006.cfm)</sup>

车辆从入口节点按输入流量和假定的车头时距分布进入；随机模型利用随机数从统计分布中抽取驾驶员-车辆特征，因此改变种子会改变结果。<sup>[1](https://ops.fhwa.dot.gov/trafficanalysistools/tat_vol3/sectapp_a.htm)</sup> 预热期持续到进入车辆数大致等于驶出车辆数；在相互比较的模型之间保持随机种子一致，所需运行次数由初始运行的均值、标准差、t统计量和容许误差计算。<sup>[5](https://www.txdot.gov/manuals/des/tsp/chapter-13-microsimulation-analysis/13-4-base-model-development.html)</sup>

标定通常分两步：先基于车辆轨迹数据对个体行为参数进行解聚估计，再针对车头时距、速度和流量进行聚合微调，并形式化为一个最小化观测测量与仿真测量之间偏差的优化问题。<sup>[12](https://toledo.net.technion.ac.il/files/2016/02/ORCS_Springer_Yokohama_05.pdf)</sup>

验证使用独立指标：GEH、MAPE、RMSE、\(R^{2}\)、t检验、F检验和非参数检验。<sup>[7](https://rosap.ntl.bts.gov/view/dot/60302/dot_60302_DS1.pdf)</sup> 常见阈值是：超过85%的路段流量GEH小于5，且超过85%的情况下行程时间与观测值相差在15%以内。<sup>[4](https://www.osti.gov/pages/servlets/purl/2584498)</sup>

## 起源

基本关系（基本图）于20世纪30年代提出；微观模型和宏观模型于20世纪50年代同时出现。<sup>[13](https://diamhomes.ewi.tudelft.nl/~kvuik/papers/Wag15LVH.pdf)</sup> 宏观分支建立在莱特希尔（Lighthill）和惠特汉（Whitham）的运动波理论之上，该理论于1955年发表于《皇家学会学报A》（Proceedings of the Royal Society A）。<sup>[14](https://doi.org/10.1098/rspa.1955.0089)</sup> 在微观方面，刺激-反应跟驰模型在20世纪50年代末和60年代初迅速发展：钱德勒（Chandler）、赫尔曼（Herman）和蒙特罗尔（Montroll）于1958年在《运筹学》（Operations Research）上发表了跟驰研究；<sup>[15](https://doi.org/10.1287/opre.6.2.165)</sup> [罗伯特·赫尔曼](https://www.edgepedia.org/zh/robert-herman)（Robert Herman）及其同事于1959年分析了跟驰稳定性；<sup>[16](https://doi.org/10.1287/opre.7.1.86)</sup> 这些工作最终汇合为加齐斯（Gazis）、赫尔曼（Herman）和罗瑟里（Rothery）于1961年提出的GHR模型，该模型以相对速率作为刺激、以加速度作为反应。<sup>[17](https://doi.org/10.1287/opre.9.4.545)</sup> 佩恩（Payne）的FREFLO于1979年将宏观仿真扩展到高速公路。<sup>[18](https://journals.sagepub.com/doi/10.1177/095965180121500402)</sup> 在约二十年的沉寂之后，该领域于20世纪90年代初复兴，纳格尔（Nagel）和施雷肯贝格（Schreckenberg）的元胞自动机模型于1992年发表于《物理学杂志I》（Journal de Physique I），推动了这一复兴。<sup>[19](https://doi.org/10.1051/jp1:1992277)</sup> 达甘佐（Daganzo）1994年的[元胞传输模型](https://www.edgepedia.org/zh/cell-transmission-model)是一种离散宏观模型，是运动波理论的有限体积离散，具有流体动力学一致性。<sup>[20](https://doi.org/10.1016/0191-2615%2894%2990002-7)</sup> 大多数成熟的微观仿真平台都是在20世纪90年代发起的。<sup>[21](https://www.hindawi.com/journals/jat/2021/2444363/)</sup>

## 变体

**SUMO**（Simulation of Urban MObility）是一个开源微观连续仿真软件包；它能处理大型路网以及包括行人在内的多模式仿真。<sup>[22](https://sumo.dlr.de/userdoc/index.html)</sup> 其默认位置更新为一阶欧拉格式 \( \Delta x(t) = \Delta t \cdot v(t+\Delta t) \)，也可采用弹道格式。<sup>[23](https://elib.dlr.de/127994/1/08569938.pdf)</sup>

**PTV VISSIM**使用维德曼（Wiedemann）心理物理跟驰模型，其中驾驶员在由阈值作用点定义的四个状态（自由行驶、接近、跟随、制动）之间转换，并使用基于施帕曼（Sparmann）模型的换道模型。<sup>[24](https://doi.org/10.1016/j.heliyon.2024.e25936)</sup> **Aimsun Next**提供微观、介观和混合模式；在微观仿真中，每辆车的动作都在每个固定时间步计算，而其介观模式是事件驱动的，仅在路段起点和终点更新车辆。<sup>[25](https://docs.aimsun.com/next/22.0.1/UsersManual/VehicleBasedSimulatorsIntro.html)</sup> **TransModeler**内嵌通用汽车、Gipps、恒定时间间隔、IDM和Wiedemann 74/99跟驰模型。<sup>[21](https://www.hindawi.com/journals/jat/2021/2444363/)</sup>

**MATSim**使用基于队列的网络加载模型运行 \(10^{7}\) 个或更多智能体的微观仿真；该模型省略了计算代价高昂的跟驰行为，路段动态取决于存储容量和通行能力属性。<sup>[26](https://matsim.org/files/book/partOne-latest.pdf)</sup> **TRANSIMS**将7.5米元胞和1秒时间步的元胞自动机应用于涉及数百万出行者的区域规划。<sup>[27](https://ar5iv.labs.arxiv.org/html/cs/0105004)</sup>

## 应用

微观仿真用于智能交通系统（ITS）评估和安全研究；在这些研究中，车头时距分布、紧急制动频率和换道次数比聚合指标提供更多信息。<sup>[12](https://toledo.net.technion.ac.il/files/2016/02/ORCS_Springer_Yokohama_05.pdf)</sup> 基于车辆的仿真器可以测试自适应控制系统，包括SCATS、VS-PLUS、UTOPIA以及带SCOOT的西门子UTC（Siemens UTC），还可测试公交优先、匝道控制和排放估算。<sup>[25](https://docs.aimsun.com/next/22.0.1/UsersManual/VehicleBasedSimulatorsIntro.html)</sup> 对于网联与自动驾驶车辆测试，SUMO的开源特性使其成为受青睐的联合仿真平台。<sup>[21](https://www.hindawi.com/journals/jat/2021/2444363/)</sup>

## 局限与替代方案

微观模型可能比宏观模型更准确，但使用更多需要标定的参数，其中大多数参数（例如最小跟驰距离）无法在实地直接观测。<sup>[1](https://ops.fhwa.dot.gov/trafficanalysistools/tat_vol3/sectapp_a.htm)</sup> 标定后的参数可能与已发表的默认值相差很大：在一个城市路网中，SUMO标定后的克劳斯（Krauss）参数与最初提出的值和SUMO默认值都相差很大。<sup>[28](http://transportproblems.polsl.pl/pl/Archiwum/2010/zeszyt4/2010t5z4_04.pdf)</sup> [随机](https://www.edgepedia.org/zh/stochastic)种子敏感性是固有的；在一个介观模型中，种子约占输出方差的10%。<sup>[7](https://rosap.ntl.bts.gov/view/dot/60302/dot_60302_DS1.pdf)</sup> 软件版本也很重要：基于跟驰算法的不同Vissim版本之间存在相当大的差异，因此在一个项目中应保持版本一致。<sup>[5](https://www.txdot.gov/manuals/des/tsp/chapter-13-microsimulation-analysis/13-4-base-model-development.html)</sup>

规模扩展制约着大型路网，因为模型开发时间和计算需求可能高得令人却步。<sup>[7](https://rosap.ntl.bts.gov/view/dot/60302/dot_60302_DS1.pdf)</sup> GPU并行化改变了这一局面：基于CUDA的ParSim使用IDM和先进先出队列交叉口算法，在40秒内完成了包含100万次出行的24小时博洛尼亚（Bologna）场景，并在26分钟内完成了包含2800万次出行的24小时[旧金山湾区](https://www.edgepedia.org/zh/san-francisco-bay-area)（San Francisco Bay Area）场景，比SUMO快最多5000倍，同时产生相近的速度和等待时间。<sup>[6](https://www.mdpi.com/2076-3417/15/13/6960)</sup> 机器学习驾驶员模型正作为物理规律的替代方案出现；2025年的一项系统综述指出，可迁移性、基准数据集和可解释性仍是尚待解决的问题。<sup>[29](https://www.sciopen.com/article/10.1016/j.commtr.2025.100164)</sup>

## References

1. [Traffic Analysis Toolbox Volume III: Guidelines for Applying Traffic Microsimulation Modeling Software (FHWA)](https://ops.fhwa.dot.gov/trafficanalysistools/tat_vol3/sectapp_a.htm)
2. [Methodological Foundations of the Traffic Simulation Process (International Journal of Microsimulation)](https://www.microsimulation.pub/articles/00342)
3. [Microscopic Simulation of Congested Traffic (Treiber, Hennecke, Helbing)](https://mtreiber.de/publications/micro_tgf99.pdf)
4. [Developing An Automated Microscopic Traffic Simulation Scenario Generation Tool (RealTwin, OSTI)](https://www.osti.gov/pages/servlets/purl/2584498)
5. [Traffic and Safety Analysis Procedures Manual, Chapter 13: Base Model Development (TxDOT)](https://www.txdot.gov/manuals/des/tsp/chapter-13-microsimulation-analysis/13-4-base-model-development.html)
6. [An Efficient Parallelization of Microscopic Traffic Simulation (ParSim, Applied Sciences, 2025)](https://www.mdpi.com/2076-3417/15/13/6960)
7. [Methodology for Calibration and Validation of Mesoscopic Traffic Simulation Models (BTS/ROSAP)](https://rosap.ntl.bts.gov/view/dot/60302/dot_60302_DS1.pdf)
8. [Enhancing Traffic Safety Analysis with Digital Twin Technology (ORNL, arXiv)](https://arxiv.org/html/2502.09561v1)
9. [Interactive Traffic Simulation (traffic-simulation.de documentation)](https://www.imaginary.org/sites/default/files/trafficsimulation_documentation.pdf)
10. [Creating, Calibrating, and Validating Large-Scale Microscopic Traffic Simulation (Cabannes et al., UC Berkeley)](https://bayen.berkeley.edu/sites/default/files/0e0284222cf7d2d690f1b277b970de8e3f61294a.pdf)
11. [Chapter 5. Base Model Development, FHWA-HRT-13-026 (March 2014)](https://www.fhwa.dot.gov/publications/research/operations/13026/006.cfm)
12. [Microscopic Traffic Simulation (MITSIMLab; Ben-Akiva, Koutsopoulos, Toledo; Springer ORCS)](https://toledo.net.technion.ac.il/files/2016/02/ORCS_Springer_Yokohama_05.pdf)
13. [Genealogy of traffic flow models (van Wageningen-Kessels et al.)](https://diamhomes.ewi.tudelft.nl/~kvuik/papers/Wag15LVH.pdf)
14. [Michael James Lighthill, Gerald Beresford Whitham (1955). On kinematic waves II. A theory of traffic flow on long crowded roads. Proceedings of the Royal Society of London A Mathematical and Physical Sciences.](https://doi.org/10.1098/rspa.1955.0089)
15. [Robert E. Chandler, Robert Herman, Elliott W. Montroll (1958). Traffic Dynamics: Studies in Car Following. Operations Research.](https://doi.org/10.1287/opre.6.2.165)
16. [Robert Herman and colleagues (1959). Traffic Dynamics: Analysis of Stability in Car Following. Operations Research.](https://doi.org/10.1287/opre.7.1.86)
17. [Denos C. Gazis, Robert Herman, Richard W. Rothery (1961). Nonlinear Follow-the-Leader Models of Traffic Flow. Operations Research.](https://doi.org/10.1287/opre.9.4.545)
18. [State-of-the-art of vehicular traffic flow modelling (Hoogendoorn & Bovy, Proc. IMechE)](https://journals.sagepub.com/doi/10.1177/095965180121500402)
19. [Kai Nagel, Michael Schreckenberg (1992). A cellular automaton model for freeway traffic. Journal de Physique I.](https://doi.org/10.1051/jp1:1992277)
20. [The cell transmission model: A dynamic representation of highway traffic consistent with the hydrodynamic theory (Transportation Research Part B Methodological, 1994)](https://doi.org/10.1016/0191-2615%2894%2990002-7)
21. [Evolution of Traffic Microsimulation and Its Use for Modeling Connected and Automated Vehicles (Raju et al., Journal of Advanced Transportation, 2021)](https://www.hindawi.com/journals/jat/2021/2444363/)
22. [SUMO User Documentation](https://sumo.dlr.de/userdoc/index.html)
23. [Microscopic Traffic Simulation using SUMO (IEEE ITSC 2018, via DLR repository)](https://elib.dlr.de/127994/1/08569938.pdf)
24. [Review of driving-behaviour simulation: VISSIM and artificial intelligence approach (Heliyon, 2024)](https://doi.org/10.1016/j.heliyon.2024.e25936)
25. [Vehicle based Simulators - Aimsun Next Users Manual](https://docs.aimsun.com/next/22.0.1/UsersManual/VehicleBasedSimulatorsIntro.html)
26. [The Multi-Agent Transport Simulation (MATSim book, Part One)](https://matsim.org/files/book/partOne-latest.pdf)
27. [Parallel implementation of the TRANSIMS micro-simulation (Nagel & Rickert)](https://ar5iv.labs.arxiv.org/html/cs/0105004)
28. [A Comparison of Microscopic Traffic Flow Simulation Systems for an Urban Area (M. Maciejewski, Transport Problems, 2010)](http://transportproblems.polsl.pl/pl/Archiwum/2010/zeszyt4/2010t5z4_04.pdf)
29. [A systematic review of machine learning-based microscopic traffic flow models and simulations (Communications in Transportation Research, 2025)](https://www.sciopen.com/article/10.1016/j.commtr.2025.100164)

---
*Initially written Sep 29, 2026 · Edited: Oct 15, 2026*

Topic: 技术与人造世界 › 计算技术与数字系统 › 人工智能与数据 › Algorithms and computational methods

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/microscopic-traffic-simulation

English original: https://www.edgepedia.org/microscopic-traffic-simulation
