harnessing mean-field game & data science for mixed …

35
Harnessing Mean-Field Game & Data Science for Mixed Autonomy Civil Engineering & Engineering Mechanics Data Science Institute Data & innovative- technology driven Transportation Lab Sharon Di, Ph.D. Kuang Huang, Qiang Du, Xi Chen (Columbia University)

Upload: others

Post on 13-Nov-2021

0 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Harnessing Mean-Field Game & Data Science for Mixed …

Harnessing Mean-Field Game & Data Science for Mixed Autonomy

Civil Engineering &

Engineering Mechanics

Data Science Institute

Data & innovative-

technology driven

Transportation Lab

Sharon Di, Ph.D.

Kuang Huang, Qiang Du, Xi Chen (Columbia University)

Page 2: Harnessing Mean-Field Game & Data Science for Mixed …

2

Transportation

Community

Transportation Community

AI/Robotics Community

AI/Control Community

Mo

de

ling

Co

mp

lexi

ty

Pure HVs HV-Dominated Pure AVsAV-Dominated

MicroMesoMacro

Traffic/Control

Community

Cooperative

n AVs + m HVs n AVs + 1 HV

1. Scalable AV Controller Design2. Human Behavioral Estimation & Adaption3. HV-AV Interaction Characterization

Mixed Autonomy: the Fundamental

Traffic Flow Community

(AV: Autonomous Vehicle HV: Human-Driven Vehicle )

Multi-ClassTraffic Flow 1 AV + m HVs

1 AV + 1 HV

Page 3: Harnessing Mean-Field Game & Data Science for Mixed …

Rational, utility-optimizing

(Non)cooperative

Learning & adaptation

Nobody slows down …

Approaching the end, shall I force in?

Non-cooperative

Proactive, Anticipating

Control

AI

Agents

HVAV

8Game Theory

Empowering Driving Intelligence

Page 4: Harnessing Mean-Field Game & Data Science for Mixed …

4

Mixed AV-HV:

Stability Analysis

Mixed AV-HV:

Learning Based Game

Pure AVs:

Mean-Field Game

Page 5: Harnessing Mean-Field Game & Data Science for Mixed …

Learning-Based ControlLearning-Based Control

5

[Huang-Di-Du-Chen, DCDS-B, 2019; Huang-Di-Du-Chen, TR part C, 2020]

Game-Based ControlMean Field Game

Multi-Autonomous Vehicle Control in Mixed Traffic

Stability

Page 6: Harnessing Mean-Field Game & Data Science for Mixed …

N-Car Differential Game

min 𝐽𝑖𝑁 𝑣𝑖 , 𝑣−𝑖 =

0

𝑇

𝑓𝑖𝑁 𝑣𝑖 𝑡 , 𝑥𝑖 𝑡 , 𝑥−𝑖 𝑡 𝑑𝑡 + 𝑉𝑇 𝑥𝑖 𝑇

𝒗𝒊∗

Terminal costCost functionrunning cost + congestion cost

+ safety cost + emissions

𝑱𝒊𝑵 𝒗𝒊

∗, 𝒗−𝒊∗ ≤ 𝑱𝒊

𝑵 𝒗𝒊, 𝒗−𝒊∗ , ∀𝑣𝑖 , 𝑖

Nash Equilibrium

6

Controls of many cars “New” traffic flow theory

Page 7: Harnessing Mean-Field Game & Data Science for Mixed …

Mean Field Game: Decision-Making for Multi-Agent Systems

• Complex multi-agent dynamic systems if N→∞

• N-player limit of dynamic non-cooperative Nash game

• Micro (Agent) → Macro (Mass)

Mexican Wave

7

[Huang-Malhame-Caines, Com. Info. Sys., 2006; Lions-Lasry, Paris-Princeton lectures, 2007]

Page 8: Harnessing Mean-Field Game & Data Science for Mixed …

𝐽𝑖𝑁 𝑣𝑖 , 𝑣−𝑖 =

0

𝑇

𝑓𝑁 𝑣𝑖 𝑡 , 𝑥𝑖 𝑡 , 𝑥−𝑖 𝑡 𝑑𝑡 + 𝑉𝑇 𝑥𝑖 𝑇

Mean Field Equilibrium

𝒖∗ 𝒙, 𝒕𝝆∗ 𝒙, 𝒕

Initial:

Terminal:

Boundary:

𝜌 𝑥, 0𝑉 𝑥, 𝑇𝜌 0, 𝑡𝑉 𝐿, 𝑡

𝐽 𝑣 =

0

𝑇

𝑓 𝑣 𝑡 , 𝜌 𝑥 𝑡 , 𝑡 𝑑𝑡 + 𝑉𝑇 𝑥 𝑇

8

𝑵 → ∞

Cost functionrunning cost + congestion cost

+ safety cost + emissions

Terminal cost

Mean Field Approximation

Page 9: Harnessing Mean-Field Game & Data Science for Mixed …

Hamilton-Jacobi-Bellman (HJB)Backward

Fokker-Planck-Kolmogorov (FPK)Forward

Forward-Backward Equations

𝒗𝟏∗ 𝒕 = 𝑎𝑟𝑔𝑚𝑖𝑛 𝑱𝟏 𝒗1, 𝒗2, ⋯ , 𝒗𝑵

I react to

𝒗𝟐∗ 𝒕 = 𝑎𝑟𝑔𝑚𝑖𝑛 𝑱𝟐 𝒗1, 𝒗2, ⋯ , 𝒗𝑵

I react to

𝝆 𝒙, 𝒕

𝒖 𝒙, 𝒕

𝒗 𝑡 = 𝑎𝑟𝑔𝑚𝑖𝑛 𝑱 𝒗,

9

Agent DynamicMass Dynamic

𝝆𝑡 + 𝝆𝑢 𝑥 = 0

Page 10: Harnessing Mean-Field Game & Data Science for Mixed …

10Game-Theoretic Interpretation of LWR

De

ns

ity

𝜌 𝑥, 𝑡

𝑢 𝑥, 𝑡

𝑓 𝑢, ρ =

𝑼 𝝆 − 𝒖 /𝒖𝒎𝟐

𝑓 𝑢, ρ =

𝑼 𝝆 − 𝒖 /𝒖𝒎𝟐

equilibrium speed

avoid crowd

− 𝝆𝒋 − 𝝆 /𝝆𝒋𝟐

𝐽 𝒖 =

0

𝑇

𝑓 𝑢 𝑡 , 𝜌 𝑥 𝑡 , 𝑡 𝑑𝑡 + 𝑉𝑇 𝑥 𝑇

Cost functionrunning cost + congestion cost

+ safety cost + emissions

LWR is a special type of MFG

1. LWR is the MFG with a cost function that aims to move toward an equilibrium speed2. LWR is the myopic MFG with generic cost functions under regularity conditions

Page 11: Harnessing Mean-Field Game & Data Science for Mixed …

11

Uniform Flow:

𝑢𝐴𝑉 𝑥, 𝑡 ≡ 𝑢𝐻𝑉 𝑥, 𝑡 ≡ 𝑢

𝜌𝐴𝑉 𝑥, 𝑡 ≡ 𝜌𝐴𝑉 , 𝜌𝐻𝑉 𝑥, 𝑡 ≡ 𝜌𝐻𝑉

sup0≤𝑡≤𝑇

𝑖=𝐴𝑉,𝐻𝑉

𝜌𝑖 ⋅, 𝑡 − 𝜌𝑖 + 𝑢𝑖 ⋅, 𝑡 − 𝑢 ≤ 𝜖

𝑖=𝐴𝑉,𝐻𝑉

𝜌𝑖 ⋅, 0 − 𝜌𝑖 + 𝑢𝐻𝑉 ⋅, 0 − 𝑢 ≤ 𝛿

Stability Conditions:

𝜌𝐴𝑉, 𝜌𝐻𝑉, 𝑢

Linear Stability of Mixed Traffic

Critical AV penetration Stability by design

Page 12: Harnessing Mean-Field Game & Data Science for Mixed …

12Mixed Traffic: Mean Field Game (MFG) + ARZ

𝜌𝑡𝐴𝑉 + (𝜌𝐴𝑉𝑢𝐴𝑉)𝑥 = 0

[𝑢𝐻𝑉+ℎ(𝜌𝑇𝑂𝑇)]𝑡 + 𝑢𝐻𝑉[𝑢𝐻𝑉+ℎ(𝜌𝑇𝑂𝑇)]𝑥

=1

𝜏(𝑈 𝜌𝑇𝑂𝑇 − 𝑢𝐻𝑉)

HV

Dynamic

𝜌𝑡𝐻𝑉 + (𝜌𝐻𝑉𝑢𝐻𝑉)𝑥 = 0Flow

(HJB Equation) (Momentum Equation)

𝜌𝐴𝑉 , 𝜌𝐻𝑉 , 𝑢𝐴𝑉 , 𝑢𝐻𝑉

AV

+𝜌𝑇𝑂𝑇

MFG ARZ

(AV: Autonomous Vehicle HV: Human-Driven Vehicle )

𝑉𝑡 + 𝑢𝑉𝑥 +1

2

𝑢𝐴𝑉

𝑢𝑚

2

−𝑢𝐴𝑉

𝑢𝑚+

𝑢𝐴𝑉𝜌𝑇𝑂𝑇

𝑢𝑚𝜌𝑗+ 𝜷

𝜌𝐻𝑉

𝜌𝑗= 0

𝒖 = 𝑢𝑚𝑎𝑥 1 −𝜌𝑇𝑂𝑇

𝜌𝑗−𝑢𝑚𝑉𝑥

Page 13: Harnessing Mean-Field Game & Data Science for Mixed …

13Stabilizing Traffic via MFG Control

𝑓 𝑢𝐴𝑉 , 𝜌𝐴𝑉 , 𝜌𝐻𝑉

=1

2

𝑢𝐴𝑉

𝑢𝑚𝑎𝑥

2

−𝑢𝐴𝑉

𝑢𝑚𝑎𝑥+

𝑢𝐴𝑉𝜌𝑇𝑂𝑇

𝑢𝑚𝑎𝑥𝜌𝑗𝑎𝑚+ 𝜷

𝜌𝐻𝑉

𝜌𝑗𝑎𝑚

Autonomous Controller Design

𝝆𝑻𝑶𝑻 = 𝟎.𝟒

(AV: Autonomous Vehicle HV: Human-Driven Vehicle)

Page 14: Harnessing Mean-Field Game & Data Science for Mixed …

14Multi-Autonomous Vehicle Control in Mixed Traffic

Reinforcement Learning

Imitation LearningLearning-Based Control

Game-Based ControlMean Field Game

Stability

“It is not the strongest that survives, nor the most intelligent. It is the one that is most adaptable to change.”

Page 15: Harnessing Mean-Field Game & Data Science for Mixed …

Action 𝒂 𝑨𝑽Action 𝒂𝒋𝑨𝑽

Reward𝒓 𝒂 𝑨𝑽 , 𝒔, 𝒔′

Reward

𝒓 𝒂𝑗𝑨𝑽

, , ′

Sensing & Prediction

Imitation Learning

of Mixed Traffic

𝒓 𝒂𝒊𝑨𝑽

, 𝒔, 𝒔′

21

Sensing & Perception

Partially/fully observable

Reinforcement Learning

Multi-Agent

HVs Heterogeneity Stochasticity

Uncontrolled AVs

