CN112508459A - Railway locomotive turnover method based on improved genetic algorithm - Google Patents

Railway locomotive turnover method based on improved genetic algorithm Download PDF

Info

Publication number
CN112508459A
CN112508459A CN202011594453.3A CN202011594453A CN112508459A CN 112508459 A CN112508459 A CN 112508459A CN 202011594453 A CN202011594453 A CN 202011594453A CN 112508459 A CN112508459 A CN 112508459A
Authority
CN
China
Prior art keywords
train
locomotive
attached
genetic algorithm
representing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202011594453.3A
Other languages
Chinese (zh)
Inventor
马丽
安志龙
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shaanxi Railway Institute
Original Assignee
Shaanxi Railway Institute
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shaanxi Railway Institute filed Critical Shaanxi Railway Institute
Priority to CN202011594453.3A priority Critical patent/CN112508459A/en
Publication of CN112508459A publication Critical patent/CN112508459A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/06Resources, workflows, human or project management; Enterprise or organisation planning; Enterprise or organisation modelling
    • G06Q10/063Operations research, analysis or management
    • G06Q10/0631Resource planning, allocation, distributing or scheduling for enterprises or organisations
    • G06Q10/06312Adjustment or analysis of established resource schedule, e.g. resource or task levelling, or dynamic rescheduling
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/08Learning methods
    • G06N3/086Learning methods using evolutionary algorithms, e.g. genetic algorithms or genetic programming
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q50/00Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
    • G06Q50/40Business processes related to the transportation industry

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Human Resources & Organizations (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Economics (AREA)
  • Health & Medical Sciences (AREA)
  • General Physics & Mathematics (AREA)
  • Strategic Management (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Entrepreneurship & Innovation (AREA)
  • General Health & Medical Sciences (AREA)
  • Tourism & Hospitality (AREA)
  • Marketing (AREA)
  • General Business, Economics & Management (AREA)
  • Physiology (AREA)
  • Computational Linguistics (AREA)
  • Educational Administration (AREA)
  • Development Economics (AREA)
  • Bioinformatics & Cheminformatics (AREA)
  • Bioinformatics & Computational Biology (AREA)
  • Evolutionary Biology (AREA)
  • Operations Research (AREA)
  • Artificial Intelligence (AREA)
  • Biomedical Technology (AREA)
  • Biophysics (AREA)
  • Game Theory and Decision Science (AREA)
  • Data Mining & Analysis (AREA)
  • Evolutionary Computation (AREA)
  • Quality & Reliability (AREA)
  • Molecular Biology (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Mathematical Physics (AREA)
  • Software Systems (AREA)
  • Primary Health Care (AREA)
  • Train Traffic Observation, Control, And Security (AREA)

Abstract

The invention discloses a railway locomotive turnover method based on an improved genetic algorithm, which comprises the steps of S10 establishing a locomotive turnover model, adopting a GA genetic algorithm to solve the S20 model, judging the advantages and disadvantages of individuals according to the size of a population fitness value, evolving an improved population by using selection operation, cross operation and variation operation until the population fitness value is converged to be stable, generating an optimal individual, namely an optimal solution, S30 solving and verifying, and S40 outputting a locomotive turnover diagram as a locomotive turnover scheme of a designated section on a railway line. The invention carries out modeling aiming at the problem that double machines do not form pairs, designs and improves the specific problems of selection, intersection and variation of the genetic algorithm for modeling solution, can realize the rapid solution of the locomotive turnover scheme by a computer, reduces the complexity of the algorithm, is beneficial to the implementation of the rapid and automatic editing of the locomotive turnover diagram by the computer of the railway bureau, is beneficial to the simplification of the software architecture of the computer editing of the locomotive turnover diagram and has certain promotion effect on the implementation of intelligent office of the locomotive section of the railway bureau.

Description

Railway locomotive turnover method based on improved genetic algorithm
Technical Field
The invention relates to a railway locomotive turnover technology, in particular to a railway locomotive turnover method based on an improved genetic algorithm.
Background
The problem of partial double-machine traction of a fixed section on a heavy-duty railway line is a problem which needs to be explored urgently in the field, namely how to effectively adopt a mode of combining single-machine traction and double-machine traction in the fixed section which is served by a locomotive service section, and improve the operation benefit of the locomotive on the heavy-duty railway. If only single machine traction is adopted in a fixed railway section, only part of the requirements of the train can be met, and the requirements of traction of part of heavy-load trains can not be met, if the double-machine traction is adopted completely, the waste of locomotive transport capacity is caused. In order to optimize the locomotive turnover scheme, the mode of combining single machines and double machines is adopted in the fixed section, so that the limitation of independent adoption of the single machines and the double machines can be broken, the locomotive turnover time can be shortened, and the number of locomotives in use can be reduced. The railway freight line fixed section adopts a single-machine and double-machine combined mode to generate better economic benefits for the operation of the railway international freight class.
Disclosure of Invention
In view of the above problems in the prior art, the present invention provides a railroad locomotive turnaround method based on an improved genetic algorithm.
In order to achieve the purpose, the technical scheme adopted by the invention is as follows:
a railway locomotive turnover method based on an improved genetic algorithm comprises the following steps:
s10, establishing a locomotive turnover model based on the conditions of single-machine or/and double-machine traction trains between the basic station and the return station of the designated section on the railway line;
s20, solving the established locomotive turnover model by adopting a GA genetic algorithm, judging the quality of an individual according to the size of the population fitness value, and evolving and improving the population by adopting selection operation, cross operation and variation operation until the population fitness value is converged to be stable to generate an optimal individual, namely an optimal solution;
s30, verifying the optimal solution obtained by solving;
and S40, automatically editing the result of the verification meeting the requirements into a locomotive turnover diagram output by the computer, and using the locomotive turnover diagram output as a locomotive turnover scheme of the designated section on the railway line.
Specifically, the locomotive turnaround model established in step S10 is:
Figure BDA0002869924280000021
s.t.:
Figure BDA0002869924280000022
Figure BDA0002869924280000023
Figure BDA0002869924280000024
Figure BDA0002869924280000025
Figure BDA0002869924280000026
Figure BDA0002869924280000027
Figure BDA0002869924280000028
Figure BDA0002869924280000029
Figure BDA00028699242800000210
wherein, the above formula (2) represents the uniqueness that 1 locomotive in the A-Z direction assignsA train in the Z-A direction;
the above formula (3) represents the uniqueness of assigningA train in the Z-A direction to 2 locomotives in the A-Z direction;
the above formula (4) represents the uniqueness of attaching the Z-A direction train to 1 locomotive in the A-Z direction;
the above formula (5) represents the uniqueness of the 2 locomotives attached to the Z-A direction train in the A-Z direction;
the above formula (6) represents the uniqueness of assigning the trains in the A-Z direction to 1 locomotive in the Z-A direction;
the above formula (7) represents the uniqueness of attaching 2 locomotives in the Z-A direction toA train in the A-Z direction;
the above formula (8) represents the uniqueness of attaching 2 locomotives in the Z-A direction toA train in the A-Z direction;
the above formula (9) represents the uniqueness thatA single-machine traction train in the Z-A direction is dragged by one locomotive in the A-Z direction;
the above formula (10) shows that the double-locomotive traction train in the Z-A direction is drawn by two locomotives in the A-Z direction to be unique;
in the AZ section designated on the railway line, A is a basic station, Z is a return station, and the number of trains running in the A-Z direction is N1The number of trains running in the Z-A direction is N2,N1>N2With M in the A-Z direction1Train is single-machine traction with M2The train isA double-machine traction with M in Z-A direction3Train is single-machine traction with M4The train is drawn by two machines, the number of the attached locomotives is not more than two,
Figure BDA0002869924280000031
are all set variables.
Specifically, the setting variables in step S10 are:
Figure BDA0002869924280000032
1 locomotive of i train representing A-Z direction pulls the J train in Z-A direction;
Figure BDA0002869924280000033
the 0 locomotive of the i train representing the A-Z direction pulls the j train in the Z-A direction;
Figure BDA0002869924280000034
2 locomotives of the i train representing the A-Z direction draw the J train in the Z-A direction;
Figure BDA0002869924280000035
1 locomotive of i train representing A-Z direction pulls the J train in Z-A direction;
Figure BDA0002869924280000036
the 0 locomotive of the i train representing the A-Z direction pulls the j train in the Z-A direction;
Figure BDA0002869924280000037
1 locomotive which represents the i train in the A-Z direction is attached to the j train in the Z-A direction;
Figure BDA0002869924280000038
0 locomotive representing the i train in the A-Z direction is attached to the j train in the Z-A direction;
Figure BDA0002869924280000039
2 locomotives representing i trains in the A-Z direction are attached to j trains in the Z-A direction;
Figure BDA00028699242800000310
1 locomotive which represents the i train in the A-Z direction is attached to the j train in the Z-A direction;
Figure BDA00028699242800000311
0 locomotive representing the i train in the A-Z direction is attached to the j train in the Z-A direction;
Figure BDA00028699242800000312
attached 1 locomotive for showing Z-A direction i trainJ trains in the A-Z direction;
Figure BDA0002869924280000041
0 locomotive representing the i train in the Z-A direction is attached to the j train in the A-Z direction;
Figure BDA0002869924280000042
2 locomotives representing i trains in the Z-A direction are attached to j trains in the A-Z direction;
Figure BDA0002869924280000043
1 locomotive which represents the i train in the Z-A direction is attached to the j train in the A-Z direction;
Figure BDA0002869924280000044
0 locomotive representing the i train in the Z-A direction is attached to the j train in the A-Z direction;
Figure BDA0002869924280000045
1 locomotive which represents the i train in the Z-A direction is attached to the j train in the A-Z direction;
Figure BDA0002869924280000046
0 locomotive representing the i train in the Z-A direction is attached to the j train in the A-Z direction;
Figure BDA0002869924280000047
2 locomotives representing i trains in the Z-A direction are attached to j trains in the A-Z direction;
Figure BDA0002869924280000048
1 locomotive which represents the i train in the Z-A direction is attached to the j train in the A-Z direction;
Figure BDA0002869924280000049
0 locomotive representing the i train in the Z-A direction is attached to the j train in the A-Z direction.
Further, the solving process using the GA genetic algorithm in step S20 includes:
s21, coding the locomotive turnover model by a multi-parameter cascade coding method, wherein the coding is carried out by 1-N1+M2The internal natural numbers are randomly arranged as 1 chromosome, and N is used2The data are respectively different schemes, wherein, 1 to N1+M2The internal natural numbers respectively represent the train numbers of the trains in sequence in the A-Z direction, and the different schemes comprise a traction scheme, a double-machine scheme, a single-machine hanging scheme and a double-machine hanging scheme;
s22, using the objective function f (x) ═ z (x) as the fitness function;
s23, selection operation: by adopting a selection method combining an optimal storage strategy and steady-state replication, in a new population, a plurality of optimal individuals are reserved, do not participate in crossover and variation operation, and are directly replicated to the next generation, and the individual with the minimum current fitness is the most optimal individual;
s24, intersection operation: adopting uniform two-point crossing, and exchanging genes on each gene locus of two paired individuals with the same crossing probability to form a new individual;
s25, mutation operation: by adopting a linkage uniform variation method, the phenomenon that the variation position is repeated with an original certain gene position in a chromosome string to generate illegal solution due to the uniform variation of a single gene position is avoided.
Specifically, the specific process of the selection operation is as follows:
s23a survival number of individuals in next generation population
Figure BDA00028699242800000410
S23b, getting
Figure BDA0002869924280000051
Determining the survival number of the corresponding individual in the next generation population
Figure BDA0002869924280000052
(ii) individuals;
s23c, sorting the individuals according to the fitness, and sequentially taking the first
Figure BDA0002869924280000053
The individual is the best solution, does not participate in crossover and mutation, and is copied into the next generation population as M individuals in the next generation population.
Specifically, the specific process of the intersection operation is as follows:
for parent P, with cross probability PcRandomly generating a mask word W equal to the length of the individual code string1w2w3....wlWherein l is the length of the individual code string, in order to avoid the repeated assignment of the locomotive, two mutation sites are randomly generated in the W site of the mask word, so that the gene sites between the mutation sites are inverted to form a new chromosome, wherein,
if w i0 means that the corresponding bit in the parent P is not an ectopic bit,
if w i1 indicates that the corresponding position in the parent P is a mutation position.
Specifically, the mutation operation is performed as follows:
for a given parent P, with a probability of dissimilarity PmTaking a random number k from a corresponding range of values1As the variation point, take the random number k as its k1Finding out the position corresponding to the number k in the original chromosome gene string, and changing the value of the position into the value of k in the original chromosome gene string1The corresponding value.
Further, the specific operation procedure in step S20 is as follows:
step 1: initializing a population size N, pm,pcIteration times M;
step 2: generating M 21 to N1+M2The natural numbers in the system are randomly arranged by a random function to serve as an initial locomotive assignment scheme;
step 3: taking out stepIn the range of 1 to N1+M2Natural numbers not present in it, last N2Randomly inserting bits in the unit bits, wherein the value of the uninserted bits is 0 as a double-machine scheme;
step 4: taking 1 to N in the previous step1+M2Natural numbers not present in it, the last two N2Randomly inserting bits in the units as a locomotive attaching scheme, wherein the value of the non-inserted bit is 0;
step 5: calculating a value of fitness f (x);
step 6: selecting and operating;
step 7: judging whether the cross operation is satisfied: if yes, go to Step 8; otherwise, go to Step 7;
step 8: performing cross operation;
step 9: repeatedly executing the steps of Step3 and Step 4;
step 10: judging whether the mutation operation is satisfied: if yes, go to Step 11; otherwise, go to Step 10;
step 11: performing mutation operation;
step 12: repeatedly executing the steps of Step3 and Step 4;
step 13: generating p (t + 1);
step 14: calculating m as m + 1;
step 15: and (3) judging: if M is less than M, M is equal to M +1, the Step is turned to Step4, and if M is greater than or equal to M, the operation is finished, and the current transportation result is output.
Specifically, in step S30, solution verification is performed by using C + + software based on the known train operation table of the designated section on the railway line.
Compared with the prior art, the invention has the following beneficial effects:
the invention carries out modeling aiming at the problem that double machines do not form pairs, designs and improves the specific problems of selection, intersection and variation of the genetic algorithm for modeling solution, can realize the rapid solution of the locomotive turnover scheme by a computer, reduces the complexity of the algorithm, is beneficial to the implementation of the rapid and automatic editing of the locomotive turnover diagram by the computer of the railway bureau, is beneficial to the simplification of the software architecture of the computer editing of the locomotive turnover diagram and has certain promotion effect on the implementation of intelligent office of the locomotive section of the railway bureau.
Drawings
FIG. 1 is a schematic flow chart of an embodiment of the present invention.
FIG. 2 is a schematic diagram of a chromosome arrangement of a selection operation according to an embodiment of the present invention.
FIG. 3 is a diagram illustrating a cross operation process according to an embodiment of the present invention.
FIG. 4 is a schematic diagram illustrating a variant operation according to an embodiment of the present invention.
FIG. 5 is a graph of locomotive turnaround at the output of an embodiment of the present invention.
Detailed Description
The present invention is further illustrated by the following figures and examples, which include, but are not limited to, the following examples.
Examples
As shown in FIG. 1, the railway locomotive turnaround method based on the improved genetic algorithm comprises the following steps:
s10, establishing a locomotive turnover model based on the conditions of single-machine or/and double-machine traction trains between the basic station and the return station of the designated section on the railway line.
Setting in AZ section designated on railway line, A is basic station, Z is retracing station, its running time table is known, and partial trains are drawn by two machines, and the number of running trains in A-Z direction is N1The number of trains running in the Z-A direction is N2,N1>N2With M in the A-Z direction1Train is single-machine traction with M2The train isA double-machine traction with M in Z-A direction3Train is single-machine traction with M4The train is drawn by two machines, the number of the attached locomotives is not more than two,
Figure BDA0002869924280000071
are all set variables.
Figure BDA0002869924280000072
1 locomotive of i train representing A-Z direction pulls the J train in Z-A direction;
Figure BDA0002869924280000073
the 0 locomotive of the i train representing the A-Z direction pulls the j train in the Z-A direction;
Figure BDA0002869924280000074
2 locomotives of the i train representing the A-Z direction draw the J train in the Z-A direction;
Figure BDA0002869924280000075
1 locomotive of i train representing A-Z direction pulls the J train in Z-A direction;
Figure BDA0002869924280000076
the 0 locomotive of the i train representing the A-Z direction pulls the j train in the Z-A direction;
Figure BDA0002869924280000077
1 locomotive which represents the i train in the A-Z direction is attached to the j train in the Z-A direction;
Figure BDA0002869924280000078
0 locomotive representing the i train in the A-Z direction is attached to the j train in the Z-A direction;
Figure BDA0002869924280000079
2 locomotives representing i trains in the A-Z direction are attached to j trains in the Z-A direction;
Figure BDA00028699242800000710
1 locomotive which represents the i train in the A-Z direction is attached to the j train in the Z-A direction;
Figure BDA00028699242800000711
0 locomotive representing the i train in the A-Z direction is attached to the j train in the Z-A direction;
Figure BDA0002869924280000081
1 locomotive which represents the i train in the Z-A direction is attached to the j train in the A-Z direction;
Figure BDA0002869924280000082
0 locomotive representing the i train in the Z-A direction is attached to the j train in the A-Z direction;
Figure BDA0002869924280000083
2 locomotives representing i trains in the Z-A direction are attached to j trains in the A-Z direction;
Figure BDA0002869924280000084
1 locomotive which represents the i train in the Z-A direction is attached to the j train in the A-Z direction;
Figure BDA0002869924280000085
0 locomotive representing the i train in the Z-A direction is attached to the j train in the A-Z direction;
Figure BDA0002869924280000086
1 locomotive which represents the i train in the Z-A direction is attached to the j train in the A-Z direction;
Figure BDA0002869924280000087
0 locomotive representing the i train in the Z-A direction is attached to the j train in the A-Z direction;
Figure BDA0002869924280000088
2 locomotives representing i trains in the Z-A direction are attached to j trains in the A-Z direction;
Figure BDA0002869924280000089
1 locomotive which represents the i train in the Z-A direction is attached to the j train in the A-Z direction;
Figure BDA00028699242800000810
0 locomotive representing the i train in the Z-A direction is attached to the j train in the A-Z direction.
The locomotive turnover model is as follows:
Figure BDA00028699242800000811
s.t.:
Figure BDA00028699242800000812
Figure BDA00028699242800000813
Figure BDA00028699242800000814
Figure BDA00028699242800000815
Figure BDA0002869924280000091
Figure BDA0002869924280000092
Figure BDA0002869924280000093
Figure BDA0002869924280000094
Figure BDA0002869924280000095
wherein, the above formula (2) represents the uniqueness that 1 locomotive in the A-Z direction assignsA train in the Z-A direction;
the above formula (3) represents the uniqueness of assigningA train in the Z-A direction to 2 locomotives in the A-Z direction;
the above formula (4) represents the uniqueness of attaching the Z-A direction train to 1 locomotive in the A-Z direction;
the above formula (5) represents the uniqueness of the 2 locomotives attached to the Z-A direction train in the A-Z direction;
the above formula (6) represents the uniqueness of assigning the trains in the A-Z direction to 1 locomotive in the Z-A direction;
the above formula (7) represents the uniqueness of attaching 2 locomotives in the Z-A direction toA train in the A-Z direction;
the above formula (8) represents the uniqueness of attaching 2 locomotives in the Z-A direction toA train in the A-Z direction;
the above formula (9) represents the uniqueness thatA single-machine traction train in the Z-A direction is dragged by one locomotive in the A-Z direction;
the above formula (10) shows the uniqueness that the double-locomotive traction train in the Z-A direction is dragged by two locomotives in the A-Z direction.
S20, solving the established locomotive turnaround model by adopting a GA genetic algorithm, judging the quality of the individual according to the size of the population fitness value, and evolving the improved population by adopting selection operation, cross operation and variation operation until the population fitness value is converged to be stable to generate the optimal individual, namely obtaining the optimal solution.
The specific process is as follows:
s21, the number of trains running in the A-Z direction is N1And M is2The train is drawn by two machines. The number of trains running in the Z-A direction is N2(N1>N2) And M4The train is drawn by two machines. Therefore, at the Z station, M must be made5(M5=N1-N2-M4) The locomotives are attached to the running trains in the Z-A direction (the number of the attached locomotives is not more than two). The multi-parameter cascade coding method is used for coding the locomotive turnover model, and the coding is carried out by 1-N1+M2The internal natural numbers are randomly arranged as 1 chromosome, and N is used2The data are respectively different schemes, wherein, 1 to N1+M2The internal natural numbers respectively represent the train numbers of the trains in sequence in the A-Z direction, and the different schemes comprise a traction scheme, a double-machine scheme, a single-machine hanging scheme and a double-machine hanging scheme. The specific encoding method is shown in fig. 2, and the meanings thereof respectively represent:
the locomotive pulling the 6 th train in the A-Z direction is assigned to pull the 1 st train in the Z-A direction, i.e., 6 → 1;
the locomotive of train 2 in the traction A-Z direction is assigned to traction train 2 in the Z-A direction, i.e., 2 → 2;
A locomotive of the 3 rd train in the tractionA-Z direction is assigned to traction the 1 st train in the Z-A direction as the 2 nd locomotive, i.e., 3 → 1 (double locomotive);
A locomotive of the 1 st train in the tractionA-Z direction is assigned to traction the 2 nd train in the Z-A direction asA 2 nd locomotive, i.e., 1 → 2 (double locomotive);
the locomotive of the 1 st train in the tractionA-Z direction is assigned asA hitched locomotive the 1 st train in the hitched Z-A direction, i.e. 1 → 1 (stand-alone hitching);
the locomotive of the 6 th train in the tractionA-Z direction is assigned asA hitched locomotive the 2 nd train in the hitched Z-A direction, i.e. 6 → 2 (stand-alone hitching);
A locomotive towing the 2 nd train in theA-Z direction is assigned asA 2 nd attached locomotive to attach the 1 st train in the Z-A direction, i.e., 2 → 1 (double-locomotive attached);
the locomotive of the train in the traction A-Z direction is not doubly attached to the 2 nd train in the Z-A direction, namely the 2 nd train in the Z-A direction is not doubly attached to the locomotive.
S22, using the objective function f (x) ═ z (x) as the fitness function.
S23, selection operation: by adopting a selection method combining an optimal storage strategy and steady-state replication, in a new population, a plurality of optimal individuals are reserved, do not participate in crossover and variation operation, and are directly replicated to the next generation, and the individual with the minimum current fitness is the most optimal individual; the specific operation process is as follows:
s23a survival number of individuals in next generation population
Figure BDA0002869924280000101
S23b, getting
Figure BDA0002869924280000111
Determining the survival number of the corresponding individual in the next generation population
Figure BDA0002869924280000112
(ii) individuals;
s23c, sorting the individuals according to the fitness, and sequentially taking the first
Figure BDA0002869924280000113
The individual is the best solution, does not participate in crossover and mutation, and is copied into the next generation population as M individuals in the next generation population.
S24, intersection operation: adopting uniform two-point crossing, and exchanging genes on each gene locus of two paired individuals with the same crossing probability to form a new individual; the specific process is shown in fig. 3.
For parent P, with cross probability PcRandomly generating a mask word W equal to the length of the individual code string1w2w3....wlWherein l is the length of the individual code string, in order to avoid the repeated assignment of the locomotive, two mutation sites are randomly generated in the W site of the mask word, so that the gene sites between the mutation sites are inverted to form a new chromosome, wherein,
if w i0 means that the corresponding bit in the parent P is not an ectopic bit,
if w i1 indicates that the corresponding position in the parent P is a mutation position.
S25, mutation operation: by adopting a linkage uniform variation method, the phenomenon that the variation position is repeated with an original certain gene position in a chromosome string to generate illegal solution due to the uniform variation of a single gene position is avoided, and the specific process is shown in figure 4.
For a given parent P, with a probability of dissimilarity PmTaking a random number k from a corresponding range of values1As the variation point, take the random number k as its k1Finding out the position corresponding to the number k in the original chromosome gene string, and changing the value of the position into the value of k in the original chromosome gene string1The corresponding value.
The specific operation process in step S20 is as follows:
step 1: initializing a population size N, pm,pcIteration times M;
step 2: generating M 21 to N1+M2The natural numbers in the system are randomly arranged by a random function to serve as an initial locomotive assignment scheme;
step 3: taking 1 to N in the previous step1+M2Natural numbers not present in it, last N2Randomly inserting bits in the unit bits, wherein the value of the uninserted bits is 0 as a double-machine scheme;
step 4: taking 1 to N in the previous step1+M2Natural numbers not present in it, the last two N2Randomly inserting bits in the units as a locomotive attaching scheme, wherein the value of the non-inserted bit is 0;
step 5: calculating a value of fitness f (x);
step 6: selecting and operating;
step 7: judging whether the cross operation is satisfied: if yes, go to Step 8; otherwise, go to Step 7;
step 8: performing cross operation;
step 9: repeatedly executing the steps of Step3 and Step 4;
step 10: judging whether the mutation operation is satisfied: if yes, go to Step 11; otherwise, go to Step 10;
step 11: performing mutation operation;
step 12: repeatedly executing the steps of Step3 and Step 4;
step 13: generating p (t + 1);
step 14: calculating m as m + 1;
step 15: and (3) judging: if M is less than M, M is equal to M +1, the Step is turned to Step4, and if M is greater than or equal to M, the operation is finished, and the current transportation result is output.
And S30, verifying the solved optimal solution by using C + + software based on the known train operation table of the designated section on the railway line.
And S40, automatically editing the result of the verification meeting the requirements into a locomotive turnover diagram output by the computer, and using the locomotive turnover diagram output as a locomotive turnover scheme of the designated section on the railway line.
The train operating table shown in table 1 was used as an example data analysis. In an AZ section of a certain line, A is a basic section in locomotive traffic information, Z is a return section, and part in the section is subjected to double-machine traction.
TABLE 1 train operation table
Figure BDA0002869924280000121
Figure BDA0002869924280000131
C + + software is used for solving, the turnover time of the locomotive in the section is calculated to be 31455min, and 22 locomotives are needed. The locomotive turnaround chart is automatically edited and output through a computer, as shown in fig. 4, the locomotive connection scheme is as follows:
a station section A: 010 → 021, 004 → 001, 002 → 003, 018 → 007, 016 → 009, 028 → 013, 018 → 015, 022 → 011, 006 → 017, 014 → 019, 026 → 023, 008 → 012, 020 → 003 (double machine), 012 → 011 (double machine), 020 → 017 (double machine 018), → 003 (attached hook), 024 → 003 (attached hook), 028 → 021 (attached hook), 012 → 001 (attached hook).
Z station segment: 021 → 026, 005 → 008, 009 → 014, 013 → 018, 015 → 020, 017 → 024, 001 → 028, 007 → 022, 019 → 004, 011 → 006, 021 → 010, 023 → 012, 003 → 016, 023 → 022, 011 → 008 (duplex), 003 → 018 (duplex), 003 → 020 (duplex), 017 → 006 (duplex), 003 → 012 (duplex).
In conclusion, the invention aims at minimizing the number of the locomotives, establishes a mathematical model of the locomotive turnover, skillfully calculates the optimal traction scheme and the attachment scheme of the locomotive through a genetic algorithm, and calculates and verifies through a calculation example that the locomotive turnover continuing scheme obtained through the mathematical model is beneficial.
The above embodiments are only preferred embodiments of the present invention, and are not intended to limit the scope of the present invention, but all changes that can be made by applying the principles of the present invention and performing non-inventive work on the basis of the principles shall fall within the scope of the present invention.

Claims (9)

1. A railway locomotive turnover method based on an improved genetic algorithm is characterized by comprising the following steps:
s10, establishing a locomotive turnover model based on the conditions of single-machine or/and double-machine traction trains between the basic station and the return station of the designated section on the railway line;
s20, solving the established locomotive turnover model by adopting a GA genetic algorithm, judging the quality of an individual according to the size of the population fitness value, and evolving and improving the population by adopting selection operation, cross operation and variation operation until the population fitness value is converged to be stable to generate an optimal individual, namely an optimal solution;
s30, verifying the optimal solution obtained by solving;
and S40, automatically editing the result of the verification meeting the requirements into a locomotive turnover diagram output by the computer, and using the locomotive turnover diagram output as a locomotive turnover scheme of the designated section on the railway line.
2. The improved genetic algorithm based railroad locomotive turnaround method of claim 1, wherein the locomotive turnaround model established in step S10 is:
Figure FDA0002869924270000011
s.t.:
Figure FDA0002869924270000012
Figure FDA0002869924270000013
Figure FDA0002869924270000014
Figure FDA0002869924270000015
Figure FDA0002869924270000016
Figure FDA0002869924270000021
Figure FDA0002869924270000022
Figure FDA0002869924270000023
Figure FDA0002869924270000024
wherein, the above formula (2) represents the uniqueness that 1 locomotive in the A-Z direction assignsA train in the Z-A direction;
the above formula (3) represents the uniqueness of assigningA train in the Z-A direction to 2 locomotives in the A-Z direction;
the above formula (4) represents the uniqueness of attaching the Z-A direction train to 1 locomotive in the A-Z direction;
the above formula (5) represents the uniqueness of the 2 locomotives attached to the Z-A direction train in the A-Z direction;
the above formula (6) represents the uniqueness of assigning the trains in the A-Z direction to 1 locomotive in the Z-A direction;
the above formula (7) represents the uniqueness of attaching 2 locomotives in the Z-A direction toA train in the A-Z direction;
the above formula (8) represents the uniqueness of attaching 2 locomotives in the Z-A direction toA train in the A-Z direction;
the above formula (9) represents the uniqueness thatA single-machine traction train in the Z-A direction is dragged by one locomotive in the A-Z direction;
the above formula (10) shows that the double-locomotive traction train in the Z-A direction is drawn by two locomotives in the A-Z direction to be unique;
in the AZ section designated on the railway line, A is a basic station, Z is a return station, and the number of trains running in the A-Z direction is N1The number of trains running in the Z-A direction is N2,N1>N2With M in the A-Z direction1Train is single-machine traction with M2The train isA double-machine traction with M in Z-A direction3Train is single-machine traction with M4The train is drawn by two machines, the number of the attached locomotives is not more than two,
Figure FDA0002869924270000025
are all set variables.
3. The improved genetic algorithm based railroad locomotive turnaround method of claim 2, wherein the setting variables in step S10 are:
Figure FDA0002869924270000026
1 locomotive of i train representing A-Z direction pulls the J train in Z-A direction;
Figure FDA0002869924270000027
to representThe 0 locomotive of the i train in the A-Z direction pulls the j train in the Z-A direction;
Figure FDA0002869924270000028
2 locomotives of the i train representing the A-Z direction draw the J train in the Z-A direction;
Figure FDA0002869924270000031
1 locomotive of i train representing A-Z direction pulls the J train in Z-A direction;
Figure FDA0002869924270000032
the 0 locomotive of the i train representing the A-Z direction pulls the j train in the Z-A direction;
Figure FDA0002869924270000033
1 locomotive which represents the i train in the A-Z direction is attached to the j train in the Z-A direction;
Figure FDA0002869924270000034
0 locomotive representing the i train in the A-Z direction is attached to the j train in the Z-A direction;
Figure FDA0002869924270000035
2 locomotives representing i trains in the A-Z direction are attached to j trains in the Z-A direction;
Figure FDA0002869924270000036
1 locomotive which represents the i train in the A-Z direction is attached to the j train in the Z-A direction;
Figure FDA0002869924270000037
0 locomotive attachment for i train in A-Z directionHanging the train inA Z-A direction j;
Figure FDA0002869924270000038
1 locomotive which represents the i train in the Z-A direction is attached to the j train in the A-Z direction;
Figure FDA0002869924270000039
0 locomotive representing the i train in the Z-A direction is attached to the j train in the A-Z direction;
Figure FDA00028699242700000310
2 locomotives representing i trains in the Z-A direction are attached to j trains in the A-Z direction;
Figure FDA00028699242700000311
1 locomotive which represents the i train in the Z-A direction is attached to the j train in the A-Z direction;
Figure FDA00028699242700000312
0 locomotive representing the i train in the Z-A direction is attached to the j train in the A-Z direction;
Figure FDA00028699242700000313
1 locomotive which represents the i train in the Z-A direction is attached to the j train in the A-Z direction;
Figure FDA00028699242700000314
0 locomotive representing the i train in the Z-A direction is attached to the j train in the A-Z direction;
Figure FDA00028699242700000315
2 locomotives representing i trains in the Z-A direction are attached to j trains in the A-Z direction;
Figure FDA00028699242700000316
1 locomotive which represents the i train in the Z-A direction is attached to the j train in the A-Z direction;
Figure FDA00028699242700000317
0 locomotive representing the i train in the Z-A direction is attached to the j train in the A-Z direction.
4. The improved genetic algorithm based railway locomotive turnaround method of claim 3, wherein the solving with the GA genetic algorithm in the step S20 comprises:
s21, coding the locomotive turnover model by a multi-parameter cascade coding method, wherein the coding is carried out by 1-N1+M2The internal natural numbers are randomly arranged as 1 chromosome, and N is used2The data are respectively different schemes, wherein, 1 to N1+M2The internal natural numbers respectively represent the train numbers of the trains in sequence in the A-Z direction, and the different schemes comprise a traction scheme, a double-machine scheme, a single-machine hanging scheme and a double-machine hanging scheme;
s22, using the objective function f (x) ═ z (x) as the fitness function;
s23, selection operation: by adopting a selection method combining an optimal storage strategy and steady-state replication, in a new population, a plurality of optimal individuals are reserved, do not participate in crossover and variation operation, and are directly replicated to the next generation, and the individual with the minimum current fitness is the most optimal individual;
s24, intersection operation: adopting uniform two-point crossing, and exchanging genes on each gene locus of two paired individuals with the same crossing probability to form a new individual;
s25, mutation operation: by adopting a linkage uniform variation method, the phenomenon that the variation position is repeated with an original certain gene position in a chromosome string to generate illegal solution due to the uniform variation of a single gene position is avoided.
5. The improved genetic algorithm based railroad locomotive turnaround method of claim 4, wherein the specific process of the selection operation is as follows:
s23a survival number of individuals in next generation population
Figure FDA0002869924270000041
S23b, getting
Figure FDA0002869924270000042
Determining the survival number of the corresponding individual in the next generation population
Figure FDA0002869924270000043
(ii) individuals;
s23c, sorting the individuals according to the fitness, and sequentially taking the first
Figure FDA0002869924270000044
The individual is the best solution, does not participate in crossover and mutation, and is copied into the next generation population as M individuals in the next generation population.
6. The improved genetic algorithm based railroad locomotive turnaround method of claim 5, wherein the specific process of the crossing operation is as follows:
for parent P, with cross probability PcRandomly generating a mask word W equal to the length of the individual code string1w2w3....wlWherein l is the length of the individual code string, in order to avoid the repeated assignment of the locomotive, two mutation sites are randomly generated in the W site of the mask word, so that the gene sites between the mutation sites are inverted to form a new chromosome, wherein,
if wi0 means that the corresponding bit in the parent P is not an ectopic bit,
if wi1 indicates that the corresponding position in the parent P is a mutation position.
7. The improved genetic algorithm-based railroad locomotive turnaround method according to claim 6, wherein the mutation operation is performed by the following specific processes:
for a given parent P, with a probability of dissimilarity PmTaking a random number k from a corresponding range of values1As the variation point, take the random number k as its k1Finding out the position corresponding to the number k in the original chromosome gene string, and changing the value of the position into the value of k in the original chromosome gene string1The corresponding value.
8. The improved genetic algorithm based railroad locomotive turnaround method according to claim 7, wherein the specific operation process in the step S20 is as follows:
step 1: initializing a population size N, pm,pcIteration times M;
step 2: generating M21 to N1+M2The natural numbers in the system are randomly arranged by a random function to serve as an initial locomotive assignment scheme;
step 3: taking 1 to N in the previous step1+M2Natural numbers not present in it, last N2Randomly inserting bits in the unit bits, wherein the value of the uninserted bits is 0 as a double-machine scheme;
step 4: taking 1 to N in the previous step1+M2Natural numbers not present in it, the last two N2Randomly inserting bits in the units as a locomotive attaching scheme, wherein the value of the non-inserted bit is 0;
step 5: calculating a value of fitness f (x);
step 6: selecting and operating;
step 7: judging whether the cross operation is satisfied: if yes, go to Step 8; otherwise, go to Step 7;
step 8: performing cross operation;
step 9: repeatedly executing the steps of Step3 and Step 4;
step 10: judging whether the mutation operation is satisfied: if yes, go to Step 11; otherwise, go to Step 10;
step 11: performing mutation operation;
step 12: repeatedly executing the steps of Step3 and Step 4;
step 13: generating p (t + 1);
step 14: calculating m as m + 1;
step 15: and (3) judging: if M is less than M, M is equal to M +1, the Step is turned to Step4, and if M is greater than or equal to M, the operation is finished, and the current transportation result is output.
9. The improved genetic algorithm based railroad locomotive turnaround method of claim 8, wherein in step S30, the solution verification is performed using C + + software based on known train schedules for designated sections on the railroad line.
CN202011594453.3A 2020-12-29 2020-12-29 Railway locomotive turnover method based on improved genetic algorithm Pending CN112508459A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011594453.3A CN112508459A (en) 2020-12-29 2020-12-29 Railway locomotive turnover method based on improved genetic algorithm

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011594453.3A CN112508459A (en) 2020-12-29 2020-12-29 Railway locomotive turnover method based on improved genetic algorithm

Publications (1)

Publication Number Publication Date
CN112508459A true CN112508459A (en) 2021-03-16

Family

ID=74951740

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011594453.3A Pending CN112508459A (en) 2020-12-29 2020-12-29 Railway locomotive turnover method based on improved genetic algorithm

Country Status (1)

Country Link
CN (1) CN112508459A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11912321B2 (en) * 2021-10-18 2024-02-27 Tata Consultancy Services Limited System and method for railway network access planning

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103870647A (en) * 2014-03-14 2014-06-18 西安工业大学 Operation workshop scheduling modeling method based on genetic algorithm
CN105096011A (en) * 2015-09-11 2015-11-25 浙江中烟工业有限责任公司 Improved chromosome coding based logistic transportation and scheduling method
CN109816214A (en) * 2018-12-29 2019-05-28 张嘉敏 Periodic train diagram mixing velocity train flow model of structural optimization and algorithm
CN112116207A (en) * 2020-08-24 2020-12-22 北京交通大学 Multi-constraint-condition train operation adjustment calculation method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103870647A (en) * 2014-03-14 2014-06-18 西安工业大学 Operation workshop scheduling modeling method based on genetic algorithm
CN105096011A (en) * 2015-09-11 2015-11-25 浙江中烟工业有限责任公司 Improved chromosome coding based logistic transportation and scheduling method
CN109816214A (en) * 2018-12-29 2019-05-28 张嘉敏 Periodic train diagram mixing velocity train flow model of structural optimization and algorithm
CN112116207A (en) * 2020-08-24 2020-12-22 北京交通大学 Multi-constraint-condition train operation adjustment calculation method and device

Non-Patent Citations (6)

* Cited by examiner, † Cited by third party
Title
何奉道;何冬昀;: "不固定牵引方式双肩回交路机车最优配置的遗传算法", 中国铁道科学, no. 01 *
刘淇;: "基于日计划的机车周转图优化配置研究", 科技创新与应用, no. 20 *
安志龙;安志学;: "基于遗传算法的铁路机车周转方案研究", 甘肃科技纵横, no. 08, pages 94 *
王军;张星臣;王超;郑亚晶;李桢;: "非固定区段运用的双机牵引机车周转优化模型", 交通运输系统工程与信息, vol. 12, no. 1, pages 140 *
郑亚晶;张星臣;张全;: "肩回交路条件下多机牵引机车周转图的优化", 中国铁道科学, no. 05 *
马丽 等: "单肩回运转方式下双机不成对机车周转方案建模研究", 《大连交通大学学报》, vol. 40, no. 5, 31 October 2019 (2019-10-31), pages 34 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11912321B2 (en) * 2021-10-18 2024-02-27 Tata Consultancy Services Limited System and method for railway network access planning

Similar Documents

Publication Publication Date Title
CN108053119B (en) Improved particle swarm optimization method for solving scheduling problem of zero-waiting line shop
Wang et al. An improved adaptive genetic algorithm based on hormone modulation mechanism for job-shop scheduling problem
CN104636813A (en) Hybrid genetic simulated annealing algorithm for solving job shop scheduling problem
CN110287564B (en) Medium-speed magnetic levitation energy-saving running chart optimization method based on genetic algorithm
CN112784968A (en) Hybrid pipeline parallel method for accelerating distributed deep neural network training
CN103530702A (en) Large-scale operation workshop scheduling method based on bottleneck equipment decomposition
CN112947480B (en) Mobile robot path planning method, storage medium and system
CN111583891B (en) Automatic musical note vector composing system and method based on context information
CN111784072B (en) Vehicle path problem optimization method and device
CN112633596B (en) Integrated optimization method for speed curve and interval running time of subway train
CN112508459A (en) Railway locomotive turnover method based on improved genetic algorithm
CN111461402B (en) Logistics scheduling optimization method and device, computer-readable storage medium and terminal
CN110991706B (en) Method for automatically compiling bus timetable and vehicle scheduling plan
Gu et al. A discrete particle swarm optimization algorithm with adaptive inertia weight for solving multiobjective flexible job-shop scheduling problem
CN116957177A (en) Flexible workshop production line planning method, system, equipment and medium
CN108416482B (en) Logistics distribution path planning method based on regional multiple strategies
Wong et al. Coast control of train movement with genetic algorithm
CN113792989A (en) Demand-driven shared sightseeing vehicle inter-area parallel optimization scheduling method
CN115562835A (en) Agile satellite imaging task scheduling method and system based on data driving
CN116541644A (en) Big piece transportation monitoring point layout system based on improved genetic algorithm
CN114415615B (en) Mixed flow assembly line balanced distribution method and device under uncertain demand
CN115392143A (en) Mobile energy storage charging and discharging space-time planning method based on deep reinforcement learning
Zhu et al. APPLYING GENETIC LOCAL SEARCH ALGORITHM TO SOLVE THE JOB-SHOP SCHEDULING PROBLEM.
Baek et al. Co-evolutionary genetic algorithm for multi-machine scheduling: coping with high performance variability
KR100986160B1 (en) System and method for manufacturing mask using genetic algorithm and dna computing

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination