1 Introduction

In recent years, due to rapid increase of automobiles on the roads, the problem of traffic jam has attracted considerable attention of scientists and researchers. To investigate the properties of traffic congestion and also to reduce it, a lot of mathematical models [112] have been proposed. Nagatani [13] firstly introduced a lattice hydrodynamic model in which drivers adjust their velocity according to the observed headway. Later, many extended version of Nagatani’s lattice models have been developed by considering different factors like backward effect [14], lateral effect of the lane width [15] and anticipation effect of potential lane changing [16] etc. Recently, Peng [17] proposed a new lattice model by incorporating the effect of anticipation individual driving behavior. Kang and Sun [18] introduced a lattice hydrodynamic model by taking into account driver’s delay effect in sensing relative flux (DDSRF) and found that this effect has an important influence on the traffic jams. Most of the above cited models describe some traffic phenomena only on single lane.

Furthermore, Nagatani [19] also extended his original lattice model to two-lane traffic system and analyzed the lane changing behavior. Afterwards, in this direction some modifications have also been proposed by considering optimal current difference [20], flow difference effect [21], density difference effect [22] and effect of driver’s anticipation [23] in two-lane system. Recently, Gupta and Redhu [24] developed a new model by considering driver’s anticipation effect in sensing relative flux (DAESRF) in a two-lane system.

In real traffic, drivers often adjust their velocity according to the observed traffic situations and always estimate their driving behavior. Therefore, driver’s anticipation effect plays an important role in stabilizing and destabilizing the traffic flow. In a traffic network, faster moving vehicles always try to overtake slower moving vehicles to maintain their optimal speed. In this direction, Nagatani [25] extended his lattice hydrodynamic model to take into account the passing effect. systems, driver’s anticipation effect plays an important role. But, upto our knowledge the effect of driver’s anticipation has not been studied in traffic systems with passing.

The paper is organized as follows: in the following section, a more realistic lattice model considering driver’s anticipation behavior with passing effect for a single lane is proposed. In Sect. 3, the linear stability analysis is performed for the proposed model. Section 4 is devoted to the nonlinear analysis in which mKdV equation is derived. Numerical simulations are carried out in Sect. 5 and finally, conclusions are given in Sect. 6.

2 Proposed model

Nagatani [13] introduced the first lattice hydrodynamic model by incorporating the idea of microscopic optimal velocity model to analyze the density wave of traffic flow and is given by

$$\begin{aligned} \partial _t{\rho _j} +\rho _0 \left( \rho _j v_j-\rho _{j-1} v_{j-1}\right) =0,\end{aligned}$$
(1)
$$\begin{aligned} \partial _t (\rho _j v_j)=a\left[ \rho _0 V(\rho _{j+1})-\rho _j v_j\right] \!, \end{aligned}$$
(2)

where \(j\) indicates site-\(j\) on the one-dimensional lattice; \(\rho _j\) and \(v_j\), respectively, represent the local density and velocity at site-\(j\) at time \(t; \,\rho _0\) is the average density; \(a(=1/\tau )\) is the sensitivity of drivers; \(V(\cdot )\) is called optimal velocity function and it is taken as

$$\begin{aligned} V(\rho )=\frac{V_{\max }}{2}\left[ \tanh \left( \frac{2}{\rho _0}-\frac{\rho }{\rho _{0}^{2}}-\frac{1}{\rho _\mathrm{c}}\right) \!+\!\tanh \left( \frac{1}{\rho _\mathrm{c}}\right) \right] \!,\nonumber \\ \end{aligned}$$
(3)

here \(V_{\max }\) and \(\rho _\mathrm{c}\) denote the maximal velocity and the safety critical density, respectively. This optimal velocity function is monotonically decreasing, has an upper bound and an inflection point at \(\rho =\rho _\mathrm{c}=\rho _0\).

The above model is further extended to take passing effect into account by Nagatani [25]. The continuity equation remain preserved even in passing case while the evolution equation is modified by looking at the difference of traffic currents on site-\(j\) and \(j+1\). When the traffic current on site-\(j\) is larger than the current on site-\(j+1\), passing occurs and is proportional to the difference between the optimal currents at site-\(j\) and \(j+1\). Then, the modified evolution equation by considering passing effect is given by

$$\begin{aligned} \partial _t (\rho _j v_j)&= a\left[ \rho _0 V(\rho _{j+1})-\rho _j v_j\right] \nonumber \\&+\,a\gamma \left[ \rho _0 V(\rho _{j+1}(t))-\rho _0 V(\rho _{j+2}(t))\right] \!,\nonumber \\ \end{aligned}$$
(4)

