Abstract
Last train timetable plays an important role in actual operation of metro systems, especially in big cities. Appreciable transfer passengers rely on last train connections to reach their destinations, which requires a coordinated last train timetable. This study is devoted to dealing with the last train timetabling problem in metro networks, and proposes an integer linear programing model to coordinate last train connections at transfer stations to improve the transfer accessibility in terms of served transfer passengers and effective last train connections. Several measures at the planning level are used to guarantee feasibility of the optimized last train timetable when applied in practice. Then, the schedule-based transfer network and pre-process method are presented to shrink the scale of binary variables, which can expedite the solution process when solving problems in large-scale networks. Finally, some experiments based on the Qingdao metro network are carried out to verify the effectiveness of the timetabling method, and results show that dwell time and service ending time have direct influence on network accessibility. Comparison analyses show that the proposed model is able to generate a coordinated enough last train timetable with higher transfer accessibility and better practicality, which can provide support for operators to improve the last train service in a metro network.
Keywords
Introduction
With the sustained construction and development, many metro systems in big cities have entered the period of networking operation. In a metro network, a number of lines are connected by transfer stations, which greatly improves the network accessibility. Meanwhile, many passengers have to transfer between lines to reach their destinations, and transfer passengers become an important element that is able to influence the daily operation. As a result, transfer passenger demand must be taken into account in train timetabling problems from the network level, and train connections determined in the timetable will greatly affect travel experience of transfer passengers via the network.
During the daily operation, there is a specific train service among hundreds of train services on a metro line, namely last train, which signals the ending of operation on the line. Correspondingly, among all train connections, there is a specific connection that is the last chance for a transfer passenger to achieve his/ her transfer, namely last train connection. The last train timetable will define all last train connections in a network, which determines the transfer accessibility during the end-of-service period. However, there is still an awkward situation often happening in practice that many transfer passengers may miss their last connecting trains, which reflects the existing last train timetable cannot fit the actual demand of transfer passengers.
In practice, there are appreciable transfer passengers traveling during the end-of-service period, especially in big cities. 1 Considering the inconvenience if a transfer passenger misses the last connecting train, for example, more time or more expenses to get to the destination, it is a consensus that a last train timetable should be coordinated to satisfy transfer passenger demand as much as possible, as well as improving the transfer service level of the network. Meanwhile, the operation costs should be taken into account as well when scheduling a last train timetable, because prolonging the service time is not an economical and sustainable method.
Therefore, this work contributes to the last train timetabling problem with transfer accessibility. First, an integer linear programing model is proposed to coordinate last train connections in the network, and to generate an optimized last train timetable considering transfer passenger demand. On the one hand, the model expects the optimized last train timetable is able to serve more transfer passengers and to provide effective last train connections as many as possible. On the other hand, the model also seeks to restrict the operation costs so that the ending time of last train service as the most important factor to reflect operation costs is formulated to be a constraint in the model.
Second, the last train timetabling is derived from the planning stage at network level. However, most existing studies preferred to change section running times to extend coordinating space, leading to modification in train speed profile, which will increase the complexity of actual operation. To state clearly the difference between this study and existing literatures, this study tends to keep train speed profile as usual to improve the feasibility when applied in practice. Third, in order to expedite the solution process, a schedule-based transfer network and pre-process method are presented to improve accuracy and to lower computational complexity. Finally, some numerical experiments based on the Qingdao metro network with given transfer passenger demand are carried out to validate the effectiveness of the proposed method. The results show that the pre-process method is able to increase computational efficiency and the optimized last train timetable can improve transfer accessibility significantly.
The rest of this work is organized as follows. “Literature review” section presents a brief review of related works about train timetable coordination and last train timetabling. The integer linear programing model for last train timetabling is proposed in “Last train timetabling model” section. “Schedule-based transfer network and pre-process method” section presents the schedule-based transfer network and pre-process method. “Case study and discussion” section reports the obtained computational results about the Qingdao metro network, and “Conclusions” section draws some conclusions in brief.
Literature review
In this section, a brief review of related literature is presented from two aspects: train timetable coordination and last train timetabling.
Train timetable coordination
The train timetabling problem has always been a hot topic over the years because the train timetable plays an important role in operation and management of rail transit systems.2,3 At first, most studies contributed to dealing with the problem of line level.4–8 However, when the scale shifting from line level to network level, the train timetabling problem evolves into train timetable coordination problem.
Most related studies are devoted to optimize the timetable principally by improving the transfer waiting time or maximizing the transfer coordination events. Wong et al. presented a mixed integer programing model for planning coordinated timetables with minimizing the transfer waiting time of all passengers. 9 Wu et al. 10 and Liu et al. 11 also proposed timetable coordination optimization models to optimize transfer waiting time. However, Wu et al. aimed at improving the worst transfer with a min-max objective function based on equity. 10 Liu et al. sought to optimize train departure times from terminals with fixed headway. 11
Guo et al. 12 focused on the train timetable coordination in the transitional period during which train headway changes and passenger demand varies significantly. They proposed a mixed integer non-linear programing model to maximize the transfer coordination events. Cao et al. 13 studied the coordination by determining the departure time under even headway to maximize the number of smooth transfers. However, the optimization is based on the priority of transfer stations and lines.
Shang et al., 14 Wang et al. 15 and Yin et al. 16 studied the problem by proposing a mixed integer programing model under time-dependent passenger demand. Shang et al. presented the objective with minimizing passenger total travel time. 14 Wang et al. was devoted to minimizing total waiting time of all passengers and the number of passengers who fail to transfer. 15 However, Yin et al. focused on minimizing the crowdedness of stations during peak hours. 16
Overall, the studies reviewed above contributed to the train timetable coordination in the regular period of the daily operation, which is pretty different from last train timetabling problem. Due to the peculiarity of last trains and huge inconvenience if missing the last connecting train, last train timetabling in a network should be more considerate and transfer-passenger-oriented when coordinating last train connections.
Last train timetabling
Recently, there has been a series of studies focusing on the last train timetabling problem in metro networks. Kang et al. modeled the problem as a mean-variance formulation in terms of transfer redundant time and transfer binary variables to improve the efficiency of transfer passengers, and designed a genetic simulated annealing algorithm. 17 Kang et al. proposed an indicator of passenger transfer connection headways to reflect last train connections and transfer waiting time, which is maximized by a genetic algorithm to reduce the number of missed connections. 18 Further extension are made in solution method.19,20
Li et al. 21 and Wang et al. 22 focused on optimizing the latest time that passengers can reach their destinations which may guide passengers clearer. Yang et al. presented a model under transfer demand uncertainty in mean-variance formulation. 23 Chen et al. considered the heterogeneity of transfer walking time as the log-normal distribution. 24 Zhang et al. paid more attention to passengers’ effective travel routes and all transportation activities were effectively described. 25 Zhang et al. proposed an optimization model for minimizing the total passenger transfer failures with an ABC algorithm. 26
Guo et al. proposed a trade-off approach that passengers with maximizing the transfer synchronization events, and operators with minimizing the worst big difference between last trains to cancel redundant trains. 1 However, canceling services may be not reasonable in practice. The operation costs can be controlled in terms of operation ending time27,28 and energy consumption. 29
Furthermore, as a twin problem to the last train timetabling problem, Kang et al., 30 Xu et al., 31 Xu et al. 32 studied the last train timetable rescheduling problem form the view of coordination to serve more transfer passengers after disturbances.
In summary, these related works studied the last train timetabling problem with different mathematical formulations in objectives and constraints. Whereas, scheduling measures are roughly analogous, such as adjusting departure times from initial stations, section running times and dwell times within a min-max range of time, which seems like a rescheduling measure to take full advantage of buffer times.
However, the last train timetabling, after all, is at the planning stage. The difference from existing studies is presented here. First, there is no need to modify section running times so that train speed profile can keep unchanged to avoid increasing the complexity in actual operation. Second, the service time can’t be extended without limit so that the ending time of last train service should be restricted to control operation costs. This work intends to propose a last train timetabling model enabling these improvements. Third, a schedule-based transfer network and pre-process method are novelly proposed to speed up the model solution, which will be further illustrated in “Schedule-based transfer network and pre-process method” section.
Last train timetabling model
In order to generate a better last train timetable with given demand of transfer passengers in a metro network, an integer linear programing model is presented to coordinate the operation of last trains among different lines.
Model notations
For modeling convenience, some necessary symbols and parameters are defined as follows.
The decision variables used in the model are presented as follows.
Last train connections
In a transfer station, there are several transfer directions that depends on the number of linked lines and station type, that is, initial, intermediate, or terminal station, on each line. Figure 1 is an illustration of eight transfer directions in a common transfer station as an intermediate station on two double-track lines.

Illustration of transfer directions in a common transfer station.
For each transfer direction
For example, the time gap

Illustration of effective or ineffective last train connections: (a) effective last train connection and (b) ineffective last train connection.
Thus, a binary variable
As a result, the binary variable
However, the binary expression is a non-linear mathematical expression. For the convenience of model solution, equation (1) can be replaced equally by two linear formulas, see
where
Model constraints
In order to improve the feasibility of the optimized last train timetable when applied in practice, some measures at a planning level will be adopted to modify the existing one.
Departure time from initial station
For each last train, the departure time from its initial station is allowed to be advanced only by a short time in case some passengers can’t catch the last train as well as violating the headway away the penultimate train, see
where
Meanwhile, the departure time from initial station can be postponed within a given time period, see
where
Section running time
From the planning level, it is a common measure to keep the train speed profile same as usual in metro systems. Thus, the time for last train of line
Dwell time
Last train with longer dwell time may serve more passengers. Thus, the dwell time is extended within a reasonable range of time compared with the existing timetable, see
where
Arrival time at terminal station
Considering the operation costs and system maintenance requirement, the ending time of last train service cannot be postponed without restriction. In other words, the arrival time at terminal station is allowed to be postponed within a finite time period compared to the existing timetable, see
where
Optimization objective
At the planning stage, considering appreciable transfer passengers and great inconvenience of missing the last connecting train, a good last train timetable should achieve more effective last train connections to improve the transfer accessibility, see
However, incorporating the transfer passenger demand, the number of served transfer passengers will be more persuasive to illustrate the transfer accessibility. As a result, the objective is presented to maximize the number of served transfer passengers, see
In brief, the last train timetabling model is formulated as an integer linear programing model with the objective (11), and constraints (2–9). Correspondingly, formula (10) can be reformulated to calculate the number of effective last train connections as a performance index used in case study.
Schedule-based transfer network and pre-process method
As mentioned in “Last train connections” section, there are several transfer directions in a transfer station. However, connections in physical network can’t guarantee that passengers can transfer successfully during the end-of-service period, which is deeply affected by the last train timetable. In order to better depict transfer directions, a schedule-based transfer network is proposed in this work to combine the physical network and the last train timetable. Similarly, a typical transfer station of two double-track lines is as an example to illustrate the original schedule-based transfer network, see Figure 3.

