03 - Fundamentals of traffic flow modeling - OMT

03 - Fundamentals of traffic flow modeling - OMT

In traffic flow modeling, we can distinguish between

Schermata 2024-11-30 alle 18.57.20.png

In this chapter we will focus on #LWR Traffic flow theory.

Macroscopic models

macroscopic models

Macroscopic models predict the evolution in time of the macroscopic variables:

  • Flow - q
  • Density - k
  • Average Speed - v

They are very robust: it's difficult for things to go wrong in calculation. They only use a few parameters (3).

They are known with many different names:

And are solved by some simulators - Calculation can be done by hand

Microscopic models

microscopic models

Microscopic models try to predict how one vehicle, the follower, follows another vehicle, the leader

Given the trajectory of the leader, we are interested in obtaining the trajectory of the follower.

They are very detailed, but use many many parameters (in the order of 101).

In microscopic models, we work with microscopic variables:

Microscopic models are known as:

And are solve by computer simulators:

LWR Traffic flow theory

LWR theory postulates

LWR theory is based on 2 postulates:

postulates of lwr theory
  1. #Conservation of vehicles
  2. #Equation of state

Conservation of vehicles

Given a control volume (space x time), the number of vehicles that enter the volume and that exit the volume must be equal.

Look at the trajectories in the following diagram:

Conservation of veh principle graph - 03 - Fundamentals of traffic flow modeling - OMT 2024-11-30 19.13.03.excalidraw.png
%%🖋 Edit in Excalidraw%%

!!! The control volume is just a mathematical object. From now on we will refer to control area. The control area is the physical space that we are observing (for example, a stretch of road).

Let

m1+n3=m2+n4

The members can be rearrange to write:

m2m1=n3n4

We can express the conservation of vehicles principle as follows:

The difference between vehicles entering and exiting the control volume must be equal to the variation in storage in the control volume.

The last equation can be divided by the area of the control region in the graph:

m2m1(t2t1)(x2x1)=n3n4(t2t1)(x2x1)m2m1T1x2x1=n3n4L1t2t1(q2q1)1x2x1=(k3k4)1t2t1q2q1x2x1=k3k4t2t1ΔqΔx=ΔkΔt

where at one point we have substituted the definitions of flow and density. Finally, at limit, the equation can be written as:

qx=kt
conservation of vehciles principle

The difference between vehicles entering and exiting the control volume must be equal to the variation in storage in the control volume.
qx=kt

Relative flow

Let's consider the following time-space diagram:

03 - Fundamentals of traffic flow modeling - OMT 2024-12-06 16.49.23.excalidraw.png
%%🖋 Edit in Excalidraw%%

There are several vehicles traveling at speed v and 1 observer traveling at speed v0.

