Abstract
The driving safety of heavy-haul train is affected by the train’s traction weight, the length of train, the line profile, the line speed limit, and other factors. Generally, when the train is running on a continuously long and steep downgrade line, it needs using the circulating air braking to adjust speed. When it is braking, the brake wave is transmitted non-linearly along the direction of the train. When it is relieved, it must be ensured that there is sufficient time for the train to be inflated. Therefore, it is difficult to ensure the safe operation of the heavy-haul train. In this article, a new method of the train’s driving strategy based on improved genetic algorithm is proposed. First, a mathematical model for the operation of heavy-haul train is established with multiple parameters. Then, according to the improved genetic algorithm and the mathematical model of the heavy-haul train, the driving strategy of the chromosome of the train is studied. Finally, the driving curve which can ensure the safe running of the heavy-haul train can be obtained. By comparing the simulated driving curve with the actual one, the results show the effectiveness of the proposed method.
Keywords
Introduction
During the driving process of the heavy-haul train, the train will be subjected to the joint force in the transverse, longitudinal, and vertical directions in the course of operation, and the force condition is more complicated. 1 Lateral dynamics mainly affects the stability of train’s operation. The force in the vertical direction is mainly the support force of the train. The safe operation control focuses on the relationship between the force and the acceleration during the train’s operation, so the longitudinal stress of the train along the track direction is mainly considered. The safe operations of heavy-haul trains are subjected to many restrictions in practical applications, and their performances are related to many complex factors, such as traction force, train’s length, speed limitations, and continuous long and steep downgrade grades. In particular, when the train is running in the section that the line grades change frequently, the train’s braking or traction always makes the longitudinal impulsive force of the train intensified, and the longitudinal force of each vehicle is increased. For heavy-haul trains with air braking, the vibrated longitudinal force can cause more severe damages. In specific, the change in longitudinal force brings changes in the longitudinal length of the train, which eventually transforms the train into a complicated vibration system of multi-degree of freedom. In practice, it is a big challenge to ensure the safety of running trains on heavy-haul lines. This article aims to propose a scheme based on the conditions of railway lines (line grade, length, speed limit, etc.) and the situation of the train marshalling (which includes traction weight of trains and the train’s length) to obtain a optimal driving strategy of train to ensure the safety of the running train.
There are many existing studies on the control strategy of rail transit trains. In terms of urban rail transit, the dynamic adjustment of train’s operation process was realized using the fuzzy self-tuning control strategy of differential evolution in Chang and Xu. 2 Mitsukawa 3 carried out an expert system to realize the control of the automatic speed of the rail transit train. An automatic control of train is realized by combining a fuzzy control and predictive control algorithm in Yu and Chen. 4 But this algorithm had high computation complexity, and it needs to take a large amount of computing resources. Yu et al. 5 proposed a particle swarm optimization algorithm to achieve multi-objective train control, which, however, is time consuming for practical implementations. Xun et al. 6 presented a cellular automata to realize the multi-objective optimal control of train’s operation process. But the considered factors in this study are not comprehensive, such as the track of the running of the train and the operation curve. Zhao and Gao 7 studied a method of automatic operation of urban rail transit trains based on improved predictive control. This approach uses a way to reduce overshoot to optimize multiple targets. And multi-step prediction, online optimization, and feedback correction of the optimization results were also carried out. Hou et al. 8 discussed an application based on the model-free adaptive control of train control and parking algorithm. This algorithm achieved a good control effect by iterative learning of train’s operation data. Yin et al. 9 proposed an intelligent train operation algorithm for subway by expert system and reinforcement learning, which can obtain a good result in train’s energy-saving and time-saving for urban rail transit.
In high-speed railways, a parameter identification technology based on the train’s model of train’s operation control system was employed.10,11 Song and Song 12 adopted an adaptive control technology, which can realize the automatic speed control of the train. Li 13 studied an optimization strategy of electric multiple unit (EMU) operation and proposed a rolling optimization by the method of evaluation of the advantages of extension theory. Feng 14 presented a linear quadratic regular (LQR) control algorithm into automatic train control (ATO), and many of its performance targets achieved good results. Li 15 proposed an adaptive control algorithm of high-speed train to control the speed. And a Lyapunov function was used to calculate the mass of the train under stochastic variation. During the course of train’s operation, Sandidzadeh and Shamszadeh 16 discussed a kind of fuzzy control rule combining the actual driving experience to improve the control effect.
Nevertheless, it is worth mentioning that the existing control strategies on urban rail trains and high-speed trains are difficult to be applied to the heavy-haul railway due to the following reasons:
The length of the heavy-haul train can be very long and each train can be composed by more than 100 vehicles. And the maximum length of the train is more than 1.5 km. 17 When the train is using the air braking, there is a huge elastic deformation force produced by the changes in internal longitudinal movement. Meanwhile, the whole train, like an elastic mechanical vibration system, has longitudinal tensile and compression. In the operation of urban rail transit and high-speed railway, the train connection is considered to be rigid, indicating that there is no tension and compression change. 18 In the urban rail transit train, there are many power vehicles. The train usually uses a power vehicle to drag a carriage. Therefore, when the train is braking or in traction, its internal longitudinal force change is relatively small and the train’s integrity is good, while heavy-haul trains are single locomotive, pulling hundreds of vehicles. When the train is accelerating or braking, the longitudinal force of the train changes greatly and it is very easy to damage the coupler, causing accidents. Therefore, when calculating the driving strategy of the heavy-haul train, it is particularly needed to consider the effect of train’s longitudinal forces.
The heavy-haul train in the long and steep downhill needs to take the circulating air braking to adjust the speed. 19 And in this process, the transmission of air-braking wave has nonlinear characteristics, which may easily cause fracture of coupler under the condition of improper driving strategy. Since urban rail transit and high-speed railway line have small gradients, the train mainly adopts the dynamic braking to realize the synchronous adjustment of the speed. So, the driving strategy of the heavy-haul train must take into account the safety of trains running on long and steep slopes.
The equivalent virtual braking distance and time are mainly related to the length of the train and the number of vehicles. The number of vehicles in each heavy-haul train is more than that of urban rail trains and high-speed trains, which will inevitably lead to a long braking time and distance of the heavy-haul train. In addition, the pressure gradient of long trains has an effect on the braking force of the rear vehicles. So, when the train is braking, if the braking time and distance cannot be calculated accurately, it is prone to exceed the speed limit and it cannot guarantee that the train has enough air-filled time, which is likely to cause accidents.
Many scholars are studying the driving control technology of heavy-haul trains, and they have made a lot of achievements. Chou et al. 20 analyzed the train’s longitudinal impulse of the heavy-haul train equipped with electrically controlled pneumatic (ECP) braking system and designed the LQR closed-loop optimal controller based on full-state feedback. In addition, when we analyze and calculate the longitudinal force of the train in our study, the method we used refers to the method of the cited article. Also, our work is inspired by this article in terms of train’s modeling and the validity description of the result. Khmelnitsky 21 proposed the decentralized control model to control the speed of a single vehicle. But the complexity of the algorithm is very high. Wong and Ho 22 took advantage of crossover and selection mechanism of genetic algorithm and heuristic search to obtain the train’s coast points. But when the input data were large, the algorithm took a long time. Wang and Ma 23 carried out a basic principle and methods of artificial intelligence to the research on the expert system of the control technology of the heavy-haul train. But the subjectivity of expert system was much stronger, and it was difficult to obtain the database. Huang et al. 24 proposed a back propagation (BP) neural network algorithm to model the train’s braking operation process. But the method needed a large number of actual driving data for neural network learning. Qin et al. 25 studied a fuzzy control strategy to analyze the whole operation process of the heavy-haul train. Kang 26 proposed the predictive control theory to estimate the train’s running speed, and a good result was obtained using this method to determine the train’s working condition conversion point. Ke et al.27,28 presented a max–min ant algorithm based on the fuzzy control algorithm, which studied the train’s operation control strategy under the condition of variable ramp and variable speed. Bing et al. 29 explored an ATO control strategy designed by combining fuzzy control with proportional–integral–derivative (PID) control method. The train’s operation model is established by extracting the experimental data, which improves the system response speed and accuracy. Khmelnitsky 21 considered the specific constraints (such as temporary speed limit, line condition, and running time) and proposed an iterative algorithm to solve the velocity curve. The driving model based on the traction characteristics of speed and displacement is established, which took the kinetic energy as the state variable. Howlett and colleagues30,31 carried out the maximum principle for optimal operation strategy of train. For different trains and different ramp lines, the mode conversion condition of train’s energy-saving driving is studied. Vu 32 proposed a control strategy based on Pontryagin principle to help train stay on time and reduce energy use. Zhang and Zhuan 33 tried to schedule the train during a long period of travel in a model predictive control (MPC) framework and designed an optimal control methodology for heavy-haul trains with the objective to optimize the train’s operation in terms of energy consumption, velocity tracking, and operation safety. Zhuan and Xia 34 proposed an approach of output regulation with measurement feedback for the control of heavy-haul trains.
When a new heavy-haul line is opened, it is necessary for experienced drivers to drive the train for many times to obtain the driving curve to ensure the safe driving of the train. There are huge security risks. The method proposed in this article can be used for different train groups and different line information, and automatically generates the driving curve to ensure the safety of trains. First, we establish the running equation of the train by analyzing the force of the train in the running process on the line, and find the train’s operating constraints, such as running time, distance, speed limit, and line gradient. The formulated model is a nonlinear optimization problem with complex constraints. In this article, the constraints of several conditions are transformed into penalty functions and the problem is converted into a nonlinear unconstrained problem. Second, the genetic algorithm is developed, in which the first step is to encode the driving control model of the train. The running state of the train in the interval is mainly decided by the combination order of four kinds of working conditions, that is, traction, inertia, dynamic braking and air braking, and the position of switching. In this article, the train’s running condition and location are used as variables to encode the chromosome. Thus, the sequence of these conditions constitutes the gene of the chromosome. And the operating conditions are calculated according to the constraints of the train’s traction calculation, running time, and air-braking characteristics. Then, we calculate the fitness function from the two aspects of speed and punctuality rate. Finally, in the process of propagation and evolution of genetic algorithm, we use selective replication operator, crossover operator, and mutation operator to get the simulation results and verify the results.
Since the line conditions of the heavy-haul train are complicated, on the one hand, the data of train’s running time, distance, line speed limit, and line gradient are considerable; on the other hand, the constraints on the train control model will also increase. As well, the number of train groups is increasing, which will inevitably lead to the deterioration of the air braking and the multiplied increase in the longitudinal force. In this case, the calculation of traction calculation and air braking can be very complicated. The traditional genetic algorithm always falls into the local optimal solution and causes premature. And it is generally unable to find a global operation strategy to ensure the security, or it is difficult to find the optimal solution to solve the problem in a finite time. Therefore, the improved genetic algorithm is adopted in this article to overcome this issue.
In this article, we propose an improved genetic algorithm. To avoid emergence of premature caused by not finding the global optimal driving strategy, the strategy of multi-populations evolving in parallel is employed. Different populations use the same genetic strategy, and the various populations are not able to interchange information until they meet the conditions. So, the performance of the algorithm can be improved.
In addition, due to the huge amount of data that the train needs to process, an adaptive adjustment strategy of crossover operator and mutation operator parameters is used to ensure that the algorithm can obtain the results in a reasonable time. When the number of outstanding individuals in the population increases, the probability of crossover and mutation operators will become smaller and smaller, so as to ensure the optimal solution in the population proportion increases.
Train’s operation equation and improved genetic algorithm
In this article, an appropriate model to study the train’s operation was established according to the train’s position, speed, and line ramp’s slope and length, speed, and other parameters, combined with the analysis of longitudinal force dynamics along the running direction of the train.
And then, using the natural selection and genetic mechanism of genetic algorithm, the running process of the train is studied by means of adaptive global optimization. 35
Train’s operation equation
When the train does not brake, the brake pipe pressure is kept constant which is generally 500 or 600 kPa. But when the train implements air braking, the pressure of the train pipe is reduced to slow down the speed of the train. The train’s decompression is nonlinear. When the train is filled with wind to relieve braking, air braking cannot simultaneously achieve remission of all wagons, because relief wave is transmitted from the front to back by the vehicle. So, it needs time to ensure the braking ability next time. When the train is in the continuous long and steep downgrade sections, the train needs a cycle of air braking. Therefore, it is difficult for the driver to operate. In this article, we study the train’s running in the following situation.
Assume that there are two or more continuous downgrades in front of the running line, and the length of the front downgrade is not less than 2 km. As shown in equation (1)
where
In the running direction of the heavy-haul train, the traction force, the braking force, the basic resistance, and the additional resistance are four different types of forces. Among them, the basic resistance includes mechanical resistance and aerodynamic resistance, that is, friction resistance of axle bearings, rolling friction between wheel and rail, sliding friction resistance between wheel and rail, impact resistance, and air resistance.
When calculating the equation of train’s motion, we take a locomotive or vehicle as a unit, simplify it as a particle, and analyze the stress situation of each particle. A particle chain can be formed by connecting a plurality of locomotives or vehicles together. The model can accurately reflect the force of the train at the variable slope point and variable curvature point.
The force analysis is shown in Figure 1.

