Keywords

1 Introduction

Traffic flow problem started some 40 years ago, when Lighthill and Whitham [1] presented a model based on the analogy of vehicles in traffic flow. Then, mathematical description of traffic flow has been an interest subject of research and debate for traffic engineers. This has resulted in a broad scope of models describing different aspects of traffic flow operations, either by considering the time-space behavior of individual drivers under the influence of vehicles in their proximity [2]. For modeling traffic flow problem, there are two classes of models: Macroscopic, which is concerned with average behavior, such as traffic density, average speed and module area [3]. Microscopic models attempt to model the motion of individual vehicles within a system. They are typically functions of position, velocity, and acceleration. This type of models is created using ordinary differential equations, with each vehicle having its own equation. Because the behavior of these models is usually dictated by a lead vehicle, they are termed “car-following” models. Car-following models, which describe the processes by which drivers follow each other in the traffic stream [4]. Car-following itself forms one of the main processes in all microscopic simulation models as well as in modern traffic flow theory, which attempts to understand the interplay between phenomena at the individual driver level and global behavior. The most famous one is the Car-Following model particularly optimal velocity model [5], where the driver adjusts his or her acceleration according to the conditions in front. In that model the vehicle position is treated as a continuous function and each vehicle is governed by an ordinary differential equation that depends on speed and distance of the car in front. In this work, we discussed and gives a detailed analysis of extended optimal velocity models OVM, FVDM, and VSDM. Then we proposed to modify the VSDM model by introduces a new optimal velocity function using the safely indicator inverse of time to collision which takes into account the both of spacing and the relative speed.

The rest of the paper is organized as follows: Sect. 2 gives a short discussion of previous car-following models particularly optimal velocity model. Section 3 presents the modified velocity-separation difference model (modified VSDM in short). Simulation results are presented in Sect. 4.

2 Optimal Velocity (OV) Model and Some Extended Models

The optimal velocity (OV) model is one of the traffic flow models, which has been put forward by to describe some realistic features [6]. OV model may be one of the most representative car-following models for its simplicity and good performance. Generally the microscopic model with continuous variables is expressed by the equation of motion:

$${\ddot{\textit X}}_{n} (t) = k*F\left( {\begin{array}{*{20}c} { \ldots ,\Updelta X_{n + 1} ,\Updelta X_{n} ,\Updelta X_{n - 1} , \ldots } \\ { \ldots ,\dot{X}_{n + 1} ,\dot{X}_{n} ,\dot{X}_{n - 1} ,\ldots} \\ { \ldots ,X_{n + 1} ,X_{n} ,X_{n - 1}, \ldots } \\ \end{array} } \right)$$
(1)

where \({\text{X}}_{\text{n}}\), \({\dot{\text{X}}}_{\text{n}}\), \({\text{S}}\left( {\text{t}} \right) =\Delta {\text{X}}_{\text{n}} = {\text{X}}_{{{\text{n}} + 1}} - {\text{X}}_{\text{n}}\), and coefficient k are position, velocity, headway of the n-th car, and sensitivity respectively. Equation (1) simply states that the acceleration of the n-th car is decided by the motion of the n-th car and the surrounding traffic, i.e. the headway, velocity, and position of the preceding car and those of the car that follows and so on. The car-following models are based on the idea that the dominant part of stimulus comes from the preceding car [7]. Along this idea, the equation of motion (1) can be simplified. In this paper, we presented three models that are constructed in different viewpoints with respect to the behavior of a driver: How a driver controls his car.

2.1 Model 1: Optimal Velocity Model Proposed by [6]

In the OV model, the acceleration of the n-th vehicle at time t is determined by the difference between the actual velocity, \({\dot{\text{X}}}_{\text{n}}\), and an optimal velocity \({\text{V}}_{\text{opt}} ({\text{S}}\left( {\text{t}} \right))\), which depends on the headway S(t) to the car in the front. The equation of motion is:

$${\ddot{\textit X}}(t) = k*[V_{opt} ((S(t)) - \dot{X}_{n} (t)]$$
(2)

The optimal velocity function \({\text{V}}_{\text{opt}} ({\text{S}}\left( {\text{t}} \right))\) is a monotonically increasing function and has an upper bound. The purpose of this paper is to evaluate and clarify the dynamical changes of traffic states using optimal velocity function in traffic system. The choice of the optimal velocity function is crucial to achieve the goal of research. Here we adopt the optimal velocity function calibrated by using actual measurement data as follows [8]:

$$V_{opt} (S(t)) = V_{1} + V_{2}\, \text{tanh}[C_{1} (S(t) - l) - C_{2} ]$$
(3)

2.2 Model 2: Full Velocity Difference Model Proposed by [9]

Simulation results show that the OV model produces too high acceleration and unrealistic deceleration, and crash phenomenon may be appeared. The authors [8] proposed Generalized Force Model (GFM) to avoid these problems. Based in this theory, the velocity difference is appended to the OV model when the velocity of leading car is smaller than the following [10]. In 2001, [9] conducted a detailed analysis of GFM and found out that it cannot predict correctly the delay time of car motion when using GFM. They thought it was due to that GFM does not take the effect of positive \(\Delta \dot{X}\) on traffic dynamics into account, and then they suggested a full velocity difference model (FVDM) which includes the positive \(\Delta \dot{X}\) factor and obtained a more systematic model as follows:

$${\ddot{\textit X}}(t) = k*[V_{opt} ((S(t)) - \dot{X}_{n} (t)] + \lambda {\Updelta }\dot{X}$$
(4)

2.3 Model 3: Velocity-Separation Difference Model (VSDM) Proposed by [5]

In 2006, Li Zhi-Peng et al. [5] conduct that the second term in the right side of FVDM of (4) makes no allowance of the effect of the inter car spacing independently of the relative velocity. However, they proposed to separate between cars because it plays an important role in traffic dynamics. They justified that the acceleration controlled by a driver is different when he responds to two different stimuli which have the same relative velocity but different headway. According to the above analysis, they modified the FVDM by taking the separation between cars into account. Since this model takes velocity difference dependent on separation into account, they call it a velocity-difference-separation model (VDSM). The dynamic equation as follows:

$$\begin{aligned} {\ddot{\textit X}}(t) & = k*[V_{opt} ((S(t)) - \dot{X}_{n} (t)] \\ & \quad + \,\lambda \Uptheta ({\Updelta }\dot{X}){\Updelta }\dot{X}(1 + \text{tanh}[C_{1} (S(t) - l) - C_{2} ])^{3} \\ & \quad +\, \lambda \Uptheta ( - {\Updelta }\dot{X}){\Updelta }\dot{X}(1 - \text{tanh}[C_{1} (S(t) - l) - C_{2} ])^{3} \\ \end{aligned}$$
(5)

where \(\Theta (.)\) is step function.

3 Proposed Model

In this paper, we proposed to modify VSDM that takes velocity difference dependent on separation into account using a new optimal velocity function (OVF). The selection of the OVF thus depends on a users choice. However, this choice cannot be completely arbitrary since the OVF must satisfy several analytical conditions to describe the observed relation between spacing and velocity. The OVF should be a continuous non-negative function defined for \(S(t) > 0\) and must be a monotone function [11]. In this work, we using a new OVF introducing a weighting factor that depends on the ratio of the relative speed to spacing proposed by [12], that is the opposite of the inverse of time to collision (TTC). In Ref. [12], the authors used this new optimal velocity function to modify OV model. In our case, we used this new one to modify VSDM model to make it more reactive on braking state. The optimal velocity function (3) is thus changed to \(V_{opt}^{new} (S,\dot{S})\) given by:

$$V_{opt}^{new} = V_{opt} (S)*W(S,\dot{S})$$
(6)

where the weighting factor is:

$$W(S,\dot{S}) = [A(1 + \text{tanh}\,B(\frac{{\dot{S}}}{S} + C)]$$
(7)

We extended VSDM model by incorporating the new OVF that combined between the simple OVF and the concept of inverse time to collision to get a novel model that called a modified VSDM model is expressed by the equation of motion:

$$\begin{aligned} {\ddot{\textit X}}(t) & = k*[V_{opt}^{new} ((S(t),\dot{S}(t)) - \dot{X}_{n} (t)] \\ & \quad + \,\lambda {\Theta} ({\Delta }\dot{X}){\Delta }\dot{X}(1 + \text{tanh}[C_{1} (S(t) - l) - C_{2} ])^{3} \\ & \quad + \,\lambda {\Theta} ( - {{\Delta} }\dot{X}) {\Delta } \dot{X}(1 - \text{tanh}[C_{1} (S(t) - l) - C_{2} ])^{3} \\ \end{aligned}$$
(8)

We proposed in Fig. 1 a modified VSDM car-following model that uses the new optimal velocity function introducing the weighting factor. However, the weighting factor introduces the inverse of time to collision as a very important safely indicator using in braking state.

Fig. 1
figure 1

Modified VSDM Car-following algorithm

In order to do numerical analysis, we rewrite the second-order ODE of modified VSDM (8) as a system of first-order ODEs. Let \(x_{1} = X\) and \(x_{2} = \dot{X}\) are position and velocity respectively.Let \({\text{x}} = \left( {\begin{array}{*{20}c} {x_{1} } \\ {x_{2} } \\ \end{array} } \right)\) the vector depending on position and velocity of each car and \({\text{f}}\left( {\begin{array}{*{20}c} {x_{1} } \\ {x_{2} } \\ \end{array} } \right) = \left( {\begin{array}{*{20}c} {x_{2} } \\ {g(x_{1} ,x_{2} ,p)} \\ \end{array} } \right)\) the function to resolve of first-order ODEs. Where p = (t, x, k, \(v_{0}\), l, A, \(C_{1}\), \(C_{2}\), \(V_{1}\), \(V_{2}\), C, B, \(\lambda\)) parameters used in a simulation.

$$g(x_{1} ,x_{2} ,p) = \alpha_{0} *x_{2} + \alpha_{1}$$
(9)

where

$$\begin{aligned} \alpha_{0} = - k\quad{\text{and}}\quad \alpha_{1} =& k*V_{opt}^{new} \\ & + \lambda\Theta (\Delta \dot{X})\Delta \dot{X}(1 + \text{tanh}[C_{1} (S - l) - C_{2} ])^{3} \\ & + \lambda\Theta ( -\Delta \dot{X})\Delta \dot{X}(1 - \text{tanh}[C_{1} (S - l) - C_{2} ])^{3} \\ \end{aligned}$$
(10)

4 Simulation

In these simulations we used ODE45 in Matlab which uses Runge-Kutta methods to solve systems of ordinary differential equations to find the position and velocity of each car. The parameters values used in (3) are \(V_{1} = 6.75\,{\text{m}}/{\text{s}}\), \(V_{2} = 7.91\,{\text{m}}/{\text{s}}\), and \(C_{1} = 0.13\), \(C_{2} = 1.57\). The parameters values used in (7) are B = 5 s, \(C = 0.4\,{\text{m}}^{ - 1}\), and A = 1/2. The sensitivities coefficients are \(k = 0.85\), \(\lambda = 0.4\).

Figure 2 simulate the motion of car using VSDM and MVSDM model. Figure 3 illustrates the time evolution of the speed of both VSDM and a modified VSDM vehicles. The simulation result shows that the vehicle velocity maximum of modified VSDM reach 8 m/s, however, the vehicle velocity maximum of VSDM reach 14 m/s. We deducted that the maximum of speed of a modified VSDM under the maximum of speed that related to VSDM model. MVSDM velocity begins to decrease before the VSDM vehicle velocity reaches its maximum. This due to introduction of weighting factor which used the inverse of time to collision which reduces the optimal velocity and make it the model more reactive in braking state.

Fig. 2
figure 2

Position of motion of car using VSDM and MVSDM models

Fig. 3
figure 3

Velocity of car using VSDM model and MVSDM models

5 Conclusion

Microscopic traffic flow model described a traffic flow in a realistic manner. In this paper we describe a VSDM model used a optimal velocity function and we compare them with a modified VSDM model that introduce the new optimal velocity function based on weighting factor which depending on spacing and relative speed for control a braking situations to avoid a collision.