Keywords

1 Introduction

As known, to study the flow of vehicles on a highway is one of today’s most contemporary problems. To solve the problem of traffic congestion, it is not enough to intervene at the level of instrumentality. It is essential to the creation of mathematical models to solve such problems. First and considerable researches in this field have been worked through in [1, 46].

Let \(\rho (x,t)\) and q(xt) denote vehicle density per unit length and number of vehicles passing through any highway section per unit time, respectively. In this instance, \(\int _{a}^{b}\rho (x,t_{1} )dx \) and \(\int _{a}^{b}\rho (x,t_{2} )dx \) refer to the numbers of vehicles on any \(\left[ a,b\right] \) section of the highway at times \(t=t_{1} \) and \(t=t_{2} \). Since the integrals \(\int _{t_{1} }^{t_{2} }q(a,s)ds \) and \(\int _{t_{1} }^{t_{2} }q(b,s)ds \) denote the number of vehicles entering into the highway at the point a and leaving at the point b at the time period \(\varDelta t=t_{2} -t_{1} \), respectively, the following balance equation is valid

$$\begin{aligned} \int _{a}^{b}\rho (x,t_{2} )dx-\int _{a}^{b}\rho (x,t_{1} )dx =\int _{t_{1} }^{t_{2} }q(a,s)ds- \int _{t_{1} }^{t_{2} }q(b,s)ds. \end{aligned}$$
(1)

Applying the mean value theorem to Eq. (1), we get

$$\begin{aligned} \frac{\partial \rho (x,t)}{\partial t} +\frac{\partial q(x,t)}{\partial x} =0. \end{aligned}$$
(2)

To investigate the flow dynamics, it is necessary to know the functional relation of the function q with the local density \(\rho \) in Eq. (2). In the process of derivation of the Eq. (2), the physical assumptions below are made

  1. 1.

    The vehicle flux on the highway is sufficiently dense.

  2. 2.

    No vehicles enter into and leave the highway in the region where the vehicles density is high.

  3. 3.

    Driving reflexes are not considered.

2 Finding the Flow Parameters

First, let us formulate the speed of vehicles on the highway. However, the creation of this formula can be obtained based on theoretical and experimental data. To express the speed of a vehicle these formulas can be considered as the first approach.

In the considering interval \(\left[ a,b\right] \), let us suppose that the vehicles are aligned bumper to bumper. In addition, according to the kinematic theory, the flow speed is as follows

$$\begin{aligned} v=\frac{q}{\rho }. \end{aligned}$$
(3)

The connection between the speed of vehicle and density is found as

$$\begin{aligned} v(\rho )=v_{\mathrm{max}} -\frac{v_{\mathrm{max}} \rho }{\rho _{\mathrm{max}} } \end{aligned}$$
(4)

from the equation of the line passing through the points \(A(0,v_{\mathrm{max}})\) and \(B(\rho _{\mathrm{max}} ,0)\). Taking Eq. (3) into account we get

$$\begin{aligned} q=Q(\rho )=\rho v(\rho )=v_{\mathrm{max}} \left( \rho -\frac{\rho ^{2} }{\rho _{\mathrm{max}} } \right) . \end{aligned}$$
(5)

The actual observed number of vehicles on the highway indicate that it is

$$\begin{aligned} \rho _{max}=225 \frac{vehicle}{mil}, \ \ \ \rho _{j}=80 \frac{vehicle}{mil}, \ \ \ q _{max}=1500 \frac{vehicle}{mil} \end{aligned}$$

in a single-lane roads. These numbers for a single-lane highway are accepted as a first approximation. The number of vehicles in a highway can be expressed as the product of these numbers with the number of lanes. According to the observations on the highway, the maximum flow value in low speeds are \(v=\frac{q_{max}}{\rho _{max}}=20 \frac{mil}{hour}\), [6].

Dispersion speed of the wave is

$$\begin{aligned} c(\rho )=Q'(\rho )=v(\rho )+\rho v'(\rho ). \end{aligned}$$
(6)

