scieee AI-readable full text Open interactive document viewer

An efficient greedy heuristic for the real-time train platforming problem

García Ródenas, Ricardo,López García, Maria Luz,Cadarso Morga, Luis,Codina Sancho, Esteve

Abstract

This paper focuses on a special class of real-time railway traffic management problem: efficiently reallocating trains to platforms at stations in case of slight schedule changes or major disruptions. The need for a real-time response with a high level of quality makes this problem particularly challenging. To address this issue, the authors propose a mesoscopic approach that involves preprocessing the data to determine feasible routes and other disruption parameters. They develop a greedy interchange heuristic to solve the mesoscopic real-time train platforming problem, providing high-quality routing and timing decisions within the computational time constraints of real-time management problems. The performance of the proposed heuristic is analyzed through case studies using both synthetic and realistic scenarios from the Spanish railway traffic system. For large instances of the Atocha-Cercanías station case study, the solutions are generated from 5 to 10 times faster by the heuristic algorithm than by the exact method. The authors conclude that the proposed heuristic is a promising solution for real-time train platforming problems.

Full text

Computers & Operations Research 164 (2024) 106525 Available online 29 December 2023 0305-0548/© 2023 The Author(s). Published by Elsevier Ltd. This is an open access article under the CC BY-NC license (http://creativecommons.org/licenses/bync/4.0/). Contents lists available at ScienceDirect Computers and Operations Research journal homepage: www.elsevier.com/locate/cor An efficient greedy heuristic for the real-time train platforming problem Ricardo García-Ródenas a,∗, María Luz López-Garcíaa, Luis Cadarso b, Esteve Codina c aDepartamento de Matemáticas, Escuela Superior de Informática, Instituto de Matemática Aplicada a la Ciencia y la Ingeniería (IMACI), Universidad de Castilla-La Mancha, Spain bAerospace Systems and Transport Research Group, European Institute for Aviation Training and Accreditation (EIATA), Rey Juan Carlos University, 28942 Fuenlabrada, Madrid, Spain cDepartment of Statistics and Operations Research, Universitat Politècnica de Catalunya, C5-Carrer Jordi Girona 1-3 08034 Barcelona, Spain ARTICLE INFO Keywords: Railway traffic Train platforming problem Real-time rescheduling Real-time rerouting Heuristics ABSTRACT This paper focuses on a special class of real-time railway traffic management problem: efficiently reallocating trains to platforms at stations in case of slight schedule changes or major disruptions. The need for a real-time response with a high level of quality makes this problem particularly challenging. To address this issue, the authors propose a mesoscopic approach that involves preprocessing the data to determine feasible routes and other disruption parameters. They develop a greedy interchange heuristic to solve the mesoscopic real-time train platforming problem, providing high-quality routing and timing decisions within the computational time constraints of real-time management problems. The performance of the proposed heuristic is analyzed through case studies using both synthetic and realistic scenarios from the Spanish railway traffic system. For large instances of the Atocha-Cercanías station case study, the solutions are generated from 5 to 10 times faster by the heuristic algorithm than by the exact method. The authors conclude that the proposed heuristic is a promising solution for real-time train platforming problems. 1. Introduction In the railway planning process, two main types of problem can be identified: off-line and on-line. Off-line problems are further divided into three levels: strategic, tactical, and operational. The strategic level involves decisions about infrastructure, lines, and timetables. The tactical level involves decisions about rolling stock and crew schedules. The operational level involves the control of the previously made decisions. On the other hand, on-line problems, also known as real-time problems, focus on the control of these decisions in real-time. In summary, the railway planning process involves off-line planning at the strategic, tactical, and operational levels, followed by on-line control to ensure these decisions are carried out. The distinction between off-line and on-line problems is important in railway planning, as it helps to clarify the different planning horizons and the different types of decisions that need to be made. In dense railway networks, incidents can often disrupt the planned operations, causing deviations from the original schedule. In such cases, active intervention may be required to restore normal operations. This is where recovery plans come into play. As discussed in Cadarso et al. (2015) and Cacchiani et al. (2014), a classification scheme is adopted to distinguish between two types of conflict: disturbance and disruption. ∗Corresponding author. E-mail address: [email protected] (R. García-Ródenas). The distinction between these two types of conflict helps in designing effective recovery plans. A disturbance refers to a minor incident that can be resolved quickly without major interference to the schedule. A disruption, on the other hand, refers to a major incident that requires a substantial recovery plan to restore normal operations. Both of them call for rescheduling operations and/or resource duties, such as crew and rolling stock. A disturbance is a primary delay that causes secondary delays, generating, for example, conflicting tracks and deadlocks. This type of incident is small-scale and appears in case of minor train delays. It may be resolved by letting the delays propagate until the timetable’s buffer times absorb it. This may also be achieved by applying recovery strategies, such as rescheduling timetables and rerouting trains, which may require platforming changes at stations. A disruption, which may be caused by, for example, infrastructure blockage, failing rolling stock, and crew shortages, requires large-scale changes to the schedule in order to recover, such as train cancellations and/or new extra trains (Almodóvar and García-Ródenas,2013), train replacement (Cadarso et al.,2013;Mesa et al.,2013), and changing planned stops (Canca et al.,2016). Dealing with incidents in the railway industry is known in the literature as the real-time Railway https://doi.org/10.1016/j.cor.2023.106525 Received 11 February 2023; Received in revised form 24 October 2023; Accepted 23 December 2023 Computers and Operations Research 164 (2024) 106525 2 R. García-Ródenas et al. Traffic Management Problem (rtRTMP) (Pellegrini et al.,2014), the realtime Train Dispatching problem (RTD) (Lamorgese and Mannino,2015) or the Train Rescheduling Problem (TRP) (Bettinelli et al.,2017). In practice, dispatchers solve the rtRTMPs in real time by rescheduling and rerouting trains, trying to minimize deviations from the planned timetable. In many countries, railway traffic management is decentralized and carried out by control areas. These control areas are responsible for managing the railway network within their boundaries. However, the limited resources, such as stations and junctions, often pose a major challenge for the effective management of railway traffic. These resources are usually located in urban areas where limited space and funds prevent the construction of new infrastructure, thereby limiting the total capacity of the railway system. As a result, railway traffic management must operate within these constraints, and finding innovative ways to optimize the use of available resources is crucial for the effective management of railway traffic. This requires a careful analysis of the resources, their limitations, and the impact of any changes made to the railway network. Additionally, it may be necessary to consider alternative solutions such as train rerouting, real-time optimization of train schedules, and the implementation of efficient dispatching systems, among others. Real-time management of this type of bottleneck in stations is known as the TPP in real time or real-time Station Dispatching Problem (rtSDP). This challenge has been mainly addressed from an off-line point of view (Zhang et al.,2020a,2021). But there are a few exceptions, such as Chakroborty and Vikram (2008). Existing approaches necessitate a high degree of detail in the network definition, which has negative effects not only on the computational cost of the solution process but also on the required time to collect data. As a result, this paper suggests a mesoscopic method for the TPP. Instead of developing a model based on line sections (Törnquist and Persson, 2007;Tornquist Krasemann,2012), multi-block sections are employed. A multi-block section based Mixed-Integer Linear Programming (MILP) formulation is proposed to determine the rescheduling and rerouting actions. The goal is to minimize inconvenience caused by (i) delays, (ii) allocation of non-preferred platforms, and (iii) last-minute changes in platform allocation. The MILP model relies on a previous off-line preprocessing, which analyzes the set of feasible routes to detect all the potential conflicts and their effects on the railway traffic. This paper addresses the real-time disturbance management problem from the TPP perspective. A mesoscopic approach is presented, adopting an operational point of view, where the railway infrastructure is modeled precisely. Issues such as passenger delays and missconnections, which are of key importance in passenger-centric models, where the railway network is only approximately modeled, are relegated to the background. In this context, heuristic methods are necessary to solve the problem approximately and/or as a complement to exact methods to accelerate the solution process and to obtain bounds to optimal solutions. 2. Literature review Off-line train timetabling is usually carried out in two stages: (i) entry and exit (tentative) times to several segments of train routes are determined, including stations, such that passenger connections are satisfied. (ii) complete timing of the routes is determined, also solving the TPP. Here, the goal is to determine a feasible platforming plan for all stations. The rtRTMP inherits the structure of the off-line planning problem. In railway systems operating in a decentralized way, an analysis of congested bottleneck areas, and also coordination between different control areas are required. The real-time TPP is the rtRTMP, including both platform allocation and safety constraints. In the real-time TPP, not only rescheduling but also rerouting must be addressed, because the route chosen within the station area defines which platform would be used. The rtRTMP falls into the category of job shop scheduling problems. It has been formulated in two different ways: (i) time-indexed formulations and (ii) disjunctive formulations. In the first approach, time is discretized and a binary variable is assigned to each railway operation and time period considered. Here, conflicts are avoided with packing constraints. The second method considers the continuous nature of time, and seeks to sequence the railway operations. The modeling approaches are based on MILP models using big M-formulations, and the disjunctive graph (Mascis and Pacciarelli,2002), respectively. Solving the rtRTMP problem implies dealing with limitations in computation times. Fang et al. (2015) presents a comprehensive survey on different models for rescheduling in railway networks, focusing on the solution approaches. A great variety of methods have been used, and standard solvers, such as CPLEX, have been intensively used for MILPs. These methods follow three different strategies: 1. Decomposition methods. Resulting models are large-scale linear models. Decomposition methods have been successfully applied to these kinds of problems in other fields (Conejo et al.,2006). These methods are specifically applied to the rtRTMP, providing bounds to the optimal solution. 2. Heuristics. Complexity studies are proving that even the simplest station dispatching problem is NP-hard (Lamorgese and Mannino,2015). This motivates the use of heuristic algorithms and metaheuristics to solve the rtRTMP, such as variable neighborhood search, tabu search, and ant colony optimization. 3. Reduction of the decision space. These approaches aim to enhance the performance of railway rescheduling by reducing the decision space without significantly compromising the quality of the resulting solution. Decomposition methods. In Lamorgese and Mannino (2015) the rtRTMP is solved using a Benders’-like decomposition within a suitable master/slave scheme. Here, the master problem is the Line Dispatching Problem (LDP) and the slave problem is the Station Dispatching Problem (SDP). The LDP ensures that incompatible line tracks are not simultaneously occupied and the SDP deals with train scheduling and routing within the stations. Another strategy employed is the column generation methodology (García et al.,2003;García-Ródenas et al.,2011). In the context of the rtRTMP routes are generated when needed. The rtRTMP considers a set of feasible routes for each train and chooses the optimal route for each one (routing decision). The number of routes grows exponentially with the size of the network, for this reason, the number of routes to be used is restricted. Samà et al. (2016) have shown that this selection (called the Train Routing Selection Problem (TRSP)) is a key factor in the quality and the execution time in the resolution of the rtRTMP. Samà et al. (2017b) deals with the TRSP at tactical and operational levels. The TRSP may be seen as a way of generating routes off-line, whose solution defines a set of routes that may be used in the rtRTMP. Lusby et al. (2013) for train rescheduling/rerouting to recover feasibility on a railway junction using a column generation approach. They employ path variables instead of routes, where a path is a speed profile on a route (see Lusby et al. (2011)). The authors use a set packing-inspired formulation of this problem and discretize time to build a tailored time-space network. Heuristic methods. Mascis and Pacciarelli (2002) applies a heuristic algorithm named Avoid Maximum Current Cmax (AMCC) as an alternative to graph formulation. This scheme has been followed and adapted to various rescheduling problems, such as the coordination of regional control centers (Corman et al.,2014,2012b,2010a), a bi-objective problem of train delays and missed connections (Corman et al.,2012a), prioritizing of trains depending on passenger delays (Espinosa-Aranda and García-Ródenas,2013), and the rtRTMP (D’Ariano and Pranzo,2009;D’Ariano et al.,2008b). In Bettinelli et al. Computers and Operations Research 164 (2024) 106525 3 R. García-Ródenas et al. (2017) a parallel greedy algorithm is proposed based on multiple runs, each of them scheduling trains on a time-space network. This heuristic combines various dispatching rules with the use of shaking and sparsification techniques. The effectiveness and speed of this heuristic are high for a set of instances derived from real-world networks and instances from the literature. There appear to be few studies that consider the real-time scheduling/routing of trains on junctions (such as station areas). This problem integrates combinatorial optimization in routing decisions with mixed integer optimization in the scheduling problem for managing delays in railway operations. This problem is solved by assuming a given set of routes, and combinatorial optimization algorithms are applied to make routing decisions. D’Ariano et al. (2008a), Corman et al. (2010b), and Samà et al. (2017a) use alternative graphs to solve the scheduling problem and apply a greedy heuristic, tabu search, and variable neighborhood search, respectively, to optimize routes. The authors in Zhang et al. (2020b) address the real-time re-optimization of the train platforming problem using a time-expanded network model. They propose a Genetic and Simulated Annealing hybrid algorithm (GSAHA). GSAHA first allocates the spatial resources for the trains, and the temporal conflicts between trains are further resolved through a specialized heuristic rule. Methods based on the reduction of the decision space. Apart from the previously mentioned algorithmic approaches for solving the rescheduling itself, other studies look to provide a quicker response of the rescheduling by initially reducing the number of decisions to be taken, usually by preprocessing. Thus, Thielen et al. (2018) looks at reducing the number of scheduling decisions, searching for those most likely to have an effect on the quality of the solution. In Pascariu et al. (2018), where the TRSP is solved using an ant colony optimization, previously the number of routing variables is limited through an initial preprocessing in order to reduce the size of rtRTMP instances. Similarly, Fischetti and Monacci (2017) limits the number of trains for which rerouting choices are allowed. In Pellegrini et al. (2019), valid inequalities are developed for boosting the rtRTMP problem, allowing reformulations with a reduced number of rerouting and scheduling binary variables. In Li et al. (2023), the combined influence of routing and conflicts linked to rolling stock connections is explored. Meng and Zhou (2014) address the train dispatching problem in an N-track rail network. Track occupancy is formulated using cumulative flow variables, enabling efficient capacity modeling through side constraints and Lagrangian relaxation. Then, the original problem is solved through its decomposition into single-train optimization subproblems. Note that these approaches can be combined with exact and heuristic methods. The level of detail in the description of the network impacts the computational cost regarding the solution process and also the time needed to collect data, making some aggregation necessary in the infrastructure model. Törnquist and Persson (2007) divides the railway network resources into sections, where a section is either a line section or a station section. This is a mesoscopic model, where the basic element is the segment, rather than the block section. Each segment is built on a set of parallel tracks. A MILP formulation based on segments is proposed. In Tornquist Krasemann (2012) an efficient greedy algorithm is proposed based on backtracking from the previous model. Sels et al. (2014) shows that the TPP has been mainly addressed at the strategic and tactical levels, with the main objective being to determine train station capacity. In this planning context, the concepts of fictive routes and fictive platform are introduced as a way of modeling that allows for finding the largest number of trains that may be served in a station. Chakroborty and Vikram (2008) deals with the TPP in real time. The goal of this formulation is to minimize the inconvenience caused due to (i) delays, (ii) allocation of non-preferred platforms, and (iii) last-minute changes to previously allocated platforms. 2.1. Contributions This paper describes an efficient greedy algorithm for solving the model proposed in García-Ródenas et al. (2022) for TPP in real-time, which is a special case of the rtRTMP. The model is oriented under a mesoscopic approach based on multi-block sections instead of adopting an approach based on line sections as in Törnquist and Persson (2007) and Tornquist Krasemann (2012). Solving the TPP is a major challenge in railway traffic management, as the efficient reallocation of trains to platforms at stations in the event of disruptions requires quick decision making and real-time responses. To address this challenge, the proposed methodology makes use of two steps. Initially, an off-line preprocessing step is conducted to determine the set of feasible routes and potential conflicts. This step is executed only once and provides a mathematical model parametrised by the train arrival schedule. In the second stage, whenever disruptions occur in the train arrival schedules, a greedy interchange heuristic is applied to efficiently address the realtime train platforming problem. This heuristic aims to minimize delays and optimize routing decisions. The greedy algorithm utilizes mathematical insights about the problem’s structure and is designed to offer high-quality routing and timing decisions within a realistic computational time frame, as demanded by real-time management problems. This approach emulates what happens in real-time traffic management: the routing and scheduling decisions are assessed in the proper temporal order, possibly being modified if the actual traffic conditions differ from those planned. This approach allows for overcoming the limitations pointed out in the literature, namely detailed modeling of the separation of train movements inside and outside of certain stations, as well as using a more dynamic way of specifying minimum train movement times depending on how trains enter and leave these stations. Moreover, the mesoscopic formulation enables a reduction in the computational cost by means of modeling that allows for aggregating some parts of the network. The results of the computational experiments, which are drawn from the busiest railway station in Spain (Atocha-Cercanías), show that the greedy algorithm significantly outperforms commercial solvers in instances featuring a large number of trains. The algorithm’s performance is demonstrated in both a small problem and in a larger problem based on the Atocha-Cercanías station. A second case study has been conducted, involving the assessment of timetables for a railway line, while considering its capacity, which yields results consistent with the Atocha-Cercanías case study. These results suggest that the proposed algorithm can be used to solve even more complex and larger railway operational problems with a similar structure, particularly under real-time constraints. 3. Mathematical programming formulation of the problem This section presents for completeness the formulation and concepts of the TPP mathematical programming model, as stated in García- Ródenas et al. (2022). In Section 4and Appendix, an in-depth analysis of the structure of the model’s solutions is carried out, providing the essential groundwork for the greedy heuristic method set out in Section 5. 3.1. Elements of the model The model operates on a station area, comprising a set of elements of the infrastructure or resources, such as track sections, switches and platforms, where passengers alight from and board trains stopped there on platform tracks. An appropriate grouping of track sections is the one defined by contiguous signals, thus creating block sections. Signals guarantee that only one train at a time is occupying a given block section, which can be seen as the smallest element on which access control can be guaranteed by the existing signal system. The exit and Computers and Operations Research 164 (2024) 106525 4 R. García-Ródenas et al. Fig. 1. Elements of the TPP model in a station area. entry points of trains into stations are via line tracks, delimited by home signals, marking these exit/entry points at the station. These elements are shown in Fig. 1. The set of trains considered within a given time period will be denoted by 𝑇, and the set of routes by 𝑅, respectively. These routes are determined by an ordered sequence of block sections. The allocation of trains to platforms is accomplished by utilizing the routes that the train will potentially follow. If the route traversed by a train includes a platform, it is assumed that the train will make a stop there. This necessitates the consideration of a set of consistency conditions between the platforms and trains, such as ensuring that the platform length can accommodate the train. The key element of the model is the route section which can be viewed as a set of resources which are contiguous in the sense that they define a route or part of it. Necessarily, they must contain several block sections and in turn, routes 𝑟can be considered as sequences of disjoint route sections, i.e. 𝑟=𝜎1∪⋯∪𝜎𝑝. With these definitions it is possible to consider that a conflict may arise if there are circulations on the station area involving route sections sharing elements in common. These elements in common are referred to as multi-block sections, for which the following definition may apply: Definition 1 (Multi-Block Section).Suppose that trains 𝑡1and 𝑡2follow routes 𝑟1and 𝑟2within a station area, respectively. Consider that 𝜎1 and 𝜎2are route sections belonging to routes 𝑟1and 𝑟2, respectively. If route sections 𝜎1and 𝜎2share any resources, i.e., 𝜎1∩𝜎2≠∅, then 𝑠=𝜎1∪𝜎2will be defined as a multi-block section. This mesoscopic model examines multi-block sections as a whole instead of by individual block sections. The level of detail of the problem is determined by the route sections defined by the modeler. For instance, Fig. 1, shows that routes 𝑟1and 𝑟2, share railway tracks. The modeler can choose to have each route section composed of a block section (Case a, in Fig. 2) or instead, divide the route into three parts: the in-route section, the platform, and the out-route section (Case b, in Fig. 2). The outcome is two distinct types of multi-block sections, as illustrated in Fig. 2. The modeler first establishes the criteria for defining the route section, which is followed by a preprocessing phase where the model parameters are calculated. In this phase, the set of possible routes 𝑅𝑡 and the set of (potentially conflicting) multi-block sections for each train 𝑡∈𝑇are identified, as per the previous definition. Then, if 𝑅𝑡is the subset of routes that can be assigned to a train according to the previously mentioned consistency conditions, these subsets of routes must be such that for any given pair of trains 𝑡1,𝑡2with routes 𝑟1and 𝑟2, respectively, either no multi-block section 𝑠involving both routes exists, or if it does, the entering times of trains 𝑡1and/or 𝑡2to the station area must be delayed by 𝑤𝑡1,𝑤𝑡2so that specific Fig. 2. Multi-block section resulting from the definition of route sections. safety guaranteeing conditions are observed. In this paper, these safety guaranteeing conditions will consist of the observance of the safety gaps between the two trains at entry/exit points of the multi-block section. 3.2. Formulation of the TPP model as an optimization problem In the preprocessing phase, the resources shared by any two routes in the station area are identified. The smallest unit that can be shared is referred to as a multiblock-section (see Definition 1) and whenever such a multi-block section is shared by two routes, a potential conflict is inherently created. The preprocessing phase is a spatial analysis conducted off-line and executed only once. After the conclusion of this preliminary phase, the real-time phase commences, wherein the extant train delays are scrutinized to ascertain the actual occurrence of conflicts. Formally, this set will be denoted by , and each of its elements or conflicts 𝑐∈, will be univocally specified by a tuple 𝑐= (𝑡1, 𝑡2, 𝑟1, 𝑟2, 𝑠). It is important to note that the index 𝑠indicates that two routes may interact in multiple multi-block sections. For instance, as shown in the example in Fig. 1, a train may conflict with another train while entering or exiting the station. As illustrated in Fig. 3, the elements 𝑐in may be of two types: crossing routes at the multi-section block (type (a)) or follower trains at the multi-block section (type (b)). This divides into two disjoint subsets, namely =𝑎∪𝑏, which contain the corresponding types of conflicts. Computers and Operations Research 164 (2024) 106525 5 R. García-Ródenas et al. Fig. 3. Types of train conflicts at a multi-block section. Then, the main decision variables of the model are intended to find a reschedule of the trains by means of delaying (if necessary) their entry time at the station area and/or by assigning to them other routes through the station area. Two vectors can be defined: delays for trains, 𝐰⊤= ( … , 𝑤𝑡,…) ∈ R|𝑇| +, and assignment of routes to trains, 𝐲⊤= ( … , 𝑦𝑡,𝑟,…) ∈ {0,1}|𝑅|, where its components, 𝑦𝑡,𝑟, are 1if train 𝑡is assigned to route 𝑟∈𝑅𝑡, and 0otherwise. The model will then require that for any 𝑐= (𝑡1, 𝑡2, 𝑟1, 𝑟2, 𝑠) ∈ , the following disjunctive conditions (1), either type (a) or type (b), will be satisfied by the delay/rerouting vectors 𝐰,𝐲depending on whether 𝑐∈𝑎or 𝑐∈𝑏: (𝐚) ∀ 𝑐∈𝑎∶𝑤𝑡1+𝑎′ 𝑡1≥𝑤𝑡2+𝑏𝑡2∨𝑤𝑡1+𝑏𝑡1≤𝑤𝑡2+𝑎′ 𝑡2 (𝐛) ∀ 𝑐∈𝑏∶{𝑤𝑡1+𝑎𝑡1≤𝑤𝑡2+𝑎′ 𝑡2 𝑤𝑡1+𝑏𝑡1≤𝑤𝑡2+𝑏′ 𝑡2 ∨{𝑤𝑡1+𝑎′ 𝑡1≥𝑤𝑡2+𝑎𝑡2 𝑤𝑡1+𝑏′ 𝑡1≥𝑤𝑡2+𝑏𝑡2 (1) where 𝑎𝑡𝑖and 𝑏𝑡𝑖,𝑖= 1,2, are the entrance and exit times to the multiblock section 𝑠of the trains, as shown in Fig. 3. It is important to note that the clearing time is considered in calculating 𝑏𝑡. The headway times 𝜀𝑎 𝑡,𝑐 and 𝜀𝑏 𝑡,𝑐 for the entering and exiting train 𝑡, respectively are taken into account in conditions (1) as follows: 𝜀𝑎 𝑡,𝑐 is the time the other train must wait to occupy the multi-block section, and 𝜀𝑏 𝑡,𝑐 is the time that it must wait to abandon the multi-block section. Then, the starting occupancy time 𝑎′ 𝑡𝑖,𝑐 and ending occupancy time 𝑏′ 𝑡𝑖,𝑐 can be defined as (i) 𝑎′ 𝑡𝑖,𝑐 =𝑎𝑡𝑖,𝑐 −𝜀𝑎 𝑡𝑖,𝑐 and 𝑏′ 𝑡𝑖,𝑐 =𝑏𝑡𝑖,𝑐 for multi-block sections of type (a), whereas (ii) 𝑎′ 𝑡𝑖,𝑐 =𝑎𝑡𝑖,𝑐 −𝜀𝑎 𝑡𝑖,𝑐 and 𝑏′ 𝑡𝑖,𝑐 =𝑏𝑡𝑖,𝑐 −𝜀𝑏 𝑡𝑖,𝑐 for multi-block sections of type (b). It is important to note that in the microscopic models of TPP based on block-sections, only type (a) conflicts are present, while in this mesoscopic model, based on multi-block sections, type (b) conflicts may also occur. Conditions (1) can be interpreted as those at a multi-block section: – If it is of type (a) either entry time of train 𝑡1is later than the exit time of train 𝑡2, or the exit time of train 𝑡1is previous to the entry time of train 𝑡2(taking into account the trains’ safety headway) and – if it is of type (b) either train 𝑡1is previous to train 𝑡2(by at least the safety headway) in both entry and exit times, or train 𝑡2is previous to train 𝑡1(by at least the safety headway) in both entry and exit times, and as a consequence, overtaking/collision is not possible As shown in García-Ródenas et al. (2022), the previous disjunctive conditions (1) can be easily stated as algebraic linear constraints using a set of auxiliary binary variables 𝑧𝑐,𝑐∈and it will not be repeated here for brevity. Additionally to the set of conditions (1) imposed by the collection of conflicts in found in the preprocessing steps, the deviations with respect to the scheduled timetable must be taken into account. We introduce the following parameters to give the formulation of the objective function: – The planned entry and exit times at the station area, 𝜃+ 𝑡and 𝜃− 𝑡 respectively, the entry time that will result from the disruption, 𝜃𝑡, and the planned departure time from the platform, 𝑑𝑡. From 𝜃𝑡and 𝜃+ 𝑡, an a priori deviation,𝛿+ 𝑡, of the entry time due to the disruption will be 𝛿+ 𝑡=𝜃𝑡−𝜃+ 𝑡. – The travel time 𝑐𝑡,𝑟 through the station area through route 𝑟 and the travel time 𝑐𝑝 𝑡,𝑟 for train 𝑡from the exterior lines to the platform following route 𝑟plus the sojourn time. The a priori deviation from the exit time, 𝛿− 𝑡, will depend on which route the train is assigned through the station area. Then, by means of the following constraints (2) to (5), the a priori deviation of the exit time and the a posteriori non-negative deviations ℎ+ 𝑡=𝑚𝑎𝑥{𝛿+ 𝑡+𝑤𝑡,0} and ℎ− 𝑡=𝑚𝑎𝑥{𝛿− 𝑡+𝑤𝑡,0} can be defined, which will be used directly by the objective function of the model. Remember that 𝑤𝑡is the time that train 𝑡is delayed entering the station area. Additionally, the actual departure time from the platform cannot be earlier than the planned departure time 𝑑𝑡. These conditions can be stated as ∀𝑡∈𝑇∶𝛿− 𝑡=𝜃𝑡+∑ 𝑟∈𝑅𝑡 𝑐𝑡,𝑟𝑦𝑡,𝑟 −𝜃− 𝑡(2) 𝛿+ 𝑡+𝑤𝑡≤ℎ+ 𝑡(3) 𝛿− 𝑡+𝑤𝑡≤ℎ− 𝑡(4) 𝜃𝑡+𝑤𝑡+∑ 𝑟∈𝑅𝑟 𝑐𝑝 𝑡,𝑟𝑦𝑡,𝑟 ≥𝑑𝑡(5) ℎ+ 𝑡≥0, ℎ− 𝑡≥0, 𝑤𝑡≥0(6) Passengers aim to mitigate delays and avoid last-minute platform changes, inconveniences they would rather circumvent. These objectives are encapsulated within the TPP model, which can be formulated as the following multi-objective optimization problem: min 𝐡,𝐲,𝐰𝑍=∑ 𝑡∈𝑇[(𝑢𝑡ℎ+ 𝑡+𝑣𝑡ℎ− 𝑡)+𝜆∑ 𝑟∈𝑅𝑡 𝑘𝑟,𝑡𝑦𝑟,𝑡] subject to ∶(1) 𝑐conflict type (𝐚),∀𝑐∈𝑎 (1) 𝑐conflict type (𝐛),∀𝑐∈𝑏+(2) to (5). (7) The first objective is the minimization of the weighted sum of entry and exit deviations, represented by the vector 𝐡⊤= (..., ℎ+ 𝑡, ℎ− 𝑡,…) ∈ R2|𝑇|, with positive weights 𝑢𝑡, 𝑣𝑡. Since the impact of train delay is different at the entrance than at the exit of the station, in part due to differences in passenger boardings and alightings, two parameters, 𝑢𝑡 and 𝑣𝑡, are considered instead of just one. These parameters convert train delay times of train 𝑡into monetary units. The second objective is the allocation of non-preferred platforms. The parameters 𝑘𝑟,𝑡 quantify the units of discomfort that train 𝑡generates when using the platform of route 𝑟, and the parameter 𝜆serves as the willingness-to-pay value that a passenger would be prepared to offer to avoid one unit of discomfort. This formulation allows the second objective to be expressed in monetary units, thereby facilitating the harmonization of both objectives. 4. Considerations on the definition of route section on the modeling of multi-block sections The level of granularity of the model, and thus the size of the problem, can be determined by grouping the block sections according Computers and Operations Research 164 (2024) 106525 6 R. García-Ródenas et al. to the definition of route sections. Route sections can be defined at least three levels of aggregation: (i) routes are composed by a single route section (most aggregated level) (ii) each route section is made up by a single block section (most disaggregated level) (iii) at an intermediate and recommended level, each route is made up by three route sections (in-route, platform, out-route) The use of multi-block sections, instead of block sections or even a more detailed representation such as track circuits reduces the number of conflicts and also the computational cost. Rule (b) in (1) simplifies the microscopic description of the problem and eliminates the path of each train inside the multi-block section, although train overtaking may take place. For instance, train 𝑡1runs in a multi-block section and a slower train 𝑡2, follows it. Then, train 𝑡1stops in a station and train 𝑡2overtakes it. Once train 𝑡1starts running again, it passes train 𝑡2before leaving the multi-block section. The multi-block section approach considers it feasible. Assuming train 𝑡2has the speed profile of train 𝑡1, it could recover the delay that train 𝑡1causes with its stop and leave the multi-block section as planned. This means that train paths for trains 𝑡1and 𝑡2would exist, based on speed changes compatible with the multi-block section. Depending on the problem, this scheme could be valid or not. Proposition 1 in Appendix shows that this shortcoming may be tackled by choosing smaller route sections. Specifically, the example described may correspond to route sections of type (i) but considering route sections of type (iii) the deficiency is avoided. The situation where infeasible overtakings are totally avoided corresponds to route sections of type (ii). 5. A greedy inter-change heuristic The TPP model has been formulated as a MILP and can be solved exactly using the branch and bound approach. These methods cannot be applied when a strong limitation in computing time is imposed by on-line requirements. As a result, we develop a heuristic algorithm in this section. The algorithm assumes that trains have an initially assigned route, defined by the variable 𝑦𝑡,𝑟, and also a departure time 𝜃− 𝑡and arrival time 𝜃+ 𝑡to the station area. At each iteration of the heuristic, the decisions related to a single train are optimized. A train 𝑡is selected from a list 𝑇𝑣of trains that have not yet been optimized. The ordering of the list 𝑇𝑣may be arbitrary but here trains will follow the order marked by 𝜃− 𝑡, i.e., the planned exit time from the station area. Once delay and route decisions for this train have been established, the train is added to the list 𝑇𝑓, which consists of the trains that have been previously analyzed, and the process is repeated for the next train in 𝑇𝑣. Let 𝑡1be the current train from the list 𝑇𝑣. Once a route 𝑟1has been set for it, a near-optimality delay 𝑤𝑡1is found through the following three steps: -Step 1. In this step, a feasible set 𝑊𝑡1,𝑟1for 𝑤𝑡1is found, assuming that trains in 𝑇𝑓follow the routes and delays set at the previous iterations. -Step 2. A subset 𝑊∗ 𝑡1,𝑟1⊆ 𝑊𝑡1,𝑟1of candidate values for 𝑤𝑡1, or tentative delay times is selected. This subset emerges after solving optimally the conflicts of train 𝑡1with each train 𝑡2∈𝑇𝑣. -Step 3. All tentative delays 𝑤𝑡1,𝑟1∈𝑊∗ 𝑡1,𝑟1are evaluated using the objective function (7), which takes into account their effect on the whole railway network. The difference with Step 2is that now 𝑡1 is considered simultaneously with all trains in 𝑇𝑣, whereas in Step 2 the pairs of trains (𝑡1, 𝑡2)were analyzed one by one with 𝑡2∈𝑇𝑣. Once all the tentative delays have been evaluated, the optimal delay for route 𝑟1, denoted by 𝑤∗ 𝑡1,𝑟1, is determined, and the process is repeated for all 𝑟∈𝑅𝑡1, where the set 𝑅𝑡1contains all the routes that have been established as feasible for train 𝑡1during the preprocessing phase. After analyzing all the routes, the optimal route 𝑟∗ 1and its associated delay 𝑤∗ 𝑡1,𝑟∗ 1 are determined. Due to the fact that the set of routes for 𝑡1is explored, the initial route for train 𝑡1has a slight impact on the algorithm’s performance. Note that after processing all the trains the initial variable 𝑦is optimized and a new variable 𝑦∗is generated, making it possible to restart the process. There follows a detailed description of the previous steps and a pseudocode for the algorithm. Step 1: Calculation of 𝐖𝐭𝟏,𝐫𝟏. A delay 𝑤𝑡1∈𝑊𝑡1,𝑟1is sought for train 𝑡1 such that, under route 𝑟1, this train does not present any conflict with trains in 𝑇𝑓that already been considered and 𝑡1satisfies the constraint (5), i.e. train 𝑡1will not leave the platform before its planned departure. This set is expressed as 𝑊𝑡1,𝑟1=[0,+∞)− 𝑚1 ⋃ 𝑖=1 (𝐴𝑡1 𝑖, 𝐵𝑡1 𝑖)(8) Eq. (8) shows that the feasible delays for train 𝑡1, when it uses route 𝑟1, include any non-negative value minus the values of certain forbidden intervals. These intervals generate conflicts with the previously scheduled trains. Proposition 2 in Appendix provides a method for calculating the parameters {𝐴𝑡1 𝑖, 𝐵𝑡1 𝑖}𝑚1 𝑖=1. Train 𝑡1can only have an actual conflict with those trains that temporally coincide in the station area. The size of the set 𝑇𝑓does influence potential conflicts, but this does not necessarily translate into actual conflicts. The number of actual conflicts depends on the intensity of railway traffic in relation to the capacity of the station area and not solely on the number of railway services in 𝑇𝑓. Step 2: Calculation of tentative delays 𝑊∗ 𝑡1,𝑇𝑣. Assume that routes for services in 𝑇𝑣∪ {𝑡1}have been set and let 𝑟′ 2be the route currently planned for service 𝑡2∈𝑇𝑣and let 𝑟1be the route for service 𝑡1. The set 𝑡1,𝑇𝑣of current conflicts with 𝑡1is defined as: 𝑡1,𝑇𝑣∶= {𝑐∈∶𝑐= (𝑡1, 𝑡2, 𝑟1, 𝑟′ 2, 𝑠), 𝑡2∈𝑇𝑣}(9) The optimal value 𝑤∗ 𝑡1is obtained by solving the following problem: 𝑧𝑤𝑡1,𝑟1∶= Min ∑ 𝑡∈𝑇𝑣∪{𝑡1}(𝑢𝑡[𝛿+ 𝑡+𝑤𝑡]++𝑣𝑡[𝛿− 𝑡+𝑤𝑡]+)+𝜆𝑘𝑡1,𝑟1 Disjunctive constraints for all 𝑐∈𝑡1,𝑇𝑣 𝑤𝑡1∈𝑊𝑡1,𝑟1, 𝑤𝑡2≥0, 𝑡2∈𝑇𝑣 (10) where 𝛿− 𝑡= −𝜃− 𝑡+𝜃𝑡+∑𝑟∈𝑅𝑡𝑐𝑡,𝑟𝑦𝑡,𝑟 has been calculated for the current routes 𝑦. The objective function to be minimized is the weighted sum of arrival and departure delays of both trains plus a constant. Also, the following notation has been used: [𝑥]+𝛥 =𝑚𝑎𝑥{𝑥, 0}. Note that the constraint 𝑤𝑡1∈𝑊𝑡1,𝑟1ensures that train 𝑡1will not conflict with previously planned trains 𝑇𝑓. Computers and Operations Research 164 (2024) 106525 7 R. García-Ródenas et al. Problem (10) will be solved heuristically. A set 𝑊∗ 𝑡1,𝑇𝑣of tentative values for 𝑤𝑡1will be calculated in this step and in the next, the best of them will be retained. The objective of Step 2 is to find a set of candidates for the value of the variable 𝑤𝑡1. To this end, for each 𝑐∈𝑡1,𝑇𝑣the most appropriate way to avoid that conflict for train 𝑡1will be found by delaying its departure. The following optimization problems will then be analyzed: Min 𝑧(𝑤𝑡1, 𝑤𝑡2) = ∑𝑡∈{𝑡1,𝑡2}(𝑢𝑡[𝛿+ 𝑡+𝑤𝑡]++𝑣𝑡[𝛿− 𝑡+𝑤𝑡]+) The disjunctive constraint associated with 𝑐= (𝑡1, 𝑡2, 𝑟1, 𝑟′ 2, 𝑠) 𝑤1∈𝑊𝑡1,𝑟1, 𝑤2≥0 (11) These problems are models for optimally solving conflict 𝑐, based on the delay of two trains, one of them being train 𝑡1. The solution set of these problems is characterized by Proposition 4 in Appendix and giving the expression of the tentative set of delays 𝑊∗ 𝑡1,𝑇𝑣. See Eq. (A.22). Step 3: Evaluation of tentative times. In Step 2, tentative times in 𝑊∗ 𝑡1,𝑟1are calculated for pairs of trains (𝑡1, 𝑡2),𝑡2∈𝑇𝑣. Now, these times will take into account train 𝑡1jointly with all trains in 𝑇𝑣. Then, the following problem is to be solved, assuming that the routes of trains in 𝑇𝑣are fixed 𝑧∗ 𝑡1,𝑟1∶= Min ∑ 𝑡∈𝑇𝑣∪{𝑡1}(𝑢𝑡[𝛿+ 𝑡+𝑤𝑡]++𝑣𝑡[𝛿− 𝑡+𝑤𝑡]+)+𝜆𝑘𝑡1,𝑟1 𝑤𝑡1∈𝑊∗ 𝑡1,𝑟1, 𝑤𝑡2≥0, 𝑡2∈𝑇𝑣 (12) By 𝑤∗ 𝑡1,𝑟1will be denoted the optimal delay for train 𝑡1as a solution of the previous problem (12). Problem (12) has a finite number of values 𝑤𝑡1∈𝑊∗ 𝑡1,𝑟1and will be solved by evaluating all them. For a given value of 𝑤𝑡1, the optimal value for 𝑤∗ 𝑡2is the smallest one that avoids conflicts between 𝑡1and 𝑡2. In the absence of conflicts, the value is 𝑤∗ 𝑡2= 0. Otherwise, train 𝑡2must be delayed. This gives: 𝑤∗ 𝑡2(𝑤𝑡1) = {[𝑤𝑡1+𝑏𝑡1−𝑎′ 𝑡2]+𝑐∈𝑎 [𝑤𝑡1+𝑎𝑡1−𝑎′ 𝑡2, 𝑤𝑡1+𝑏𝑡1−𝑏′ 𝑡2]+𝑐∈𝑏 where 𝑎𝑡1, 𝑏𝑡1and 𝑎′ 𝑡2, 𝑏′ 𝑡2are the entry and exit times of trains 𝑡1and 𝑡2 to conflict 𝑐, respectively. In case of train 𝑡1an additional security time has been added. For a more compact notation, let 𝑤∗ 𝑡1(𝑤𝑡1) = 𝑤𝑡1. Problem (12), parametrised by 𝑤𝑡1, can be rewritten as: 𝑧∗ 𝑡1,𝑟1∶= Min 𝑤1∈𝑊∗ 𝑡1,𝑟1∑ 𝑡∈𝑇𝑣∪{𝑡1} (𝑢𝑡[𝛿+ 𝑡+𝑤∗ 𝑡(𝑤𝑡1)]++𝑣𝑡[𝛿− 𝑡+𝑤∗ 𝑡(𝑤𝑡1)]+)+𝜆𝑘𝑡1,𝑟1 (13) In this way this problem can be solved as well as the objective function evaluated at candidate points in the finite set 𝑊∗ 𝑡1,𝑟1. Pseudocode of the heuristic 1. (Inicialization). Let 𝑦be a feasible routing decision. Set 𝑍𝑦𝑜𝑝𝑡 = +∞. 2. (Route optimization). Initialize 𝑍𝑦∗= 0, the set of fixed trains 𝑇𝑓= ∅ and the set of trains not fixed 𝑇𝑣=𝑇. While 𝑇𝑓≠𝑇do - Let 𝑡1be the next service in 𝑇𝑣. Take 𝑇𝑣=𝑇𝑣− {𝑡1}. For 𝑟1∈𝑡1do Step 1: Use formula (A.15) to obtain 𝑊𝑡1,𝑟1. (Generation of feasible region for 𝑤𝑡1 assuming route 𝑟1∈𝑡1.) Step 2: Generation of tentative times 𝑊∗ 𝑡1,𝑟1 using formula (A.22). Step 3: Evaluation of tentative times 𝑊∗ 𝑡1,𝑟1. Calculation 𝑧∗ 𝑡1,𝑟1and 𝑤∗ 𝑡1,𝑟1using expression (13). EndFor -(Fixing 𝑡1). Take for train 𝑡1route 𝑦∗ 𝑡1=𝑟∗ 1such that 𝑟∗ 𝑡1∶= Argmin 𝑟∈𝑡1 𝑧∗ 𝑡1,𝑟 and set its delay time as 𝑤∗ 𝑡1∶= 𝑤∗ 𝑡1,𝑟∗ 𝑡1 . - Take 𝑍𝑦∗=𝑍𝑦∗+(𝑢𝑡1max{𝛿+ 𝑡1+𝑤∗ 𝑡1,0} + 𝑣𝑡1max{𝛿− 𝑡1+𝑤∗ 𝑡1,0})+ 𝜆𝑘𝑡1,𝑟∗ 1.Update the set of fixed trains 𝑇𝑓=𝑇𝑓∪ {𝑡1}. EndWhile 3. (Stopping criterion). Let 𝑍𝑦∗be the objective function value for the current solution 𝑦∗. If 𝑍𝑦∗< 𝑍𝑦𝑜𝑝𝑡 then take 𝑦𝑜𝑝𝑡 =𝑦∗and 𝑤𝑜𝑝𝑡 =𝑤∗,𝑍𝑦𝑜𝑝𝑡 =𝑍𝑦∗and redo the whole procedure by taking 𝑦=𝑦∗and the current value of 𝑍𝑦𝑜𝑝𝑡 . Otherwise, 𝑦𝑜𝑝𝑡 and 𝑤𝑜𝑝𝑡 is the solution found by the algorithm. 6. Numerical experiments This section evaluates the performance of the mesoscopic approach and determines the most suitable method among heuristic and exact approaches in two case studies. Section 6.1 examines the real-time train platforming problem at Atocha-Carcanías station, which experiences the highest levels of traffic in Spain. Section 6.2 expands the proposed approach to address a timetabling problem in which the capacity problem of the railway line is taking into account. The heuristic algorithm was implemented using MATLAB 2023a, and its results were compared with those obtained using GAMS/CPLEX (Version 24.1.3), as referenced in Castillo et al. (2002). The computations were conducted on a Windows 10 machine with a 4 GHz AMD FX-8370 eight-core processor and 32 GB of RAM. 6.1. Real-time train platforming problem 6.1.1. Data The Atocha-Cercanías station in Madrid was chosen for this series of tests. A schematic representation of this station is provided in Fig. 4. Fig. 4(a) illustrates the station’s layout, where the Spanish railway organization RENFE operates five passenger lines. During the preprocessing stage, it is crucial to determine which of the feasible routes can be used by each train, along with the identification of the multi-block sections that make up these routes. The results of this phase are displayed in Fig. 4(b), where the criteria for route assignments align with those employed by the railway organization. This approach involves establishing predefined routes for each line, as indicated by various colors in the figure. This criterion simplifies the implementation of the rule that if a train’s platform assignment changes, it will be reassigned to another commonly-used platform. Each of these 17 routes is further divided into four multi-block sections, after which the corresponding conflict sets, denoted by 𝑎and 𝑏, are computed. Three distinct traffic levels have been considered at the station. Level A is characterized by the presence of lines C2 and C7, Level B includes lines C2, C7, C4, and C3, while Level C encompasses all five lines. Additionally, for each traffic level, two different time horizons were examined: a short-term horizon denoted as ‘‘S’’ in the test problem’s name and a full day. Fig. 5 provides an overview of these six case studies. Computers and Operations Research 164 (2024) 106525 8 R. García-Ródenas et al. Fig. 4. Schematic representation of the multi-block sectioning at Atocha-Cercanías station, featuring 10 platforms, 17 routes, and the operational lines C2 to C5 and C7. Furthermore, the objective of this paper is to illustrate that the heuristic algorithm demonstrates robust scalability properties, rendering it an effective approach for tackling significant real-time challenges. The duration of the time horizon is leveraged as a means to increase the number of conflicts, enabling the potential outcomes to be assessed if this method were applied to stations characterized by higher volumes of rail traffic. For each of the tests, two types of timetable perturbations were applied : very large perturbations modeled using a lognormal variable with a mean of 10 min and a standard deviation of 60 min, and moderate perturbations modeled by a multinomial variable with delays ranging from 0 to 5 min, each with respective probabilities (𝑝0=0.75, 𝑝1=𝑝2=𝑝3=𝑝4=𝑝5=0.05). Depending on the perturbation type, either log-normal (‘‘−logn’’) or multinomial (‘‘−mn’’), two separate instances of the same case study were generated, resulting in a total of 12 instances. Both types of perturbations were given equal importance in terms of delays at the station entrances and exits (weights 𝑢𝑡=𝑣𝑡= 1). It is worth noting that reroutings did not lead to significant changes in passenger platform assignments, since the predefined routes of the RENFE operator were used, thus, 𝜆= 0 was used. Table 1 offers a comprehensive overview of the parameters across the twelve test scenarios. These parameters encompass details about the lines involved, the number of trains operated by the railway organization at the station, the time frame considered, and the scale of the corresponding MILP problems. For each generated MILP model, information is provided about its size and the dimensions of the reduced MILP following the presolve stage executed by CPLEX. The original problem dimensions includem tens of thousands of constraints and variables to a few million. It is noteworthy that CPLEX’s presolve stage demonstrates exceptional efficiency when dealing with problems related to the short-term horizon, effectively reducing them to a significantly smaller scale. However, for problems associated with the full-day horizon, the reduced MILPs remain at a larger scale. It is essential to highlight that the CPLEX CPU times reported in this paper pertain solely to the resolution of the reduced MILP and do not include the time spent on the preprocessing stage. Fig. 5. Number of trains at Atocha-Cercanías station. 6.1.2. Analysis of the train processing order In the first experiment, the impact of the processing order of trains on the performance of the heuristic algorithm will be assessed. The outcomes of random processing for the set 𝑇𝑣will be compared with an approach that orders the trains based on the order marked by 𝜃− 𝑡, i.e., the planned exit time from the station area. It is important to note that in the absence of primary delays, the scheduled timetable represents the optimal arrangement. However, the existence of primary delays renders the planned schedule infeasible. The algorithm iterates through the set of trains until it encounters the first train, denoted by 𝑡1, with a primary delay. It then proceeds to address subsequent trains, marked as 𝑡2, and if required, extends the delay forward in time to the following arriving trains, which are referred to as secondary delays. Random processing introduces both forward and backward extensions of secondary delays in time, resulting in the generation of additional conflicts that necessitate analysis and, consequently, a higher computational cost. Let 𝐻𝑜be the heuristic that adheres to a processing order aligned with the planned schedule, and let 𝐻𝑎represent the version that selects the processing order randomly. It is important to note that 𝐻𝑎randomly Computers and Operations Research 164 (2024) 106525 9 R. García-Ródenas et al. Table 1 Parameters for the test studies conducted at Atocha station. Problem Lines # # # # binary # trains Period constraints variables variables parameters AtochaSA-logn C2, C7 33 [5,8] 9 928 3 135 3 035 49 445 114 69 60 498 AtochaSA-mn C2, C7 33 [5,8] 9 928 3 135 3 035 49 445 198 120 105 906 AtochaSB-logn C2, C7, C4, C3 89 [5,8] 58 608 17 220 16 952 292 565 88 56 50 398 AtochaSB-mn C2, C7, C4, C3 89 [5,8] 58 608 17 220 16 952 292 565 206 131 117 998 AtochaSC-logn C2, C7, C4, C3, C5 132 [5,8] 88 053 25 919 25 522 439 575 1 408 788 746 6 860 AtochaSC-mn C2, C7, C4, C3, C5 132 [5,8] 88 053 25 919 25 522 439 575 3 362 1 904 1 785 16 286 AtochaA-logn C2, C7 223 All day 540 806 162 864 162 194 2 702 789 233 087 116 930 116 704 1 091 490 AtochaA-mn C2, C7 223 All day 540 806 162 864 162 194 2 702 789 203 992 102 381 102 158 954 446 AtochaB-logn C2, C7, C4, C3 550 All day 2 264 747 651 067 649 416 11 320 859 880 343 441 212 440 659 4 328 624 AtochaB-mn C2, C7, C4, C3 550 All day 2 264 747 651 067 649 416 11 320 859 728 794 365 436 364 886 3 575 860 AtochaC-logn C2, C7, C4, C3, C5 849 All day 3 732 400 1 075 126 1 072 578 18 657 629 1 440 305 721 791 720 939 7 127 530 AtochaC-mn C2, C7, C4, C3, C5 849 All day 3 732 400 1 075 126 1 072 578 18 657 629 1 204 458 603 866 603 017 5 955 630 rearranges the processing order of 𝑇𝑣at each major iteration, while 𝐻𝑜 maintains a fixed processing order. To thoroughly assess this random effect, algorithm 𝐻𝑎was run twenty times for each of the twelve problems under study. The progression of 𝐻𝑎is shown by blue squares in Figs. 6 and 7, while the evolution of 𝐻𝑜is represented by red points. The most noteworthy findings include: 1. The computational cost of 𝐻𝑜is notably lower than that of 𝐻𝑎 for all the problems. 𝐻𝑜typically converges in two iterations, with occasional instances of three iterations, where the cost of the second iteration is marginally lower than that of the first. This enables the effort to be concentrated on a single iteration of 𝐻𝑜. 2. The performance of 𝐻𝑜surpasses that of 𝐻𝑎only in select problems. In a broad sense, it can be observed that 𝐻𝑜tends to deliver superior results in problems characterized by primary delays of the ‘‘multinomial’’ type (-mn), whereas algorithm 𝐻𝑎tends to excel in problems of the ‘‘lognormal’’ type (-logn). Notably, it is in the latter category of problems that the disparities in computational performance between 𝐻𝑜and 𝐻𝑎are more pronounced. This divergence in performance may be attributed to the fact that, in ‘‘lognormal’’ problems, all trains are subject to minor primary delays, whereas in ‘‘multinomial’’ problems, at most 25% of the trains experience delays. 6.1.3. Performance This subsection will analyze the performance of algorithm 𝐻𝑜in comparison to the CPLEX exact method. As demonstrated in the previous section, 𝐻𝑜primarily requires a single iteration, with very minimal enhancements in the second or third iteration, if they are necessary at all. Consequently, only the results of the first iteration of 𝐻𝑜will be considered in this evaluation. The following parameters will be examined: CPU time in seconds and the relative gap. The relative gap serves to assess the optimality level of the solution and will be computed as follows: 𝑟𝐺𝐴𝑃 =𝑍−𝐿𝐵 𝑍∗∗ 100% where 𝑍represents the value returned by the algorithm, 𝑍∗stands for the optimal value, and 𝐿𝐵 is the lower bound of the problem. In situations where 𝑍∗is unknown for a given problem, it will be replaced by 𝑍. To facilitate algorithm comparisons, it is more appropriate to replace 𝑍∗with the best lower bound (LB) identified thus far, yielding an upper bound for the relative gap (𝑟𝐺𝐴𝑃 ). Figs. 8 to 9present the outcomes from the twelve test problems. Of particular interest are the feasible integer solutions as they signify a conflict-free rescheduling of railway operations. These figures depict the instance at which CPLEX attains these solutions along with their respective objective function values, as well as the 𝑟𝐺𝐴𝑃 of the best solution identified. The results generated by algorithm 𝐻𝑜are superimposed, with a single iteration indicated by a red dot. Two noteworthy observations can be made. Firstly, CPLEX successfully optimally resolves all the AtochaS-type problems (short time horizon). This achievement is primarily attributed to the highly efficient presolve phase within CPLEX, which significantly reduces the size of the MILP problem. Secondly, for problems with a short time period, the heuristic approach 𝐻𝑜consistently produces high-quality solutions with minimal computational effort. The computational efficiency of 𝐻𝑜in these scenarios is particularly notable. The sole exception is the AtochaSA-mn problem, which exhibits a relatively high 𝑟𝐺𝐴𝑃 . The difference in delays between the solutions is approximately 6 min in this case. It is worth noting that, in the case of this problem, there is an instance of algorithm 𝐻𝑎that achieves a solution with a cost of 𝑍= 1.23 (resulting in an 𝑟𝐺𝐴𝑃 of 6.0%) in just 0.33 s (as detailed in Section 6.1.2). This particular case underscores the evident potential of 𝐻𝑎as a restart optimization method, striving to uncover global optimal solutions for challenging combinatorial optimization problems, thereby overcoming local optimality. Exploring the use of parallel computing could further enhance its practical applicability. Having established the high efficiency of the mesoscopic modelexact approach, the next area to be addressed is its scalability. Fig. 9 displays the results acquired for problems with a full-day horizon. It is worth noting that CPLEX requires a substantial amount of time to obtain the initial feasible solution, taking 8 min and 14 min for the larger problems, AtochaB and AtochaC, respectively. Furthermore, this initial solution does not see significant improvement until an hour of computation time has passed. These findings raise concerns about the practical applicability of CPLEX in real-time contexts for such larger-scale problems. Computers and Operations Research 164 (2024) 106525 16 R. García-Ródenas et al. the ones in 𝑠2. It is assumed that 𝜀𝑎 𝑡,𝑐 =𝜀𝑏 𝑡,𝑐 =𝜀for all train 𝑡and conflict 𝑐. Thus, the precedence relationship between trains 𝑡1and 𝑡2for multi-block section 𝑠2is the same as the one in 𝑠1. Proof. Assume that there are two contiguous multi-block sections, 𝑠1 and 𝑠2. They are sequentially run by trains 𝑡1and 𝑡2. Suppose that 𝑡1 exits first from 𝑠1. Therefore, it holds that: 𝑤𝑡1+𝑏𝑡1,𝑐1≤𝑤𝑡2+𝑏′ 𝑡2,𝑐1.(A.1) Assuming that conflict 𝑐2is managed with rule (a), it must hold that: 𝐑𝐮𝐥𝐞 (𝐚)𝑤𝑡1+𝑎′ 𝑡1,𝑐2≥𝑤𝑡2+𝑏𝑡2,𝑐2∨𝑤𝑡1+𝑏𝑡1,𝑐2≤𝑤𝑡2+𝑎′ 𝑡2,𝑐2(A.2) The first option is impossible. When train 𝑡1arrives at 𝑠2, it begins its occupancy time 𝑎′ 𝑡1,𝑐2, and 𝑠1remains occupied until its tail leaves it. Therefore, it is true that: 𝑏𝑡1,𝑐1≥𝑎′ 𝑡1,𝑐2,(A.3) and using (A.3) and (A.1), it holds that: 𝑤𝑡1+𝑎′ 𝑡1,𝑐2 (A.3) ≤𝑤𝑡1+𝑏𝑡1,𝑐1 (A.1) ≤𝑤𝑡2+𝑏′ 𝑡2,𝑐1< 𝑤𝑡2+𝑏′ 𝑡2,𝑐2=𝑤𝑡2+𝑏𝑡2,𝑐2,(A.4) where it is assumed that the travel time of train 𝑡2through the multiblock section 𝑠2is positive. This proves that the first constraint is not true while the second must be true. Finally, the following holds: 𝑤𝑡1+𝑏′ 𝑡1,𝑐2=𝑤𝑡1+𝑏𝑡1,𝑐2 (A.2) ≤𝑤𝑡2+𝑎′ 𝑡2,𝑐2< 𝑤𝑡2+𝑏′ 𝑡2,𝑐2.(A.5) This proves that the same order of precedence is true for the next multi-block section. If multi-block section 𝑠2is managed by rule (b), considering that 𝑏𝑡1,𝑐1=𝑎𝑡1,𝑐2and 𝑏𝑡2,𝑐1=𝑎𝑡2,𝑐2, as they are contiguous multi-block sections. Applying (A.1), it holds that: 𝑤𝑡1+𝑎𝑡2,𝑐2≤𝑤𝑡2+𝑎′ 𝑡2,𝑐2(A.6) Because rule (b) requires that one and only one of the two pairs of constraints must be fulfilled, as (A.6) is satisfied, the other one in the pair must also hold: 𝑤𝑡1+𝑏𝑡2,𝑐2≤𝑤𝑡2+𝑏′ 𝑡2,𝑐2(A.7) This proves that multi-block section 𝑠2follows the same order of precedence as multi-block section 𝑠1.□ Proposition 2. Assume that for train 𝑡2∈𝑇𝑓, its delay 𝑤∗ 𝑡2and route 𝑟∗ 2 have already been set. Consider now an arbitrary train 𝑡1. Then to avoid any conflict 𝑐= (𝑡1, 𝑡2, 𝑟1, 𝑟∗ 2, 𝑠) ∈ regarding multi-block section 𝑠, the delay 𝑤𝑡1of train 𝑡1must satisfy 𝑤𝑡1∉(𝐴𝑡2 𝑠, 𝐵𝑡2 𝑠)(A.8) where 𝐴𝑡2 𝑠and 𝐵𝑡2 𝑠are defined accordingly to the type of conflict ((a) or (b)) as: -𝐴𝑡2 𝑠=𝑤∗ 𝑡2+𝑎′ 𝑡2−𝑏𝑡1and 𝐵𝑡2 𝑠=𝑤∗ 𝑡2+𝑏𝑡2−𝑎′ 𝑡1, if 𝑐∈𝑎 -𝐴𝑡2 𝑠= min{𝑤∗ 𝑡2+𝑎′ 𝑡2−𝑎𝑡1, 𝑤∗ 𝑡2+𝑏′ 𝑡2−𝑏𝑡1}and 𝐵𝑡2 𝑠= max{𝑤∗ 𝑡2+𝑎𝑡2− 𝑎′ 𝑡1, 𝑤∗ 𝑡2+𝑏𝑡2−𝑏′ 𝑡1}, if 𝑐∈𝑏. Consequently, there exist 𝑚1open intervals (𝐴𝑡1 𝑖, 𝐵𝑡1 𝑖)disjoint two-by-two obtained from the open intervals (𝐴𝑡2 𝑠, 𝐵𝑡2 𝑠)such as the set of feasible delays 𝑊𝑡1,𝑟1for train 𝑡1following route 𝑟1will be written as 𝑊𝑡1,𝑟1=[0,+∞)− 𝑚1 ⋃ 𝑖=1 (𝐴𝑡1 𝑖, 𝐵𝑡1 𝑖)(A.9) Note: If 𝐴>𝐵then (𝐴, 𝐵)=∅ Proof. Consider first the expressions for (𝐴𝑡2 𝑠, 𝐵𝑡2 𝑠). If 𝑤𝑡1is not feasible and the multi-block section 𝑠is governed by rule (a), the disjunctive constraints must be met so that the train may pass through the section without overlapping with another train, thus satisfying: 𝑤𝑡1+𝑎′ 𝑡1< 𝑤∗ 𝑡2+𝑏𝑡2∧𝑤𝑡1+𝑏𝑡1> 𝑤∗ 𝑡2+𝑎′ 𝑡2 therefore, 𝑤𝑡1< 𝑤∗ 𝑡2+𝑏𝑡2−𝑎′ 𝑡1∧𝑤𝑡1> 𝑤∗ 𝑡2+𝑎′ 𝑡2−𝑏𝑡1⇒𝑤𝑡1∈ (𝑤∗ 𝑡2+𝑎′ 𝑡2−𝑏𝑡1, 𝑤∗ 𝑡2+𝑏𝑡2−𝑎′ 𝑡1)=(𝐴𝑡2 𝑠, 𝐵𝑡2 𝑠). Therefore, if 𝑤𝑡1were feasible, it should not be in the range of (𝐴𝑡2 𝑠, 𝐵𝑡2 𝑠). That is, 𝑤𝑡1∉ (𝐴𝑡2 𝑠, 𝐵𝑡2 𝑠). Similarly, the expression for conflicts handled by rule (b) can also be obtained. The set of delays for train 𝑡1that avoids conflicts will be denoted as  𝑊𝑡1,𝑟1.Proposition 2 allows it to be characterized as:  𝑊𝑡1,𝑟1={𝑤𝑡1∈ [0,+∞) ∶ 𝑤𝑡1∉(𝐴𝑡2 𝑠, 𝐵𝑡2 𝑠),∀𝑡2∈𝑇𝑓, ∀𝑠∶ (𝑡1, 𝑡2, 𝑟1, 𝑟∗ 2, 𝑠) ∈ }(A.10) With the help of the set 𝑊𝑡1,𝑟1, 𝑊𝑡1,𝑟1=⋃ 𝑡2∈𝑇𝑓,𝑠∶(𝑡1,𝑡2,𝑟1,𝑟∗ 2,𝑠)∈ (𝐴𝑡2 𝑠, 𝐵𝑡2 𝑠)(A.11) the previous set  𝑊𝑡1,𝑟1can be rewritten as:  𝑊𝑡1,𝑟1=[0,+∞)−𝑊𝑡1,𝑟1(A.12) Constraint (5) for train 𝑡1, imposes 𝑤𝑡1≥𝛿𝑝 𝑡1,𝑟1(A.13) where 𝛿𝑝 𝑡1,𝑟1=𝑑𝑡1−𝜃𝑡1−𝑐𝑝 𝑡1,𝑟1. Then, the set of feasible delays can be written as: 𝑊𝑡1,𝑟1=[0,+∞)−[𝑊𝑡1,𝑟1∪ (−∞, 𝛿𝑝 𝑡1,𝑟1)](A.14) The union of open intervals can be expressed as the disjoint union of open intervals. Fig. A.12 illustrates this and depicts three trains 𝑡2, 𝑡′ 2and 𝑡′′ 2that limit the set of feasible delays for train 𝑡1. Train 𝑡2 imposes two intervals that constrain the possible values for 𝑤𝑡1and both, train 𝑡′ 2and train 𝑡′′ 2, impose one interval each. These five intervals not containing 𝑤𝑡1, can be expressed as the union of three open and disjoint intervals. In general it will be assumed that the set 𝑊𝑡1,𝑟1can be expressed in terms of 𝑚1open disjoint intervals as 𝑊𝑡1,𝑟1=[0,+∞)− 𝑚1 ⋃ 𝑖=1 (𝐴𝑡1 𝑖, 𝐵𝑡1 𝑖)(A.15) Note that to translate the results of the previous proposition into programming code, it is first necessary to compute the intervals (𝐴𝑡2 𝑠, 𝐵𝑡2 𝑠)and then an algorithm for expressing the union of open intervals as another union of disjoint open intervals. The following proposition assumes that these intervals, (𝐴𝑡1 𝑖, 𝐵𝑡1 𝑖), have been computed with this code. Proposition 3. Optimal solution (𝑤𝑐∗ 𝑡1, 𝑤𝑐∗ 𝑡2)of problem Min 𝑧(𝑤𝑡1, 𝑤𝑡2) = ∑𝑡∈{𝑡1,𝑡2}(𝑢𝑡[𝛿+ 𝑡+𝑤𝑡]++𝑣𝑡[𝛿− 𝑡+𝑤𝑡]+) The disjunctive constraint associated with 𝑐= (𝑡1, 𝑡2, 𝑟1, 𝑟2, 𝑠) 𝑤1≥𝐵𝑡1 𝑖, 𝑤2≥0 (A.16) is achieved at some of the following points: -𝐂𝐚𝐬𝐞 𝑐∈𝑎. Let 𝐶1= [𝐵𝑡1 𝑖+𝑏𝑡1−𝑎′ 𝑡2]+and 𝐶2= [𝐵𝑡1 𝑖+𝑎′ 𝑡1−𝑏𝑡2]− -𝐂𝐚𝐬𝐞 𝑐∈𝑏. Let 𝐴1=𝐵𝑡1 𝑖+𝑎𝑡1−𝑎′ 𝑡2;𝐴2=𝐵𝑡1 𝑖+𝑎′ 𝑡1−𝑎𝑡2 Computers and Operations Research 164 (2024) 106525 17 R. García-Ródenas et al. Fig. A.12. Feasible region 𝑊𝑡1,𝑟1. 𝐵1=𝐵𝑡1 𝑖+𝑏𝑡1−𝑏′ 𝑡2;𝐵2=𝐵𝑡1 𝑖+𝑏′ 𝑡1−𝑏𝑡2 𝐶1= [𝐴1, 𝐵1]+;𝐶2= [𝐴2, 𝐵2]− then (𝑤𝑐∗ 𝑡1, 𝑤𝑐∗ 𝑡2)=(𝐵𝑡1 𝑖, 𝐶1)∨(𝑤𝑐∗ 𝑡1, 𝑤𝑐∗ 𝑡2)=(𝐵𝑡1 𝑖−𝐶2,0) (A.17) where [𝐴, 𝐵]−𝛥 = min{𝐴, 𝐵, 0},[𝐴, 𝐵]+𝛥 = max{𝐴, 𝐵, 0},[𝑥]+𝛥 = max{𝑥, 0} and [𝑥]−𝛥 = min{𝑥, 0}. Proof. It will be shown that an optimal solution 𝑤∗𝑐= (𝑤∗𝑐 𝑡1, 𝑤∗𝑐 𝑡2) exists, such that it actively satisfies at least one of the following two constraints 𝑤𝑡1≥𝐵𝑡1 𝑖or 𝑤𝑡2≥0. Assume 𝑤∗𝑐 𝑡1> 𝐵𝑡1 𝑖and 𝑤∗𝑐 𝑡2>0. The solution 𝑤𝑑= (𝑤∗𝑐 𝑡1−𝑑, 𝑤∗𝑐 𝑡2−𝑑), with 𝑑= min{𝑤∗𝑐 𝑡1−𝐵𝑡1 𝑖, 𝑤∗𝑐 𝑡2}>0, is now considered to satisfy at least one of the previous constraints. Trivially, 𝑤𝑑satisfies the constraints of problem (A.16) and additionally: 𝑧(𝑤𝑑) = ∑ 𝑡∈{𝑡1,𝑡2}(𝑢𝑡[𝛿+ 𝑡+𝑤∗𝑐 𝑡−𝑑]++𝑣𝑡[𝛿− 𝑡+𝑤∗𝑐 𝑡−𝑑]+) ≤∑ 𝑡∈{𝑡1,𝑡2}(𝑢𝑡[𝛿+ 𝑡+𝑤∗𝑐 𝑡]++𝑣𝑡[𝛿− 𝑡+𝑤∗𝑐 𝑡]+)=𝑧(𝑤∗𝑐) and because of the optimality of 𝑤∗𝑐,𝑧(𝑤𝑑) = 𝑧(𝑤∗𝑐)must be another optimal solution. This proves that in searching for optimal solutions to problem (A.16) it suffices to optimize the functions 𝑧(𝑤𝑡1,0) and 𝑧(𝐵𝑡1 𝑖, 𝑤𝑡2)in the feasible region. As they are monotonically increasing, their minimum value is reached at the smallest feasible values of 𝑤𝑡1 and 𝑤𝑡2. These values appear in the formulae of the current proposition, as will be shown next. The case 𝐜∈𝑏is discussed first. The change of variables 𝑤1= 𝐵𝑡1 𝑖+𝑤′ 1will allow the disjunctive constraints to be rewritten as 𝐑𝐮𝐥𝐞 (𝐛){𝐵𝑡1 𝑖+𝑎𝑡1−𝑎′ 𝑡2≤𝑤𝑡2−𝑤′ 𝑡1 𝐵𝑡1 𝑖+𝑏𝑡1−𝑏′ 𝑡2≤𝑤𝑡2−𝑤′ 𝑡1 ∨{𝐵𝑡1 𝑖+𝑎′ 𝑡1−𝑎𝑡2≥𝑤𝑡2−𝑤′ 𝑡1 𝐵𝑡1 𝑖+𝑏′ 𝑡1−𝑏𝑡2≥𝑤𝑡2−𝑤′ 𝑡1 (A.18) Denoting 𝐴1=𝐵𝑡1 𝑖+𝑎𝑡1−𝑎′ 𝑡2;𝐴2=𝐵𝑡1 𝑖+𝑎′ 𝑡1−𝑎𝑡2 𝐵1=𝐵𝑡1 𝑖+𝑏𝑡1−𝑏′ 𝑡2;𝐵2=𝐵𝑡1 𝑖+𝑏′ 𝑡1−𝑏𝑡2 𝑤=𝑤𝑡2−𝑤′ 𝑡1;𝑤𝑡2, 𝑤′ 𝑡1≥0 the constraints will be rewritten as: 𝐑𝐮𝐥𝐞 (𝐛){𝐴1≤𝑤 𝐵1≤𝑤∨{𝐴2≥𝑤 𝐵2≥𝑤(A.19) In the first set of constraints, 𝑤may take negative values when 𝐴1<0and 𝐵1<0. But in this situation the value 𝑤= 0, with 𝑤′ 𝑡1= 0, and 𝑤𝑡2= 0 is a better solution of problem (A.16), as discussed earlier. In the same way, 𝑤can be positive in the second set of constraints if 𝐴2>0and 𝐵2>0, but in this case, the solution 𝑤= 0 with 𝑤′ 𝑡1= 0, and 𝑤𝑡2= 0 is better than the positive ones. Accordingly, it will be required that: 𝐑𝐮𝐥𝐞 (𝐛)⎧ ⎪ ⎨ ⎪ ⎩ 𝐴1≤𝑤 𝐵1≤𝑤 0≤𝑤 ∨⎧ ⎪ ⎨ ⎪ ⎩ 𝐴2≥𝑤 𝐵2≥𝑤 0≥𝑤 (A.20) Letting 𝐶1= [𝐴1, 𝐵1]+(≥0) and 𝐶2= [𝐴2, 𝐵2]−(≤0) it holds that 𝑤=𝐶1∨𝑤=𝐶2 If 𝑤=𝐶1≥0⇒𝑤𝑡2−𝑤′ 𝑡1=𝐶1,⇒𝑤′ 𝑡1= 0, 𝑤𝑡2=𝐶1and then 𝑤𝑡1=𝐵𝑡1 𝑖+𝑤′ 𝑡1=𝐵𝑡1 𝑖. This leads to the solution (𝑤𝑐∗ 𝑡1, 𝑤𝑐∗ 𝑡2)=(𝐵𝑡1 𝑖, 𝐶1). If 𝑤=𝐶2≤0⇒𝑤𝑡2−𝑤′ 𝑡1=𝐶2,⇒𝑤′ 𝑡1= −𝐶2, 𝑤𝑡2= 0 and then 𝑤𝑡1= 𝐵𝑡1 𝑖+𝑤′ 𝑡1=𝐵𝑡1 𝑖−𝐶2. This leads to the solution (𝑤𝑐∗ 𝑡1, 𝑤𝑐∗ 𝑡2) = (𝐵𝑡1 𝑖−𝐶2,0) The case 𝐜∈𝑎can be analyzed in the same way, and is omitted due to considerations of space. □ Proposition 4. Let (𝑤𝑐∗ 𝑡1, 𝑤𝑐∗ 𝑡2)be an optimal solution of problem Min 𝑧(𝑤𝑡1, 𝑤𝑡2) = ∑𝑡∈{𝑡1,𝑡2}(𝑢𝑡[𝛿+ 𝑡+𝑤𝑡]++𝑣𝑡[𝛿− 𝑡+𝑤𝑡]+) The disjunctive constraint associated with 𝑐= (𝑡1, 𝑡2, 𝑟1, 𝑟2, 𝑠) 𝑤1∈𝑊𝑡1,𝑟1, 𝑤2≥0 (A.21) then 𝑤𝑐∗ 𝑡1∈𝑊𝑡1,𝑟1⋂[(𝑚1 ⋃ 𝑖=1 𝐴𝑡1 𝑖)⋃(𝑚1 ⋃ 𝑖=1 𝐵𝑡1 𝑖)⋃(𝑚1 ⋃ 𝑖=1 𝐵𝑡1 𝑖−𝐶2)] (A.22) where 𝐶2is defined in Proposition 3. Proof. The problem optimizes a convex function over the union of intervals. Then, the global optimum can be attained at a boundary point of an interval (either 𝐴𝑡1 𝑖or 𝐵𝑡1 𝑖), or at an interior point of an interval, in which case 𝑤𝑐∗ 𝑡1will be a local minimum for the problem (A.21) and also for the problem (A.16). Since the objective function is convex, that local optimum will also be global for the problem (A.16), and by Proposition 4 it must be of the form 𝐵𝑡1 𝑖−𝐶2.□ Proposition 4 illustrates the possible optimal values for the delay of train 𝑡1when considering a pair of trains. When evaluating a set of trains simultaneously, a set of such values will be obtained, which can then be analyzed to obtain a good solution. To formalize this set, first note that 𝐶2depends on conflict 𝑐, but it has been omitted in the notation for simplicity. Also, 𝑤∗𝑐 𝑡1=𝐵𝑡1 𝑖and 𝑤∗𝑐 𝑡1=𝐵𝑡1 𝑖−𝐶2are candidates to solve problem (A.16) for conflict 𝑐. Let  𝑤∗𝑐 𝑡1be this set of values, i.e.,  𝑤∗𝑐 𝑡1={𝐵𝑡1 𝑖, 𝐵𝑡1 𝑖−𝐶2}. Then the set of tentative values for 𝑤𝑡1is defined as the set of feasible points that are suitable for solving, two by two, the conflicts of the network in which 𝑡1is involved, that Computers and Operations Research 164 (2024) 106525 18 R. García-Ródenas et al. is: 𝑊∗ 𝑡1,𝑟1∶= 𝑊𝑡1,𝑟1⋂⎡⎢⎢⎣(𝑚1 ⋃ 𝑖=1 𝐴𝑡1 𝑖)⋃⎛⎜⎜⎝⋃ 𝑐∈𝑡1,𝑇𝑣  𝑤∗𝑐 𝑡1⎞⎟⎟⎠⎤⎥⎥⎦ (A.23) References Almodóvar, M., García-Ródenas, R., 2013. On-line reschedule optimization for passenger railways in case of emergencies. Comput. Oper. Res. 40 (3), 725–736. Bettinelli, A., Santini, A., Vigo, D., 2017. A real-time conflict solution algorithm for the train rescheduling problem. Transp. Res. B 106, 237–265. Cacchiani, V., Huisman, D., Kidd, M., Kroon, L., Toth, P., Veelenturf, L., Wagenaar, J., 2014. An overview of recovery models and algorithms for real-time railway rescheduling. Transp. Res. B 63, 15–37. Cadarso, L., Marín, T., Maróti, G., 2013. Recovery of disruptions in rapid transit networks. Transp. Res. E 53 (1), 15–33. Cadarso, L., Maróti, G., Marín, A., 2015. Smooth and controlled recovery planning of disruptions in rapid transit networks. IEEE Trans. Intell. Transp. Syst. 16 (4), 2192–2202. Canca, D., Barrena, E., Laporte, G., Ortega, F.A., 2016. A short-turning policy for the management of demand disruptions in rapid transit systems. Ann. Oper. Res. 246 (1–2), 145–166. Castillo, E., Conejo, A., Pedregal, P., García, R., Alguacil, N., 2002. Building and Solving Mathematical Programming Models in Engineering and Science. In: Pure and Applied Series (PAMS), John Wiley & Sons, Inc., New York. Chakroborty, P., Vikram, D., 2008. Optimum assignment of trains to platforms under partial schedule compliance. Transp. Res. B 42 (2), 169–184. Conejo, A., Castillo, E., Mínguez, R., García-Bertrand, R., 2006. Decomposition Techniques in Mathematical Programming: Engineering and Science Applications. Springer, New York, Berlin. Corman, F., D’Ariano, A., Pacciarelli, D., Pranzo, M., 2010a. Centralized versus distributed systems to reschedule trains in two dispatching areas. Public Transp. 2 (3), 219–247. Corman, F., D’Ariano, A., Pacciarelli, D., Pranzo, M., 2010b. A tabu search algorithm for rerouting trains during rail operations. Transp. Res. B 44 (1), 175–192. Corman, F., D’Ariano, A., Pacciarelli, D., Pranzo, M., 2012a. Bi-objective conflict detection and resolution in railway traffic management. Transp. Res. C 20, 79–94. Corman, F., D’Ariano, A., Pacciarelli, D., Pranzo, M., 2012b. Optimal inter-area coordination of train rescheduling decisions. Transp. Res. E 48 (1), 71–88. Corman, F., D’Ariano, A., Pacciarelli, D., Pranzo, M., 2014. Dispatching and coordination in multi-area railway traffic management. Comput. Oper. Res. 44, 146–160. D’Ariano, A., Corman, F., Pacciarelli, D., Pranzo, M., 2008a. Reordering and local rerouting strategies to manage train traffic in real time. Transp. Sci. 42 (4), 405–419. D’Ariano, A., Pacciarelli, D., Pranzo, M., 2008b. Assessment of flexible timetables in real-time traffic management of a railway bottleneck. Transp. Res. C 16 (2), 232–245. D’Ariano, A., Pranzo, M., 2009. An advanced real-time train dispatching system for minimizing the propagation of delays in a dispatching area under severe disturbances. Netw. Spat. Econ. 9 (1), 63–84. Espinosa-Aranda, J.L., García-Ródenas, R., 2013. A demand-based weighted train delay approach for rescheduling railway networks in real time. J. Rail Transp. Plan. Manag. 3 (1–2), 1–13. Fang, W., Yang, S., Yao, X., 2015. A survey on problem models and solution approaches to rescheduling in railway networks. IEEE Trans. Intell. Transp. Syst. 16 (6), 2997–3016. Fischetti, M., Monacci, M., 2017. Using a general-purpose mixed-integer linear programming solver for the practical solution of real-time train rescheduling. European J. Oper. Res. 263 (1), 258–264. García, R., Marín, A., Patriksson, M., 2003. Column generation algorithms for nonlinear optimization, i: Convergence analysis. Optimization 52 (2), 171–200. García-Ródenas, R., López-García, M.L., Cadarso, L., Codina, E., 2022. A mixed-integer linear program for real-time train platforming management. Transp. Res. Procedia 62, 815–823. García-Ródenas, R., Marín, A., Patriksson, M., 2011. Column generation algorithms for nonlinear optimization, ii: Numerical investigations. Comput. Oper. Res. 38 (3), 591–604. Lamorgese, L., Mannino, C., 2015. An exact decomposition approach for the real-time train dispatching problem. Oper. Res. 63 (1), 48–64. Li, Z., Ping, H., Wen, C., Li, J., Rodrigues, F., 2023. Prediction of departure delays at original stations using deep learning approaches: A combination of route conflicts and rolling stock connections. Expert Syst. Appl. 229 (A), 120500. Lusby, R.M., Larsen, J., Ehrgott, M., Ryan, D., 2011. Railway track allocation: models and methods. OR Spectrum 33 (4), 843–883. Lusby, R.M., Larsen, J., Ehrgott, M., Ryan, D., 2013. A set packing inspired method for real-time junction train routing. Comput. Oper. Res. 40 (3), 713–724. Mascis, A., Pacciarelli, D., 2002. Job-shop scheduling with blocking and no-wait constraints. European J. Oper. Res. 143 (3), 498–517. Meng, L., Zhou, X.S., 2014. Simultaneous train rerouting and rescheduling on an n-track network: A model reformulation with network-based cumulative flow variables. Transp. Res. B 67, 208–234. Mesa, J.A., Ortega, F.A., Pozo, M.A., 2013. A geometric model for an effective rescheduling after reducing service in public transportation systems. Comput. Oper. Res. 40 (3), 737–746. Pascariu, B., Samà, M., Pellegrini, P.F., Vansteenwegen, P., D’Ariano, A., Pacciarelli, D., Rodriguez, J., 2018. Train routing selection problem: Ant colony optimization versus integer linear programming. IFAC PapersOnLine 54 (2), 167–172. Pellegrini, P., Marliere, G., Rodriguez, J., 2014. Optimal train routing and scheduling for managing traffic perturbations in complex junctions. Transp. Res. B 59, 58–80. Pellegrini, P., Pesenti, R., Rodriguez, J., 2019. Efficient train re-routing and rescheduling: Valid inequalities and reformulation of recife-milp. Transp. Res. B 120, 33–48. Samà, M., D’Ariano, A., Corman, F., Pacciarelli, D., 2017a. A variable neighbourhood search for fast train scheduling and routing during disturbed railway traffic situations. Comput. Oper. Res. 78, 480–499. Samà, M., Pellegrini, P., D’Ariano, A., Rodriguez, J., Pacciarelli, D., 2016. Ant colony optimization for the real-time train routing selection problem. Transp. Res. B 85 (C), 89–108. Samà, M., Pellegrini, P., D’Ariano, A., Rodriguez, J., Pacciarelli, D., 2017b. On the tactical and operational train routing selection problem. Transp. Res. C 76, 1–15. Sels, P., Vansteenwegen, P., Dewilde, T., Cattrysse, D., Waquet, B., Joubert, A., 2014. The train platforming problem: The infrastructure management company perspective. Transp. Res. B 61 (C), 55–72. Thielen, S., Corman, F., Vansteenwegen, P., 2018. Considering a dynamic impact zone for real-time railway traffic management. Transp. Res. B 111, 39–59. Törnquist, J., Persson, J.A., 2007. N-tracked railway traffic re-scheduling during disturbances. Transp. Res. B 41 (3), 342–362. Tornquist Krasemann, J., 2012. Design of an effective algorithm for fast response to the re-scheduling of railway traffic during disturbances. Transp. Res. C 20 (1), 62–78. Zhang, Q., Lusby, R.M., Shang, P., Zhu, X., 2020a. Simultaneously re-optimizing timetables and platform schedules under planned track maintenance for a high-speed railway network. Transp. Res. C 121. Zhang, Y., Zhong, Q., Yin, Y., Yan, X., Peng, Q., 2020b. A fast approach for reoptimization of railway train platforming in case of train delays. J. Adv. Transp. 2020. Zhang, Q., Zhu, X., Wang, L., Wang, S., 2021. Simultaneous optimization of train timetabling and platforming problems for high-speed multiline railway network. J. Adv. Transp. 2021.