The [[#Conservation of vehicles]] applies for any control volume we consider. Therefore, it applies for the one indicated in orange in the graph.

Given that:

then, we have that:

{kL=Number of vehicles entering from the leftqT=Number of vehicles exiting from the topq0T=Number of vehicles enetring from the bottom

where q0 is known as the relative flow. This is the flow seen by the observer. According to the [[#Conservation of vehicles]]:

kL+q0T=qT

So:

q0T=qTkLq0=qkLTq0=qkv0

according to the fundamental equation of trafic (q=kv):

q0=k(vv0vre)

where vre is the relative speed between the observer and the the other vehicles.

relative flow

The relative flow, defined as
q0=k(vv0)
describes the amount of overtakes an observer experiences.

{vre=0No overtakesvre>0Traffic moves faster than the observervre<0Traffic moves slower than. theobserver

In case v0<0, then q0>q.

Equation of state

The second postulate of the [[#LWR Traffic flow theory]] is the existence of an equation of state. This means that the state of the system can be univocally determined applying one equation to a state variable.

In the fundamental equation of traffic, we can write one state variable as a function of the other 2. To get to the required equation of state, we need to go down to 1 degree of freedom. We need 1 extra equation.

This relation will be obtained empirically, meaning it is a regression of some measurement.

Let's imagine taking data points of speed against spacing:

03 - Fundamentals of traffic flow modeling - OMT 2024-12-06 18.04.39.excalidraw.png
%%🖋 Edit in Excalidraw%%

The graph shows the empirical relation between average speed and spacing. Notice that as spacing increases, also velocity increases until speed starts to approach a constant value, vf, known as free-flow speed.

Remembering the fundamental equation of traffic flow, q=kv=vs, we can see that, for each point on the curve, the slope of the line passing through that point and the origin gives the flow in that state.

From this it's fairly easy to find the maximum flow, known as capacity of the infrastructure, as the tangent line.

From the state diagram, we can also define some new concepts:

Congestion regime

Congestion regime diagram - 03 - Fundamentals of traffic flow modeling - OMT 2024-12-06 18.16.49.excalidraw.png
%%🖋 Edit in Excalidraw%%

Free-flow regime
free flow traffic

We have free flow traffic when we work on spacings (density) grater (less) than those relative to the capacity.

Congestion
congestion

We have congestion when we work on spacings (density) less (greater) than those relative to the capacity.

Traffic regime

Light traffic
light traffic

We have light traffic when the speed is not dependent on the spacing or density

Heavy traffic
heavy traffic

We have heavy traffic when the speed is dependent on the spacing or density

Density speed models

The first model was proposed by [[Bruce Greenshield]]. It's known as [[#Greenshield k-v model]]. We will see the following models:

Greenshield k-v model

Schermata 2024-12-06 alle 17.14.15.png

The figure above shows the original Greenshield k-v model. He described the average speed as a function of density, requaring 2 calibration parameters

the greenshield $k-v$ model

Greenshield k-v model - 03 - Fundamentals of traffic flow modeling - OMT 2024-12-06 17.18.32.excalidraw.png

v=vf(1kkj)
where:

  • vf: Free flow speed - Speed at which vehicles travel when density is very low
  • kj: Jam density - Maximum density at the infrastructure when vehicles are in a gridlock jam, completely stopped

Given qmax is the maximum flow of the infrastructure, the capacity, this is given by the area of the rectangle of sides v0 and k0.

The capacity point also distinguishes between two states:

finding $q_{max}$

v0 and k0 can be obtained as follows. According to the fundamental equation of traffic and to the Greenshield model
{q=vkv=vf(1kkj)
Combining the 2 equations:
q=vf(1kkj)k==vfkvfkjk2
To find the maximum of this funciton, we can derive and impose equal to 0:
qk=k(vfkvfkjk2)=!0vf2vfkjk=0k=12kj
So,
k0=12kjv0=12vf

03 - Fundamentals of traffic flow modeling - OMT 2024-12-06 17.31.49.excalidraw.png

Greenberg k-v model (1959)

Greenberg, in 1959, proposed a model that works very well in the congested part of the diagram, but not so much in the free flow.

greenberg $k-v$ model

Greenberg k-v model - 03 - Fundamentals of traffic flow modeling - OMT 2024-12-06 17.35.46.excalidraw.png

v=v0ln(kjk)

Since, mathematically, this model has velocity appriximating infinity for very low values of k, the model is usually cut at the free flow speed, vf.

Underwood k-v model (1961)

Underwood, in 1961, proposed a model calibrated for free flow condition, but that doesn't work well in congestion

underwood $k-v$ model

Underwood k-v model - 03 - Fundamentals of traffic flow modeling - OMT 2024-12-06 17.41.25.excalidraw.png

v=vfe(kk0)

Edie k-v model

Edie, in 1961, decided to merge the [[#Greenberg k-v model (1959)]] and [[#Underwood k-v model (1961)]] in order to obtain one unique model that would work well for both free flow traffic and for congestion. This is simply the merging of the 2 functions cutoff at the capacity point k0.

edie $k-v$ model

Edie k-v model - 03 - Fundamentals of traffic flow modeling - OMT 2024-12-06 17.45.41.excalidraw.png

Traffic shock-wave

traffic shock-wave

Whenever there is a change in the state of traffic, such as an acceleration or deceleration, the information of such change travels in traffic. The travel of information is referred to as a traffic shock-wave. This means that in different points in space and time, the change in traffic state happens only once the shock-wave reaches that point.

Traffic shockwave speed

Look at the trajectory diagram below. There are several vehicles travelling at speed v1 that then start to move at speed v2<v1.

03 - Fundamentals of traffic flow modeling - OMT 2024-12-06 18.25.33.excalidraw.png
%%🖋 Edit in Excalidraw%%

Let's apply the [[#Conservation of vehicles]] to the red square:

m1+n3=m2+n4m1n4State U=m2n3State D

Let qU and qD be the flows for states U and D respectively. Similarly for kU and kD for densities. Then, the following relations stand:

m1=qUTn4=kULm2=qDTn3=kDL

So we get:

qUTkUL=qDTkDL

Dividing both members by T, defining LT=u:

qUkUu=qDkUu

from which we find:

u=qUqDkUkD=ΔqΔk

that is defined as the shockwave speed.

traffic shockwave speed

The speed of a traffic shock-wave between 2 stationary traffic states is determined by the increase in flow over the increase in density:
u=ΔqΔk
If:

  • u>0: wave travles in same direction of traffic
  • u<0: wave travles in opposite direction of traffic

Fundamental diagram of traffic

The fundamental diagram of traffic is a density-flow diagram (kq). It's vastly used because a lot of information can be derived from it by simple inspection.

The typical shape of a fundamental diagram of traffic is the following:

03 - Fundamentals of traffic flow modeling - OMT 2024-12-07 12.59.15.excalidraw.png

Traffic will be on any point of that curve and each point resembles a different traffic state.

A TRAFFIC STATE ON THE GRAPH

03 - Fundamentals of traffic flow modeling - OMT 2024-12-07 13.02.39.excalidraw.png

Look at traffic state A.

vA=qAkA

This can be represented graphically by a line going through the origin and intersecting the diagram in point A.

RELATIVE FLOW

From the same graph we can also obtain the #Relative flow
between an observer traveling at speed vA and any other traffic state. Here we can see the relative flow with A1, q0A1>0 and with A2, q0A2<0.

FREE FLOW AND CAPACITY

Let's look at some specific states on the fundamental diagram (FD):

03 - Fundamentals of traffic flow modeling - OMT 2024-12-07 13.07.45.excalidraw.png

In the graph above 2 states are represented:

From the graph it's easy to gain the free-flow speed, vF and the optimal speed, vopt.

SHOCK-WAVE SPEED

Let's now imagine traffic moves from state A to state B. It would be, in this case, an acceleration.

03 - Fundamentals of traffic flow modeling - OMT 2024-12-07 13.17.03.excalidraw.png

By definition, u=ΔqΔk is the #Traffic shockwave speed between state A and state B. In the graph this can be read as the slope of the line going through A and B:

uAB=qAqBkAkB

Shocks and waves

The concept behind [[#LWR Traffic flow theory]] is that every change in traffic state causes a wave to be generated. If we're able to track the waves in space and time, we are then able to predict traffic evolution.

Just 2 situations are possible with traffic:

Acceleration - LWR

To study the acceleration transition, we will suppose a 1 lane road in which some vehicles are piled up behind a slow moving truck until time t1. At t1, the truck exits the road and vehicles behind it start accelerating. During the acceleration, the vehicles will travel at all the intermidiate speeds between the truck speed, vB and the free-flow speed, vH.

At every differential speed change a #Traffic shock-wave is generated.

Acceleration - LWR theory - 03 - Fundamentals of traffic flow modeling - OMT 2024-12-07 19.02.12.excalidraw.png

Each wave on the tx graph, with slope uij, describes the threshold between traffic state i and traffic state j. Meaning we can predict the trajectory knowing the supposed slope from the kq #Fundamental diagram of traffic.

Notice that since each step is theoretically differential, there are infinitely many shockwaves every time we go from one state to another.

Deceleration - LWR

Now we just suppose that, on a stretch of road, vehicles are decelerating from speed vA to a lower speed vF, therefore moving from state A to state F. Differently from the #Acceleration - LWR, here waves do not tend to fan out. Instead, they tend to collide with one another.

When 2 waves collide, it means that 2 very different traffic states are colliding without any smooth transition. This generates yet an other wave, known as shock.

We will observe that initially there will be a smooth transition between state A and state F. Eventually though, only a single shockwave will remain changing abruptly from state A to state F.

Thinking of this in real life, when traffic slows down on a road, initially, the first cars have time to slow down gradually as the very first cause of the slowdown. As more cars arrive, the new ones will have less and less time to react until a point where one car is moving at free-flow speed until it finds the end of the queue that just formed.

Deceleration - LWR - 03 - Fundamentals of traffic flow modeling - OMT 2024-12-07 19.35.04.excalidraw.png

LWR simplifications

From the explanation of #Shocks and waves it's clear that applying the model is not easy due to the infinitely many waves that generate between 2 states.

There are some simplifications that we can introduce to make things a lot easier. Specifically, we will add 2 assumptions:

Instantaneous accelerations/decelerations - LWR

We will consider every change in speed instantaneous. This means that, for each state change, only one #Traffic shock-wave is generated. This is particularly useful in #Deceleration - LWR, where infinitely many waves otherwise collide generating infinitely many shocks.

This assumption is actually quite justified when thinking that usually speed transition happen on a short time-span compared to the whole trajectory of a vehicle.

With this simplification, the graphs shown in #Deceleration - LWR will appear as the following:

03 - Fundamentals of traffic flow modeling - OMT 2024-12-07 19.57.32.excalidraw.png

This simplification still doesn't help much in accelerations, for which we need a new assumption: #Triangular fundamental diagram.

Triangular fundamental diagram

In the 1990 it was proposed to adopt a triangular #Fundamental diagram of traffic. This served 2 porpuses:

Now, the new state change, for #Acceleration - LWR, would look more like this

03 - Fundamentals of traffic flow modeling - OMT 2024-12-07 20.05.36.excalidraw.png

Now, in terms of waves, the state change BH and BC are equivalent. Therefore, the wave speed between for state change BH is w.

LWR Theory example

LWR theory limitations