where, \(\gamma \) is a passing constant.

As observed in real traffic flow, drivers always adjust their vehicles based on the available dynamic estimation information and then take decisions after some time. Suppose drivers sense the traffic relative information at time \(t\) and make a decision to adjust their velocity at a later time \(t+\tau _1\), where \(\tau _1\) is the delay of driver’s response in sensing headway. Then, due to the delay of car motion, vehicles move at a later time \(t+\tau _1+\tau _2\), where \(\tau _2\) is the delay time of vehicles motion. So, the total delay time can be divided into two parts \(\tau _1\) and \(\tau _2\). For simplicity, we choose the linear relationship between driver’s response delay \(\tau _1\) and the total delay time \(\tau \) as \(\tau _1=\alpha \tau \), where \(\alpha \) is the anticipation coefficient corresponds to driver behavior and \(\tau =1/a\) denote the delay time which allows for the time lag, that it takes the traffic current to reach the optimal current when the traffic is varying. However, the above discussed driver’s anticipation effect was not considered in the lattice model with passing. In view this, we proposed a new evolution equation with consideration of driver’s anticipation effect on one-dimensional traffic flow when passing is allowed as follows:

$$\begin{aligned} \partial _t (\rho _j v_j)&= a\left[ \rho _0 V(\rho _{j+1}(t+\alpha \tau ))-\rho _j v_j\right] \nonumber \\&+\,a\gamma \left[ \rho _0 V(\rho _{j+1}(t+\alpha \tau ))\right. \nonumber \\&\left. -\,\rho _0 V(\rho _{j+2}(t+\alpha \tau ))\right] . \end{aligned}$$
(5)

Based on the sign of anticipation coefficient \(\alpha \), the above equation can explore different characteristics of driver’s anticipation behavior on a single lane highway. Here, \(\alpha >0\) represents anticipation driving behavior or the driver’s forecast effect in a traffic system with ITS. The idea is that drivers adjust their driving speeds to the anticipation optimal speed at time \(t+\alpha \tau \) after delay time \(\tau \) in advance. So, the bigger value of \(\alpha \) corresponds to skillful drivers in the model.

For \(\alpha <0\), i.e. negative anticipation coefficient corresponds to the explicit driver’s physical delay in sensing relative flux. When \(\alpha =0\), the new model reduces to Nagatani’s [25] model. For simplicity, using the Taylor series expansion and neglecting the non-linear terms, the new evolution equation can be obtained as follows:

