1. Introduction
The maintenance and scheduling of subway vehicles are fundamental to ensuring the orderly, safe, and efficient operation of urban rail transit systems. In daily subway operations, maintenance planning and scheduling are often developed independently, lacking coordination and unified planning. This results in conflicts between maintenance activities and scheduling, leading to reduced operational efficiency and potential safety hazards [
1,
2]. Therefore, the joint optimization of preventive maintenance and scheduling for subway vehicles is crucial for ensuring operational safety, reducing costs, and improving efficiency.
With the rapid expansion of urban rail transit networks, increasing attention has been given to preventive maintenance and scheduling issues. Traditional fixed-cycle maintenance strategies, which disregard equipment reliability factors, have been found to reduce the maintenance efficiency. Consequently, optimizing subway equipment maintenance has become a key research focus [
3,
4]. Moreover, maintenance optimization and scheduling optimization are typically addressed as separate research domains, with most studies treating them independently.
Regarding preventive maintenance, Erguido et al. [
5] proposed a multi-objective maintenance strategy based on reliability, aiming to enhance key performance indicators of conventional maintenance and organizations, employing simulation-based optimization techniques for solution derivation. Gupta et al. [
6] highlighted that identifying critical components is essential in reliability-based maintenance and introduced a hierarchical network approach for ranking such components. Fouladirad et al. [
7] analyzed historical data to identify failure patterns and formulated short-term maintenance strategies based on real-time monitoring data. Kamel et al. [
8] developed a preventive maintenance scheduling model to optimize costs in complex repairable systems, utilizing intelligent algorithms for problem-solving. Pale et al. [
9] proposed a cluster-based preventive maintenance strategy for dragline excavators in open-pit mining, integrating reliability-centered maintenance and operational data analysis to assess failure pattern impacts. Qin et al. [
10] modeled a multi-state system incorporating preventive maintenance based on a Markov random process, considering both regular degradation and stochastic failures to meet specific operational demands. Cheng et al. [
11] employed the Weibull distribution to model the reliability of key catenary components, extending the maintenance intervals to minimize costs. Doostparast et al. [
12] emphasized the necessity of determining failure distribution functions in reliability modeling, noting the widespread application of Weibull distributions in mechanical and electronic component failure analysis.
For train scheduling, Christos et al. [
13] developed a rapid genetic algorithm to optimize driver assignments with the objective of minimizing travel costs. White et al. [
14] pioneered the application of spatiotemporal network theory to vehicle flow allocation and established a linear programming model for multi-vehicle empty train coordination. An et al. [
15] examined optimal turnaround strategies to ensure train schedule execution, considering specific transport demands and capacity constraints. Fioole et al. [
16] introduced a multi-train assignment optimization model incorporating operational costs, service quality, and equipment reliability. Canca et al. [
17] formulated a mixed-integer programming model for railway vehicle turnaround optimization, aiming to minimize empty train mileage while considering periodic maintenance plans. Lusby et al. [
18] proposed a train operation optimization model under multiple constraints, utilizing an improved branch-and-price algorithm for solution derivation. Steinzen et al. [
19] developed an integrated multi-train scheduling and crew dispatching model based on spatiotemporal networks, transforming column generation subproblems into resource-constrained shortest path problems for effective problem-solving. Luan et al. [
20] applied spatiotemporal network graphs to construct a minimum-cost maximum-flow optimization model, simplifying train operation problems into linear formulations for improved computational efficiency.
Vehicle maintenance and scheduling are interdependent components of urban rail transit operations. Maintenance plans impose scheduling constraints, as vehicles require periodic servicing to restore operational status, while scheduling decisions dictate maintenance timing, subsequently affecting the overall schedule. To enhance operational efficiency and reduce costs, a scientifically integrated optimization approach is necessary. Coordinating preventive maintenance and train scheduling can mitigate disruptions caused by unexpected failures, reduce frequent rescheduling and resource inefficiencies, and prevent issues such as service delays, overcrowding, and diminished passenger satisfaction. Increasingly, researchers have begun exploring joint optimization methodologies. Niu et al. [
21] investigated multi-vehicle scheduling in spatiotemporally discrete network scenarios, formulating a linear integer programming model to minimize operational costs, solved via Lagrangian relaxation. Budai et al. [
22] optimized maintenance scheduling by minimizing maintenance downtime, constraining the operational time between consecutive maintenance actions. Zhong et al. [
23] analyzed subway and railway vehicle cases, demonstrating that integrating maintenance considerations into scheduling reduces overall maintenance expenses. Tian et al. [
24] developed a scheduling model constrained by daily operational demands and maintenance plans, optimizing train frequencies and ensuring timely maintenance to prevent over- or under-maintenance. Nishi et al. [
25] established a short-term scheduling model incorporating maintenance constraints, solved using column generation.
In summary, while existing research has developed relatively comprehensive joint optimization models for urban rail maintenance and scheduling using spatiotemporal network methods, several issues remain unaddressed: (1) Most optimization models structure maintenance planning based on traditional periodic inspections (e.g., bi-weekly or quarterly), failing to refine maintenance intervals based on actual task durations and lacking precision in defining preventive maintenance cycle constraints. (2) Although spatiotemporal network theory has been integrated into optimization models, current constructions predominantly employ one-dimensional, single-layer network representations that focus solely on train scheduling states, neglecting the intricate spatiotemporal interdependencies between maintenance and scheduling plans. The objectives and limitations of existing studies are shown in
Table 1. To address these gaps, this study proposes a joint optimization approach for preventive maintenance and train scheduling based on spatiotemporal network graphs. A multi-layer spatiotemporal network is constructed to represent subway vehicle scheduling and maintenance interactions, and a corresponding optimization model is formulated. An improved genetic algorithm is employed for model solution derivation. Ultimately, the proposed method aims to achieve the integrated optimization of subway vehicle preventive maintenance and scheduling.
The remainder of this paper is structured as follows.
Section 2 describes the construction of the spatiotemporal network for subway vehicle maintenance and scheduling.
Section 3 details the joint optimization model based on spatiotemporal network graphs.
Section 4 presents the improved genetic algorithm for model solution derivation.
Section 5 conducts case studies, and
Section 6 concludes the paper.
2. Construction of the Spatiotemporal Network for Subway Vehicle Maintenance and Scheduling
2.1. Fundamental Elements
The spatiotemporal network for subway vehicle maintenance and scheduling proposed in this study consists of two hierarchical layers: the maintenance layer and the scheduling layer. Within this network, the maintenance layer encompasses the vehicle maintenance process, including both preventive and routine maintenance activities, while the scheduling layer pertains to the operational scheduling of subway vehicles, such as trip timing and route adjustments. Each layer comprises fundamental elements, including operation start nodes, operation end nodes, and various operational tasks performed by subway vehicles. These elements form the foundational framework of the spatiotemporal network, where a sequence of operations from the start node to the end node defines the paths within the network. The final spatiotemporal network structure is established based on the aforementioned elements, paths, and hierarchical layers. This network provides a clearer understanding of subway vehicle operations and maintenance processes, serving as a crucial reference for optimizing subway operations. By leveraging this framework, subway vehicle operation plans can be optimized, the overall operational efficiency can be enhanced, and maintenance quality can be improved, thereby offering essential decision-making support for subway system management.
The proposed spatiotemporal network for subway vehicle maintenance and scheduling is represented as a set W = {D, L}, where D denotes the set of nodes within the network, and L represents the set of arcs. The fundamental elements of the network are explained as follows:
- (1)
Spatiotemporal network nodes: In this network, the set of operational nodes is defined as , where denotes vehicle scheduling operations, represents vehicle maintenance operations, corresponds to the operation start node, and indicates the operation end node, marking the conclusion of the planned operational cycle.
- (2)
Spatiotemporal network arcs: Within the spatiotemporal network, subway vehicle maintenance, scheduling, and task transitions are represented by maintenance operation arcs, scheduling operation arcs, and state transition arcs, respectively. The horizontal axis denotes time, capturing the start and end times of each operational process, while the vertical axis represents space, indicating the corresponding operational locations. The set of arcs is given as
, where
denotes scheduling operation arcs,
represents maintenance operation arcs,
corresponds to task transition arcs,
signifies state transition arcs, and
marks operation termination arcs. Illustrations of the maintenance, scheduling, and state transition arcs are provided in
Figure 1,
Figure 2 and
Figure 3.
- (3)
Spatiotemporal network paths: Within the subway vehicle maintenance and scheduling spatiotemporal network, the operational paths of subway vehicles are formed by sequentially connecting operation start nodes to operation end nodes, incorporating all necessary operational steps. Given that multiple operational sequences may be available following the completion of each task, each subway vehicle can follow multiple possible paths within the network. By linking the operational sequences chronologically, the operational paths of subway vehicles can be visualized (
Figure 4). This representation enables a clearer depiction of subway vehicle operations within the spatiotemporal network, elucidating the interconnections and sequential relationships among different operational phases. Such insights contribute to optimizing subway vehicle scheduling plans and improving operational efficiency.
Path 1 represents a scenario where the train starts from the initial node, undergoes scheduling operations, and continues executing intermediate connection tasks cyclically until the planned period ends, ensuring continuous operation. Path 2 describes a case where the train initially performs scheduling tasks, transitions into maintenance operations upon reaching the maintenance cycle, and resumes scheduling until the end of the planned period. Path 3 illustrates a situation where the train begins with scheduling operations, undergoes maintenance at a later stage, and subsequently enters a storage track in standby mode until the plan concludes. Path 4 depicts a scenario where the train remains inactive throughout the planned period, with a direct connection from the initial to the final node, indicating that no operations are executed. The selection of different paths in the spatiotemporal network reflects various scheduling strategies under different conditions, facilitating more effective planning and coordination of subway train operations.
2.2. Establishment of the Subway Vehicle Maintenance and Scheduling Spatiotemporal Network
To visually represent subway vehicle scheduling and maintenance operations, a multi-level spatiotemporal network diagram is constructed, incorporating three stations: Stations A–C. Station B is directly connected to the subway depot, indicating that trains undergo scheduling and maintenance tasks at this location, while Stations A and C serve as turnaround points. With the fundamental elements and operational paths of the spatiotemporal network established, a multi-level subway vehicle maintenance and scheduling spatiotemporal state network diagram, as illustrated in
Figure 5, is developed to describe train scheduling and maintenance processes. This diagram consists of two layers: the scheduling layer and the maintenance layer. By leveraging the spatiotemporal state network diagram, subway vehicle scheduling and maintenance can be optimized. Specifically, station locations and quantities can be adjusted, maintenance sites can be determined, and appropriate scheduling cycles can be formulated to generate a spatiotemporal network diagram that aligns with real-world operational needs.
In the constructed spatiotemporal state network for subway vehicle maintenance and scheduling, “minutes” are used as the smallest time unit for scheduling. The scheduling cycle begins at 00:00 on the first day and spans 14 days, with the final time point set at 14 × 1440 min. In this diagram, train state transition moments are represented as nodes, while various operational states are depicted as arcs. These include scheduling operation arcs, which indicate scheduling states, and maintenance operation arcs, which represent maintenance states. By integrating these elements, a comprehensive and structured spatiotemporal network for preventive maintenance and train scheduling is formed. This network encapsulates essential operational stages and time intervals, serving as a theoretical foundation for analyzing and optimizing subway vehicle maintenance and scheduling. Moreover, it provides a basis for developing an integrated optimization model for preventive maintenance and scheduling, facilitating more effective management and planning of subway vehicle operations and maintenance.
4. Model Solution Based on Improved Genetic Algorithm
4.1. Algorithm Design
The process of solving the joint optimization problem for preventive maintenance and train scheduling of subway vehicles can be viewed as employing a search algorithm over an existing network to find a set of paths that satisfy the constraints and optimize the objective function. Given the characteristics of the path search problem, genetic algorithms have shown good performance in solving such issues. However, there are limitations when applying this method. For example, the local search capability is restricted: while genetic algorithms perform well in global search, their ability to find local optima in complex problems is limited, requiring more computational resources. Additionally, the convergence speed is slow: traditional genetic algorithms typically require many iterations to find an optimal solution. To address these issues, this paper proposes an improved genetic algorithm, which incorporates tent chaos initialization, tournament selection, and a local search strategy to enhance certain aspects of the algorithm, in line with the characteristics of the subway vehicle preventive maintenance and scheduling optimization problem. The specific improvements are outlined as follows:
- (1)
Tent chaos initialization
Tent chaos initialization, also known as tent mapping, is a piecewise linear function with uniform probability density, power spectrum density, and ideal correlation properties. Its mathematical expression is given by
When
u > 0.5,
λ > 0, Equation (11) is chaotic and can be written as
- (2)
Tournament selection strategy
The tournament selection strategy simulates a competitive process to select individuals, as follows:
- (1)
Determine tournament size: Initially, the tournament size, i.e., the number of individuals competing in each round, is chosen. Typically, this value is an integer, denoted as T. In our experiments, we set T = 6.
- (2)
Randomly select competitors: In each tournament, T individuals are randomly selected from the current population to participate.
- (3)
Evaluate fitness: The fitness values of the selected individuals are calculated using the problem’s fitness function. Let the fitness values of the T individuals be .
- (4)
Select winner: The individual with the highest fitness value is chosen as the winner and is copied to the next generation.
- (5)
Repeat process: The process is repeated until a sufficient number of individuals (typically equal to the population size) are selected to form the next generation.
- (3)
Population local search strategy
The basic principle of the population local search strategy is to perform k local searches near the best individual after each generation’s genetic evolution. These k individuals are identified, and the one with the highest fitness value, denoted as , is selected. If the fitness of is better than that of X, the fitness of is replaced by that of , and replaces the worst individual in the population; otherwise, the process returns to the previous step.
4.2. Algorithm Process
The proposed improved genetic algorithm (IGA) utilizes real-number encoding. A 10-digit decimal number represents the daily plan set for subway vehicles (
), vehicle set (
), maintenance tasks (
), and scheduling tasks (
). The chromosome is encoded as a decimal number. The fitness is calculated by extracting the decimal values from the chromosomes and substituting them into the objective function. The encoding method is illustrated in
Figure 7. The upward arrows in each row represent the randomly selected sample points used for subsequent processing.
The basic concept of IGA is as follows: Tent initialization of the population, selection, crossover, mutation, elite retention strategy, and local search strategy are sequentially applied to maximize the chromosome’s fitness, ultimately obtaining the optimal solution during the iterative process. The pseudocode and solution steps of the algorithm are shown in
Figure 8.
- (1)
Tent chaos initialization of population
The tent map is used to generate a chaotic sequence for initializing the population, ensuring that the initial solutions are uniformly distributed in the solution space, as described by Equation (15), where
a = 0.5. After chaos initialization, the population is mapped into the actual solution space.
- (2)
Selection operator
Tournament selection is employed to choose the genetic candidates. Specifically, k individuals are randomly selected from the entire population with equal probability. The individual with the highest fitness among them is chosen as the parent for the next generation. This process is repeated until the new population reaches the size of the original population.
- (3)
Crossover operator
A two-point crossover method is applied to the individuals selected by tournament selection. The crossover rate, denoted as
, typically ranges from 0.7 to 0.9 [
26]. Two paired chromosomes
and
of length
l are selected, and two crossover points,
and
, are randomly chosen, where
. The crossover operation follows these formulae:
- (4)
Mutation operator
Mutation occurs in biological evolution when certain genes of the parent population are altered with a mutation probability
, generating new individuals. In practice, mutation is rare, and
is typically set within the range [0.01, 0.20]. Mutation points are selected based on a probability
. For an individual
, the mutation operation is defined as follows:
Then, the new individual generated after mutation is .
- (5)
Elite retention strategy
The most optimal individual, with the highest fitness value, found during each generation’s evolution is saved as an elite individual. The remaining
N − 1 individuals undergo genetic operations to prevent the loss or degradation of the best genes. The specific steps for the elite retention strategy are shown in
Figure 9.
- (6)
Population local search strategy
- ➢
Initialization: The global variables, input parameters, and constraints are initialized at the start of the algorithm.
- ➢
Determine maintenance need: Maintenance constraints are used to determine whether minor repairs or secondary repairs are necessary.
- ➢
Roulette wheel selection for shifts: A roulette wheel selection method is used to search for the most suitable tasks in the feasible solution space of the spatiotemporal network.
- ➢
Calculate maintenance package number: The number of maintenance packages included in the operation plan is counted to evaluate repair costs.
- ➢
Evaluate constraints: Distance and time constraints for each vehicle in the spatiotemporal network are calculated to ensure the vehicle’s travel distance and time are within the prescribed limits.
- ➢
Objective function calculation: The objective function is computed, yielding a comprehensive fitness value representing the current solution’s quality. The algorithm aims to minimize the fitness to find the optimal solution.
- ➢
Output results: Finally, the fitness values and operation plans are outputted.
6. Conclusions
This study addresses the challenges in joint optimization modeling and solving caused by the interdependence between subway vehicle scheduling and maintenance planning. A joint optimization method for preventive maintenance and train scheduling based on spatiotemporal network graphs is proposed. First, a multi-level spatiotemporal state network graph is constructed for subway vehicle maintenance and scheduling using spatiotemporal network theory, where paths represent the temporal and spatial transitions of various operations throughout the planning period. Second, a joint optimization model is established, comprehensively considering the constraints of preventive maintenance and scheduling requirements for subway vehicles to achieve coordinated optimization of the maintenance and scheduling plans. Finally, an improved genetic algorithm is employed to solve the model and obtain the optimal scheduling and maintenance plan. The experimental results show that the proposed method can effectively address the difficulties in modeling and solving the joint optimization of subway vehicle maintenance and scheduling, enabling efficient coordinated optimization of both. Specifically, compared to traditional methods, this approach improves vehicle utilization by 7.97% and reduces the number of maintenance shutdowns by 14, simultaneously lowering maintenance costs and improving the scheduling efficiency, fully meeting the actual operational needs.
However, there are still some limitations in this study. First, the subway operation environment is complex and contains uncertain factors, such as unexpected failures and temporary scheduling adjustments, which are not sufficiently considered in the current model. Second, the optimization algorithm’s solving efficiency could be improved, especially in large-scale spatiotemporal networks with numerous constraints. Future research will focus on improvements in the following areas: (1) developing efficient optimization algorithms capable of handling large-scale spatiotemporal networks and complex constraints to enhance computational efficiency; (2) combining deep reinforcement learning techniques to achieve intelligent subway vehicle status assessment and scheduling decisions, improving the model’s adaptability and autonomous optimization ability; and (3) exploring methods that combine graph neural networks with reinforcement learning to improve the solving speed in large-scale networks and enhance the model’s adaptability to complex scheduling environments.