Traffic ARZ 1D PDE
This documentation provides a detailed description of the Traffic ARZ PDE model for traffic control and its implementation.
Traffic congestion remains a major challenge as the world’s population is rapidly growing. One particularly common form of congestion is stop-and-go traffic, which frequently occurs on busy freeways. Stop-and-go traffic is a result of delayed drivers response to changes in traffic flow. It makes the traffic flow across a freeway similiar to ocilliatory waves and this leads to unsafe driving conditions, increased fuel consumption, and higher emissions. Thus, it is crucial to develop effective control strategies to mitigate stop-and-go traffic in freeways.
The Traffic Aw–Rascle–Zhang (Traffic ARZ) PDE model is a well-known model for simulating stop-and-go traffic behavior on freeways as shown in the below figure. It consists of a system of coupled hyperbolic PDEs that describe how traffic density evolves over time and space.
Consider a freeway of length \(L\) simulated over a time interval \(T\). Let \(\rho(x, t)\) denote the traffic density (vehicles per unit length) and \(v(x, t)\) the velocity of vehicles at a given position \(x\) and time \(t\). The ARZ model captures the dynamics of these quantities through the following system of PDEs:
- Where,
\(V(\rho)\) is the velocity-density relationship used to model the reduction of velocity with increase in traffic density,
\(\tau\) is the relaxation time that represents the delay in the driver’s response to changes in traffic flow,
The velocity-density relationship is typically modeled as a decreasing function of density, such as the Greenshield’s model:
Where, \(v_m\) and \(\rho_{m}\) are the maximum permissible velocity and density on the freeway.
The first equation (1) represents the conservation of vehicles which ensures that no vehicles appear or disappear within the road segment. On the otherhand second equation (2) captures the effect of velocity changes in response to traffic density variations.
The primary control objective is to regulate traffic flow in freeway around a steady-state \((ρ^\star, v^\star)\) that satisfies the equilibrium condition \(v^\star = V(ρ^\star)\). This is achieved by applying a control input \(u(t)\) at the boundaries \(x = 0\) and \(x=L\) (entrance and exit) of the freeway. In practice, traffic flux \(q(x,t) = \rho(x, t) v(x, t)\) is the most practical parameter to control on freeways. This can be achieved through ramp metering (controlling the rate vehicles enter or exit) or by adjusting speed limits at boundaries as shown in the above figure. We consider traffic flux as our primary control action. If we were to use speed limits are the control mechanism, then the control velocity can be determined directly from the traffic flux using Equation (4). Thus, the control action is given by:
Three types of boundary control scenarios are possible for this problem:
Inlet control \(u_{in}(t)\) at the entrance \((x = 0)\)
Outlet control \(u_{out}(t)\) at the exit \((x = L)\)
Control at both inlet and outlet \(u_{in}(t)\) and \(u_{out}(t)\)
Numerical implementation
The Traffic ARZ PDE model is simulated using the below solution. The PDEs are transformed into an auxiliary variable to recasts the second PDE into conservative form to make it solvable using finite differencing methods. We define the auxiliary variable \(y\) as:
Then, the velocity can be expressed as:
The PDE in equation (1) is then transformed into:
Where, \(F_r(\rho, v) = y + \rho V(\rho)\).
The PDE in equation (2) is then transformed as follows:
Where, \(F_y(\rho,y) = y + \left( \frac{y}{p} + V(\rho)\right)\).
The PDEs are then discretized using the finite difference method. Let \(x_j = j \cdot \Delta x\) and \(t^n = n \cdot \Delta t\) be the spatial and time discretization variables respectively. The discretized form of \(\rho\) and \(y\) at the grid points \((x_j, t^n)\) is denoted as \(\rho_j^n\) and \(y_j^n\) respectively. The discretized PDEs are the solved using Lax-Friedrich’s method. The Lax-Friedrich’s method is a finite difference method used to solve hyperbolic PDEs. It is based on the idea of averaging the values of the solution at neighboring grid midpoints to obtain a new value at the current grid point.
The soulutions at the right grid midpoint is given by:
Similarly, the soulutions at the left grid midpoint is given by:
The update equations for \(\rho\) and \(y\) at the grid points \((x_j, t^{n+1})\) are given by:
Finally, the velocity is reconstructed using: