Skip to main content
Log in

An efficient train scheduling algorithm on a single-track railway system

  • Published:
Journal of Scheduling Aims and scope Submit manuscript

Abstract

Since scheduling trains on a single-track railway line is an NP-hard problem, this paper proposes an efficient heuristic algorithm based on a train movement simulation method to search for the near-optimal train timetables within the acceptable computational time. Specifically, the time–space statuses of trains in the railway system are firstly divided into three categories, including dwelling at a station, waiting at a station and traveling on a segment. A check algorithm is particularly proposed to guarantee the feasibility of transition among different statuses in which each status transition is defined as a discrete event. Several detailed operation rules are also developed to clarify the scheduling procedure in some special cases. We then design an iterative discrete event simulation-based train scheduling method, namely, train status transition approach (TSTA), in which the status transition check algorithm and operation rules are incorporated. Finally, we implement some extensive experiments by using randomly generated data set to show the effectiveness and efficiency of the proposed TSTA.

This is a preview of subscription content, log in via an institution to check access.

Access this article

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Fig. 1
Fig. 2
Fig. 3
Fig. 4
Fig. 5
Fig. 6
Fig. 7
Fig. 8
Fig. 9
Fig. 10
Fig. 11
Fig. 12
Fig. 13
Fig. 14

Similar content being viewed by others

