Publications

Back to Peer-reviewed journal papers

Discontinuous-Galerkin-Based Analysis of Traffic Flow Model Connected with Multi-Agent Traffic Model

Authors
R. Okuyama, N. Mitsume, H. Fujii, H. Uchida†
Published in
Computer Modeling in Engineering and Sciences
Volume, pages
Vol.128, No.3, pp.949–965
Year
2021
Type
Peer-reviewed journal papers
Link
https://doi.org/10.32604/cmes.2021.015773
Topics
Finite element method Multiscale and composite materials Traffic and pedestrian flow Fluid dynamics
Keywords
Discontinuous Galerkin finite element method Traffic flow Multi-agent traffic model Connection of microscopic and macroscopic models Multiscale modeling Payne–Whitham model Generalized force model Generating/absorbing sponge layer Conservation of the number of vehicles Macroscopic traffic-flow model
グラフィカルアブストラクト
グラフィカルアブストラクト

概要

自動車の数が増え続けるにつれて、交通渋滞は深刻な社会問題になっています。その緩和のために、広域の道路網の交通量を最適化する方法が検討されており、そうした方策を前もって調べる手段として、交通流シミュレーションが注目されています。交通流のモデルには、車両を 1 台ずつ表す微視的モデル、交通流の全体を車両の平均の密度と速度で表す巨視的モデル、両者の特徴を併せもつメソスコピックモデルとハイブリッド(マルチスケール)モデルがあります。交通流シミュレーションはさまざまな条件で繰り返し行うので、巨視的モデルの計算の速さと、微視的モデルの詳しい表現の両方が必要になります。

本論文は、渋滞のボトルネックなどの局所的な現象を含む部分領域を詳しく調べる微視的モデルと、広い範囲を少ない計算コストで計算する巨視的モデルを組み合わせた、マルチスケール交通流モデルを提案しています。微視的モデルは追従モデルの一種である一般化力モデル(GFM)、巨視的モデルは非平衡の交通流モデルである Payne–Whitham(PW)モデルです。不連続があっても頑健で安定に解けるように、PW モデルは不連続ガラーキン有限要素法(DGFEM)で離散化し、流入と流出の領域には、浅水の長波の数値解析で広く使われている生成・吸収スポンジ層を使います。2 つのモデルは、巨視的モデルから接続点で流れ出る車両の台数を、微視的モデルで発生させる車両に変えることでつなぎます。

1 本の道路(巨視的モデル 20 km、微視的モデル 500 m)で 10 時間の交通を計算した例で、巨視的モデルから流れ出た車両の台数は、微視的モデルに流れ込んだ車両の台数と一致しました(流出の台数が流入の台数より ee だけ多く、0≤e≤10 \leq e \leq 1)。密度は 2 つのモデルの境界で連続でしたが、微視的モデルの側に小さな変動があり、密度は完全には一致しませんでした。論文は、その原因が、2 つのモデルで交通量と密度の関係が同じでないことにある可能性を挙げています。計算時間は 36.54 s で、微視的モデルだけを使った場合(オフライン計算)の 652.34 s より 615.80 s 短くなりました。論文は、提案手法が、PW モデルと GFM 以外の巨視的モデルと微視的モデルの組み合わせにも使える可能性があると述べています。

重要点

1. 広い範囲を巨視的モデル、局所を微視的モデルで計算するマルチスケール交通流モデル

交通流のモデルは、すべての車両の動きを個別に追う微視的モデルと、車両の密度に着目して流体力学の方法を使う巨視的モデルに大きく分けられます。微視的モデルは非常に詳しい結果を得られますが計算コストが高く、広い範囲の交通流を再現するには膨大な計算時間がかかります。巨視的モデルは個々の車両を表しませんが、広い範囲でも比較的短い時間で計算できます。個々の車両と運転者のパラメータは正確に測れないので、交通流シミュレーションは乱数を取り入れ、乱数の種を変えて何度も繰り返す必要があり、1 回の計算は短い時間で終わらなければなりません。また、交通渋滞は、合流部、サグ、信号などのボトルネックになる区間でよく起こります。これらの課題から、特定の部分領域を微視的モデル、ほかの領域を巨視的モデルで計算するマルチスケールモデルが提案されてきました。

論文によれば、マルチスケール交通流モデルのこれまでの研究は、2 つのモデルの間で結果を受け渡す変換式と数学的な証明を示すことにとどまり、交通工学の観点からの検証や実際の状況への応用はされていませんでした。また、Garavello らのモデルは巨視的な領域に平衡モデル(速度が密度だけで一意に決まるモデル)を使っていて、現実的な交通流を再現できません。Lattanzio らのモデルは非平衡モデルを使っていますが、その安定性の改善は今後の課題とされていました。

本論文は、微視的(マルチエージェント)モデルとして、追従モデルである Helbing らの一般化力モデル(GFM)を、巨視的モデルとして、非平衡の交通流モデルである Payne–Whitham(PW)モデルを組み合わせます。PW モデルは、車両の総数の保存を表す連続の式に、速度の変化の速さを表す偏微分方程式を加えたモデルで、その平衡速度には Greenshields らの式を使います。論文は、このモデルの利点として、次の点を挙げています。

  • 微視的モデルを局所の部分領域だけに使い、広い範囲を巨視的モデルで計算することで、計算コストを減らせる。
  • 密度の分布による連続体の表現と、エージェントによる表現の間では自明でない、ミクロとマクロの境界での車両の台数の保存が保証される。
  • 巨視的モデルを DGFEM で計算するので、要素(道路の区間)ごとに任意の次数の多項式を使え、量の保存も保証される。これは、既存のマルチスケールモデルの研究で使われているセル・トランスミッション法(CTM)の理論的な拡張に当たる。

2. 生成・吸収スポンジ層で流入と流出の境界条件を与える

流入と流出の境界条件を与えるために、論文は、浅水方程式の数値計算で広く使われている生成・吸収スポンジ層のモデルを使います。PW モデルの式の代わりに、次の式を解きます。

∂ρ∂t+∂q∂x=s1in+s1out(8)\frac{\partial \rho}{\partial t} + \frac{\partial q}{\partial x} = s_1^{\mathrm{in}} + s_1^{\mathrm{out}} \tag{8} ∂q∂t+∂∂x(q2ρ+c02ρ)=1τ(ρV(ρ)−q)+s2in+s2out(9)\frac{\partial q}{\partial t} + \frac{\partial}{\partial x} \left( \frac{q^2}{\rho} + c_0^2 \rho \right) = \frac{1}{\tau} \left( \rho V(\rho) - q \right) + s_2^{\mathrm{in}} + s_2^{\mathrm{out}} \tag{9}

ここで、ρ\rho は車両の密度、vv は速度、q=ρvq = \rho v は交通量(流量)、tt は時刻、xx は道路に沿う位置、V(ρ)V(\rho) は平衡速度、τ\tau は速度が平衡速度に近づく速さを決める時間の定数、c0c_0 は速度の次元をもつ定数です。s1ins_1^{\mathrm{in}} と s2ins_2^{\mathrm{in}} は流入の境界条件のために加えた項、s1outs_1^{\mathrm{out}} と s2outs_2^{\mathrm{out}} は流出の境界条件のための項で、次のように定義します。

s1in=χin(ρin−ρ),s2in=χin(qin−q)(10)s_1^{\mathrm{in}} = \chi^{\mathrm{in}} \left( \rho^{\mathrm{in}} - \rho \right), \quad s_2^{\mathrm{in}} = \chi^{\mathrm{in}} \left( q^{\mathrm{in}} - q \right) \tag{10} s1out=χout(ρout−ρ),s2out=χout(qout−q)(11)s_1^{\mathrm{out}} = \chi^{\mathrm{out}} \left( \rho^{\mathrm{out}} - \rho \right), \quad s_2^{\mathrm{out}} = \chi^{\mathrm{out}} \left( q^{\mathrm{out}} - q \right) \tag{11} χin(x)=winc0Δt{lin−(x−xL)lin}2(xL≤x≤xL+lin)(12)\chi^{\mathrm{in}}(x) = w^{\mathrm{in}} \frac{c_0}{\Delta t} \left\{ \frac{l^{\mathrm{in}} - (x - x_L)}{l^{\mathrm{in}}} \right\}^2 \quad \left( x_L \leq x \leq x_L + l^{\mathrm{in}} \right) \tag{12} χout(x)=woutc0Δt{lout−(xR−x)lout}2(xR−lout≤x≤xR)(13)\chi^{\mathrm{out}}(x) = w^{\mathrm{out}} \frac{c_0}{\Delta t} \left\{ \frac{l^{\mathrm{out}} - (x_R - x)}{l^{\mathrm{out}}} \right\}^2 \quad \left( x_R - l^{\mathrm{out}} \leq x \leq x_R \right) \tag{13}

ここで、ρin\rho^{\mathrm{in}} と qinq^{\mathrm{in}} は流入の境界で与える密度と流量、ρout\rho^{\mathrm{out}} と qoutq^{\mathrm{out}} は流出の境界で与える密度と流量、xLx_L と xRx_R は流入と流出の境界の位置、linl^{\mathrm{in}} と loutl^{\mathrm{out}} は流入と流出の境界の層の長さ、winw^{\mathrm{in}} と woutw^{\mathrm{out}} は層の効き方を調整するパラメータ、Δt\Delta t は時間刻みです。式 (10)、(11) の項は、密度と交通量を、与えた値との差に比例して補正します。係数 χin\chi^{\mathrm{in}} と χout\chi^{\mathrm{out}} は、境界で最も大きく、層の内側の端で 0 になります(図 1)。

スポンジ層と、対応する χ の値の模式図
図 1 スポンジ層と、対応する χ\chi の値の模式図。左の層が流入の境界 xLx_L、右の層が流出の境界 xRx_R にあります。出典:原論文 Fig. 1(CC BY 4.0)。

3. PW モデルを不連続ガラーキン有限要素法で離散化する

論文は、式 (8)、(9) を DGFEM で離散化します。DGFEM は、図 2 のように要素の間で解の不連続を許す方法で、有限要素法と有限体積法の両方の拡張とみなせます。要素の中では Lagrange 多項式で解を補間し、要素の境界では、Riemann 問題を解いて決める数値流束を使います。

式 (8)、(9) は、密度 ρ\rho と交通量 qq からなる未知数についての発散形の式(式 (14))にまとめられます。各要素で、この未知数を次のように近似します。

hu(x)=∑i=1Nuiψi(x)(15){}^{h}\boldsymbol{u}(x) = \sum_{i=1}^{N} \boldsymbol{u}_i \psi_i(x) \tag{15}

ここで、hu(x){}^{h}\boldsymbol{u}(x) は要素の中の近似解、ui\boldsymbol{u}_i は節点の値、ψi\psi_i は形状関数(i=1,…,Ni = 1, \ldots, N)、NN は各要素の節点の数です。形状関数には、正規化した空間 ξ∈(−1,1)\xi \in (-1, 1) で定義した N−1N-1 次の Lagrange 多項式を使います(式 (16)、(17))。