$$\begin{aligned}&\partial _t(\rho _j(t)v_j(t))\nonumber \\&\quad =a\rho _0\left[ V\left( \rho _{j+1}(t)\right) +\alpha \tau V'(\rho _{j+1})\partial _t\rho _{j+1}(t)\right. \nonumber \\&\qquad \left. -\,\rho _j (t)v_j(t)\right] \nonumber \\&\qquad +\,a\rho _0\gamma \left[ \varDelta {V\left( \rho _{j+1}(t)\right) }+\alpha \tau \left( V'(\rho _{j+1}(t)\right) \right. \nonumber \\&\qquad \left. \times \,\partial _t\rho _{j+1}(t)\!-\!V'\left( \rho _{j+2}(t)\right) \partial _t\rho _{j+2}(t))\right] \end{aligned}$$
(6)

where \(\varDelta {V(\rho _j(t))}=V(\rho _{j+1}(t))-V(\rho _{j+2}(t))\). By taking the difference form of Eqs. (1) and (6) and eliminating speed \(v_j\), the evolution equation of density is obtained as

$$\begin{aligned}&\rho _j(t+2\tau )\nonumber \\&\quad =\rho _j(t+\tau )-\tau \rho ^2_0\left[ V\left( \rho _{j+1}(t)\right) -V(\rho _{j}(t))\right] \nonumber \\&\qquad -\,\tau \rho ^2_0\alpha \left[ V'\left( \rho _{j+1}(t)\right) \tilde{\varDelta }{\rho _{j+1}(t)}\right. \nonumber \\&\left. \qquad -V'(\rho _{j}(t))\tilde{\varDelta }{\rho _j(t)}\right] \nonumber \\&\qquad -\,\tau \rho ^2_0\gamma \!\left[ 2V\left( \rho _{j+1}(t)\right) \!-\!V(\rho _{j+2}(t))\!-\!V(\rho _{j}(t))\right] \nonumber \\&\qquad -\,\tau \alpha \gamma \rho ^2_0\left[ 2V'\left( \rho _{j+1}(t)\right) \tilde{\varDelta }{\rho _{j+1}(t)}\right. \nonumber \\&\left. \qquad -\,V'(\rho _{j+2}(t))\tilde{\varDelta }{\rho _{j+2}(t)}-V'(\rho _{j}(t))\tilde{\varDelta }{\rho _j(t)}\right] ,\nonumber \\ \end{aligned}$$
(7)

where \(\tilde{\varDelta }{\rho _j(t)}=\rho _j(t+\tau )-\rho _j(t)\), \(V'(\rho _j)=\mathrm{d}V/\mathrm{d}\rho _j\).

3 Linear stability analysis

To investigate the effect of driver’s anticipation on traffic flow when passing is allowed, we conducted linear stability analysis in this section. The traffic density and optimal velocity under uniform traffic condition is taken as \(\rho _0\) and \(V(\rho _0)\), respectively, where \(\rho _0\) is a constant. Hence, the steady-state solution of the homogeneous traffic flow is given by

$$\begin{aligned} \rho _j(t)=\rho _0,\quad V_j(t)=V(\rho _0). \end{aligned}$$
(8)

Let \(y_j(t)\) be a small perturbation to the steady-state density on site-\(j\). Then,

$$\begin{aligned} \rho _j(t)=\rho _0+y_j(t). \end{aligned}$$
(9)

Substituting \(\rho _j(t)=\rho _0+y_j(t)\) in Eq. (7), we obtain

$$\begin{aligned}&y_j(t+2\tau )-y_j(t+\tau )+\tau \rho ^2_0V'(\rho _0)\varDelta y_j(t)\nonumber \\&\quad +\, \tau \rho ^2_0\alpha V'(\rho _0)\tilde{\varDelta }({\varDelta }{y_j(t)})-2\tau \rho ^2_0\gamma V'(\rho _0)\varDelta ^{2} y_j(t)\nonumber \\&\quad -\,2\tau \alpha \gamma \rho ^2_0 V'(\rho _0)\varDelta ^2({\tilde{\varDelta }y_j(t)})=0, \end{aligned}$$
(10)

where \(\varDelta {y_j(t)}=y_{j+1}(t)-y_j(t)\), \(\tilde{\varDelta }{y_j(t)}=y_{j}(t+\tau )-y_j(t)\).

Putting \(y_j (t)=exp(ikj+zt)\) in Eq. (10), we get

$$\begin{aligned}&\mathrm{e}^{2\tau z}-\mathrm{e}^{\tau z}+\tau \rho ^2_0V'(\rho _0)\left( \mathrm{e}^{ik}-1\right) \nonumber \\&\quad +\,\tau \rho ^2_0\alpha V'(\rho _0)\left( \mathrm{e}^{ik}-1\right) \left( \mathrm{e}^{\tau z}-1\right) \nonumber \\&\quad +\,\tau \alpha \gamma \rho ^2_0 V'(\rho _0)\left( 2\mathrm{e}^{2ik}\left( \mathrm{e}^{\tau z}-1\right) \right. \nonumber \\&\left. \quad -\,\mathrm{e}^{2ik}\left( \mathrm{e}^{2ik+\tau z}-\mathrm{e}^{2ik}\right) -\left( \mathrm{e}^{\tau z}-1\right) \right. \nonumber \\&\left. \quad -\,\tau \rho ^2_0\gamma V'(\rho _0)\left( 1-\mathrm{e}^{ik}\right) ^2 \right) =0. \end{aligned}$$
(11)

Inserting \(z=z_1(ik)+z_2(ik)^2\cdots \) into Eq. (11), we obtained the first and second-order terms of the coefficient \(ik\) and \((ik)^2\), respectively, as

$$\begin{aligned} z_1&= -\rho ^2_0 V'(\rho _0),\end{aligned}$$
(12)
$$\begin{aligned} z_2&= -\frac{3\tau z^2_1}{2}-\frac{\rho ^2_0 V'(\rho _0)}{2}-\tau \alpha \rho ^2_0 V'(\rho _0)z_1\nonumber \\&+\,\gamma \rho ^2_0 V'(\rho _0). \end{aligned}$$
(13)

When \(z_2<0\), the uniform steady-state flow becomes unstable for long-wavelength waves. For \(z_2>0\) the uniform flow will remain stable. Thus, the neutral stability curve is given by

$$\begin{aligned} \tau =-\frac{1-2\gamma }{\rho ^2_0 V'(\rho _0)(3-2\alpha )}. \end{aligned}$$
(14)

The instability condition for the homogeneous traffic flow can be described as

$$\begin{aligned} \tau >-\frac{1-2\gamma }{\rho ^2_0 V'(\rho _0)(3-2\alpha )}. \end{aligned}$$
(15)

Equation (15) clearly shows that anticipation coefficient \(\alpha \) plays an important role in stabilizing the traffic flow when passing is considered. Solid curves in Fig. 1a, b is the neutral stability curves in the phase space corresponding to \(\gamma =0.06\) and \(\gamma =0.3\), respectively, for different values of \(\alpha \). The apex of each curve indicates the critical point. It can be easily depicted from the figure that the amplitude of these curves decreases with an increase in \(\alpha \) which means that larger value of \(\alpha \) leads to enlargement of stability region and hence, the traffic jam is suppressed efficiently. On comparing Fig. 1a, b, it is found that the stable region reduces for larger value of the passing coefficient.

Fig. 1
figure 1

Phase diagram in parameter space \((\rho ,a)\) for a \(\gamma =0.06\), and b \(\gamma =0.3\)

4 Nonlinear stability analysis

Using reduction perturbation method, now, we investigate the evolution characteristics of traffic jam around the critical point \((\rho _\mathrm{c},a_\mathrm{c})\) on coarse-grained scales. Long-wavelength expansion method is used to understand the slowly varying behavior near the critical point. The slow variables \(X\) and \(T\) for a small positive scaling parameter \(\epsilon ~(0<\epsilon \ll 1)\) are defined as

$$\begin{aligned} X=\epsilon (j+bt),\quad T=\epsilon ^3{t}, \end{aligned}$$
(16)

where \(b\) is a constant to be determined. Let \(\rho _j\) satisfy the following equation:

$$\begin{aligned} \rho _j(t) =\rho _\mathrm{c} +\epsilon R(X,T). \end{aligned}$$
(17)

By expanding Eq. (7) to fifth order of \(\epsilon \) with the help of Eqs. (16) and (17), we obtain the following nonlinear equation:

$$\begin{aligned}&\epsilon ^2 \left( b+\rho ^2_\mathrm{c}V'\right) \partial _X R\nonumber \\&\qquad +\,\epsilon ^3 \left( \frac{3}{2}b^2\tau +\frac{\rho ^2_\mathrm{c}V'}{2}-\alpha \tau b\rho ^2_\mathrm{c}V'-\gamma \rho ^2_\mathrm{c}V'\right) \partial ^2_X R\nonumber \\&\qquad +\,\epsilon ^4\left( \begin{array}{l} \partial _T R\!+\!\left( \frac{7}{6}b^3\tau ^2\!+\!\frac{\alpha \rho ^2_\mathrm{c}V'}{2}\left( b\tau \!+\!b^2 \tau ^2\right) \right. \\ \left. \quad -\gamma \rho ^2_\mathrm{c}V'\!-\!\tau \alpha b\rho ^2_\mathrm{c}V'\!+\!\frac{\rho ^2_\mathrm{c}V'}{6}\right) \partial ^3_X R\!+\!\frac{\rho ^2_\mathrm{c}V'''}{6}\partial _X R^3\end{array}\right) \nonumber \\&\qquad +\,\epsilon ^5\left( \begin{array}{l} \left( 3b\tau \!+\!\alpha \tau \rho ^2_\mathrm{c} V' \right) \partial _T \partial _X R\!+\!\frac{\gamma (1\!-\!2\gamma )\rho ^2_\mathrm{c} V'''}{6} \partial ^2_X R^3\\ \quad +\left( \frac{5}{8}b^4\tau ^3\!+\!\frac{\alpha \tau \rho ^2_\mathrm{c}V'}{6}\left( b\tau \!+\!6\frac{b^2\tau ^2}{4}\!+\!\frac{b^3\tau ^3}{1}\right) \!-\!\frac{7}{12}\gamma \rho ^2_\mathrm{c} V'\right. \\ \left. \quad -\,\alpha \gamma \rho ^2_\mathrm{c} V' \left( -\frac{1}{2} b^2 \tau ^2-b \tau \right) \!+\!\frac{\rho ^2_\mathrm{c} V'}{24}\right) \partial ^4_X R, \end{array}\right) \nonumber \\&\quad =0, \end{aligned}$$
(18)

where \(V'=\frac{\mathrm{d}V(\rho )}{\mathrm{d}\rho }|_{\rho =\rho _\mathrm{c}}\), \(V'''=\frac{\mathrm{d}V^3(\rho )}{\mathrm{d}\rho ^3}|_{\rho =\rho _\mathrm{c}}\). Near the critical point (\(\rho _\mathrm{c}, a_\mathrm{c}\)), the value of \(\tau \) is set as

$$\begin{aligned} \tau =\tau _\mathrm{c}(\epsilon ^2+1). \end{aligned}$$
(19)

By taking \(b=-\rho ^2_\mathrm{c}V'(\rho _\mathrm{c})\) and eliminating the second and third-order terms of \(\epsilon \), we obtain

$$\begin{aligned}&\epsilon ^4 \left( \partial _T R\!-\!\left( -\frac{12\alpha ^2\gamma ^2\!-\!24\gamma ^2\alpha \!+\!14\gamma ^2\!-\!12\alpha \gamma \!+\!13\gamma \!+\!\alpha ^2-1}{3(2\alpha \!-\!3)^2}\right) \right. \nonumber \\&\left. \quad \times \left( -\rho ^2_\mathrm{c}V' \right) \partial ^3_X R+\frac{\rho ^2_\mathrm{c}V'''}{6}\partial _X R^3\right) \nonumber \\&\quad +\,\epsilon ^5\left( \begin{array}{l} -\left( \frac{3-6\gamma -6\alpha -4\alpha ^2}{4(3-2\alpha )}\right) \rho ^2_\mathrm{c}V'\partial ^2_X R \!+\!\left( \frac{3\!-\!6\gamma }{12(2\alpha \!-\!3)}\right) \rho ^2_\mathrm{c}V''' \partial ^2_X R^3 \\ \qquad +(16\gamma ^4\alpha \!+\!4\gamma ^3(12\alpha ^2\!-\!24\alpha \!-\!11)\\ \qquad -6\gamma ^2(16\alpha ^3\!-\!40\alpha ^2\!+\!26\alpha \!-\!17)\\ \qquad +2\gamma (52\alpha ^3\!-\!184\alpha ^2\!+\!221\alpha \!-\!111)\\ \qquad -4\alpha ^3\!+\!10\alpha ^2\!-\!9\alpha \!+\!10)\left( \frac{-\rho ^2_\mathrm{c}V'}{12(2\alpha \!-\!3)^3}\right) \partial ^4_X R\\ \end{array}\right) \!=\!0\nonumber \\ \end{aligned}$$
(20)

In order to drive the standard mKdV equation, we make the following transformation in Eq. (20):

$$\begin{aligned}&T'=\left( -\frac{12\alpha ^2\gamma ^2\!-\!24\gamma ^2\alpha \!+\!14\gamma ^2\!-\!12\alpha \gamma \!+\!13\gamma \!+\!\alpha ^2\!-\!1}{3(2\alpha \!-\!3)^2}\right. \nonumber \\&\qquad \left. \times \left( -\rho ^2_\mathrm{c}V'\right) \right) T,\nonumber \\&R= \left( \frac{-2(12\alpha ^2\gamma ^2\!-\!24\gamma ^2\alpha \!+\!14\gamma ^2\!-\!12\alpha \gamma \!+\! 13\gamma \!+\!\alpha ^2\!-\!1)}{V'''(2\alpha \!-\!3)^2}V' \right) ^\frac{1}{2}\!\!R',\nonumber \\ \end{aligned}$$
(21)

with the existence condition as

$$\begin{aligned} -12\alpha ^2\gamma ^2\!+\!24\gamma ^2\alpha \!-\!14\gamma ^2\!+\!12\alpha \gamma \!-\!13\gamma \!-\!\alpha ^2\!+\!1\!>\!0.\nonumber \\ \end{aligned}$$
(22)

After applying above transformation, Eq. (20) becomes

$$\begin{aligned} \partial _{T'} R'&= \partial ^3_X R'-\partial _X R'^3 \nonumber \\&-\epsilon \left[ \frac{ g_3}{g_1}\partial ^2_X R'\!+\!\frac{g_4 }{g_1}\partial ^4_X R' \!+\!\frac{g_5}{g_2}\partial ^2_X R'^3\right] , \end{aligned}$$
(23)

where

$$\begin{aligned} g_1\!&= \!-\frac{12\alpha ^2\gamma ^2\!-\!24\gamma ^2\alpha \!+\!14\gamma ^2\!-\!12\alpha \gamma \!+\!\!13\gamma \!+\!\alpha ^2\!-\!1}{3(2\alpha \!-\!3)^2}\\&\times \left( -\rho ^2_\mathrm{c}V'\right) \\ g_2&= \frac{\rho ^2_\mathrm{c}V'''}{6},\; g_3=-\frac{3-6\gamma -6\alpha -4\alpha ^2}{4(3-2\alpha )}\rho ^2_\mathrm{c}V'\\ g_4&= \left[ 16\gamma ^4\alpha +4\gamma ^3(12\alpha ^2-24\alpha -11) \right. \\&\left. -\,6\gamma ^2 (16\alpha ^3-40\alpha ^2+26\alpha -17) \right. \\&\left. +\,2\gamma (52\alpha ^3-184\alpha ^2+221\alpha -111) \right. \\&\left. -4\,\alpha ^3+10\alpha ^2-9\alpha +10\right] \frac{\left( -\rho ^2_\mathrm{c}V'\right) }{12(2\alpha -3)^3}\\ g_5&= \left( \frac{3-6\gamma }{2\alpha -3}\right) \frac{\rho ^2_\mathrm{c}V'''}{12} \end{aligned}$$

After ignoring the \(o(\epsilon )\) terms in Eq. (23), we get mKdV equation whose desired kink soliton solution is given by

$$\begin{aligned} R'_0(X,T')=\sqrt{c} \tanh \sqrt{\frac{c}{2}}(X-cT'). \end{aligned}$$
(24)

In order to determine the value of propagation velocity for the kink–antikink solution, it is necessary to satisfy the solvability condition:

$$\begin{aligned} \left( R'_0,M[R'_0]\right) \equiv \int \limits _{-\infty }^{\infty } dXR'_0 M\left[ R'_0\right] =0, \end{aligned}$$
(25)

with \(M[R'_0]=M[R']\). By solving Eq. (23), the selected value of \(c\) is

$$\begin{aligned} c=\frac{5g_2 g_3}{2g_2 g_4-3g_1g_5}. \end{aligned}$$
(26)

Hence, the kink–antikink solution is given by

$$\begin{aligned} \rho _j=\rho _\mathrm{c}+\epsilon \sqrt{\frac{g_1 c}{g_2}} \tanh \left( \sqrt{\frac{c}{2}}(X-cg_1 T)\right) , \end{aligned}$$
(27)

with \(\epsilon ^2=\frac{a_\mathrm{c}}{a}-1\) and the amplitude \(A\) of the solution is

$$\begin{aligned} A=\sqrt{\frac{g_1 }{g_2}\epsilon ^2 c}. \end{aligned}$$
(28)

The above kink solution exist only if condition (22) is satisfied. So the existence condition for kink solution is

$$\begin{aligned} 0\le \gamma <\eta (\alpha ), \end{aligned}$$
(29)

where

$$\begin{aligned} \eta (\alpha )=\frac{12\alpha \!-\!13\!+\!\sqrt{(-(2\alpha ^2\!-\!3)^2(12\alpha ^2\!+\!12\alpha \!-\!25))}}{4(6\alpha ^2\!-\!9\alpha \!+\!7)}. \end{aligned}$$
(30)

For \(\gamma \ge \eta (\alpha )\), the mKdV equation (23) cannot be derived from above nonlinear analysis. The kink–antikink solution represents the coexisting phase including both congested phase and freely moving phase which can be described by \(\rho _j=\rho _\mathrm{c}\pm A\), respectively, in the phase space \((\rho ,a)\) for \(\gamma <\eta (\alpha )\). The dashed lines in Fig. 1a represent the coexisting curves which divide the phase plane into three regions: stable, metastable and unstable. In the stable region, the traffic flow will remain stable under a disturbance while in metastable and unstable region; a small disturbance will lead to the congested traffic. From Fig. 1a, it is clear that with an increase of anticipation coefficient \(\alpha \), the corresponding neutral and coexisting curves both lower down, which means that \(\alpha \) can stabilize the traffic flow. For \(\gamma =0.3\), as the condition \(\gamma \ge \eta (\alpha )\), is not satisfied, coexisting curers do not exist and are not shown in Fig. 1b for \(\gamma =0.3\). Figure 2a shows the phase diagram in parameter space \((\gamma ,a)\) for different values of \(\alpha \). Curves \(a_\mathrm{c}=(3-2\alpha )/(1-2\gamma )\), predicated by the linear stability analysis, represent the phase boundaries between no jam and kink jam for \(\gamma <\eta (\alpha )\) and no jam with chaotic jam for \(\gamma \ge \eta (\alpha )\). The modified Korteweg de Varies equation (23) has a kink–antikink soliton solution only for \(\gamma <\eta (\alpha )\), therefore there exist only two regions no jam and kink jam for \(\gamma <\eta (\alpha )\) in the phase plane. It is also clear from Fig. 2a that kink region reduces with an increase in the value of \(\alpha \) for \(\gamma <\eta (\alpha )\). This findings is in accordance with the results obtained in Ref. [24] that traffic jam suppressed efficiently by considering driver’s anticipation effect. For \(\gamma \ge \eta (\alpha )\), based upon the kinds of density wave, the unstable region is further divided into two subregions: kink jam and chaotic jam. The boundary between kink and chaotic jam is the line \(a=(3-2\alpha )/(1-2\eta )\). It is worth to mention here that for \(\alpha =0\), the results are similar to those obtained in Ref. [25]. The driver’s anticipation effect also plays an important role when passing rate is high (\(\gamma \ge \eta (\alpha )\)). The increase in the value of \(\alpha \) enlarges the free flow region while the chaotic and kink jam region reduces. Figure 2b, depicts the relationship between driver’s anticipation effect with the critical value of \(\gamma \). It is clear from the figure that the value of \(\eta (\alpha )\) firstly increases with respect to \(\alpha \) and then decreases sharply to zero as soon as \(\alpha =1\).

Fig. 2
figure 2

Phase diagram in a \((\gamma ,a)\) space, and b \((\eta ,\alpha )\) space

5 Numerical simulation

To check whether the proposed model is capable of describing the role of driver’s anticipation effect on traffic flow dynamics with passing and validate linear as well as nonlinear stability analysis, numerical simulation is carried out for the proposed model under periodic boundary conditions. To study the chaotic behavior in the proposed lattice model, we use nonrandom initial conditions. Initially, we defined density in term of a step function as

$$\begin{aligned} \rho _j(0)=\left\{ \begin{array} {l} \rho _0-\sigma ; \; 0\le j<\frac{L}{2}\\ \rho _0+\sigma ;\; \frac{L}{2}\le j<L \end{array}\right. \end{aligned}$$

and

$$\begin{aligned} \rho _j(1)=\left\{ \begin{array} {l} \rho _0-\sigma ; \; 0\le j<\frac{L}{2}-m, \;L-m\le j L\\ \rho _0+\sigma ; \; \frac{L}{2}-m\le j<L-m \end{array}\right. \end{aligned}$$

where \(\sigma \) is the initial disturbance and constant, \(m\) is positive integer and \(L\) is the total number of sites taken as 100. The value of the parameters are chosen as: \(\sigma =0.05\), \(m=0\) and \(\rho _0=\rho _\mathrm{c}=0.2\). From nonlinear stability analysis, it is derived that kink soliton solution of mKdV equation exist only for \(0\le \gamma <\eta (\alpha )\). Therefore, now presented the discussion on results for two different range of \(\gamma \).

Case 1

\(\gamma <\eta (\alpha )\)

Figure 3 shows the spatiotemporal evolution of density after sufficiently long time, namely \(2\times 10^4\) steps for different values of \(\alpha \) on traffic system when passing is allowed at a smaller rate. It is clear from the Fig. 3a–d that initial disturbance leads to the kink soliton which propagates in the backward direction. Due to this, initial small amplitude disturbance evolves into congested flow as the instability condition (15) is satisfied. In the stable region, a small amplitude perturbation to the homogeneous density dies out and kink wave disappears for \(\alpha =0.4\).

Fig. 3
figure 3

Spatiotemporal evolutions of density when \(\gamma =0.06\) for \(a=2.7\) a \(\alpha =0\), b \(\alpha =0.1\), c \(\alpha =0.2\), d \(\alpha =0.3\), and e \(\alpha =0.4\), respectively

Figure 4 describes the density profile at time \(t=20{,}200\) s corresponding to panel of Fig. 3. The region of free flow turns wide and the amplitude of density waves is weakened with the increase in anticipation coefficient which means that anticipation effect enhances the stability of the traffic flow. For \(\alpha =0.4\), the traffic jam disappears and flow becomes uniform. Our Numerical results are consistent with theoretical findings for \(\gamma < \eta (\alpha )\). Therefore, it is reasonable to conclude that driver’s anticipation effect enhances the stability of traffic flow for smaller rate of passing.

Fig. 4
figure 4

Density profiles at time \(t=20{,}200\) when \(\gamma =0.06\) for \(a=2.7\) a \(\alpha =0\), b \(\alpha =0.1\), c \(\alpha =0.2\), d \(\alpha =0.3\), and e \(\alpha =0.4\), respectively

Case 2

\(\gamma \ge \eta (\alpha )\)

Figure 5 depicts the spatiotemporal evolution of density for different values of \(\alpha \) after sufficiently long time with passing at higher rate. It is clear from the figures that the pattern of density profiles is different for small values of \(\alpha \) as compare to those for larger value of \(\alpha \). From Fig. 5a–c, it is observed that traffic is in kink phase as \(a<(3-2\alpha )/(1-2\eta )\) while in Fig. 5d, e, the traffic becomes chaotic. Also, in Fig. 5d, e, the density waves band with one another, break up and propagates in the backward direction. From these results, we can conclude that kink as well as chaotic region exist in the instable region on the phase plane which also satisfies theoretical results shown in Fig. 2a.

Fig. 5
figure 5

Spatiotemporal evolutions of density when \(\gamma =0.3\), \(a=3.1\) for a \(\alpha =0\), b \(\alpha =0.1\), c \(\alpha =0.2\), d \(\alpha =0.3\), and e \(\alpha =0.4\), respectively

Figure 6 describes the density profile at time \(t=20{,}200\) s corresponding to panel of Fig. 5. On comparing Fig. 6a–c with Fig. 4a–c, it is observed that the kink jam profile in larger rate of passing is different than those obtained for smaller rate of passing. For \(\gamma =0.3\), the density profile consists of two traveling waves of different speed, separated by a growing and decaying region of density. Such nonlinear waves are knows as a Bando waves [25, 26] and highlighted by circle in the Fig. 6a. On Further increasing the value of \(\alpha \), these kink-bando wave becomes chaotic wave (see Fig. 6d, e). These numerical results confirm the theoretical findings that for \(a\) is less than \(a_\mathrm{c}\) corresponding to \(\alpha \) then traffic is in kink phase while \(a\) is greater than \(a_\mathrm{c}\), traffic is chaotic and becomes uniform for larger values of \(a\).

Fig. 6
figure 6

Density profiles at time \(t=20{,}200\) when \(\gamma =0.3\), \(a=3.1\) for a \(\alpha =0\), b \(\alpha =0.1\), c \(\alpha =0.2\), d \(\alpha =0.3\), and e \(\alpha =0.4\), respectively

To further classify traffic states, we draw phase space plots of density difference \(\rho (t)-\rho (t-1)\) against \(\rho (t)\) for \(t=20{,}000-30{,}000\), in Fig. 7 corresponding to the traffic patterns in Fig. 5. The pattern in Fig. 7 represents the set of dispersed points in the phase space plot. For smaller values of \(\alpha \), the pattern exhibits the limit cycle shown in Fig. 7a–c. It corresponds to the periodic traffic behavior. As \(\alpha \) increases, the pattern exhibits dispersed plots around a closed loop which corresponds to the irregular traffic behavior. This chaotic behavior exhibits the behavior characteristics of chaos. The points on the right and left ends represent, respectively, the states within the traffic jams and within the freely moving phase. Therefore, it is reasonable to conclude that the driver’s anticipation effect plays a significant role in one dimensional lattice hydrodynamic model with passing and enhances the stability of traffic flow for all possible rates of passing.

Fig. 7
figure 7

Plots of density difference \(\rho (t)-\rho (t-1)\) vs density \(\rho (t)\) when \(\gamma =0.3\), correspond to the panels in Fig. 5, respectively

6 Conclusion

We proposed a new lattice hydrodynamic model of traffic flow by considering driver’s anticipation effect when passing is allowed. The traffic behavior has been analyzed through linear and nonlinear analysis. Through nonlinear stability analysis, we derived the mKdV equation to describe the traffic jam near the critical point and found the condition for which kink soliton solution of mKdV equation exists. For smaller rate of passing, there exist two regions kink jam and no jam on the phase plane while another phase known as chaotic jam exists for larger rate of passing. Phase diagrams are plotted and phase boundary are discussed for smaller and larger rate of passing. It is concluded that anticipation coefficient corresponds to driver’s behavior increases significantly the stability of traffic flow for any value of passing constant. The simulation results are compared and found in good accordance with the theoretical findings which verifies that our consideration is reasonable. Therefore, it is worth to conclude that driver’s anticipation effect plays an important role in stabilizing the traffic flow and this effect should be considered in traffic flow modeling.