References

  • Cacchiani, V., Caprara, A., & Toth, P. (2010). Scheduling extra freight trains on railway networks. Transportation Research Part B, 44(2), 215–231.

    Article  Google Scholar 

  • Cacchiani, V., Huisman, D., Kidd, M., Kroon, L., Toth, P., Veelenturf, L., et al. (2014). An overview of recovery models and algorithms for real-time railway rescheduling. Transportation Research Part B, 63, 15–37.

    Article  Google Scholar 

  • Cacchiani, V., & Toth, P. (2012). Nominal and robust train timetabling problems. European Journal of Operational Research, 219(3), 727–737.

    Article  Google Scholar 

  • Cai, X., & Goh, C. (1994). A fast heuristic for the train scheduling problem. Computers & Operations Research, 21(5), 499–510.

    Article  Google Scholar 

  • Cai, X., Goh, C., & Mees, A. (1998). Greedy heuristics for rapid scheduling of trains on a single track. IIE Transactions, 30(5), 481–493.

    Article  Google Scholar 

  • Caprara, A., Fischetti, M., & Toth, P. (2002). Modeling and solving the train timetabling problem. Operations research, 50(5), 851–861.

    Article  Google Scholar 

  • Carey, M. (1994a). A model and strategy for train pathing with choice of lines, platforms, and routes. Transportation Research Part B, 28(5), 333–353.

    Article  Google Scholar 

  • Carey, M. (1994b). Extending a train pathing model from one-way to two-way track. Transportation Research Part B, 28(5), 395–400.

    Article  Google Scholar 

  • Carey, M., & Lockwood, D. (1995). A model, algorithms and strategy for train pathing. Journal of the Operational Research Society, 46(8), 988–1005.

    Article  Google Scholar 

  • Corman, F., D’Ariano, A., & Hansen, I. (2014a). Evaluating disturbance robustness of railway schedules. Journal of Intelligent Transportation Systems, 18(1), 106–120.

    Article  Google Scholar 

  • Corman, F., D’Ariano, A., Hansen, I., & Pacciarelli, D. (2011). Optimal multi-class rescheduling of railway traffic. Journal of Rail Transport Planning Management, 1(1), 14–24.

    Article  Google Scholar 

  • Corman, F., D’Ariano, A., Marra, A. D., Pacciarelli, D., & Samà, M. (2017). Integrating train scheduling and delay management in real-time railway traffic control. Transportation Research Part E, 105, 213–239.

    Article  Google Scholar 

  • Corman, F., D’Ariano, A., Pacciarelli, D., & Pranzo, M. (2010a). A tabu search algorithm for rerouting trains during rail operations. Transportation Research Part B, 44(1), 175–192.

    Article  Google Scholar 

  • Corman, F., D’Ariano, A., Pacciarelli, D., & Pranzo, M. (2010b). Centralized versus distributed systems to reschedule trains in two dispatching areas. Public Transport, 2(3), 219–247.

    Article  Google Scholar 

  • Corman, F., D’Ariano, A., Pacciarelli, D., & Pranzo, M. (2012). Optimal inter-area coordination of train rescheduling decisions. Transportation Research Part E, 48(1), 71–88.

    Article  Google Scholar 

  • Corman, F., D’Ariano, A., Pacciarelli, D., & Pranzo, M. (2014b). Dispatching and coordination in multi-area railway traffic management. Computers & Operations Research, 44, 146–160.

    Article  Google Scholar 

  • Cordeau, J. F., Toth, P., & Vigo, D. (1998). A survey of optimization models for train routing and scheduling. Transportation Science, 32(4), 380–404.

    Article  Google Scholar 

  • Danna, E., Rothberg, E., & Pape, C. (2005). Exploring relaxation induced neighborhoods to improve MIP solutions. Mathematical Programming, 102(1), 71–90.

    Article  Google Scholar 

  • Dessouky, M., & Leachman, R. (1995). A simulation modeling methodology for analyzing large complex rail networks. Simulation, 65(2), 131–142.

    Article  Google Scholar 

  • D’Ariano, A. (2009). Innovative decision support system for railway traffic control. IEEE Intelligent Transportation Systems Magazine, 1(4), 8–16.

    Article  Google Scholar 

  • D’Ariano, A., Pacciarelli, D., & Pranzo, M. (2007). A branch and bound algorithm for scheduling trains in a railway network. European Journal of Operational Research, 183(2), 643–657.

    Article  Google Scholar 

  • Dollevoet, T., Corman, F., D’Ariano, A., & Huisman, D. (2014). An iterative optimization framework for delay management and train scheduling. Flexible Services and Manufacturing Journal, 26(4), 490–515.

    Article  Google Scholar 

  • Dorfman, M. J., & Medanic, J. (2004). Scheduling trains on a railway network using a discrete event model of railway traffic. Transportation Research Part B, 38(1), 81–98.

    Article  Google Scholar 

  • Fang, W., Yang, S., & Yao, X. (2015). A survey on problem models and solution approaches to rescheduling in railway networks. IEEE Transactions on Intelligent Transportation Systems, 16(6), 2997–3016.

    Article  Google Scholar 

  • Fischetti, M., & Lodi, A. (2003). Local branching. Mathematical Programming, 98(1–3), 23–47.

    Article  Google Scholar 

  • Garey, M., & Johnson, D. (1979). Computers and intractability: A guide to the theory of NP-completeness (pp. 90–91). San Francisco, CA: W.H. Freeman.

    Google Scholar 

  • Goverde, R., Corman, F., & D’Ariano, A. (2013). Railway line capacity consumption of different railway signalling systems under scheduled and disturbed conditions. Journal of Rail Transport Planning & Management, 3(3), 78–94.

    Article  Google Scholar 

  • Kroon, L., Huisman, D., & Maróti, G. (2014). Optimisation models for railway timetabling. In I. A. Hansen & J. Pachl (Eds.), Railway timetabling and operations: Analysis, modelling, optimisation, simulation, performance evaluation (2nd ed., pp. 155–173). Hamburg: DVV Media Group.

    Google Scholar 

  • Higgins, A., Kozan, E., & Ferreira, L. (1996). Optimal scheduling of trains on a single line track. Transportation Research Part B, 30(2), 147–161.

    Article  Google Scholar 

  • Lu, Q., Dessouky, M., & Leachman, R. (2004). Modeling train movements through complex rail networks. ACM Transactions on Modeling and Computer Simulation, 14(1), 48–75.

    Article  Google Scholar 

  • Li, F., Gao, Z., Li, K., & Yang, L. (2008). Efficient scheduling of railway traffic based on global information of train. Transportation Research Part B, 42(10), 1008–1030.

    Article  Google Scholar 

  • Li, F., Sheu, J., & Gao, Z. (2014). Deadlock analysis, prevention and train optimal travel mechanism in single-track railway system. Transportation Research Part B, 68, 385–414.

    Article  Google Scholar 

  • Liu, L., & Dessouky, M. (2017). A decomposition based hybrid heuristic algorithm for the joint passenger and freight train scheduling problem. Computers & Operations Research, 87, 165–182.

    Article  Google Scholar 

  • Lusby, R., Larsen, J., Ehrgott, M., & Ryan, D. (2011). Railway track allocation: Models and methods. OR Spectrum, 33(4), 843–883.

    Article  Google Scholar 

  • Mazzarello, M., & Ottaviani, E. (2007). A traffic management system for real-time traffic optimisation in railways. Transportation Research Part B, 41(2), 246–274.

    Article  Google Scholar 

  • Meng, L., & Zhou, X. (2014). Simultaneous train rerouting and rescheduling on an N-track network: A model reformulation with network-based cumulative flow variables. Transportation Research Part B, 67, 208–234.

    Article  Google Scholar 

  • Pachl, J. (2007). Avoiding deadlocks in synchronous railway simulations. In 2nd international seminar on railway operations modelling and analysis (pp. 28–30).

  • Pellegrini, P., Marlière, G., & Rodriguez, J. (2014). Optimal train routing and scheduling for managing traffic perturbations in complex junctions. Transportation Research Part B, 59, 58–80.

    Article  Google Scholar 

  • Samà, M., Corman, F., & Pacciarelli, D. (2017). A variable neighbourhood search for fast train scheduling and routing during disturbed railway traffic situations. Computers & Operations Research, 78, 480–499.

    Article  Google Scholar 

  • Samà, M., Pellegrini, P., D’Ariano, A., Rodriguez, J., & Pacciarelli, D. (2016). Ant colony optimization for the real-time train routing selection problem. Transportation Research Part B, 85, 89–108.

    Article  Google Scholar 

  • Szpigel, B. (1973). Optimal train scheduling on a single track railway. In M. Ross (Ed.), Operational research ’72 (pp. 343–352). Amsterdam: North-Holland.

    Google Scholar 

  • Törnquist, J., & Persson, J. (2007). N-tracked railway traffic re-scheduling during disturbances. Transportation Research Part B, 41(3), 342–362.

    Article  Google Scholar 

  • Wang, Y., Li, K., Xu, X., & Zhang, Y. (2014). Transport energy consumption and saving in China. Renewable and Sustainable Energy Reviews, 29, 641–655.

    Article  Google Scholar 

  • Xu, X., Li, K., & Li, X. (2016). A multi-objective subway timetable optimization approach with minimum passenger time and energy consumption. Journal of Advanced Transportation, 50(1), 69–95.

    Article  Google Scholar 

  • Xu, X., Li, K., & Yang, L. (2015). Scheduling heterogeneous train traffic on double tracks with efficient dispatching rules. Transportation Research Part B, 78, 364–384.

    Article  Google Scholar 

  • Xu, X., Li, K., Yang, L., & Ye, J. (2014). Balanced train timetabling on a single-line railway with optimized velocity. Applied Mathematical Modelling, 38(3), 894–909.

    Article  Google Scholar 

  • Yang, L., Li, K., & Gao, Z. (2009). Train timetable problem on a single-line railway with fuzzy passenger demand. IEEE Transactions on Fuzzy Systems, 17(3), 617–629.

    Article  Google Scholar 

  • Yang, L., Li, K., Gao, Z., & Li, X. (2012). Optimizing trains movement on a railway network. Omega, 40(5), 619–633.

    Article  Google Scholar 

  • Yang, L., Zhou, X., & Gao, Z. (2013). Rescheduling trains with scenario-based fuzzy recovery time representation on two-way double-track railways. Soft Computing, 17(4), 605–616.

    Article  Google Scholar 

  • Yang, L., Zhou, X., & Gao, Z. (2014). Credibility-based rescheduling model in a double-track railway network: A fuzzy reliable optimization approach. Omega, 48, 75–93.

    Article  Google Scholar 

  • Zhou, X., & Zhong, M. (2007). Single-track train timetabling with guaranteed optimality: Branch-and-bound algorithms with enhanced lower bounds. Transportation Research Part B, 41(3), 320–341.

    Article  Google Scholar 