各要素で、式 (14) に形状関数をかけて要素の中で積分し、重み付き残差式(式 (18))を得ます。その境界の項には数値流束を使い、数値流束は、要素の内側の値 hue+{}^{h}\boldsymbol{u}_e^{+} と外側の値 hue−{}^{h}\boldsymbol{u}_e^{-} から局所 Lax–Friedrichs 流束で決めます(図 2)。式 (15) を式 (18) に代入すると要素ごとの線形方程式(式 (20))が得られ、これを陽的 Euler 法で時間積分します(式 (23))。

不連続ガラーキン法での u の分布
図 2 不連続ガラーキン法での uu の分布。要素 ee(xLex_L^e から xRex_R^e まで)の近似解は、両端で、要素の内側(+)と外側(−)とで違う値をとります。出典:原論文 Fig. 2(CC BY 4.0)。

4. 巨視的モデルから流れ出る車両を、微視的モデルで発生させる

各時間ステップに PW モデルの流出口を通る車両の台数は、2 つの方法で計算できます。1 つは、流出口のスポンジ層の項を時間で積分する方法(式 (24))ですが、この方法では、流れ出る車両の位置と速度を一意に決めにくくなります。そこで論文は、スポンジ層の上流の点 xconx^{\mathrm{con}} に接続の領域を置きます(図 3)。nn 番目の時間ステップに流れ出る車両の台数 CnC^n は、その点の交通量 qconq^{\mathrm{con}} の時間積分で決まり、その点の速度 vconv^{\mathrm{con}} は、qconq^{\mathrm{con}} と密度 ρcon\rho^{\mathrm{con}} から決まります。

Cn=∫nΔt(n+1)Δtqcon dt≃qconΔt(25)C^n = \int_{n\Delta t}^{(n+1)\Delta t} q^{\mathrm{con}} \, dt \simeq q^{\mathrm{con}} \Delta t \tag{25} vcon=qconρcon(26)v^{\mathrm{con}} = \frac{q^{\mathrm{con}}}{\rho^{\mathrm{con}}} \tag{26}

ここで、Δt\Delta t は PW モデルの時間刻み、nn は時間ステップの番号です。

GFM では、PW モデルより小さい時間刻みを使います。(Δt)NE=M(Δt)AG(\Delta t)^{\mathrm{NE}} = M (\Delta t)^{\mathrm{AG}} で、(Δt)NE(\Delta t)^{\mathrm{NE}} と (Δt)AG(\Delta t)^{\mathrm{AG}} はそれぞれ PW モデルと GFM の時間刻みです。このため、PW モデルが 1 ステップ進む間に、GFM の計算を MM 回行います。nn 番目の時間ステップまでに流れ出た車両の台数の累計は、次のとおりです。

Ctotaln=∑i=1nCi(27)C^n_{\mathrm{total}} = \sum_{i=1}^{n} C^i \tag{27}

ここで、CiC^i は ii 番目の時間ステップに流れ出た車両の台数です。任意の時刻 tt の累計 C(t)C(t) は、CtotaliC^i_{\mathrm{total}} の値を区分線形補間して定義します。GFM の各ステップで GFM に発生させる車両の台数は、そのステップの時刻の C(t)C(t) から、それまでに GFM で発生させた車両の台数の合計を引いた値を、整数に切り捨てたものです(式 (29))。

Payne–Whitham モデルと一般化力モデルの接続
図 3 Payne–Whitham モデルと一般化力モデルの接続。接続点 xconx^{\mathrm{con}} で流れ出る車両を、微視的モデルで発生させます。巨視的モデルのスポンジ層は xconx^{\mathrm{con}} の下流にあります。出典:原論文 Fig. 3(CC BY 4.0)。

数値実験の結果

計算の条件(1 本の道路、10 時間)

GFM には、Helbing らが示した最適なパラメータの値を、すべての計算で使います(原論文 Table 1)。

パラメータ 値
dnd_n:最小の車間距離 1.38 [m]
τn\tau_n:加速の時間 2.45 [s]
τn′\tau'_n:減速の時間 0.77 [s]
TnT_n:安全な車頭時間 0.74 [s]
RnR_n:加速の相互作用の範囲 5.59 [m]
Rn′R'_n:減速の相互作用の範囲 98.78 [m]

次の条件で、36000 s(10 時間)のマルチスケールの計算を行います(原論文 Table 2)。巨視的モデルの時間ステップごとに、時刻、速度、密度、流れ出た車両の台数を出力ファイルに書き出し、微視的モデルの細かい時間ステップごとに、このファイルを読み直して、その内容を微視的モデルに反映します。

微視的交通流モデル 巨視的交通流モデル
モデル 追従モデル(GFM) 連続体モデル(PW モデル)
1 時間ステップ(Δt\Delta t) 0.12 [s] 0.36 [s](= 0.0001 [h])
道路の長さ 500 [m] 20000 [m](= 20 [km])
道路の区間の数 20(25 [m]/区間) 50(400 [m]/区間)
最大速度 25 [m/s](= 90 [km/h])
最大密度 0.18 [veh/m](= 180 [veh/km])

巨視的モデルの結果は、密度を点の高さ、速度を点の色で表して可視化しています(図 4)。交通は左から右へ流れ、密度が下がって見える範囲がスポンジ層です。寒色ほど遅く、暖色ほど速い速度を表します。論文は、この可視化から、密度と速度がどちらも空間的に一様な分布になっていることが分かるとしています。微視的モデルの可視化(図 5)では、個々の車両が区別されます。車両は 1 車線を左から右へ進みます。論文は、正しく実装された GFM が、車両どうしの相互作用がなければ最大速度で走る車両の挙動を示すこと(交通シミュレーションの開発での基本的な検証項目)を、すでに確かめたとしています。

巨視的交通流モデルの可視化
図 4 巨視的交通流モデルの可視化(高さが密度、色が速度)。出典:原論文 Fig. 4(CC BY 4.0)。
微視的交通流モデルの可視化
図 5 微視的交通流モデルの可視化(500 m の道路と個々の車両)。出典:原論文 Fig. 5(CC BY 4.0)。

車両の台数の保存

図 6 は、巨視的モデルから流れ出た車両の台数と、微視的モデルに流れ込んだ車両の台数で、両者は一致しています。より正確には、流れ出る車両の台数(巨視的モデルの交通量と 1 時間ステップの長さの積)が整数の値に達するか超えるたびに、その台数を、微視的モデルが流入の車両の台数として受け取ります。このため、流出と流入の台数の関係は、次のように書けます(式 (30))。

(巨視的モデルから流れ出た車両の台数)=(微視的モデルに流れ込んだ車両の台数)+ ee。ここで、0≤e≤10 \leq e \leq 1 です。

この挙動は、図 6 の曲線の一部を拡大した図 7 で見られます。論文は、これらの結果から、2 つのモデルの間の変換の手順が正しいことが確かめられたとしています。

巨視的モデルから流れ出た車両の台数と微視的モデルに流れ込んだ車両の台数
図 6 巨視的モデルから流れ出た車両の台数(赤の実線)と、微視的モデルに流れ込んだ車両の台数(黒の破線)。出典:原論文 Fig. 6(CC BY 4.0)。
図 6 の曲線の拡大
図 7 図 6 の曲線の拡大。出典:原論文 Fig. 7(CC BY 4.0)。

境界での密度

図 8 は、計算のちょうど中間の時刻 t=18000t = 18000 s での、離散化の区間ごとの車両の密度です。0〜4 km は巨視的モデルへ流れ込む側のスポンジ層で、流入を 34 台/km にしています。16〜20 km は巨視的モデルから流れ出る側のスポンジ層です。微視的モデルの領域では、各区間のすべての車両の位置を求め、区間の中心に近い車両ほど大きい重みで平均して、区間ごとの準密度を求めています。

論文は、図 8 から、微視的モデルと巨視的モデルの境界で密度が連続であることが確かめられたとしています。ただし、離散的に車両を発生させる方法による小さな変動が見られました。論文は、微視的モデルの側の変動の理由として、(a)微視的モデルの密度を計算した区間が、巨視的モデルに比べて十分に長くなかったこと、(b)マルチエージェントモデルの離散性の影響を挙げています。2 つのモデルの密度はおおむね保存されていますが、完全には一致していません。論文は、その原因が、交通量と密度の関係が 2 つのモデルで同じでないことにある可能性を挙げています。巨視的モデルでは、Greenshields らの式で与える平衡速度に密度をかけて、交通量 q=vρ=vmρ(1−ρ/ρm)q = v\rho = v_m \rho (1 - \rho / \rho_m) を得ます。ここで、vmv_m と ρm\rho_m は最大速度と最大密度です。一方、微視的モデルでは、交通量に Δt\Delta t をかけて車両の台数を得て、そこから密度を求めます。本研究では、巨視的モデルの交通量と密度の関係が、微視的モデルの関係に近くなるように調整しています。

マルチスケール交通流モデルの密度の分布
図 8 マルチスケール交通流モデルの、t=18000t = 18000 s での密度の分布(位置の軸は 4000 m と 20000 m の間を省略しています)。出典:原論文 Fig. 8(CC BY 4.0)。

計算時間

論文は、提案したマルチスケールモデル(微視的モデル+巨視的モデル)の計算時間を、微視的モデルだけで 500 m と 20000 m の道路を別々に計算するオフライン計算と比べています(原論文 Table 3)。微視的モデルで 20000 m の道路を計算するときのパラメータの値は、マルチスケールの計算の巨視的モデルの部分と同じ(時間刻み 0.36 s、20000 m の道路、50 区間)にしています。計算機は、CPU が Intel Core i7-2600、メモリが 15.4 GiB、OS が Ubuntu 16.04.2 LTS です(原論文 Table 4)。

  • 微視的モデルだけのオフライン計算:合計 652.34 s(500 m の道路が 15.94 s、20000 m の道路が 636.40 s)。
  • 提案したマルチスケールモデル:合計 36.54 s(このうち巨視的モデルが 20.80 s)。

論文は、対象領域の大部分を微視的モデルの代わりに巨視的モデルで計算することで、10 時間分の計算で、計算コストを 615.80 s(約 10 分 16 秒)減らせたとしています。削減がこれより大きくならなかったのは、1 本の道路だけで信号などの複雑な要素を省いた単純な計算だったためと考えられ、車両どうしの相互作用を含む、より現実的な交通流の場面では、さらに大きな削減が期待できると論文は述べています。

今後の展開