Illustration of the original schedule-based transfer network.
In the schedule-based transfer network, a station in real world is regarded as two stations for each direction of a double-track line, respectively. Solid lines with arrows represent last train running activities, and dotted lines with arrows represent latent transfer activities.
In order to improve accuracy and computational complexity,34,35 a pre-process method is proposed based on the existing last train timetable to figure out transfer activities that may be achieved after the last-train timetable optimization, and to shrink the scale of non-deterministic binary variables during the solution process. A new time index
Assuming that the existing last train timetable of Line A and Line B is listed in Table 1, and setting
A sample of the existing last train timetable of line A and line B.

Illustration of the pre-processed schedule-based transfer network.
Comparing Figures 3 and 4, four dotted lines are deleted by applying the pre-process method, which means the method is able to scale down the non-deterministic binary variables obviously. Adding formula (12) to the last train timetabling model in “Last train timetabling model” section, then, the model can be solved by some commercial solvers, for example, CPLEX, efficiently.
Case study and discussion
In order to validate the effectiveness of the proposed model, some numerical experiments are carried out based on the Qingdao metro network. By the end of July 2022, the Qingdao metro network is composed of six double-track lines and reaches a total length of 284.3 km. Six lines have 138 stations in total, seven of which are transfer stations from all, as illustrated in Figure 5. Words with all letters in upper case are acronyms of key stations’ names.