Download references

Acknowledgements

This research was supported by the National Natural Science Foundation of China (Nos. 71701062, 71431003, 71422002), the Anhui Provincial Natural Science Foundation of China (No. 1708085QG167), and the State Key Laboratory of Rail Traffic Control and Safety (No. RCS2017K004), Beijing Jiaotong University.

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Lixing Yang.

Appendices

Appendices

Mathematical model of train timetabling problem

To describe the scheduling process mathematically, the decision variables are listed as follows, in which for simplicity we use terms “\(\mathrm{SN}\)” and “\(\mathrm{DN}\)” to denote conditions that (1) \(\forall i,j\in N_I \text { or } i,j\in N_O, i \ne j\) and (2) \(\forall i\in N_I, j\in N_O \text { or } \forall i\in N_O, j\in N_I\), respectively.

$$\begin{aligned}&\xi _{i,j,k}^{AA}=\left\{ \begin{array}{ll} 1, &{}{\quad }\text {if train } i \text { arrives at station }k\text { earlier than} \\ &{}\qquad \text {train }j, \text { and } {\mathrm{SN}}; \\ 0, &{}{\quad }\text {otherwise.} \end{array} \right. \\&\xi _{i,j,k}^{DD}=\left\{ \begin{array}{ll} 1, &{}{\quad }\text {if train }i\text { departs from station } k \text { earlier than} \\ &{}\qquad \text {train } j, \text { and } {\mathrm{SN}}; \\ 0, &{}{\quad }\text {otherwise.} \end{array} \right. \\&\xi _{i,j,k}^{AD}=\left\{ \begin{array}{ll} 1, &{}{\quad }\text {if train } i \text { arrives at station } k \text { earlier than the} \\ &{}\qquad \text {departure of train } j \text { from station } k,\\ &{}\qquad \text { and } {\mathrm{DN}};\\ 0, &{}{\quad }\text {otherwise.} \end{array} \right. \\&\xi _{i,j,k}^{DA}=\left\{ \begin{array}{ll} 1, &{}{\quad }\text {if train } i \text { departs from station } k \text { earlier than} \\ &{}\qquad \text {the arrival of train } j \text { at station } k, \text { and } \mathrm{DN};\\ 0, &{}{\quad }\text {otherwise.} \end{array} \right. \\&\omega _{i,j}^{k,k^+}=\left\{ \begin{array}{ll} 1, &{}{\quad }\text {if train }i \text { uses segment } (k,k^+)\text { before train } j, \\ &{}\qquad j,\text { and } \mathrm{DN};\\ 0, &{}{\quad }\text {otherwise.} \end{array} \right. \\&\mu _{i,k}^{r}=\left\{ \begin{array}{ll} 1, &{}{\quad }\text {if train } i \text { occupies track }r \text { at station } k,\\ &{}\qquad r \le C_k;\\ 0, &{}{\quad }\text {otherwise.} \end{array} \right. \\&M: {\quad }\text {a sufficient large number} \end{aligned}$$

1.1 Mathematical model

The mathematical model for the considered TSCP is then formulated as

$$\begin{aligned} \text {Minimize} \sum _{i\in N} (d_{i,Des(i)} - \bar{d}_{i,Des(i)}) \end{aligned}$$

s.t.

$$\begin{aligned}&a_{i,k} + t_{i,k}^d \le d_{i,k},{\quad }\forall i\in N; {\;}k\in R_i\end{aligned}$$
(5)
$$\begin{aligned}&d_{i,k} +t_{i(k,k^+)}^s \le a_{i,k^+}, {\quad }\forall i\in N; {\;}k\in R_i{{\setminus }}Des(i) \end{aligned}$$
(6)
figure e
figure f
figure g
figure h
$$\begin{aligned}&\xi _{i,j,k}^{DD} = \xi _{i,j,k^+}^{AA}, {\quad }\forall i,j \in N_I \text { or } i,j \in N_O, i\ne j;\nonumber \\&\quad {\;}k,k^+ \in R_i \cap R_j\end{aligned}$$
(11)
$$\begin{aligned}&\xi _{i,j,k}^{DA} + \xi _{j,i,k}^{AD} =1, {\quad }\forall i\in N_I, j\in N_O \text { or } \forall i\in N_O,\nonumber \\&\quad j\in N_I; {\;}k\in R_i\cap R_j \end{aligned}$$
(12)
figure i
figure j
$$\begin{aligned} d_{i,Ori(i)} \ge \bar{d}_{i,Ori(i)}, {\quad }\forall i\in N \end{aligned}$$
(15)

Constraints (5) ensure that the involved train can complete its pre-specified operations at some designated stations, such as loading/unloading passengers and changing crew. Constraints (6) guarantee the minimum travel time for the observed train, which can be extended according to the practical applications. Constraints (7) indicate that there is an arrival–arrival time headway \(h^{aa}\) between two consecutive trains in the same direction when they arrive at the same station according to a specified sequence. Likewise, the departure–departure time headway \(h^{dd}\) is considered similarly. Moreover, the arrival–arrival order at station k and departure–departure order at station \(k^{+}\) should be consistent, which essentially guarantees no conflicts between these two trains on segment \((k,k^{+})\). For trains heading for different directions, we consider the arrival–departure and departure–arrival time headway constraints (9) and (10). Then tracing constraints (11) are formulated. Constraints (12) express the correlation between \(\xi _{i,j,k}^{DA}\) and \(\xi _{j,i,k}^{AD}\). Each section between two stations has only one track (segment).

Since the single-track railway line is considered, it is impossible for trains in different directions to run on the same track simultaneously. Then, corresponding constraints (13) are proposed to guarantee the unique occupancy of single rail tracks. Considering the station capacity, Zhou and Zhong (2007) used a time-based 0–1 variable to denote whether a train occupies a station at the given time, and then proposed a constraint that the number of trains simultaneously dwelling at the same station must be less than or equal to the station capacity. However, this method essentially creates a mass of 0–1 variables. For the similar case, Carey (1994a, b) presented choice-based constraints to handle the limitation of lines, platforms and routes of trains. Enlightened by Carey (1994a, b), Li et al. (2014) then proposed a track choice-based constraint for station capacity, as shown in constraints (14). Obviously, these constraints consider each station as a small network, where each train can only occupy one track at the same station (see constraints (14a)) and each track can be occupied by at most one train at any time (see constraints (14b)). Lastly, we require that the train departure time from its origin station should not be earlier than the preplanned one, i.e., constraints (15).

Local branching (LB) and relaxation induced neighborhood search (RINS)

To effectively solve mixed-integer programming (MIP) models, Fischetti and Lodi (2003) proposed a local branching (LB) approach through dynamically adding the siding constraints in the searching process, in which the commercial software CPLEX is used as a tactical MIP solver to solve the subproblems on different branches. However, as addressed by Danna et al. (2005), the local search relies extensively on the notion of a solution neighborhood, and the neighborhood is almost always tailored to the structure of the considered problem. To this end, Danna et al. (2005) proposed two approaches, called relaxation induced neighborhood search (RINS) and guided dives, respectively, to further speed up the solution process. For the completeness of this research, both the LB and RINS will be introduced briefly in what follows.

1.1 Local branching

Roughly speaking, the LB is a simple external branching framework involving three core parts, i.e., (1) define the neighborhood of a feasible solution to produce different subspaces, (2) search for optimal/suboptimal solutions in the subspaces, and (3) perform diversification. Given a generic 0–1 MIP problem (P) and a feasible solution \(\bar{x}\), Fischetti and Lodi (2003) defined the \(k-OPT\) neighborhood \(\mathscr {N}(\bar{x},k)\) of \(\bar{x}\) as the set of the feasible solutions of (P) satisfying the additional local branching constraint:

$$\begin{aligned} \Delta (x,\bar{x}) := \sum _{j\in \bar{S}}(1-x_j) + \sum _{j\in \mathscr {B}{{\setminus }}\bar{S}} x_j \le k \end{aligned}$$
(16)

where \(\bar{S} = \{j\in \mathscr {B}: \bar{x}_j=1 \}\) is the binary support of \(\bar{x}\). Then, Fischetti and Lodi (2003) proposed two types of LB algorithms based on the different strategies, namely exact and heuristic approaches. The exact approach can be expected to quickly generate the optimal solution for the considered problem by combining with the default MIP solver. On the other hand, to search for the near-optimal solutions as soon as possible, the heuristic LB in particular takes the branching diversification and computational time into the consideration, including the overall time limit (total time limit) and time limit on the branch nodes (node time limit).

Remark 1

As for the problem discussed in this research, we can produce an initial feasible solution for the LB by using our proposed heuristics TSTA. When the LB is terminated, the outputted solution can be regarded as a high-quality solution for the real-world applications.

1.2 Relaxation induced neighborhood search

In the searching process of a general branch-and-cut tree, two possible solutions might be returned at the termination of the algorithm. That is, (1) the incumbent is feasible with respect to the integrality constraints, but it is not optimal until the last and optimal integer solution has been found; and (2) some variables in a solution are not integral, but the objective value is better than that of the incumbent. With these concerns, Danna et al. (2005) proposed an effective approach, i.e., RINS, to integrate advantages of the aforementioned two solutions. The RINS algorithm is performed on a node of the incumbent, and the procedure includes three steps (for more details, see Danna et al. 2005). Typically, if RINS is invoked at every node in the branch-and-cut tree, the neighborhoods induced by the relaxations of consecutive nodes may be quite similar. For this case, Danna et al. (2005) concluded that it is preferable to apply RINS algorithm to every f nodes for some \(f\gg 1\). Essentially, the aforementioned LB is also a branch-and-cut procedure whose node can also be performed with RINS. Therefore, LB and RINS can be integrated as a new heuristic, i.e., LB\(+\)RINS in Danna et al. (2005).

Remark 2

In this paper, the solutions obtained by the CPLEX solver, LB and LB\(+\)RINS are treated as the benchmark solutions. Since the considered problem is typically an NP-hard problem, it will probably take long time to find an initial feasible solution for the aforementioned methodologies. With this concern, the TSTA algorithm can be integrated with LB and LB\(+\)RINS, respectively, to provide the initial solution at the root node of these two approaches, which can essentially speed up the problem-solving process.

Rights and permissions

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

Cite this article

Xu, X., Li, K., Yang, L. et al. An efficient train scheduling algorithm on a single-track railway system. J Sched 22, 85–105 (2019). https://doi.org/10.1007/s10951-018-0558-0

Download citation

  • Published:

  • Issue Date:

  • DOI: https://doi.org/10.1007/s10951-018-0558-0

Keywords

Navigation