論文は、次の課題と展望を挙げています。

  • 巨視的モデルと微視的モデルの密度が完全には一致しなかった理由を調べ、2 つのモデルで同じ交通量と密度の関係を使って手順を改善すること。論文は、微視的モデルの基本図から巨視的モデルの交通量と密度の関係を決めて、密度をより正確に保存したいとしています。
  • 本論文とは逆向きの、微視的モデルの量を巨視的モデルへ変換するマルチスケールモデル。微視的モデルから巨視的モデルへ車両を流出させるために、各時間ステップに端点に着いた車両の平均速度を求める方法や、車両の台数を密度に変える方法を検討しています。
  • 巨視的モデルでは、スポンジ層で流入と流出の値を固定したいものの、そうすると、固定したはずの値に変動が生じること。
  • Aw–Rascle–Zhang モデルのような高度な巨視的モデルと、強安定性保存 Runge–Kutta 法のような高次の時間積分法の、精度と適用性の徹底した比較が、大規模な道路網の今後の計算に重要であること。
  • 論文は、提案したモデルを、車線規制や路上駐車のような、巨視的モデルでは表しにくい局所的な影響を考える大規模な道路網のシミュレーションへの第一歩と位置づけ、これらを達成することで、広域のシステムの中の部分領域に焦点を当てた交通流シミュレーションへの道が開けると期待しています。
Graphical abstract
Graphical abstract

Overview

As the number of automobiles continues to increase, traffic congestion has become a serious societal issue. Methods for optimizing traffic volumes in wide-area road networks have been considered to mitigate it, and traffic-flow simulation has attracted interest as a technique for examining such strategies in advance. Traffic-flow models include microscopic models that represent vehicles individually, macroscopic models that describe the whole traffic flow by average vehicle densities and velocities, and mesoscopic and hybrid (multiscale) models that combine features of both. Because traffic-flow simulations are repeated under a variety of conditions, both the computation speed of macroscopic models and the precise representation of microscopic models are needed.

This paper proposes a multiscale traffic-flow model that combines a microscopic model, for detailed analysis of subregions containing traffic congestion bottlenecks or other localized phenomena, with a macroscopic model that simulates wide areas at a modest computational cost. The microscopic model is the generalized force model (GFM), a car-following model, and the macroscopic model is the Payne–Whitham (PW) model, a non-equilibrium traffic-flow model. To ensure stability with robustness in the presence of discontinuities, the PW model is discretized by the discontinuous Galerkin finite element method (DGFEM), and generating/absorbing sponge layers, a technique widely used in the numerical analysis of long-wavelength phenomena in shallow water, are used for the inflow and outflow regions. The two models are connected by converting the number of vehicles flowing out of the macroscopic model at a connecting point into vehicles generated in the microscopic model.

In an example that simulates 10 h of traffic on a single road (20 km for the macroscopic model and 500 m for the microscopic model), the number of vehicles flowing out of the macroscopic model agreed with the number of vehicles flowing into the microscopic model (the outflow exceeded the inflow by ee, with 0≤e≤10 \leq e \leq 1). The density was continuous across the interface between the two models, but small fluctuations appeared on the microscopic side, and the densities were not in exact agreement. The paper considers that this may be due to the volume–density relations not being identical in the two models. The computation took 36.54 s, 615.80 s less than the 652.34 s required when the microscopic model alone was used (offline simulations). The paper states that the proposed method may also be applied to combinations of macroscopic and microscopic models other than the PW model and the GFM.

Key points

1. A multiscale traffic-flow model: a macroscopic model for the wide area and a microscopic model for a local area

Traffic-flow models are broadly divided into microscopic models, which separately track the motion of all vehicles, and macroscopic models, which consider vehicle densities and apply methods of fluid mechanics. Microscopic models give highly detailed results but are computationally costly, and enormous computation time is required to reproduce traffic flows over wide areas. Macroscopic models do not resolve individual vehicles, but their simulation requires relatively little computation time even for wide areas. Because the parameters of individual cars and drivers cannot be measured accurately, traffic-flow simulations incorporate randomness and are repeated with different random seeds, so each simulation must finish in a short time. In addition, traffic congestion frequently arises in bottleneck segments such as merge points, sags and traffic lights. These challenges motivated multiscale models, which use a microscopic model for specific subregions and a macroscopic model for the others.

According to the paper, earlier studies of multiscale traffic-flow models were restricted to transformation formulas and mathematical proofs for transferring results between the two models, and the models had not been verified from the viewpoint of traffic engineering or applied to practical situations. Moreover, the model of Garavello et al. used an equilibrium model (in which the velocity is uniquely determined by the density) for the macroscopic domain, which cannot reproduce realistic traffic flows, and the model of Lattanzio et al. used a non-equilibrium model, but improvements to its stability were left for future work.

This paper combines the generalized force model (GFM) of Helbing et al., a car-following model, as the microscopic (multi-agent) model with the Payne–Whitham (PW) model, a non-equilibrium traffic-flow model, as the macroscopic model. The PW model augments the continuity equation, which expresses the conservation of the total number of vehicles, with a partial differential equation describing the rate of change of the velocity, and the equation of Greenshields et al. is used for its equilibrium velocity. The paper lists the following advantages of the model.

  • Using the microscopic model only for local subregions and computing the wide area with the macroscopic model reduces the computational cost.
  • The conservation of the number of vehicles at the micro/macro interface, which is not trivial between the continuum representation as a density distribution and the agent-based representation, is guaranteed.
  • Because the macroscopic model is computed by the DGFEM, an arbitrary polynomial order can be used in each element (road section), and the conservation of quantities is guaranteed. This is a theoretical extension of the cell transmission method (CTM) used in existing studies of multiscale models.

2. Generating/absorbing sponge layers impose the inflow and outflow boundary conditions

To impose the inflow and outflow boundary conditions, the paper adopts a generating/absorbing sponge layer model, which has been widely used for numerical simulation of the shallow water equations. The following equations are solved instead of the equations of the PW model.