Force analysis model of the train.
As shown above, for the analysis of the
where
Then, force conditions of the locomotive and the vehicle are shown in the following formula
The rear coupler force of the
Then, we consider the calculation of the additional resistance, that is, the force that the train encounters under slope, curve, and tunnel conditions. The additional resistance will be assigned to the average length of the train. In the process of traction calculation, the additional resistance for each step is calculated as the slope of the area covered by the train. The additional resistance 36 of the train’s position can be expressed as
where
There are many factors that affect the basic resistance of the train’s operation, including the friction between the train and air, the impact between the internal components of the vehicle, and the friction between the rail and the train. The Davis formula 36 is used to describe the unit force
where
Train’s braking force is in contrast to the direction of the train’s operation and imposed by different types of braking devices. The size and the action time of the braking force can be adjusted by the driver.
It is pointed out by Zhao and Wu 36 that, the air-braking effect of heavy-haul train is realized by train pipe decompression and brake cylinder inflation. The air braking of heavy-haul trains is a gradual process, and the braking force of the whole train is not immediately produced. Train’s braking force is caused by passing air wave. Braking power from the first to the last one takes a certain amount of time, and the length of the time is related to the braking speed of the brake. The specific parameters are shown in Table 1.
Braking wave velocity of various types of brake.
103 is the selected type of train brake, so the train brake wave velocity is 180 m/s. The pressure change of the brake cylinder is shown in Figure 2.