Unconventional data

State (Environment)

𝒔 = 𝒔 𝑨𝑽𝒔 = ⋯ , 𝒔𝒊

𝑨𝑽,⋯ , 𝒔𝒋

𝑨𝑽

Page 16: Harnessing Mean-Field Game & Data Science for Mixed …

16

[Li, Z.H., Gu, Z.C., Di, X., Shi, R.Y., 2020. An LSTM-Based Autonomous Driving Model Using Waymo Open Dataset, AppliedSciences - Intelligent Transportation Systems: Beyond Intelligent Vehicles, 10(6), 2046.]

Imitation Learning of Mixed Environment

(Source: https://waymo.com/open/)

Waymo L4 automation

Lidar point cloud

Camera image

Δ𝒙𝑖 𝑡 , Δ𝒗𝑖 𝑡 , 𝒗𝑖 𝑡 𝑎𝑖 𝑡

images

Mean absolute error=0.1

Long Short-Term Memory (LSTM)

Page 17: Harnessing Mean-Field Game & Data Science for Mixed …

17Multi-Agent Reinforcement Learning (MARL)

Single-

Multi-

MarkovianAgent Reinforcement learning

Game TheoryC

oo

per

ativ

e

Joint

AV control (Wu, CoRL’17;

Kreidieh, ITSC’18; Vinitsky, ITSC’18)

Co

mp

etit

ive

Independent

Page 18: Harnessing Mean-Field Game & Data Science for Mixed …

18Recap…

Multi-Autonomous Vehicle Control in Mixed Traffic

Autonomous Driving Model

Multi-Scale: micro – macro

Mixed Traffic Simulator

Social Implications

Reinforcement Learning

Imitation LearningLearning-Based Control

Game-Based ControlMean Field Game

Stability

1. Scalable AV Controller Design2. Human Behavioral Estimation & Adaption3. HV-AV Interaction Characterization

[Rahwan et al, “Machine behavior”, Nature, 2019]

Page 19: Harnessing Mean-Field Game & Data Science for Mixed …
Page 20: Harnessing Mean-Field Game & Data Science for Mixed …

1. Achdou, Y. and Perez, V., 2012. Iterative strategies for solving linearized discrete mean field games systems. Networks &Heterogeneous Media, 7(2).

2. Couillet, R., Perlaza, S.M., Tembine, H. and Debbah, M., 2012. Electrical vehicles in the smart grid: A mean field gameanalysis. IEEE Journal on Selected Areas in Communications, 30(6), pp.1086-1096.

3. Cui, S., Seibold, B., Stern, R. and Work, D.B., 2017, June. Stabilizing traffic flow via a single autonomous vehicle: Possibilities andlimitations. In 2017 IEEE Intelligent Vehicles. Symposium (IV) (pp. 1336-1341). IEEE.

4. Gong, S., Shen, J., Du, L., 2016. Constrained optimization and distributed computation based car following control of aconnected and autonomous vehicle platoon. Transportation Research Part B: Methodological 94, 314-334.

5. Lachapelle, A. and Wolfram, M.T., 2011. On a mean field game approach modeling congestion and aversion in pedestriancrowds. Transportation research part B: methodological, 45(10), pp.1572-1589.

6. Li, N., Oyler, D. W., Zhang, M., Yildiz, Y., Kolmanovsky, I., Girard, A. R., 2018. Game theoretic modeling of driver and vehicleinteractions for verification and validation of autonomous vehicle control systems. IEEE Transactions on control systemstechnology, 26 (5), 1782-1797.

7. Qin, W. B., Orosz, G., 2017. Scalable stability analysis on large connected vehicle systems subject to stochastic communicationdelays. Transportation Research Part C: Emerging Technologies 83, 39-60.

8. Sadigh, D., Sastry, S., Seshia, S. A., Dragan, A. D., 2016. Planning for autonomous cars that leverage effects on human actions. In:Robotics: Science and Systems.

9. Sadigh, D., Sastry, S.S. and Seshia, S.A., 2019. Verifying Robustness of Human-Aware Autonomous Cars. IFAC-PapersOnLine, 51(34), pp.131-138.

10. Stern, R.E., Cui, S., Delle Monache, M.L., Bhadani, R., Bunting, M., Churchill, M., Hamilton, N., Pohlmann, H., Wu, F., Piccoli, B.and Seibold, B., 2018. Dissipation of stop-and-go waves via control of autonomous vehicles: Field experiments. TransportationResearch Part C: Emerging Technologies, 89, pp.205-221.

11. Wu, C., Bayen, A. M., Mehta, A., 2018. Stabilizing traffic with autonomous vehicles. In: 2018 IEEE International Conference onRobotics and Automation (ICRA). IEEE, pp. 1-7.

12. Wang, M., Hoogendoorn, S.P., Daamen, W., van Arem, B. and Happee, R., 2015. Game theoretic approach for predictive lane-changing and car-following control. Transportation Research Part C: Emerging Technologies, 58, pp.73-92.

13. Rahwan, I., Cebrian, M., Obradovich, N., Bongard, J., Bonnefon, J.F., Breazeal, C., Crandall, J.W., Christakis, N.A., Couzin,I.D., Jackson, M.O. and Jennings, N.R., 2019. Machine behaviour. Nature, 568(7753), pp.477-486.

Reference 31

Page 21: Harnessing Mean-Field Game & Data Science for Mixed …

Control Agents

𝒙𝒊 𝒙𝒊−𝟏

𝒗𝒊 𝒗𝒊−𝟏

(Collaborative) adaptive cruise control

Nonlinear car following model

Optimal control problem

Model predictive control

HV

AVHV

Local Global

Heterogeneous Homogeneous

Long ShortReaction time

Driving control

Information

Driving controller

𝒇|θΔ𝒙𝑖 𝑡Δ𝒗𝑖 𝑡𝒗𝑖 𝑡

𝒗𝑖 𝑡= 𝑎𝑖 𝑡

21

HV AV

Page 22: Harnessing Mean-Field Game & Data Science for Mixed …

Reinforcement & Imitation Learning

Reinforcement (𝑺, 𝑨, 𝑷, 𝒔0, 𝑹)

Imitation 𝑺, 𝑨, 𝑷, 𝒔0

Sampled trajectories 𝜏=𝒔𝟎𝒂𝟎𝒔𝟏𝒂𝟏⋯𝒔𝒕𝒂𝒕⋯

Find 𝜋𝜃s.t. min𝐸𝜏 𝜋 𝑠0 − 𝜋𝜃 𝑠0

Find 𝜋𝜃s.t. 𝜋𝜃 = argmax𝐸 𝑉𝜋 𝑠0

22

• Supervised learning: behavioral cloning• Imitation learning

• Model-based: dynamic programming• Model-free: Q-learning

Human-like

Optimal sequence of actions 𝒂𝟎𝒂𝟏⋯𝒂𝒕

𝑹

Page 23: Harnessing Mean-Field Game & Data Science for Mixed …

Supplemental Materials

23

Page 24: Harnessing Mean-Field Game & Data Science for Mixed …

N-Car Mean Field Type Differential Game

Mean Field Equilibrium:

Continuum Mean Field Game

𝝆∗ 𝒙, 𝒕𝒖∗ 𝒙, 𝒕

Initial:

Terminal:

Boundary:

𝜌 𝑥, 0𝑉 𝑥, 𝑇

𝜌 0, 𝑡 = 𝜌 𝐿, 𝑡𝑉 0, 𝑡 = 𝑉 𝐿, 𝑡

𝑯𝑱𝑩 𝑉𝑡 + 𝑓∗ 𝑉𝑥 , 𝝆 = 0

𝒖 = 𝑓𝑝∗ 𝑉𝑥 , 𝝆

𝑭𝑷𝑲 𝝆𝑡 + 𝝆𝑢 𝑥 = 0

𝐽 𝑣 =

0

𝑇

𝑓 𝑣 𝑡 , 𝜌 𝑥 𝑡 , 𝑡 𝑑𝑡 + 𝑉𝑇 𝑥 𝑇

𝑎𝑟𝑔𝑚𝑖𝑛𝜶 𝑓 α,𝜌 + 𝛼𝑉𝑥

24

𝐽𝑖𝑁 𝑣𝑖 , 𝑣−𝑖 =

0

𝑇

𝑓𝑁 𝑣𝑖 𝑡 , ρ𝜎𝑁 𝑥𝑖 𝑡 , 𝑡 𝑑𝑡 + 𝑉𝑇 𝑥𝑖 𝑇

𝑵 → ∞𝝈 → 0

𝑓∗ 𝑝, 𝜌 = 𝑎𝑟𝑔𝑚𝑖𝑛𝜶 𝑓 α,𝜌 + 𝛼𝑝

Page 25: Harnessing Mean-Field Game & Data Science for Mixed …

𝐽 𝑣 = 0

𝑇

𝑓 𝑣 𝑡 , 𝜌 𝑥 𝑡 , 𝑡 𝑑𝑡 + 𝑉𝑇 𝑥 𝑇𝐽𝑖𝑁 𝑣𝑖 , 𝑣−𝑖 =

0

𝑇

𝑓𝑁 𝑣𝑖 𝑡 , ρ𝜎𝑁 𝑥𝑖 𝑡 , 𝑡 𝑑𝑡 + 𝑉𝑇 𝑥𝑖 𝑇

𝝐

Derived control

𝒗𝒊

Best control

𝒗𝒊𝝐

𝝐-Nash Equilibrium of Differential Game

𝒗𝒊 𝑡 = 𝒖∗ 𝑥𝑖 𝑡 , 𝑡

𝑥𝑖 𝑡 = 𝒗𝒊 𝑡 , 𝑥𝑖 0 = 𝑥𝑖,0

𝒖∗ 𝑥, 𝑡

25

𝑱𝒊𝑵 𝒗𝒊, 𝒗−𝒊 ≤ 𝑱𝒊

𝑵 𝒗𝒊, 𝒗−𝒊 + 𝝐,

∀𝑣𝑖 ∈ 𝐴, 𝑖 = 1,⋯ ,𝑁

𝝐-Nash Equilibrium:

𝝆∗ 𝑥, 𝑡𝒖∗ 𝑥, 𝑡

Page 26: Harnessing Mean-Field Game & Data Science for Mixed …

26Algorithms

Fixed-point Iteration• Alternatingly solve the forward and backward equations• Simple to implement• Fail to converge when 𝑇 is relatively large

Variational Form• Only valid for separable cost function (potential game)• Transform into an optimization

Finite-Difference Newton’s Method• View forward and backward equations as a whole nonlinear system• Use Newton’s method to solve the nonlinear system• Not so efficient, no guarantee on convergence

Challenge: forward-backward structure

Couillet, R., Perlaza, S.M., Tembine, H. and Debbah, M., 2012. Electrical vehicles in the smart grid: A mean field game analysis. IEEE Journal onSelected Areas in Communications, 30(6), pp.1086-1096.Lachapelle, A. and Wolfram, M.T., 2011. On a mean field game approach modeling congestion and aversion in pedestrian crowds. Transportationresearch part B: methodological, 45(10), pp.1572-1589.Achdou, Y. and Perez, V., 2012. Iterative strategies for solving linearized discrete mean field games systems. Networks & HeterogeneousMedia, 7(2).

Page 27: Harnessing Mean-Field Game & Data Science for Mixed …

27

𝑡 = 0

𝑡 = 𝑇

Forward continuity equ.:Lax-Friedrichs scheme

𝑡 = 𝑇

𝑡 = 0

𝑉𝑗𝑛

𝑢𝑗𝑛

BackwardHJB equ.:upwind scheme

Newton’s Method

𝜌𝑗𝑛+1

𝜌𝑗−1𝑛 𝜌𝑗

𝑛 𝜌𝑗+1𝑛

𝑉𝑗+1𝑛+1𝑉𝑗

𝑛+1

Page 28: Harnessing Mean-Field Game & Data Science for Mixed …

Step 1. Space-time grids

28Proposed Algorithm

0 = 𝑥0 < 𝑥1 < ⋯ < 𝑥𝑁𝑥 = 𝐿, 𝑥𝑗= 𝑗∆𝑥, ∆𝑥 =𝐿

𝑁𝑥

0 = 𝑡0 < 𝑡1 < ⋯ < 𝑡𝑁𝑡 = 𝑇, 𝑡𝑛= 𝑛∆𝑡, ∆𝑡 =𝑇

𝑁𝑡

Discretize density, velocity and cost

𝜌𝑗𝑛 =

1

∆𝑥 𝑥𝑗

𝑥𝑗+1

𝜌(𝑥, 𝑡𝑛) 𝑑𝑥 𝑢𝑗𝑛 = 𝑢(𝑥𝑗+1/2, 𝑡

𝑛) 𝑉𝑗𝑛 = 𝑉(𝑥𝑗 , 𝑡

𝑛)

Page 29: Harnessing Mean-Field Game & Data Science for Mixed …

Step 2. Discretization of equations• Lax-Friedrichs scheme for continuity equation

• Upwind scheme for HJB equations (dynamic programming)

29Proposed Algorithm

𝜌𝑗𝑛+1 =

1

2𝜌𝑗−1𝑛 + 𝜌𝑗+1

𝑛 −∆𝑡

2∆𝑥𝜌𝑗+1𝑛 𝑢𝑗+1

𝑛 − 𝜌𝑗−1𝑛 𝑢𝑗−1

𝑛

𝑉𝑗𝑛+1 − 𝑉𝑗

𝑛

∆𝑡=1

2

𝑢𝑗𝑛

𝑢𝑓

2

𝜌𝑗𝑛

𝜌𝑗+𝑢𝑗𝑛

𝑢𝑓+𝑉𝑗+1𝑛+1 − 𝑉𝑗

𝑛+1

∆𝑥= 1

Plus initial/terminal conditions

Page 30: Harnessing Mean-Field Game & Data Science for Mixed …

Step 3. Solve the discretized system as a large system of nonlinear equations

30Proposed Algorithm

𝜌𝑗𝑛+1 =

1

2𝜌𝑗−1𝑛 + 𝜌𝑗+1

𝑛 −∆𝑡

2∆𝑥𝜌𝑗+1𝑛 𝑢𝑗+1

𝑛 − 𝜌𝑗−1𝑛 𝑢𝑗−1

𝑛

𝑉𝑗𝑛+1 − 𝑉𝑗

𝑛

∆𝑡=1

2

𝑢𝑗𝑛

𝑢𝑓

2

𝜌𝑗𝑛

𝜌𝑗+𝑢𝑗𝑛

𝑢𝑓+𝑉𝑗+1𝑛+1 − 𝑉𝑗

𝑛+1

∆𝑥= 1

𝜌𝑗𝑛, 𝑢𝑗

𝑛, 𝑉𝑗𝑛 Vector 𝑤

𝐹 𝑤 = 0

Page 31: Harnessing Mean-Field Game & Data Science for Mixed …

Step 3. Solve the discretized system as a large system of nonlinear equations

31Proposed Algorithm

• Newton’s method

𝑤𝑛+1 = 𝑤𝑛 − 𝐽𝐹(𝑤𝑛 )−1𝐹(𝑤𝑛)

• Multigrid

32x100

initial guess

64x200initial guess

128x400

• Preconditioning

At each Newton’s step, use the uncoupled system as the preconditioner, apply iterative linear solvers

Page 32: Harnessing Mean-Field Game & Data Science for Mixed …

32Algorithm Convergence

Page 33: Harnessing Mean-Field Game & Data Science for Mixed …

33

Theorem 1.

The solution of the LWR model𝜌𝑡 + (𝜌𝑈 𝜌 )𝑥= 0

is a solution of the MFG system with cost function

𝑓 𝑢, 𝜌 =1

2𝑈 𝜌 − 𝑢 2

under the conditions that:(i) They have the same initial density 𝜌0 𝑥 and boundary conditions;(ii) The terminal cost 𝑉𝑇 𝑥 = 0.

LWR

MFG-LWR

𝒖 = 𝑈 𝝆

𝒖 = 𝑎𝑟𝑔𝑚𝑖𝑛 𝐽 𝒖,𝝆 = 0

𝑇

𝑓 𝑣 𝑡 , 𝜌 𝑥 𝑡 , 𝑡 𝑑𝑡

𝑓 𝑢, 𝜌 =1

2𝑈 𝜌 − 𝑢 2

Page 34: Harnessing Mean-Field Game & Data Science for Mixed …

34

Theorem 2.

Under the conditions that: (i) The cost function 𝑓 𝑢, 𝜌 is continuously differentiable, strictly convex w.r.t 𝑢;(ii) The terminal cost 𝑉𝑇 𝑥 = 0;(iii) ∃𝑇0 > 0 s.t. whenever 0 < 𝑇 ≤ 𝑇0 , the MFG system has a unique solution 𝜌 𝑇 𝑥, 𝑡 , 𝑢 𝑇 𝑥, 𝑡

and 𝑉 𝑇 𝑥, 𝑡 that are uniformly bounded up to second order derivatives on 0 ≤ 𝑥 ≤ 𝐿, 0 ≤𝑡 ≤ 𝑇 ≤ 𝑇0.

When 𝑇 → 0 we have:lim𝑇→0

𝑢 𝑇 𝑥, 0 = 𝑈 𝜌0 𝑥 = argmin0≤𝛼≤𝑢𝑚𝑎𝑥

𝑓 𝛼, 𝜌0 𝑥 ,

which is LWR with fundamental diagram 𝑈 𝜌 and initial density 𝜌0 𝑥 .

General MFG

LWR

𝑓 𝑢, 𝜌

𝑈 𝜌0 𝑥 = argmin0≤𝛼≤𝑢𝑚𝑎𝑥

𝑓 𝛼, 𝜌0 𝑥

𝑈(𝜌) = argmin𝛼 𝑓(𝛼, 𝜌)

𝑇

0

Page 35: Harnessing Mean-Field Game & Data Science for Mixed …

35Stability Analysis of MFG

Uniform Flow:

𝑢 = 𝑈 𝜌

Stability Conditions:

sup0≤𝑡≤𝑇

𝜌 𝑇 ⋅, 𝑡 − 𝜌 + 𝑢 𝑇 ⋅, 𝑡 − 𝑢 ≤ 𝜖

𝜌 ⋅, 0 − 𝜌 ≤ 𝛿

𝜌 ≡ 𝜌 𝑥, 𝑡

Theorem 3.

The MFG system is linearly stable around the uniform flow 𝜌, 𝑢 where

𝑓 𝑢, ρ =1

2

𝑢

𝑢𝑚𝑎𝑥

2

−𝑢

𝑢𝑚𝑎𝑥+

𝑢𝜌

𝑢𝑚𝑎𝑥𝜌𝑗𝑎𝑚for all 0 ≤ 𝜌 ≤ 𝜌𝑗𝑎𝑚.

𝜌, 𝑢