∂ρ∂t+∂q∂x=s1in+s1out(8)\frac{\partial \rho}{\partial t} + \frac{\partial q}{\partial x} = s_1^{\mathrm{in}} + s_1^{\mathrm{out}} \tag{8} ∂q∂t+∂∂x(q2ρ+c02ρ)=1τ(ρV(ρ)−q)+s2in+s2out(9)\frac{\partial q}{\partial t} + \frac{\partial}{\partial x} \left( \frac{q^2}{\rho} + c_0^2 \rho \right) = \frac{1}{\tau} \left( \rho V(\rho) - q \right) + s_2^{\mathrm{in}} + s_2^{\mathrm{out}} \tag{9}

Here, ρ\rho is the vehicle density, vv is the velocity, q=ρvq = \rho v is the traffic volume (flow rate), tt is time, xx is the position along the road, V(ρ)V(\rho) is the equilibrium velocity, τ\tau is a time constant that sets how fast the velocity approaches the equilibrium velocity, and c0c_0 is a constant with the dimension of velocity. s1ins_1^{\mathrm{in}} and s2ins_2^{\mathrm{in}} are additional terms for the inflow boundary condition, and s1outs_1^{\mathrm{out}} and s2outs_2^{\mathrm{out}} are those for the outflow boundary condition, defined as follows.

s1in=χin(ρin−ρ),s2in=χin(qin−q)(10)s_1^{\mathrm{in}} = \chi^{\mathrm{in}} \left( \rho^{\mathrm{in}} - \rho \right), \quad s_2^{\mathrm{in}} = \chi^{\mathrm{in}} \left( q^{\mathrm{in}} - q \right) \tag{10} s1out=χout(ρout−ρ),s2out=χout(qout−q)(11)s_1^{\mathrm{out}} = \chi^{\mathrm{out}} \left( \rho^{\mathrm{out}} - \rho \right), \quad s_2^{\mathrm{out}} = \chi^{\mathrm{out}} \left( q^{\mathrm{out}} - q \right) \tag{11} χin(x)=winc0Δt{lin−(x−xL)lin}2(xL≤x≤xL+lin)(12)\chi^{\mathrm{in}}(x) = w^{\mathrm{in}} \frac{c_0}{\Delta t} \left\{ \frac{l^{\mathrm{in}} - (x - x_L)}{l^{\mathrm{in}}} \right\}^2 \quad \left( x_L \leq x \leq x_L + l^{\mathrm{in}} \right) \tag{12} χout(x)=woutc0Δt{lout−(xR−x)lout}2(xR−lout≤x≤xR)(13)\chi^{\mathrm{out}}(x) = w^{\mathrm{out}} \frac{c_0}{\Delta t} \left\{ \frac{l^{\mathrm{out}} - (x_R - x)}{l^{\mathrm{out}}} \right\}^2 \quad \left( x_R - l^{\mathrm{out}} \leq x \leq x_R \right) \tag{13}

Here, ρin\rho^{\mathrm{in}} and qinq^{\mathrm{in}} are the density and flow rate imposed at the inflow boundary, ρout\rho^{\mathrm{out}} and qoutq^{\mathrm{out}} are those imposed at the outflow boundary, xLx_L and xRx_R are the positions of the inflow and outflow boundaries, linl^{\mathrm{in}} and loutl^{\mathrm{out}} are the lengths of the layers at the inflow and outflow boundaries, winw^{\mathrm{in}} and woutw^{\mathrm{out}} are parameters that adjust the effectiveness of the layers, and Δt\Delta t is the time step. The terms of Eqs. (10) and (11) correct the density and the traffic volume in proportion to their differences from the imposed values, and the coefficients χin\chi^{\mathrm{in}} and χout\chi^{\mathrm{out}} are largest at the boundaries and become zero at the inner ends of the layers (Figure 1).

Schematic view of the sponge layers and the corresponding values of chi
Figure 1. Schematic view of the sponge layers and the corresponding values of χ\chi. The left layer is at the inflow boundary xLx_L and the right layer is at the outflow boundary xRx_R. Source: Fig. 1 of the original paper (CC BY 4.0).

3. The PW model is discretized by the discontinuous Galerkin finite element method

The paper discretizes Eqs. (8) and (9) by the DGFEM. The DGFEM admits discontinuities of the solution between elements, as shown in Figure 2, and can be regarded as an extension of both the finite element method and the finite volume method. Inside each element, the solution is interpolated with Lagrange polynomials, and at the interface of each element, a numerical flux determined by solving the Riemann problem is used.

Eqs. (8) and (9) can be written in a divergence form for the unknowns consisting of the density ρ\rho and the traffic volume qq (Eq. (14)). In each element, these unknowns are approximated as follows.

hu(x)=∑i=1Nuiψi(x)(15){}^{h}\boldsymbol{u}(x) = \sum_{i=1}^{N} \boldsymbol{u}_i \psi_i(x) \tag{15}

Here, hu(x){}^{h}\boldsymbol{u}(x) is the approximate solution in the element, ui\boldsymbol{u}_i are the nodal values, ψi\psi_i are the shape functions (i=1,…,Ni = 1, \ldots, N), and NN is the number of nodes in each element. The shape functions are Lagrange polynomials of order N−1N-1 defined in the normalized space ξ∈(−1,1)\xi \in (-1, 1) (Eqs. (16) and (17)).

For each element, a weighted residual equation is obtained by multiplying Eq. (14) by the shape functions and integrating over the element (Eq. (18)). Its boundary terms use the numerical flux, which is the local Lax–Friedrichs flux determined from the value hue+{}^{h}\boldsymbol{u}_e^{+} inside and the value hue−{}^{h}\boldsymbol{u}_e^{-} outside the element (Figure 2). Substituting Eq. (15) into Eq. (18) gives linear equations for each element (Eq. (20)), which are integrated in time by the explicit Euler method (Eq. (23)).

Distribution of u in the discontinuous Galerkin method
Figure 2. Distribution of uu in the discontinuous Galerkin method. The approximate solution of element ee (from xLex_L^e to xRex_R^e) takes different values inside (+) and outside (−) the element at each end. Source: Fig. 2 of the original paper (CC BY 4.0).

4. Vehicles flowing out of the macroscopic model are generated in the microscopic model

The number of vehicles passing through the outlet of the PW model on each time step can be computed in two ways. One is to integrate the outlet sponge-layer term with respect to time (Eq. (24)), but this makes it difficult to determine the positions and velocities of the outflowing vehicles uniquely. The paper therefore places the connecting region at a point xconx^{\mathrm{con}} upstream of the sponge layer (Figure 3). The number CnC^n of vehicles flowing out on the nnth time step is determined by the time integral of the traffic volume qconq^{\mathrm{con}} at that point, and the velocity vconv^{\mathrm{con}} at that point is determined from qconq^{\mathrm{con}} and the density ρcon\rho^{\mathrm{con}}.

Cn=∫nΔt(n+1)Δtqcon dt≃qconΔt(25)C^n = \int_{n\Delta t}^{(n+1)\Delta t} q^{\mathrm{con}} \, dt \simeq q^{\mathrm{con}} \Delta t \tag{25} vcon=qconρcon(26)v^{\mathrm{con}} = \frac{q^{\mathrm{con}}}{\rho^{\mathrm{con}}} \tag{26}

Here, Δt\Delta t is the time step of the PW model and nn is the time-step number.

The GFM uses a smaller time step than the PW model, (Δt)NE=M(Δt)AG(\Delta t)^{\mathrm{NE}} = M (\Delta t)^{\mathrm{AG}}, where (Δt)NE(\Delta t)^{\mathrm{NE}} and (Δt)AG(\Delta t)^{\mathrm{AG}} are the time steps of the PW model and the GFM, respectively; the GFM computation is therefore performed MM times while the PW model proceeds by one step. The total accumulated number of vehicles that have flowed out by the nnth time step is as follows.

Ctotaln=∑i=1nCi(27)C^n_{\mathrm{total}} = \sum_{i=1}^{n} C^i \tag{27}

Here, CiC^i is the number of vehicles flowing out on the iith time step. The total accumulated number C(t)C(t) at an arbitrary time tt is defined by piecewise linear interpolation of the values of CtotaliC^i_{\mathrm{total}}. On each step of the GFM, the number of vehicles generated in the GFM is the value of C(t)C(t) at the time of that step minus the total number of vehicles already generated in the GFM, rounded down to an integer (Eq. (29)).

Connecting the Payne–Whitham model to the generalized force model
Figure 3. Connecting the Payne–Whitham model to the generalized force model. The vehicles flowing out at the connecting point xconx^{\mathrm{con}} are generated in the microscopic model, and the sponge layer of the macroscopic model lies downstream of xconx^{\mathrm{con}}. Source: Fig. 3 of the original paper (CC BY 4.0).

Numerical results

Simulation settings (a single road, 10 h)

For the GFM, the optimal parameter values suggested by Helbing et al. are used in all simulations (Table 1 of the original paper).

Parameter Value
dnd_n: Minimal vehicles distance 1.38 [m]
τn\tau_n: Acceleration time 2.45 [s]
τn′\tau'_n: Deceleration time 0.77 [s]
TnT_n: Safe time headway 0.74 [s]
RnR_n: Acceleration interaction range 5.59 [m]
Rn′R'_n: Deceleration interaction range 98.78 [m]

Multiscale simulations of 36000 s (10 h) are conducted under the following settings (Table 2 of the original paper). For each time step of the macroscopic model, the time, velocity, density and number of outflowing vehicles are written to an output file, and on each of the finer time steps of the microscopic model, this file is re-read and its content is reflected in the microscopic model.

Microscopic traffic-flow model Macroscopic traffic-flow model
Model Car-following model (GFM) Continuum model (PW model)
1 time step (Δt\Delta t) 0.12 [s] 0.36 [s] (= 0.0001 [h])
Road length 500 [m] 20000 [m] (= 20 [km])
Number of road segments 20 (25 [m]/road segment) 50 (400 [m]/road segment)
Maximum velocity 25 [m/s] (= 90 [km/h])
Maximum density 0.18 [veh/m] (= 180 [veh/km])

The results of the macroscopic model are visualized with the density represented by the height and the velocity by the color of graphical data points (Figure 4). Traffic flows from left to right, and the region in which the density appears to drop off is the sponge layer; colder and warmer colors indicate slower and faster velocities, respectively. The paper states that this visualization shows that both the density and the velocity attain spatially uniform configurations. In the visualization of the microscopic model (Figure 5), individual vehicles are resolved; the vehicles occupy a single lane and proceed from left to right. The paper states that it has already validated that the correctly implemented GFM shows the behavior of a vehicle running at maximum speed without any interaction between vehicles, a basic validation issue in traffic simulation development.

Graphical visualization of the macroscopic traffic-flow model
Figure 4. Graphical visualization of the macroscopic traffic-flow model (height: density, color: velocity). Source: Fig. 4 of the original paper (CC BY 4.0).
Graphical visualization of the microscopic traffic-flow model
Figure 5. Graphical visualization of the microscopic traffic-flow model (a road of 500 m with individual vehicles). Source: Fig. 5 of the original paper (CC BY 4.0).

Conservation of vehicles

Figure 6 plots the number of vehicles flowing out of the macroscopic model and the number of vehicles flowing into the microscopic model, and the two are in agreement. More precisely, whenever the number of outflowing vehicles (the product of the traffic volume of the macroscopic model and the length of a single time step) attains or exceeds an integer value, that number is input to the microscopic model as the number of inflow vehicles. The relationship between the outflow and inflow counts can therefore be written as follows (Eq. (30)).

(Number of vehicles flowing out of the macroscopic model) = (number of vehicles flowing into the microscopic model) + ee, where 0≤e≤10 \leq e \leq 1.

This behavior is seen in Figure 7, an enlarged portion of the curves of Figure 6. The paper states that these results validate the correctness of the conversion procedure between the two models.

Numbers of vehicles flowing out of the macroscopic model and flowing into the microscopic model
Figure 6. Numbers of vehicles flowing out of the macroscopic model (red solid line) and flowing into the microscopic model (black dashed line). Source: Fig. 6 of the original paper (CC BY 4.0).
Enlarged view of the curves of Figure 6
Figure 7. Enlarged view of the curves of Figure 6. Source: Fig. 7 of the original paper (CC BY 4.0).

Density across the interface

Figure 8 plots the vehicle density for each discretization segment at the simulation time t=18000t = 18000 s, the midpoint of the simulation. The section from 0 to 4 km is the sponge layer for the inflow into the macroscopic model, where the inflow is set to 34 vehicles/km, and the section from 16 to 20 km is the sponge layer for the outflow from the macroscopic model. In the microscopic-model region, the positions of all vehicles on each segment are obtained, and a weighted average with higher weights for vehicles closer to the segment center gives a quasi-density for each segment.

The paper states that Figure 8 confirms that the density is continuous across the interface between the microscopic and macroscopic models, although small fluctuations, caused by the discrete vehicle generation, were observed. As possible explanations for the fluctuations on the microscopic side, the paper lists (a) that the segments used to compute the microscopic-model density were insufficiently long compared with those of the macroscopic model and (b) the discreteness of the multi-agent model. The densities of the two models are approximately conserved but are not in exact agreement. The paper suggests that this may be because the volume–density relation is not identical in the two models. In the macroscopic model, the equilibrium velocity given by the equation of Greenshields et al. is multiplied by the density to yield the traffic volume q=vρ=vmρ(1−ρ/ρm)q = v\rho = v_m \rho (1 - \rho / \rho_m), where vmv_m and ρm\rho_m are the maximum velocity and the maximum density. In the microscopic model, by contrast, the number of vehicles is obtained by multiplying the traffic volume by Δt\Delta t, and the density is reconstructed from it. In this study, the macroscopic model was adjusted to yield a volume–density relation close to that of the microscopic model.

Density distribution of the multiscale traffic-flow model
Figure 8. Density distribution of the multiscale traffic-flow model at t=18000t = 18000 s (the axis of position is broken between 4000 and 20000 m). Source: Fig. 8 of the original paper (CC BY 4.0).

Computation time

The paper compares the computation time of the proposed multiscale model (micro + macro) with that of offline simulations, in which the microscopic model alone simulates roads of lengths 500 and 20000 m separately (Table 3 of the original paper). When the microscopic model is applied to the 20000 m road, the parameter values agree with those of the macroscopic part of the multiscale simulation: a time step of 0.36 s and a road of length 20000 m discretized into 50 segments. The workstation has an Intel Core i7-2600 CPU, 15.4 GiB of memory and Ubuntu 16.04.2 LTS (Table 4 of the original paper).

  • Offline simulations with the microscopic model alone: 652.34 s in total (15.94 s for the 500 m road and 636.40 s for the 20000 m road).
  • Proposed multiscale model: 36.54 s in total (20.80 s for the macroscopic model).

The paper states that replacing the microscopic model with the macroscopic model for the greater part of the target area reduces the computational cost by 615.80 s, nearly 10 min and 16 s, for a computation spanning 10 h of simulation time. The paper considers that the reduction was not larger because the simulation was simple, with only a single road and no complications such as traffic signals, and expects even larger savings for more realistic traffic-flow scenarios involving interactions between vehicles.

Outlook

The paper raises the following issues and prospects.

  • To find out why the macroscopic and microscopic densities were not in perfect agreement, and to improve the procedure by using identical volume–density relations in the two models. The paper also hopes to determine the volume–density relation of the macroscopic model from the basic diagrams of the microscopic model, to conserve the density more accurately.
  • A reversed version of the multiscale model, in which quantities of the microscopic model are converted to the macroscopic model. To let vehicles flow out of the microscopic model into the macroscopic model, the authors are considering methods for computing the mean velocity of the vehicles arriving at the endpoints on each time step and techniques for converting vehicle counts to vehicle densities.
  • In the macroscopic model, one would like to use a sponge layer to fix the inflow and outflow values, but this gives rise to fluctuations in the values that had been held fixed.
  • Thorough comparisons of the accuracy and applicability of advanced macroscopic models, such as the Aw–Rascle–Zhang model, and of higher-order time integration methods, such as the strong stability-preserving Runge–Kutta method, will be important for future simulations of large-scale road networks.
  • The paper positions the proposed model as the first step towards simulations of large-scale road networks that consider localized effects, such as lane regulation and street parking, which are difficult to express in macroscopic models, and expects that attaining these milestones will pave the way towards traffic-flow simulations that focus on subregions of wide-area systems.