The diagram of Qingdao metro network.
There are total 46 transfer directions in the network. The daily operation of the system starts from 5:45 am, and lasts until 23:39 pm. The existing last train timetable can be obtained from the official website of Qingdao Metro. Next, the proposed model is applied to optimize the last train timetable, and some numerical results are reported to evaluate the performance by tests with adjusting several key parameters.
Last train timetable optimization
From the view of the planning stage, some necessary parameters are given with reasonable values according to operation practice, see Table 2. Then, the problem with transfer demand is carried out by the pre-process method and is solved by CPLEX 12.6.2 on a laptop computer with quad-core i7-7700HQ CPU @ 2.8 GHz and 16 GB RAM. The optimized timetable is obtained within 10 s, which shows the efficiency of the proposed method.
Parameters in optimization.
The optimized last train timetable is compared with the existing one in terms of transfer accessibility. Two indicators are presented to evaluate the performance, the number of effective last train connections and the number of served transfer passengers, as shown in Table 3.
Optimization results.
The results show measurable improvement of transfer accessibility in the optimized timetable. According to the transfer demand, the model recalculates the arrival and departure times for all last trains at each station, and restructure the connection relationships at transfer stations, leading to the number of effective last train connections increasing from 18 to 21, and the number of served transfer passengers increasing by 13.7%.
To figure out the changes in operation costs corresponding to the improvement, two time indicators are proposed to mainly reflect the changes in operation costs.
Calculations show that, to enable the improvement in Table 3,
Impact of dwell time
Dwell time has an important impact on transfer accessibility. However, the dwell time for a last train at a station is not allowed to be extended infinitely. In the optimized timetable, the total time

The impact of dwell time on transfer accessibility.
As shown in Figure 6,
Generally, transfer accessibility is improved with the increasing of
Impact of arrival time at terminal station
Arrival time at terminal station plays an important role in both transfer accessibility and operation costs. In order to control operation costs, the arrival at terminal station is not allowed to be postponed without limit for economical purposes. Thus, it is necessary to figure out an reasonable

The impact of arrival time at terminal station on transfer accessibility.
As shown in Figure 7, transfer accessibility is basically improved with the increasing of
As a result, the postponement of arrival at terminal station should be also determined by the actual situations in practice, and appropriate postponed time will benefit both transfer accessibility and controlling operation costs. In general, operators can choose plans of switching points, for example, points with circles in Figure 7, as priority.
Conclusions
In order to generate a more coordinated last train timetable to provide a better service for transfer passengers during the end-of-service period, this work proposes a practical method from the view of the planning stage for last train timetabling in the metro network. An integer linear programing model is presented to improve transfer accessibility in terms of served transfer passengers and effective last train connections. Different from existing studies, the model doesn’t change section running time to keep train speed profile as usual for practical purposes. To improve the model solution efficiency, the schedule-based transfer network and a pre-process method are novelly presented to scale down the non-deterministic binary variables.
The last train timetabling method is validated by a case study derived from the Qingdao metro network, and results show that extending dwell times and postponing arrival times at terminal stations within reasonable time range will improve transfer accessibility effectively with minor extension in operation time. In conclusion, the method is able to generate a coordinated last train timetable with good transfer accessibility and acceptable increase in operation costs, which can benefit the actual last train operation, and offer better service for transfer passengers during the end-of-service period.
Footnotes
Declaration of conflicting interests
The author declared no potential conflicts of interest with respect to the research, authorship, and/or publication of this article.
Funding
The author disclosed receipt of the following financial support for the research, authorship, and/or publication of this article: This work is supported by the Scientific Research Foundation of Shandong University of Science and Technology for Recruited Talents (0104060511715).
