1 Introduction

Bus and bus station are important compositions of urban traffic system, which has attracted researchers to develop many models to study various complex traffic phenomena resulting by bus and bus station [118]. However, these models cannot completely reproduce the impacts of bus station on the bus-following behavior because many factors related to bus and bus station (e.g., the bus’s dwelling time at the bus station, the bus’s time headway at the origin, the passenger’s arrival rate at the bus station, etc.) are not explicitly considered. In real traffic system, each bus has following behavior during its running process, so we in this paper use car-following theory to develop a bus-following model to study the impacts of an online bus station on the bus-following behavior.

2 Model

The existing car-following models can be written as follows [1929]:

$$ \frac{\mathrm{d}v_{n}( t )}{\mathrm{d}t} = f(v_{n},\Delta x_{n},\Delta v_{n},\ldots ), $$
(1)

where v n , Δx n , Δv n are, respectively, the nth vehicle’s speed, headway and relative speed, f(⋅) is the nth vehicle’s stimulus function determined by v n , Δx n , Δv n and other factors. Equation (1) can describe many complex traffic phenomena from different perspectives, but it cannot be used to study the bus’s motion in the traffic system with bus and bus station since the factors related to bus and bus station are not explicitly considered.

In fact, bus also has its following behavior in the traffic system with bus and bus station [15]; what’s more, a special lane has been allocated to buses in many cities (e.g., Beijing), which further shows that bus has following behavior. So we can use the car-following theory to study the bus-following behavior. However, there are many factors that affect the bus-following behavior (e.g., the bus’s dwelling time at the bus station, the number of bus stations, the passenger’s arrival rate at the bus station, etc.), so the bus’s following behavior is much more complex than other vehicle’s. In brief, the bus-following behavior in the traffic system with on-line bus stations has the following properties:

  1. (1)

    Each bus station only affects the bus’s behavior that is going to enter the bus station;

  2. (2)

    Each bus may stay for some time at each bus station because some passengers should get on or off the bus.

In addition, we should here give the following assumptions:

  1. (a)

    all the buses run only on the special lane and they have the same origin and destination; overtaking is not permitted on the special lane and there is an on-line bus station that only accommodates a bus;

  2. (b)

    when a bus enters the bus station, the passengers on the platform can board the bus in queue and the bus can pick up all the passengers;

  3. (c)

    when a bus arrives at the destination, it will immediately be removed and its following bus will become the leading bus.

Thus, we can develop a bus-following model with an on-line bus station, i.e.,

