A Variable Neighborhood Search heuristic for rolling stock rescheduling
Abstract
EconStor is a publication server for scholarly economic literature, provided as a non-commercial public service by the ZBW.
Full text
Hoogervorst, Rowan; Dollevoet, Twan; Maróti, Gábor; Huisman, Dennis Article A Variable Neighborhood Search heuristic for rolling stock rescheduling EURO Journal on Transportation and Logistics (EJTL) Provided in Cooperation with: Association of European Operational Research Societies (EURO), Fribourg Suggested Citation: Hoogervorst, Rowan; Dollevoet, Twan; Maróti, Gábor; Huisman, Dennis (2021) : A Variable Neighborhood Search heuristic for rolling stock rescheduling, EURO Journal on Transportation and Logistics (EJTL), ISSN 2192-4384, Elsevier, Amsterdam, Vol. 10, Iss. 1, pp. 1-15, https://doi.org/10.1016/j.ejtl.2021.100032 This Version is available at: https://hdl.handle.net/10419/325147 Standard-Nutzungsbedingungen: Die Dokumente auf EconStor dürfen zu eigenen wissenschaftlichen Zwecken und zum Privatgebrauch gespeichert und kopiert werden. Sie dürfen die Dokumente nicht für öffentliche oder kommerzielle Zwecke vervielfältigen, öffentlich ausstellen, öffentlich zugänglich machen, vertreiben oder anderweitig nutzen. Sofern die Verfasser die Dokumente unter Open-Content-Lizenzen (insbesondere CC-Lizenzen) zur Verfügung gestellt haben sollten, gelten abweichend von diesen Nutzungsbedingungen die in der dort genannten Lizenz gewährten Nutzungsrechte. Terms of use: Documents in EconStor may be saved and copied for your personal and scholarly purposes. You are not to copy documents for public or commercial purposes, to exhibit the documents publicly, to make them publicly available on the internet, or to distribute or otherwise use the documents in public. If the documents have been made available under an Open Content Licence (especially Creative Commons Licences), you may exercise further usage rights as specified in the indicated licence. https://creativecommons.org/licenses/by/4.0/
A Variable Neighborhood Search heuristic for rolling stock rescheduling Rowan Hoogervorst a , * , Twan Dollevoet a ,G abor Mar oti b , c , Dennis Huisman a , c a Econometric Institute and ECOPT, Erasmus University Rotterdam, 3000 DR, Rotterdam, the Netherlands b School of Business and Economics, VU University Amsterdam, 1081 HV, Amsterdam, the Netherlands c Process quality and Innovation, Netherlands Railways, 3500 HA, Utrecht, the Netherlands ARTICLE INFO Keywords: Disruption management Rolling stock rescheduling Variable neighborhood search ABSTRACT We present a Variable Neighborhood Search heuristic for the rolling stock rescheduling problem. Rolling stock rescheduling is needed when a disruption leads to cancellations in the timetable. In rolling stock rescheduling, one must then assign duties, i.e., sequences of trips, to the available train units in such a way that both passenger comfort and operational performance are taken into account. For our heuristic, we introduce three neighborhoods, which focus on swapping duties between train units, on improving the individual duties and on changing the shunting that occurs between trips, respectively. These neighborhoods are used for both a Variable Neighborhood Descent local search procedure and for perturbing the current solution in order to escape from local optima. Moreover, we show that the heuristic can be extended to the setting of flexible rolling stock turnings at ending stations by introducing a fourth neighborhood. We apply our heuristic to instances of Netherlands Railways (NS). The results show that the heuristic is able to find high-quality solutions within 1 min of solving time. This allows rolling stock dispatchers to use our heuristic in real-time rescheduling. 1. Introduction There is a significant need for decision support for rolling stock rescheduling at train operating companies. On the one hand, rolling stock rescheduling has a large impact on the passenger satisfaction, as passengers have to stand or even wait for the next train if not enough rolling stock is available to operate a trip. On the other hand, having an efficient rescheduling process in place also limits the number of train units that are needed as a buffer to deal with disruptions, which significantly lowers the capital costs of a train operator. In this paper, we focus on the real-time rescheduling of rolling stock after a disruption leads to the cancellation of trips in the timetable. This, e.g., happens when a section of railway infrastructure becomes blocked due to a mechanical failure, which leads to the cancellation of all trips using this section of infrastructure for the duration of the disruption. Alternatively, this may happen when a mechanical failure on a train unit causes this train unit to be unable to continue the trips it is currently operating. An average of 16 disruptions was reported per day in 2019 in the passenger information systems for the Dutch railway network. 1 As a result of the timetable adjustments due to a disruption, the train units that were planned to operate these canceled trips will be unable to reach the station they were supposed to arrive at after these trips. As these train units may be planned to operate other trips starting at this station, this is likely to lead to further cancellations if no rescheduling is performed. It is these knock-on effects of the disruption on the rolling stock assignment that we focus on in this paper, where we try to minimize any further cancellations and try to ensure that there is a good balance between the number of available seats and the passenger demand. This is done while trying to minimize the changes that are made compared to the original rolling stock assignment. Existing literature for rolling stock rescheduling has mostly focused on exact solution methods, of which many were originally developed for the rolling stock scheduling setting. State-of-the-art models include those by Fioole et al. (2006),Bornd€ orfer et al. (2016) and Lusby et al. (2017). While these exact models have been extremely successful in solving a large number of variations of the rolling stock rescheduling problem, they also have some fundamental difficulties when used in practice for real-time rolling stock rescheduling. Most importantly, these exact methods generally consider a simplified version of the rolling stock rescheduling problem that is faced by dispatchers. For example, the model of Fioole et al. (2006) considers all train units that are of the same rolling stock type as fully interchangeable. * Corresponding author. E-mail address: [email protected] (R. Hoogervorst). 1 https://www.rijdendetreinen.nl/en/statistics/2019. Contents lists available at ScienceDirect EURO Journal on Transportation and Logistics journal homepage: www.journals.elsevier.com/euro-journal-on-transportation-and-logistics https://doi.org/10.1016/j.ejtl.2021.100032 Received 28 January 2020; Received in revised form 20 December 2020; Accepted 22 January 2021 2192-4376/©2021 Association of European Operational Research Societies (EURO). Published by Elsevier B.V. This is an open access article under the CC BY license (http://creativecommons.org/licenses/by/4.0/). EURO Journal on Transportation and Logistics 10 (2021) 100032
While this is a realistic assumption in rolling stock scheduling, where the exact train unit is still likely to change between the moment of planning and the day of operation, choosing the correct train unit is often important in real-time rescheduling. This is, e.g., the case when a train unit has a small mechanical defect which limits how the train unit can be used. A broken windshield wiper may, for example, cause one of the two cabins of a train unit to become unusable for a driver, which implies that this cabin cannot be at the front of the train. Numerous papers have extended the existing models for issues encountered in rescheduling. Examples include the incorporation of maintenance constraints by Wagenaar et al., 2017b, the incorporation of train delays by Hoogervorst et al. (2020) and the incorporation of deadheading by Wagenaar et al., 2017a. Moreover, Nielsen (2011) considers a setting where the turnings between trips at ending stations can be chosen freely, which is referred to as flexible turning. A disadvantage of these approaches is that the time needed to solve these models rises quickly when expanding the model. As a result, exact solution methods often struggle to solve instances when including all, or many, of the details that are considered by rolling stock dispatchers. Based on the above observation, the main contribution of this paper is to propose a Variable Neighborhood Search heuristic for the rolling stock rescheduling problem. For this heuristic, we introduce three local search neighborhoods for the rolling stock rescheduling problem, which can be applied to a wide variety of rolling stock rescheduling settings. In addition, to show that the heuristic can easily be extended to more involved rescheduling contexts, especially ones that are hard for exact methods, we show how a fourth neighborhood can be added to deal with the flexible turning setting of Nielsen (2011). We test the heuristic on instances of Netherlands Railways (NS), where we evaluate the quality of the provided solutions by comparing them to an exact solution method. The remainder of the paper is organized as follows. In Section 2,we define the rolling stock rescheduling problem. In Section 3, we discuss the existing literature on rolling stock rescheduling. In Section 4,we introduce our Variable Neighborhood Search algorithm and the three neighborhoods that are considered in the algorithm. We extend the heuristic to the rolling stock rescheduling setting with flexible turning in Section 5. We then apply the heuristic to instances of NS in Section 6. Lastly, we conclude the paper in Section 7. 2. The rolling stock rescheduling problem In rolling stock rescheduling, we assign rolling stock to the set of trips Tin the timetable. Each trip is characterized by its departure station, arrival station, departure time and arrival time. Let Sbe the set of all stations. We will assume that the timetable has already been updated for the initial disruption, implying that all cancellations that follow directly from the disruption have been incorporated into the timetable. Most train operators use a heterogeneous fleet of train units to operate the trips. Let Rbe the set of available train unit types. In this paper, we focus on self-propelled train units, i.e., no locomotive is needed to pull them. It is often possible to couple train units of compatible types together to form compositions, which are sequences of train unit types in R. Let Pindicate the set of all possible compositions. An example of a composition is given in Fig. 1, where three train units of the ICM family of train units are coupled together to form a composition. As we consider a rescheduling setting, the size of the rolling stock fleet is fixed. In particular, let ι 0 r;sindicate the number of train units of type r2Rthat start at station s2S. Moreover, let ι ∞ r;sdenote the number of train units of type r2Rthat are supposed to end at station s2 S. Such a target number of train units to end at each station is imposed to facilitate the start of the timetable on the next day. We first assume that fixed rolling stock connections are defined between incoming and outgoing trips at a station. Let Cbe the set of these rolling stock transitions. Each transition c2Cis defined by the sets T c and Tþ c, which indicate the incoming trips and outgoing trips in this transition, respectively. Note that a transition normally links one incoming to one outgoing trip, implying that both sets contain a single trip, and that one of these sets can be empty in case all rolling stock comes from or is moved to the shunting yard. In Section 5, we consider the setting with flexible turning, in which the rolling stock connections at terminal stations can be optimized (Nielsen 2011). In that case, determining the set of transitions Cis part of the optimization problem. The compositions that can be operated on a given trip are limited by infrastructure and operational constraints, such as the maximum platform length at the stations. Let Pt⊆Pdenote the compositions that can be used to operate trip t2T. The way in which compositions can be changed at transitions is also limited. For example, coupling and uncoupling train units is often only possible on one side of the composition due to the station layout. Let Qcbe the set of possible composition changes for transition c2C. Each composition change is characterized by the compositions qðtÞ2Ptfor each t2T c[Tþ c, i.e., by the compositions on all incoming and outgoing trips of the transition. Then, let Q¼[ c2CQcdenote the set of all possible composition changes. In rolling stock rescheduling our goal is now to assign duties to the available train units, where each duty describes the trips that are operated by that unit during the planning horizon and the position it takes in the composition of each of these trips. Let Dbe the set of duties, which is often referred to as a rolling stock circulation. Note that Ddefines both an assignment T→Pof compositions to the trips and an assignment C→ Qof composition changes to the transitions. The circulation Dis only feasible if the assignment T→Passigns to every trip ta composition in Ptand if the assignment C→Qassigns to every transition ca composition change in Qc. An example of a circulation is given in Fig. 2. In this example, we consider a timetable that consists of twelve trips (t1;…;t12) between three stations (Rtd,Gd,Ut). The timetable is shown through a time-space diagram, where an arc connects two stations if there is a trip between them. Moreover, the figure shows a circulation consisting of four duties, two for train units of the red (dashed) rolling stock type and two for train units of the blue (solid) rolling stock type. Note that the circulation implies a composition consisting of two train units on trips t1;…;t4and compositions of a single train unit on the other trips. Table 1 describes three transitions from the example. Transition c3is a so-called turning, where a Fig. 1. An example of a composition consisting of two ICM-III train units at the front and back of the composition and one ICM-IV train unit in the middle. Fig. 2. An example of a circulation for 4 train units, two of the blue (solid) and two of the red (dashed) type. (For interpretation of the references to color in this figure legend, the reader is referred to the Web version of this article.) R. Hoogervorst et al. EURO Journal on Transportation and Logistics 10 (2021) 100032 2
train arrives at a terminal stations and returns to the origin station it departed from. During such a transition, no passengers are present in the train and the composition typically switches order. To judge the quality of a circulation, we assign costs to the compositions and composition changes in the circulation, and to any deviation from the target number of train units to end at each station at the end of the planning horizon. Our most important target is to prevent any cancellations, as cancellations have a large impact on the journey of the passengers. A cancellation is modeled as assigning an empty composition to a trip, which is penalized with a high cost. Moreover, we try to ensure that the chosen compositions offer enough seat capacity while limiting the number of kilometers that the train units make. For the composition changes, we like to avoid any changes in shunting activity. For example, introducing additional coupling of train units may require changes to the duties of the crews at the stations and is thus penalized. Similarly, we would like to minimize any deviations from the target number of train units that are supposed to end at each station at the end of the day, as additional deadheading trips during the night might be necessary to alleviate any off-balances. The rolling stock rescheduling problem is now formally defined as follows. Given an updated set of trips Tand transitions C,define a set of duties Dwith one duty for every train unit, such that the implied composition on trip t2Tis in Ptand the implied composition change for transition c2Cis in Qc. The aim is to minimize the costs for the assigned compositions and composition changes, and for any deviations from the target number of train units of each type that end at each station. In Section 5, we extend the problem with flexible turning. In this setting, the set of transitions must be determined as part of the rolling stock rescheduling problem. 3. Literature review The rescheduling of rolling stock is one of the typical steps in the rescheduling process of a passenger railway operator. An overview of the rescheduling process and the steps taken in it is given by Cacchiani et al. (2014). In particular, note that the timetable is normally rescheduled before the rolling stock is rescheduled and that the crew is rescheduled afterward. While some papers have focused on further integrating some of these steps, see, e.g., Veelenturf et al. (2016), it has been shown that this sequential process performs well in practice by Dollevoet et al. (2017). A large body of literature is available on the rolling stock rescheduling problem, where variations in the problem setting have led to different models. In particular, such model variations are often a result of the different infrastructural and operational contexts encountered by the various railway operators. In this paper, we specifically focus on passenger railway operators and on rolling stock that consists of train units, is electrically powered and can drive in both directions, implying that no locomotives have to be considered in the rescheduling process. Numerous exact solution approaches have been proposed for the rolling stock rescheduling problem, where most of these models were originally developed for rolling stock scheduling. A multi-commodity flow based model for rolling stock scheduling has been proposed by Fioole et al. (2006), which was extended by Nielsen et al. (2012) to the rescheduling setting. An important assumption in this model is that all train units of the same type are considered interchangeable, allowing an aggregation of the train units that are stored at the shunting yard of a station at any moment in time. Alternatively, Bornd€ orfer et al. (2016) solve the rolling stock scheduling problem by finding a flow in an appropriate hypergraph. Recently, a rescheduling approach based on this model has been used by Bornd€ orfer et al. (2019). Other models for rolling stock rescheduling using a hypergraph include those by Bornd€ orfer et al. (2014) and Bornd€ orfer et al. (2017). Unlike Fioole et al. (2006), this model allows to track individual train units, which is used to enforce maintenance constraints based on the distance driven by a train unit. Moreover, while the model of Fioole et al. (2006) can be solved by means of a commercial MIP solver, a column generation approach is needed to solve this model due to the large number of hyperarcs. Both the composition model and the hypergraph-model are discussed by Reuther (2017). Instead of making use of a flow based formulation, Cacchiani et al. (2010) and Lusby et al. (2017) generate duties for the individual train units. Due to the large number of possible duties, they, like Bornd€ orfer et al. (2016), also use column generation to solve the model. A different column generation based approach has been considered by Peeters and Kroon (2008). Instead of generating columns that represent duties, they generate columns that correspond to paths in the transition graph, which describes the compositions on the trips and how these compositions can be changed at transitions between trips. While the above models can all be applied or have been applied to a rolling stock rescheduling context, they are mostly aimed for rescheduling the rolling stock before the day of operation. Numerous papers have extended the above models to include additional details of the real-time rescheduling process. Wagenaar et al., (2017a) consider the possibility of adding deadheading trips and take into account the changes to the passenger demand after a disruption. Similarly, Wagenaar et al., 2017b consider the effect of maintenance appointments, in which train units need to be present at a station at a specified time for maintenance. The minimization of passenger delays by means of rescheduling the rolling stock assignment is considered by Hoogervorst et al. (2020). When considering all of these papers, we see that the inclusion of additional details generally leads to an increase in the computation time. Concurrently to the successful introduction of exact methods, also heuristics have been proposed to solve the rolling stock scheduling and rescheduling problem. Cacchiani, Caprara, and Toth (2019) propose a heuristic for rolling stock scheduling that extends an optimal rolling stock assignment for the peak hours to a rolling stock assignment for the complete day. They apply the heuristic to instances of a railway operator in Northern Italy. Unlike our heuristic, their heuristic does not make use of local search to improve a found solution. Another matheuristic, i.e., a heuristic based on mathematical programming, for the rolling stock scheduling problem is that of Cacchiani et al. (2013). In this heuristic, the authors apply Lagrangian relaxation based on an arc formulation of the problem to obtain lower bounds. Moreover, a Lagrangian heuristic is used to obtain feasible solutions, in which a constructive procedure transforms an infeasible solution into a feasible one and local search improves the found solution. Like our paper, also Cacchiani et al. (2013) use neighborhoods to find improved solutions in their Lagrangian heuristic. However, the problem considered is significantly different, as Cacchiani et al. (2013) do not consider the order of train units within a composition and do not consider fixed transitions like we do. A paper that is closely related to ours is the one of Budai et al. (2010), although they focus on a sub-problem of the rolling stock rescheduling problem. In particular, they try to solve any off-balances that are present in the number of train units that end at each station when compared to the planned number of train units to end at each station, a problem they call the Rolling Stock Rebalancing Problem. To solve the off-balances, they exploit the network flow properties of the problem. We will employ a similar idea in two of the presented neighborhoods to find improvements to the current circulation. Table 1 Three examples of transitions depicted in Fig. 2. Here, Band Rcorrespond to a blue (solid) and red (dashed) train unit, respectively. Transition cT cTþ cComposition change q c1∅ft1gqðt1Þ¼ðB;RÞ c2ft1gf t2gqðt1Þ¼ðB;RÞ,qðt2Þ¼ðB;RÞ c3ft2gf t3gqðt2Þ¼ðB;RÞ,qðt3Þ¼ðR;BÞ R. Hoogervorst et al. EURO Journal on Transportation and Logistics 10 (2021) 100032 3
4. VNS heuristic for rolling stock rescheduling We propose a Variable Neighborhood Search (VNS) heuristic to solve the Rolling Stock Rescheduling Problem. VNS is a local search based metaheuristic that has been proposed by Mladenovi c and Hansen (1997). The main idea in VNS is to iteratively explore multiple neighborhoods, both in terms of local search and in terms of perturbation, where one switches to a larger sized neighborhood if a smaller neighborhood does not yield an improvement to the current solution. In our VNS heuristic, we consider three different neighborhoods. First, we consider a neighborhood that corresponds to swapping duties between train units. Second, we consider a neighborhood that improves the assignment for a single train unit type. Third, we consider a neighborhood that corresponds to adjusting the composition changes at transitions. In the remainder of this section, we introduce these three neighborhoods and the VNS heuristic that explores these neighborhoods. 4.1. Two-Opt Duty Neighborhood In the Two-Opt Duty neighborhood, we focus on improving the assignment of the different rolling stock types to the trips. We do so by swapping the remaining parts of the duties of two train units, of different rolling stock type, when these train units meet at a station. As a result of this swap, we change the assignment of compositions to trips and that of composition changes to the transitions. An example of a move in which two duties are exchanged is given in Fig. 3, where the duties of the highlighted red (dashed) and blue (solid) train units are switched. This swap is possible, as both train units are present at station Rtd prior to the departure time of trip t5. Note that the swap alters the compositions that are used on respectively trips t5;…;t12 and the composition changes that are used on those transitions that precede and succeed these trips. This would, for example, be beneficial if altering these compositions leads to a better matching of capacity with passenger demand on these trips. Specifically, if more passengers are expected on trips t5;…;t8than on trips t9;…;t12 and blue (solid) train units offer more seats than red (dashed) units, then the swap improves the objective value. We can efficiently find the possible moves by noting that the remaining parts of the duties of two train units can only be exchanged if both train units are present at the same station at some moment in time. This follows from the fact that shunting is only executed to couple and uncouple train units. We can then enumerate all rolling stock duties that are available for coupling at some transition, which is the case if the train unit is present at the station at the moment that this coupling action is started. We can then exchange two duties, of different rolling stock types, that are available at the same transition. The algorithm for finding all two-opt duty exchanges is formalized in Algorithm 1. In this algorithm, coupledðd;cÞindicates whether duty d2 Dis coupled to a composition at transition c2C. In particular, this means that the train unit corresponding to duty dis moved from the shunting yard and coupled to an outgoing trip of transition c. Moreover, findAvailableDutiesðÞ gives a map f:C→2Dthat lists for each transition c2Cthe duties that are available for coupling. Note that we only need to consider a swap of duties at a transition if at least one of them is coupled at this transition, as we can consider the same swap at some transition later in time if this is not the case. Algorithm 1. Two Opt Duty Neighborhood. Note that Algorithm 1 requires at most Oð C Dj2Þsteps, as we can find the available duties by looping over all duties in time OðDÞ. However, the average number of steps needed by Algorithm 1 is often significantly lower, as normally only a handful of duties are present at the same station at any moment in time. Moreover, the computation time can be further reduced by storing in memory the results of findAvailableDutiesðÞ and updating the cached results when a new circulation is found. 4.2. The Adjusted Path neighborhood The main idea behind the Adjusted Path neighborhood is to improve the circulation for one rolling stock type at a time. This implies that we fix the assignment of rolling stock for all-but-one rolling stock types and then improve the assignment for the remaining rolling stock type. We can then exploit the similarity of this simpler problem to a min-cost flow problem Fig. 3. A two-opt move on the assigned duties. R. Hoogervorst et al. EURO Journal on Transportation and Logistics 10 (2021) 100032 4
to explore this neighborhood efficiently, using an idea inspired by that of Budai et al. (2010). An example of a move in this neighborhood is shown in Fig. 4, where we consider a disruption that leads to the cancellation of trips t5and t6 and to no train units being assigned to operate trips t7and t8. Due to the disruption, the transition between trips t6and t7is updated. In the shown move, we adjust the duty of one blue (solid) train unit, which now operates trips t7and t8instead of trips t3and t4. In particular, the train unit is uncoupled after trip t2, moved to the shunting yard, and then coupled to t7. Note that the move does not alter the duties for the red (dashed) train units. The result of this rescheduling action is that we can prevent two of the four trip cancellations, but also that the number of seats on trip t3and t4is reduced. By fixing the assignment of all rolling stock types except one, say type a, compositions can only be changed by adding or removing train units of type afrom the composition. As we leave the assignment for other types unaltered, we can thus represent each composition by only looking at the number of units of type athat are present at the different positions in the composition. For example, the composition abb, consisting of one train unit of type ain the back and two train units of type bin the front, can only be changed by adding or removing train units at the front of the composition, between the two units of type band at the end of the composition. Each composition that we consider in this neighborhood for this trip is thus of the form a⋯aba⋯aba⋯a;(1) where we still need to determine the number of units of type ain each group of units of type a. Note that there can also be zero train units of type ain a group, which is, for example, the case for the first two groups in composition abb. This group representation of a composition has been introduced by Budai et al. (2010). More formally, let gtbe the number of groups of type ain the current composition of trip t. Each composition for trip tcan then be represented as a vector at2Zgt þ, which describes the number of train units of type a present in each group of train units of type a. The problem we consider then becomes to assign feasible vectors atto each trip t2T, such that we use no more train units than available and such that feasible composition changes can be found for each of the transitions. In this way, the assignment of train units for any other type than aremains unaltered. 4.2.1. A graph representation Based on the above group representation, we can consider the duties of the train units of the considered type to represent a flow in a suitable directed acyclic graph D¼ðV;AÞ. First, we consider the set of nodes V. For each trip t2Tand each group g2f1;…;gtgwe add nodes vdep t;gand varr t;grepresenting the departure and arrival of train units in a group of the trip respectively. Moreover, we introduce for each transition c2Cnodes vunc cand vcou c, representing the uncoupling and coupling of train units at this transition respectively. Second, we consider the set of arcs A. For each trip t2Tand each group g2f1;…;gtgwe add an arc ðvdep t;g;varr t;gÞto represent that train units are part of this group for the given trip. Furthermore, we add an arc ðvarr t;g; vdep t0 ;g0Þfor subsequent trips tand t0if there are train units that can operate in group g0of trip t0after operating in group gof trip t. Moreover, we add an arc ðvarr t;g;vunc cÞif train units from group g2f1;…;gtgcan be uncoupled after trip t2T cin transition c. Similarly, we add an arc ðvcou c;vdep t;gÞif train units can be coupled to group g2f1;…;gtgbefore trip t2Tþ cin transition c. Lastly, the coupling and uncoupling nodes are connected by an arc if they occur at the same station and are consecutive in time. An example of the resulting graph is now given in Fig. 5 for the blue (solid) train unit type and the circulation as considered in Fig. 2. The compositions assigned to trips t1to t4and t5to t8both contain one red (dashed) train unit. Because of that, there are two blue groups for these trips, as depicted in Fig. 5. There is only one blue group for trips t9to t12, as the composition for these trips consists of a single blue train unit. Moreover, note the arcs that represent the coupling and uncoupling of train units, which connect the nodes at the stations to the trip nodes. 4.2.2. An augmenting path approach The current circulation can now be represented as a flow in the graph D. However, not every flow in Dwill correspond to a feasible flow. For a flow to be feasible, the flow should satisfy the restrictions on the compositions that can be used for the trips and on the composition changes that can be used for the transitions. These restrictions can, in general, not be translated to capacity restrictions on single arcs. A second complicating factor is that the costs of using an arc are in general not linear in the amount of flow over the arc. Note, for example, that adding a train unit of the considered type agives a far larger benefit when there is currently a shortage of seats than when there are already enough seats. In the latter case, adding a train unit may even lead to a worse objective value. However, an interesting observation is that we are still able to determine the cost of adding a train unit to a composition and that of removing a train unit from the composition. Let fðatÞbe the cost of using the composition implied by assignment at2Zgt þ. Then, the change in cost of adding a train unit to group jis given by fatþejfðatÞ where ejis a unit vector with a single one at element j. Similarly, the cost of removing a train unit from group jis given by fatejfðatÞ: In a similar way, we can determine the change to the costs for changing the number of coupled and uncoupled units at a transition. Moreover, a second observation is that when adding a train unit or removing a train unit from the composition, we can determine if the new composition is feasible. In essence, we can determine if the compositions given by atþejand atejare feasible. Similarly, we can determine if the new composition change that is formed by adjusting the flow on one arc Fig. 4. An adjustment of the assigned duties for the blue (solid) rolling stock type. The initial disruption is given by the strike through line, while a dotted line indicates that no rolling stock is assigned. (For interpretation of the references to color in this figure legend, the reader is referred to the Web version of this article.) R. Hoogervorst et al. EURO Journal on Transportation and Logistics 10 (2021) 100032 5
in the composition change remains feasible. The above two observations motivate to look at the residual graph D0¼ðV;A0Þ. In particular, for each arc ðu;vÞ2A, we add the arc ðu;vÞto A0if we can increase the flow on this arc by a single unit. Furthermore, we add the arc ðv;uÞto A0if it is possible to decrease the flow on arc ðu;vÞby a single unit. Let these backward and forward arcs respectively be given by the sets A*and A**. Moreover, we can assign to each arc a cost that corresponds to the new composition or composition change that is formed. We argue now that finding an improvement in the assignment of the corresponding rolling stock type corresponds to finding a cycle with negative cost in graph D0, where the arc costs are path-dependent. In particular, if a path uses more than one arc corresponding to the same trip or transition, the total arc costs are usually not equal to the sum of the arc costs. For example, it is generally the case that fatþeiej6¼ fðatþeiÞþfatej: Hence, we have to take into account any arcs that are already in the path to determine the cost of a newly encountered arc. 4.2.3. Finding negative weight cycles As the problem of finding a negative weight cycle with pathdependent arc costs is NP-hard, we use a heuristic approach to find such cycles here. To find negative weight cycles we split the problem into that of freeing an existing duty and finding a new duty for the considered train unit. In particular, this corresponds to first finding a path in D0that only uses backward arcs. For the ending point of this path, a new duty is then found by finding a path from the ending point of this backward path to the starting point of this backward path that only uses forward arcs. This thus restricts the considered cycles to those that can be formed by one backward path and one forward path. Let P⊆Vnow represent the set of possible starting points of a forward path of a train unit. Such a starting point corresponds to a coupling node vcou cif a train unit is parked at a station at the start of the planning horizon. Alternatively, it corresponds to a trip node vdep t;gif a train unit is operating in this group of this trip at the start of the planning horizon. Moreover, let D*¼ðV;A*Þand D** ¼ðV;A**Þbe the graphs containing respectively the backward and forward arcs. In addition, let s0be a source and sink node for the backward and forward graph respectively that is connected to the last station node of each station. The procedure that is used to explore the neighborhood is now formalized in Algorithm 2. In this algorithm, we first fix the train unit type for which we try to find an improvement in the assignment. We then generate for each possible starting node a backward path from the sink node of the graph to the starting point. If such a backward path can be formed, we find a matching forward path from the starting node to the sink node. Together, this backward path and forward form a cycle in the original graph D0. Note that the backward path can be interpreted here as freeing up part of an existing duty for rescheduling, while the forward path can then be seen as finding a new completion of the duty for this train unit for the remainder of the planning horizon. Note that Algorithm 2 requires at most OðjRjjDjjTjÞ steps. In particular, we execute the algorithm for each rolling stock type r2R. Moreover, the number of starting points is no more than the number of duties jDj, as each duty is contained in at most one starting point and as we only need to consider those starting points where at least one train unit starts. Lastly, as we consider directed acyclic graphs when finding shortest paths, each shortest path algorithm takes at most OðjTjÞ steps if we assume some fixed maximum length for the compositions. In practice, we can generally speed up the computations. For example, as the backward graph D*is the same for all backward paths, all single-source shortest paths can be derived at the same time with OðjTjÞ steps. Moreover, as the considered graph is different for each train unit type, we can parallelize the algorithm over the train unit types. Algorithm 2. Adjusted Path Neighborhood. 4.3. Composition Change Neighborhood The Composition Change neighborhood adjusts the composition changes at transitions directly. The main motivation for using this neighborhood is that the other neighborhoods tend to only change a few duties at a time. However, as costs are associated with the used composition changes and especially the shunting actions performed in them, these neighborhoods may fail at changing the composition changes in such a way that high costs are avoided. An example of how a change to a composition change looks is given in Fig. 6. In this example, originally two units are uncoupled at the transition between trip t6and t7, which are later used to operate trips t11 and t12. The composition change for this transition is then changed into one where no shunting occurs and where all train units continue to operate on trips t7and t8. This change might, for example, be beneficial when the composition change before the disruption was also one where no shunting was performed. If a composition change is altered, the circulation has to be changed accordingly. To do so, we employ an idea similar to the one in the Adjusted Path Neighborhood as introduced in the previous section. In R. Hoogervorst et al. EURO Journal on Transportation and Logistics 10 (2021) 100032 6
particular, we find new duties that match the adjustments that are made to the composition change. These duties then define a new circulation. Let the current composition change for some transition c2Cbe given by q2Qc. Moreover, consider that we want to change qinto some new composition change q02Qc. We will require in this neighborhood that all compositions that occur before this transition remain unaltered. This implies that a q02Qcneeds to be found of which the composition q0ðtÞon the incoming trip t2T cis unaltered compared to the current circulation. The above requirement implies that q0varies from qin the shunting that takes place. We can then identify which train units on the incoming and outgoing trip are affected by this change in shunting. For incoming trips, those are the train units for which the uncoupling is changed, while for outgoing trips those are the train units for which the coupling is changed. We can then create new duty templates for each of the affected train units, which describe the action that is taken in this transition. To complete these duty templates into actual duties, we use again the group representation graph as introduced in the Adjusted Path Neighborhood. In particular, we find for each duty template a starting node in this graph. We then find a backward path from the sink node to this starting node that frees up an existing duty. If such a path can be found, we find a forward path that completes this freed up duty. The complete algorithm is given in Algorithm 3. In this algorithm, the function FindAdjustedDutiesðc;qÞdetermines the duty templates that are needed for the new composition change. Furthermore, the function findRelevantNodeðc;dÞfinds the correct starting node for this duty in the graph representation of this transition. Note that we can only find a move in this algorithm if we find feasible backward and forward paths for each of these duty templates that need to be completed. Algorithm 3. Composition Change Neighborhood. Fig. 5. Graph representation for the blue (solid) train unit type for the circulation in Fig. 2. For clarity, only a selection of the node labels is included in the figure. (For interpretation of the references to color in this figure legend, the reader is referred to the Web version of this article.) R. Hoogervorst et al. EURO Journal on Transportation and Logistics 10 (2021) 100032 7
Note that Algorithm 3 requires at most OðjCjjQjjDjjTjÞ steps, which follows from each shortest path being found with complexity OðjTjÞ due to the graphs being directed acyclic graphs. However, the number of needed steps is generally considerably less, as for only a few duties the shunting is altered at a transition. Moreover, only a few composition changes have the required predecessor compositions. As a result, this neighborhood can be explored in a reasonable amount of time even for larger problem instances. 4.4. The VNS heuristic We combine the above neighborhoods into a Variable Neighborhood Search (VNS) heuristic (Mladenovi c and Hansen 1997). In VNS, we first perturb the current circulation in each iteration, to then apply a local search procedure to improve the perturbed circulation. Perturbation occurs through picking a new circulation randomly from one of the shaking neighborhoods, where we switch to the next neighborhood if no improvement is found in the current one. The general outline of our VNS heuristic is given in Algorithm 4. Algorithm 4. The VNS heuristic. For local search within our VNS heuristic, we employ Variable Neighborhood Descent. In Variable Neighborhood Descent, we explore multiple neighborhoods in a deterministic way. There is thus no diversification and the local search stops when none of the neighborhoods can provide an improvement to the current solution. In our heuristic, we only use the Two-Opt Duty Neighborhood Nduty and the Adjusted Path Neighborhood Npath in Variable Neighborhood Descent, where we use the order ðNduty;NpathÞto explore these two neighborhoods. Moreover, we employ a best improvement strategy, where we always explore the complete neighborhood to find the move which results in the largest improvement. Note that computing the improvement made by a move, and checking its feasibility, can be done in OðTÞsteps. As shaking neighborhoods, we then use the Adjusted Path and Composition Change neighborhood in the order ðNpath;NchangeÞ, where Nchange is the Composition Change Neighborhood. For both shaking neighborhoods, we draw a move at random from all possible moves that can be made in the neighborhood. By focusing on these two larger sized neighborhoods, we try to ensure that enough variation is present in the found solutions to ensure that local optima are escaped. Moreover, by only sampling from the Composition Change Neighborhood, we prevent the relatively large overhead of finding all moves within this neighborhood. As a stopping criterion, we solely use a maximum elapsed time. This reflects the idea that the heuristic could be stopped at any moment in time by a rolling stock dispatcher to obtain a solution. Hence, if very little time is available, a rolling stock dispatcher can stop the search process and evaluate the solution that is available at that moment in time. Note that this solution is always feasible, as we only consider moves that leave the feasibility of the circulation intact. 5. Rolling stock rescheduling with flexible turning In this section, we extend the heuristic to a setting where the transitions between trips at the ending stations are no longer fixed. Instead, these transitions at ending stations can be changed, implying that incoming trips can be freely reassigned to outgoing trips. This setting for rolling stock rescheduling is often referred to as flexible turning (Nielsen 2011). 5.1. Problem definition The transitions Ccan generally be split into those transitions which occur at in-between stations of a railway line and those that occur at Fig. 6. Example of changing the composition change for a transition. R. Hoogervorst et al. EURO Journal on Transportation and Logistics 10 (2021) 100032 8
Dollevoet, T., Huisman, D., Kroon, L.G., Veelenturf, L.P., Wagenaar, J.C., 2017. Application of an iterative framework for real-time railway rescheduling. Comput. Oper. Res. 78, 203–217. https://doi.org/10.1016/j.cor.2016.08.011. Fioole, P.J., Kroon, L., Mar oti, G., Schrijver, A., 2006. A rolling stock circulation model for combining and splitting of passenger trains. Eur. J. Oper. Res. 174 (2), 1281–1297. https://doi.org/10.1016/j.ejor.2005.03.032. Hoogervorst, R., Dollevoet, T., Mar oti, G., Huisman, D., 2020. Reducing passenger delays by rolling stock rescheduling. Transport. Sci. 54 (3), 762–784. https://doi.org/ 10.1287/trsc.2019.0968. Lusby, R.M., Haahr, J.T., Larsen, J., Pisinger, D., 2017. A branch-and-price algorithm for railway rolling stock rescheduling. Transp. Res. Part B Methodol. 99, 228–250. https://doi.org/10.1016/j.trb.2017.03.003. Mladenovi c, N., Hansen, P., 1997. Variable neighborhood search. Comput. Oper. Res. 24 (11), 1097–1100. https://doi.org/10.1016/S0305-0548(97)00031-2. Nielsen, L.K., 2011. Rolling Stock Rescheduling in Passenger Railways: Applications in Short-Term Planning and in Disruption Management. Ph.D. thesis. Erasmus Research Institute of Management. http://hdl.handle.net/1765/22444. Nielsen, L.K., Kroon, L., Mar oti, G., 2012. A rolling horizon approach for disruption management of railway rolling stock. Eur. J. Oper. Res. 220 (2), 496–509. https:// doi.org/10.1016/j.ejor.2012.01.037. Peeters, M., Kroon, L., 2008. Circulation of railway rolling stock: a branch-and-price approach. Comput. Oper. Res. 35 (2), 538–556. https://doi.org/10.1016/ j.cor.2006.03.019, part Special Issue: Location Modeling Dedicated to the memory of Charles S. ReVelle. Reuther, M., 2017. Mathematical Optimization of Rolling Stock Rotations. Doctoral thesis. Technische Universit€ at Berlin, Berlin. Veelenturf, L.P., Kidd, M.P., Cacchiani, V., Kroon, L.G., Toth, P., 2016. A railway timetable rescheduling approach for handling large-scale disruptions. Transport. Sci. 50 (3), 841–862. https://doi.org/10.1287/trsc.2015.0618. Wagenaar, J., Kroon, L., Fragkos, I., 2017a. Rolling stock rescheduling in passenger railway transportation using dead-heading trips and adjusted passenger demand. Transp. Res. Part B Methodol. 101, 140–161. https://doi.org/10.1016/ j.trb.2017.03.013. Wagenaar, J.C., Kroon, L.G., Schmidt, M., 2017b. Maintenance appointments in railway rolling stock rescheduling. Transport. Sci. 51 (4), 1138–1160. https://doi.org/ 10.1287/trsc.2016.0701. R. Hoogervorst et al. EURO Journal on Transportation and Logistics 10 (2021) 100032 15