Since \(v'(\rho )<0\), the speed \(c(\rho )\) is less than the speed of the moving vehicles. Since the wave propagates in the opposite direction of the traffic flow, it informs the drivers that there is a problem ahead. The speed \(c(\rho )\) is equal to the slope of curves \(Q(\rho )\), thus the wave propagates forward if \(\rho < \rho _{j}\), and backwards if \(\rho > \rho _{j}\). If \(\rho =\rho _{j}\), in other words \(\rho =\rho _{j}\) takes the maximum value, the wave remains stationary relative to the road.

3 Simulation Model and Its Solution

To analyze the dynamics of traffic flow, we will investigate the equation

$$\begin{aligned} \frac{\partial \rho (x,t)}{\partial t} +\frac{\partial Q(x,t)}{\partial x} =0 \end{aligned}$$
(7)

with following initial condition

$$\begin{aligned} \rho (x,t)=\left\{ \begin{array}{c} {\rho _{\ell } ,\quad x<0,} \\ {\rho _{r} ,\quad x>0} \end{array}\right. \end{aligned}$$
(8)

where the numbers \(\rho _{\ell } \) and \(\rho _{r} \) denote the values of the density \(\rho \) at the behind and in front of the jump. Let us assume \(\rho _{\ell } >\rho _{r} \), firstly.

Using the method of characteristics for the solution of the problem (7) and (8) we get

$$\begin{aligned} \rho (x,t)=\left\{ \begin{array}{c} {\rho _{\ell } ,\quad \xi <0,} \\ {\rho _{r} ,\quad \xi >0}. \end{array}\right. \end{aligned}$$
(9)

Here, \(\xi \) is the equation of characteristics, and can be written as

$$\begin{aligned} \xi =x-Q'(\rho )t. \end{aligned}$$
(10)
Fig. 1.
figure 1

Initial condition when \(\rho _{\ell } > \rho _{r}\)

As known from the general theory, when \(\rho _{\ell } >\rho _{r} \) multi-valuable state does not occur in the solution, Fig. 1. Since \(\rho _{\ell } >\rho _{r} \) and \(\rho _{r} \le \rho \le \rho _{\ell } \), all automodel solutions of the Eq. (7) remaining between the lines \(x=\rho _{r} t\) and \(x=\rho _{\ell } t\) are lines crossing the origin, that is, \(\xi =0\), Fig. 2

$$\begin{aligned} x=\rho _{\ell }t, \ \ \ x=\rho _{r} t. \end{aligned}$$
Fig. 2.
figure 2

Characteristics of the Equation (7)

To express a physically meaningful solution of the problem (7) and (8), It is necessary to combine the line

$$\begin{aligned} x=v_{\mathrm{max}} \left( 1-\frac{2}{\rho _{\mathrm{max}} } \rho \right) \, t \end{aligned}$$
(11)

with the lines \(\rho =\rho _{r} \) and \(\rho =\rho _{\ell } \) so that the initial condition is satisfied and the solution is continuous. Therefore we get

  1. 1.

    if \(\xi <0\), then \(\rho =\rho _{\ell }\) and

    $$\begin{aligned} \frac{x}{t} <v_{\mathrm{max}} \left( 1-\frac{2}{\rho _{\mathrm{max}} } \rho _{\ell } \right) \!\!, \end{aligned}$$
  2. 2.

    if \(\xi >0\), then \(\rho =\rho _{r} \) and

    $$\begin{aligned} \frac{x}{t} >v_{\mathrm{max}} \left( 1-\frac{2}{\rho _{\mathrm{max}} } \rho _{r} \right) \!\!. \end{aligned}$$
  3. 3.

    When \(\xi =0\), using the Eq.  (11) we have

    $$\begin{aligned} \rho =-\frac{\rho _{\mathrm{max}} }{v_{\mathrm{max}} } \frac{x}{2t} +\frac{\rho _{\mathrm{max}} }{2}. \end{aligned}$$
Fig. 3.
figure 3

Graphs of the solution (12)

Taking these expressions into account, we get the solution of the problem as follows

$$\begin{aligned} \rho (x,t)=\left\{ \begin{array}{c} {\rho _{\ell } ,\quad \quad \quad \quad \quad \frac{x}{t} <v_{\mathrm{max}} \left( 1-\frac{2}{\rho _{\mathrm{max}} } \rho _{\ell } \right) \!\!,} \\ {} \\ {-\frac{\rho _{\mathrm{max}} }{v_{\mathrm{max}} } \frac{x}{2t} +\frac{\rho _{\mathrm{max}} }{2} ,\quad v_{\mathrm{max}} \left( 1-\frac{2}{\rho _{\mathrm{max}} } \rho _{\ell } \right) <\frac{x}{t} <v_{\mathrm{max}} \left( 1-\frac{2}{\rho _{\mathrm{max}} } \rho _{r} \right) \!\!,} \\ {} \\ {\rho _{r} ,\quad \quad \quad \quad \quad \frac{x}{t} >v_{\mathrm{max}} \left( 1-\frac{2}{\rho _{\mathrm{max}} } \rho _{r} \right) }\!. \end{array}\right. \end{aligned}$$
(12)

The graph of the solution defined by the expression (12) is shown in Fig. 3.

Now, we will investigate the case where the initial distribution of vehicles are as shown in Fig. 4, where \(\rho _{\ell } <\rho _{r} \). In this case, instead of solving the problem (7) and (8), we need to solve the following problem as in [2, 3]

$$\begin{aligned} \frac{\partial u(x,t)}{\partial t} +Q\left( \frac{\partial u(x,t)}{\partial x} \right) =0 \end{aligned}$$
(13)
$$\begin{aligned} u(x,0)=\left\{ \begin{array}{c} {\rho _{\ell } x,\quad x<0}, \\ {\rho _{r} x,\quad x>0}. \end{array}\right. \end{aligned}$$
(14)

The problem (13) and (14) is called the auxiliary problem. The solution becomes

$$\begin{aligned} u(x,t)=\left\{ \begin{array}{c} {u_{-} ,\quad \xi <0}, \\ {u_{+} ,\quad \xi >0}. \end{array}\right. \end{aligned}$$
(15)

The problem (13) and (14) was examined in [2, 3], and it was proven that the expression \(\rho (x,t)=\frac{\partial u(x,t)}{\partial x} \) is the solution of the problem (7) and (8). Here,

$$\begin{aligned} u_{-} =-\frac{v_{\mathrm{max}} }{\rho _{\mathrm{max}} } \rho _{\ell }^{2} t+\rho _{\ell } \left[ x-v_{\mathrm{max}} \left( 1-\frac{2\rho _{\ell } }{\rho _{\mathrm{max}} } \right) \right] \, t \end{aligned}$$
(16)

and

$$\begin{aligned} u_{+} =-\frac{v_{\mathrm{max}} }{\rho _{\mathrm{max}} } \rho _{r}^{2} t+\rho _{r} \left[ x-v_{\mathrm{max}} \left( 1-\frac{2\rho _{r} }{\rho _{\mathrm{max}} } \right) \right] \, t. \end{aligned}$$
(17)

The characteristics of the problem corresponding to this situation are shown in Fig. 4. According to the general theory, in this case a jump occurs in the solution. Location of the jump is found from the equation as follows

$$\begin{aligned} \frac{x}{t} =v_{\mathrm{max}} -\frac{v_{\mathrm{max}} }{\rho _{\mathrm{max}} } \left( \rho _{\ell } +\rho _{r} \right) \equiv U \end{aligned}$$
(18)

using the equality \(u_{-} =u_{+} \). Taking the expression (18) into account, the solution of the problem (7) and (8) is written as

$$\begin{aligned} \rho (x,t)=\left\{ \begin{array}{c} {\rho _{\ell } ,\quad \frac{x}{t} <U} \\ {} \\ {\rho _{r} ,\quad \frac{x}{t} >U}. \end{array}\right. \end{aligned}$$
(19)

The graphs of the solution in this case are shown in Fig. 5.

Fig. 4.
figure 4

Initial distribution of vehicles and characteristics when \(\rho _{\ell } < \rho _{r}\)

The traffic lights can be regulated using this results. To this end, it is sufficient to establish the graphs of the family of characteristics on the (xt) plane. They are constant density lines such that, their \(c{} (\rho )\) slopes determine the constant values of \(\rho (x,t)\) taken on these lines. Let us apply the above theory to the green light problem on the traffic. We let \(\rho _{\ell }=\rho _{max}\) and \(\rho _{r}=0\). This case physically refers to the traffic stop as the traffic light turns red at the point \(x=0\). As shown, the vehicles density has a jump at the point \(x=0\). The distribution of the vehicles (initial state) is shown in Fig. 4.

Fig. 5.
figure 5

Graphs of the solution (19)

As the traffic light turns green from red, we are required to determine the dynamic distribution of vehicles. According to the general theory,

$$\begin{aligned} \frac{dx}{dt}=c(\rho )=Q'(\rho )=v_{max} \left( 1-\frac{2}{\rho _{max} } \rho \right) \end{aligned}$$

and remains constant on characteristics. The slope of a characteristic that intersects the x axis at any point \(x=x_0>0\) in the positive direction is given as

$$\begin{aligned} \frac{dx}{dt}=c(\rho )=Q'(\rho )=v_{max} \left( 1-\frac{2\rho }{\rho _{max}} \right) =v_{max}. \end{aligned}$$

The equation of the family of characteristics is given as \(x=v_{max}t+x_0\). On the other hand, the slope of the characteristics that intersects the x axis at any point in the negative x axis direction is

$$\begin{aligned} \frac{dx}{dt}=c(\rho )=Q'(\rho )=v_{max} \left( 1-\frac{2\rho }{\rho _{max} } \right) =-v_{max}. \end{aligned}$$

It is obvious that, the equation of the family of these characteristics is written as \(x=-v_{max}t+x_0\).

Fig. 6.
figure 6

Family of the characteristics for determining traffic lights

The characteristics settled in the domain \(-v_{max} t< x < v_{max} t\) should have a common point, so \(\frac{dx}{dt}=\frac{x}{t}\). In this case, the equation of the family of characteristics is as shown in Fig. 6.

The traffic flow dynamic that flows slowly across the traffic lights can be seen in Fig. 6.

4 Conclusion

The advantages of the proposed model are listed below:

1. The vehicle density at any point on the highway is specified.

2. Average vehicle speed is determined to estimate the maximum flow of vehicles on the highway.

3. The traffic lights are managed to avoid possible traffic congestion.