$$ \frac{\mathrm{d}v_{n}(t)}{\mathrm{d}t} = \left\{ \begin{array}{@{}l} \kappa( V_{n}(\Delta x_{n}(t)) - v_{n}(t) ) +\alpha\Delta v_{n}(t), \\[3pt] \quad \mbox{if }x_{n + 1} < x_{0}\mbox{ or }x_{n} > x_{0}, \\[3pt] \kappa(V_{n}(\Delta\bar{x}_{n}(t)) - v_{n}(t) ) + \alpha\Delta\bar{v}_{n}(t), \\[3pt] \quad \mbox{if }x_{n} < x_{0}\mbox{ and }x_{n + 1} > x_{0}, \\[3pt] 0, \quad \mbox{if }x_{n}(t) = x_{0}\mbox{ and }t_{n,0} + T_{n} > t \ge t_{n,0} ,\end{array} \right. $$
(2)

where x 0 is the position of the bus station; t n,0 is the time that the nth bus arrives the bus station; T n is the time that the nth bus should station at the bus station; \(\Delta\bar{x}_{n} = x_{0} - x_{n}\); \(\Delta\bar{v}_{n} = - v_{n}\); V n (⋅) is the nth bus’s optimal velocity; κ,α are two reaction coefficients. In this paper, we set κ as constant and define α as follows [24]:

$$ \alpha = \left\{ \begin{array}{@{}l@{\quad}l} a, & \Delta\bar{x}_{n} \le s_{c} ,\\ b, & \Delta\bar{x}_{n} > s_{c}, \end{array} \right. $$
(3)

where a,b,s c are constant.

Before exploring what phenomena (2) can reproduce, we should first analyze the properties of the optimal speed V n (⋅) since Nagatani [2] and Huijberts [4] found that on-line bus station will affect the optimal speed V n (⋅) when the nth bus is going to enter the bus station. In fact, if there are passengers waiting at the platform when the nth bus is going to enter the bus station, the bus cannot achieve its ideal speed \(\bar{V}_{n}( \Delta\bar{x}_{n} )\) (here \(\bar{V}_{n}(\Delta\bar{x}_{n} )\) is the nth bus’s optimal velocity for the distance \(\Delta\bar{x}_{n}\) without on-line bus station). Although the bus’s optimal velocity is complex and maybe related to many factors when it is going to enter the on-line bus station, the exact definition of \(V_{n}( \Delta\bar{x}_{n} )\) has no qualitative effects on the numerical results. Therefore, we can for simplicity define \(V_{n}( \Delta\bar{x}_{n} )\) of (2) as follows [2, 4]:

(4)

where λ is the passenger’s arrival rate, 0≤β≤1 is a parameter that can reflect the properties of on-line bus station. As for the parameters λ,β, we should here give the following notes:

  1. (1)

    \(V_{n}( \Delta\bar{x}_{n}( t ) ) = \exp( - \lambda\Delta\bar{x}_{n}( t ) )\bar{V}( \Delta\bar{x}_{n}( t ) )\) when β=0, which means that passengers can board the nth bus everywhere;

  2. (2)

    \(V_{n}( \Delta\bar{x}_{n}( t ) ) = \bar{V}( \Delta\bar{x}_{n}( t ) )\) when β=1, which show that there is no bus station in the traffic system;

  3. (3)

    the passengers’ arrival rate often has some stochastic properties, but we for simplicity assume λ is constant in this paper.

In fact, the optimal speeds V n x n ), \(\bar{V}_{n}( \Delta\bar{x}_{n} )\) are complex and related to many factors, but we can for simplicity define them as follows [24]:

$$ \begin{array} {@{}l} V_{n}( \Delta x_{n} ) = V_{1} + V_{2}\tanh\bigl( C_{1}( \Delta x_{n} - l_{c} ) - C_{2} \bigr), \\\noalign{\vspace{6pt}} \bar{V}_{n}( \Delta\bar{x}_{n} ) = V_{1} + V_{2}\tanh\bigl(C_{1}( \Delta\bar{x}_{n} ) - C_{2} \bigr), \end{array} $$
(5)

where l c is the bus length, V 1, V 2, C 1, C 2 are constant.

Next, we should define the nth bus’s dwelling time at the bus station. In fact, each bus’s dwelling time at the bus station depends on the number of the passengers who should board and leave the bus. For simplicity, we assume that the nth bus’s dwelling time is only related to the number of the passengers who should board the bus. Thus, we define T n as follows:

$$ T_{n} = T_{0} + \mu N_{n}, $$
(6)

where T 0 is the minimum dwelling time at the bus station, μ is the time it takes a person to board the bus, N n is the number of the passengers who should board the nth bus at the bus station. Based on the passengers’ arrival rate λ, N n can be defined as follows:

$$ N_{n} = \left\{ \begin{array}{@{}l@{\quad}l} t_{1,0}\lambda, & \mbox{if } n = 1, \\\noalign{\vspace{4pt}} ( t_{n,0} - ( t_{n - 1,0} + T_{n - 1} ))\lambda, & \mbox{if }n > 1 . \end{array} \right. $$
(7)

Comparing with the existing models, the proposed bus-following model has explicitly considered some factors related to bus and on-line bus station (e.g., the bus’s dwelling time, the passenger’s arrival rate, etc.), so it can better describe the complex traffic phenomena of the traffic system with on-line bus station.

3 Numerical tests

It is difficult to obtain the analytical solution of (2), so we should use numerical scheme to study what phenomena the proposed model can describe. In fact, (2) has many numerical schemes, but the schemes have no qualitative effects on the numerical results, so we here use the Euler difference to discretize (2), i.e.

$$ \everymath{\displaystyle} \begin{array} {@{}l} v_{n}( t + \Delta t ) = v_{n}( t ) + \frac{\mathrm{d}v_{n}( t )}{\mathrm{d}t}\Delta t, \\\noalign{\vspace{5pt}} x_{n}( t + \Delta t ) = x_{n}( t ) + v_{n}( t) \Delta t \\\noalign{\vspace{5pt}} \phantom{x_{n}( t + \Delta t )} = x_{n}( t ) + \frac{1}{2}\frac{\mathrm{d}v_{n}( t )}{\mathrm{d}t}( \Delta t )^{2} , \end{array} $$
(8)

where x n (t) is the nth bus’s position, Δt=0.01 s is the length of the time step.

Other parameters are defined as follows:

$$ \begin{array}{@{}l} \kappa = 0.41~\mathrm{s}^{ - 1},\qquad a = 0.5,\qquad b = 0, \\[4pt] s_{c} = 150~\mathrm{m}, \qquad x_{0} = 5~\mathrm{km},\qquad L = 10~\mathrm{km}, \\[4pt] N = 20,\qquad \beta = 0.8 , \\[4pt] V_{1} = 6.75~\mbox{m/s},\qquad V_{2} = 7.91~\mbox{m/s}, \\[4pt] C_{1} = 0.13~\mathrm{m}^{ - 1},\qquad C_{2} = 1.57, \\[4pt] l_{c} = 10~\mathrm{m},\qquad T_{0} = 5~\mathrm{s},\qquad \mu = 2, \end{array} $$
(9)

where L is the length of the bus route and N is the number of buses. In addition, we here set the bus’s trail as the x-axis whose origin is the origin of the bus’s route.

Using the proposed model and related parameters, we can obtain the evolution of each bus’s speed and trail (see Figs. 1 and 2). From the two figures, we can obtain the following results:

  1. (1)

    Each bus will immediately start at the origin, gradually stop when it enters the bus station and immediately start after it leaves the bus station for a couple of seconds (see Fig. 1).

    Fig. 1
    figure 1

    The evolution of each bus’s speed, where the bus’s time headways at the origin in (a)–(d) are, respectively, 4 minutes, 3 minutes, 2 minutes and 1 minutes, and the parameter λ=0.2

  2. (2)

    The bus’s time headway has little effects on the evolution of each bus’s velocity when it is greater than 1 minute (see Fig. 1).

  3. (3)

    When the bus’s time headway is lower than or equal to 1 minute, it have great impacts on the evolution of each bus’s velocity. At this time, the interactions between the two adjacent buses will slow down the starting process at the origin, the braking process at the bus station and the second starting process (see Fig. 1).

  4. (4)

    A shock occurs at the bus station and its frontwave will turn more prominent when the bus’s time headway increases (see Fig. 1).

Fig. 2
figure 2

The evolution of each bus’s trail, where the bus’s time headways at the origin in (a)–(d) are, respectively, 4 minutes, 3 minutes, 2 minutes and 1 minute, and the parameter λ=0.2

Using the proposed model and related parameters, we can obtain the evolution of each bus’s speed and trail (see Figs. 3 and 4). From the two figures, we have:

  1. (a)

    Qualitatively, the results are similar to those of Figs. 1 and 2, but the effects of the passengers’ arrival rate on the evolution of each bus’s velocity and the bus’s movement trail are not as prominent as those of the bus’s time headway (see Figs. 3 and 4).

    Fig. 3
    figure 3

    The evolution of each bus’s speed, where the parameter λ in (a)–(d) are, respectively, 0.2, 0.3, 0.4 and 0.5, and the bus’s time headway is 1 minute

    Fig. 4
    figure 4

    The evolution of each bus’s trail, where the parameter λ in (a)–(d) are, respectively, 0.2, 0.3, 0.4 and 0.5, and the bus’s time headway is 1 minute

  2. (b)

    When the passengers’ arrival rate increases, each bus’s dwelling time will increase at the bus station, the second starting process will be postponed (see Fig. 3) and the shock that occurs at the bus stop will become more prominent (see Fig. 4).

Finally, we explore the impacts of on-line bus station on the starting process. Here, we set the bus’s trail as the x-axis whose origin is the origin of the last bus’s initial position. To compare with the car-following model [24], we define the initial conditions as follows: 11 buses distribute on the special lane with an on-line bus station, where the distance between the on-line bus station and the first bus is X and other buses’ headways are equal to 15 meters; the 11 buses’ initial speeds are equal to zero; once t>0, the first bus will immediately start and other buses will gradually start. Using the proposed model and relevant parameters, we can obtain the evolutions of each bus’s speed and acceleration (see Figs. 5 and 6). From the two figures, we can conclude the following results:

  1. (i)

    Qualitatively, the effects of the bus station on the starting process are the same as those of one roadside memorial [29], but each bus should stop at the bus station (see Figs. 5 and 6).

    Fig. 5
    figure 5

    The evolution of each bus’s speed, where the parameter X in (a)–(d) are, respectively, equal to 500 meters, 1000 meters, 1500 meters and 2000 meters and the parameter λ=0.2

    Fig. 6
    figure 6

    The evolution of each bus’s acceleration, where the parameter X in (a)–(d) are, respectively, equal to 500 meters, 1000 meters, 1500 meters and 2000 meters and the parameter λ=0.2

  2. (ii)

    When the distance between the leading bus and the bus station increases, the effects of the bus station on the starting process will become weaker (see Figs. 5 and 6).

4 Conclusions

In this paper, we develop a bus-following model based on the effects of a bus station on each bus’s following behavior. The numerical results illustrate that the proposed model can describe some complex phenomena resulting by bus and a bus station (e.g., the starting and braking processes, etc.). However, we neither study the effects of bus station on the stability of traffic flow nor calibrate the related parameters. In addition, we do not consider the attributions of the bus’s drivers [30]. Therefore, we should use empirical data to develop a more exact bus-following model to study the complex traffic phenomena resulting in the traffic system consisting of buses and bus station (including the complex traffic phenomena resulting by the attributions of the bus’s drivers [30]).