Brake pressure change diagram.
As shown above, when the train starts braking, the pressure gradually rises to the maximum along the AB line, and then the maximum value remains the same. To study the braking problem of the train conveniently and effectively, the braking force is simplified under the condition that the braking distance is constant. The change of braking force is simplified into two stages. For a period of OE, the braking force is 0, and after the E point, the braking force becomes the maximum.
The calculation formula 36 is as follows
where
When the train is running, the locomotive traction is related to the train’s speed under the certain motor parameters. When we calculate the traction force, a certain margin should be taken into account and take 90% of the maximum traction force.
Based on the descriptions above, we know that the train is subjected to a variety of forces at the same time in the process of operation and the actual running state of the train is determined by the co-action of all forces acting on it. The resultant force of the train can be expressed as follows
where
During the operation of the train, there is still a rotary motion, and the train’s running time and distance equations are
where
where
Improved genetic algorithm
Genetic algorithm is based on the operation of all individuals in the population. The algorithm selects individuals based on their individual fitness values in the problem domain, and reengineering methods are borrowed from natural genetics to generate the optimal solution to the problem. This process leads to the evolution of individuals in the population.
The optimal solutions of many nonlinear complex systems can be obtained by genetic algorithm, but in this article, the safe driving curve of the heavy-haul train needs to be obtained. As constraints, a complete interval line data and vehicle information and grouping information, including the speed limit of the line, the line slope, the length of the train, the train traction calculation, and other data, are needed. To avoid the local optimal solution, guarantee the global safe driving strategy, and get the optimal solution of the problem in a reasonable time, an improved genetic algorithm is adopted in this article. Compared with the traditional genetic algorithm, it has the same basic principle, but has been improved in the following aspects:
In this article, we use the strategy of multiple sub-populations to evolve in parallel, the genetic information can be exchanged between the sub-populations, but no interference will occur. 37 We obtain the optimal solution of the continuous evolution of sub-populations. Until the condition is satisfied, the optimal solution of all sub-populations is finally compared, and then the global optimal solution is obtained. The superiority of this approach is embodied in the independent evolution of each sub-population so as to ensure the diversity of the population. Even the local optimal solution of the individual population will not have a great impact on the overall results.
Due to the huge amount of the train line data and the train formation information, including the line speed limit, slope, train length, line length, and other data, it is difficult for the algorithm to obtain the result in a reasonable time interval. In this article, we adopt the adaptive adjustment strategy of crossover operator and mutation operator. According to the fitness of each sub-population in the evolutionary process, the crossover probability and mutation probability of the individual within the population are determined. The probability of crossover and mutation operators will become smaller and smaller, so that the proportion of the optimal solution in the population will increase continuously.
In this article, the process of improving genetic algorithm is shown in Figure 3.

Flow chart of improved genetic algorithm.
The steps of improving genetic algorithm are described below:
Individual genes
Corresponding relationship between the train’s working condition and the gene value.
[0,1), [1,2), [2,3), and [3,4) in Table 2, respectively, represent the locomotive traction condition, coasting condition, braking resistance, and air braking condition of the train. And each condition is calculated as follows.
Assume that the running length of the section is represented by
When
When
When
When
where
Changes in gene values mean changes in conditions. The quality of the gene is evaluated according to the function value of the fitness function.
To ensure the safe operation of the train, the heavy-haul train in the Shuo Huang Railway needs to adopt the circulating air brake when it is running on a continuously long and steep downgrade. When the train adopts circulating air braking, to ensure enough wind pressure on the next brake and make the train safe to brake next time, we must ensure that the train has enough air-filled time. If there is not enough time to fill the air, it will endanger the safety of the train, so the charge time must be controlled in a reasonable range. Therefore, the train’s running time is regarded as one of the indexes of fitness function. To ensure the safe operation and efficiency of the train, there is a constraint on the position and speed of the relief point and brake point. If the speed of the train in these positions does not meet the constraints, it will directly lead to the overspeed of the train and endanger the safe driving of the train. Therefore, the train’s running speed is used as the index of the fitness function. In this article, the two aspects of the speed and running time of the fitness value are calculated. Any chromosome in the population corresponds to a sequence of train’s working conditions. The quality of the sequence is mainly expressed by the fitness function value of the chromosome. The fitness function is transformed from the objective function. The fitness value represents the probability of the individual to the next generation, so it must be nonnegative.
According to the fitness function of heavy-haul train’s driving strategy, this article mainly calculates the fitness value from two aspects of overspeed and running time.
Overspeed fitness function
To ensure the safety of train’s operation, the train speed should be avoided exceeding the speed limit. To avoid the emergence of speeding queues, the overspeed fitness function is used as the basis for judging the evolutionary process of the population. Therefore, we get the criterion of overspeed fitness function
where
2. Running time fitness function
To ensure that the difference between the running time of the train and the running time of the plan is within the allowable range of the error, the difference is taken as the judgment index of the running time fitness function of heavy train
where
In summary, the two fitness functions have different effects on the control optimization of heavy-haul trains. To take into account both, in this article, the overall fitness function can be expressed as
Running time and running speed are two different factors, resulting in two optimization directions for the algorithm; the
According to the operation evaluation index mentioned above, combined with the running characteristics of heavy-haul train running in a continuously long and steep downgrade, the following optimization model can be established
where
The constraints are as follows
where
where
The crossover operation mainly consists of two parts: adaptive crossover rate calculation and crossover calculation.
The calculation of crossover rate
In this article, the calculation formula of
where
The mutation operation includes two parts: adaptive mutation rate calculation and mutation calculation. The calculation of mutation rate
where
After the mutation rate is obtained, the individual is subjected to mutation calculation. After three kinds of genetic operators, the population has been evolved, resulting in a new sub-population. And then return to step 4 to calculate the fitness of the individual.
Research on driving strategy algorithm
In this article, the specific driving strategy research process is shown in Figure 4.

Driving strategy flow chart.
In consideration of above situation, it is necessary to consider the following restraint conditions in the process of the heavy-haul train operation
In the conditions described above,
Simulation cases and result analysis
Simulation parameters
The simulation experiment is realized using MATLAB simulation software. Taking the heavy-haul train as the research object, the driving strategy of the heavy-haul train’s running on the section of the three-aspect automatic block line is studied.
It is known that the length of sections is 25,950 m and the planned operation time is 26 min, that is, 1560 s. The speed that the train runs into the constraint model is set as 64 km/h, and the general decompression value is 50 kPa. First of all, the simulation parameters of the system are collected. According to Figure 3, the parameters mainly include the simulation of the basic line data and train data.
Line data mainly include interval length, line speed limit, line slope, and its length, which are shown in Table 3.
Parameters of the line.
The train data mainly include locomotive and vehicle type, grouping mode, train length, train traction weight, and train pipe constant pressure. The data are shown in Table 4.
Parameters of the train data.
The control parameters of the genetic algorithm are shown in Table 5.
Improved genetic algorithm parameters.
Results and analysis
When the train satisfies the constraint condition (1), the above train parameters and the line parameters are used as inputs to calculate the train’s running equation, then the train’s operating equations and the control parameters of the genetic algorithm are brought into the genetic algorithm, and the optimal operation sequence of the train is calculated as shown in Figure 5.

Optimal solution and ordinal number.
Figure 5 is the optimal solution of genetic algorithm with its sequence number. The figure shows the value of individual genes, corresponding to the value of the train’s running condition. Figure 6 shows the change in the objective function for each generation in the improved genetic algorithm.

Evolution process.
It can be seen from the graph above that the objective function value of the optimal solution decreases gradually with the increase in the hereditary algebra and remains unchanged from the 12th generation, which shows a good convergence. And it can be seen that the optimal global optimal solution, which satisfies the constraints and requirements, has been optimized by the algorithm.
The final simulation results are shown in Figure 7.

Simulation curve and driving curve.
In Figure 7, the solid green line is the speed limit of the train line, green dotted line is the forbidden releasing speed, the red curve is the train’s driving curve obtained by the improved genetic algorithm, and the blue curve is the actual operating curve. The actual driving curve is a curve used to guide the actual operation of the driver. And it comes from the data recorded on the site of Shuo Huang Railway in this article. It is a curve that can be verified by the field and can guarantee the safety of train’s running.
There are two or more continuous downgrades in front of the running line, and the train needs a cycle of air braking to adjust speed. To ensure the safety of train’s operation, the speed of the train is forbidden to exceed the speed limit of the line. When the train is relieved, the speed must be greater than 30 km/h. So, the speed of the train is like a saw tooth’s speed profile. The decline in the curve means that the train is executing the braking order, and the speed drops until the relief point. The ascent of the curve means that the train has executed the mitigation order, and the speed is up until the braking point is reached. So, the actual curve is shown in the blue curve.
Result analysis
Figure 8 shows the error contrast between the simulation curve and the actual driving curve.

Error diagram of simulation curve and driving curve.
Figure 8 shows that the maximum value of the difference between the actual curve and the simulated one is nearly 4 km/h. The detailed comparison can be seen in Table 6.
Comparison of simulation results and real data.
The first column in the table shows the running distance of the heavy-haul train, the second column shows the actual speed of the train at the corresponding distance, and the third column shows the running speed of the train’s simulation corresponding to the second column. From this table, we can obtain the following conclusions: the maximum difference between the two speeds is 3.82 km/h, the mathematical expectation of the speed difference is −0.33146, and the variance is 1.41500. The average running speed of the train is 61.99 and 61.66 km/h, which is calculated by the driving curve and the actual operating curve.
The above calculated data indicate that the difference between the simulated driving curve and the actual curve in the same position is smaller. It can be seen from Figure 7 that the simulation curve and the actual control curve have similar air brake timing, mitigation opportunities, and operating trends.
In addition, to better illustrate the effectiveness of the algorithm, from the algorithm to optimize the target, we compared the simulation data with the actual train’s operation data, as shown in Tables 7 and 8.
Comparison of train’s running time.
Comparison of average speed of train.
From the data of the above two tables, it can be seen that the simulated running time of the train differs from the actual running time by 53 s, and the simulated average speed of the train is 0.33 km/h away from the one of the trains.
It shows that the simulation curve is approximately consistent with the actual curve. It is further shown that the simulation is very effective.
In the same way, to verify the effectiveness of the algorithm, we added another track line, which has positive and negative slope values. Specific line data and simulation analysis are shown in Table 9.
Parameters of the second line.
The final simulation results are shown in Figure 9.

Simulation results of the second line.
The green line represents the actual driving curve of the train, and the blue curve represents the simulation curve. The further data of the two curves are compared to Table 10.
Simulation data contrast of the second line.
The results show that the velocity difference between the two curves is close, and the simulation can calculate the running curve of the train. The effectiveness of the algorithm is further illustrated.
To further illustrate the advantages of the improved genetic algorithm, we use the standard genetic algorithm for the calculation, and the calculation results are shown in Figure 10.

Standard genetic algorithm curve and actual curve.
In the figure above, the solid green line is the speed limit of the train line, the green dotted line is the forbidden releasing speed, the black curve is the train’s driving curve obtained by the standard genetic algorithm, and the blue curve is the actual operating curve.
Using the data above, the following conclusions can be worked out. The maximum difference between the two speeds is 5.21 km/h, the mathematical expectation of the speed difference is 4.8622, and the variance is 5.6183. The average running speed of the train is 59.80 and 61.66 km/h, which is calculated by the standard genetic algorithm and the actual operating curve.
Table 11 is a comparison of the differences between the two different algorithms and the actual curve.
Comparison of the results of two algorithms.
From the above table, the results of the improved genetic algorithm are closer to the actual driving curve. Moreover, the improved algorithm is less time-consuming.
Conclusion
In this article, an improved genetic algorithm based on the train’s running equation is proposed to ensure the safety of running trains in the intervals. This method does not require a large number of actual driving data as the basis. And in this method, the equations of train’s operation and the train’s driving strategies are related to each other. First, according to the line condition and the data of train’s formation, the force analysis of the train’s running process is carried out, then we find the constraint conditions, and establish the train’s operation equation. Second, the train’s running equation is coded to improve genetic algorithm. Finally, the optimal operation sequence is obtained, and we get the optimal train driving strategies to guarantee train’s safety.
According to the calculation results of improved genetic algorithm and standard genetic algorithm, the results of the improved genetic algorithm are more consistent with the actual driving curve. The conclusions are as follows based on the results of the improved genetic algorithm and the actual driving curve.
When the train is running on the line that satisfies the constraint condition (1), the method can be used to obtain the driving curve to ensure the safe operation of the train. The result shows that the maximum value of the difference is 3.82 km/h between the actual curve and the simulated one, and the mathematical expectation of the speed difference is −0.33146, which means that the average speed of both is very close. And the variance of the speed difference is 1.41500, which indicates that the shape of the simulation curve is very close to the actual curve. The train’s simulated running time differs from the actual running time by 53 s. It shows that the simulation results can meet the punctuality rate of trains. In addition, the simulation curve and the actual curve have a similar air brake timing, mitigation opportunities, and operating trends. So, these data prove that our curve can guarantee safety and the method is effective and feasible for practical applications.
Footnotes
Handling Editor: Luis Baeza
Declaration of conflicting interests
The author(s) declared no potential conflicts of interest with respect to the research, authorship, and/or publication of this article.
Funding
The author(s) disclosed receipt of the following financial support for the research, authorship, and/or publication of this article: This work was funded by the Beijing Municipal Natural Science Foundation under grant no. L161008, the Beijing Municipal Science and Technology plan projects under grant nos D151100005815001 and Z161100001016008, Shenhua Group Scientific Research funding projects under grant no. 20140269, and Civil Aviation Science and Technology project under grant no. 201501.
