A global traffic signal control method based on improved genetic algorithm
By combining an improved genetic algorithm with a priori rules to optimize traffic light control, the problem of traditional scheduling methods being unable to adapt to dynamic traffic conditions is solved, achieving more efficient traffic flow management and reducing traffic congestion.
Patent Information
- Application Number
- CN202210428746.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-04-22
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2042-04-22
AI Technical Summary
Traditional traffic light scheduling methods cannot effectively adapt to dynamic traffic conditions, resulting in traffic congestion and delays, especially in complex and changing urban traffic environments. Existing optimization technologies such as particle swarm optimization mainly focus on fixed settings and are difficult to apply in real-time. Regulation.
A global traffic light control method based on an improved genetic algorithm is proposed. By analyzing the road network topology and vehicle journey plan, important intersections are screened, the genetic algorithm is used to optimize the local intersection scheduling plan, and the traffic light configuration of other intersections is adjusted based on a priori rules. timely plan to maximize vehicle traffic efficiency.
This method simplifies the calculation process, improves the efficiency of traffic flow, reduces traffic congestion and vehicle detention, can quickly adapt to emergencies, find the global optimal traffic light control scheme, optimizes traffic light state transitions, and significantly improves traffic flow. traffic efficiency.
Smart Images

Figure CN114723156B
Abstract
Description
Technical Field
[0001] The invention relates to the field of intelligent transportation technology, and in particular to a global traffic signal light control method based on an improved genetic algorithm. Background Art
[0002] In many cities, transportation and mobility systems have become large-scale and complex, with widespread social impacts and strong economic and environmental consequences. Therefore, efforts are needed to continuously redesign transportation systems so that they can maintain the mobility of a larger population and the accessibility of cities.
[0003] Traffic light control methods are a hot topic in the implementation of intelligent transportation systems (ITS). Controlling traffic signals at intersections requires a system to manage the duration of different phases of traffic signals to reduce total waiting and total delays and effectively maximize traffic flow. Traditional traffic scheduling methods have been unable to meet the growing demand for urban traffic. For example, the fixed time control method that divides all the time of the signal into fixed cycle lengths and green durations is only applicable to signal intersections with stable and regular traffic. However, the traffic system is not a fixed system, it changes from one time period to another, so the fixed traffic signal time method cannot effectively adapt to the actual dynamic traffic situation. Therefore, it is necessary to study effective intelligent traffic light scheduling methods to solve the current urban road traffic problems. With the development of artificial intelligence technology, methods based on computational intelligence are gradually applied in various fields, and genetic algorithms (GA) have gradually become one of the most popular optimization techniques. Another popular optimization technique is particle swarm optimization (PSO), but most of them focus on fixed settings of signals and are rarely applied to dynamic and complex environments.
[0004] At present, many theories and methods with good development prospects have been proposed. However, these methods are still in the exploratory research stage, especially for traffic flow prediction under real-time observation conditions. This is an important issue related to the development of ITS systems and has certain research value. Summary of the invention
[0005] The present invention proposes a global traffic signal light control method based on an improved genetic algorithm. Firstly, a small number of important intersections are selected by analyzing the road network topology and vehicle travel plans, and a genetic algorithm is used to optimize and solve the local intersection scheduling plan. On this basis, the remaining intersections are considered, and an adjustment algorithm based on prior rules is used to form a traffic light timing plan based on the principle of maximizing vehicle traffic efficiency.
[0006] The technical solution of the present invention is achieved in this way:
[0007] According to a first aspect of an embodiment of the present invention, a global traffic signal light control method based on an improved genetic algorithm is proposed.
[0008] A global traffic signal light control method based on an improved genetic algorithm comprises the following steps:
[0009] S1: Model simplification and optimization objectives;
[0010] S2: Assumptions of the model;
[0011] S3: data preprocessing;
[0012] S4: Global optimization control of traffic lights based on improved genetic algorithm;
[0013] S5: Graph topology optimization based on prior rules;
[0014] S6: Traffic light control based on the combination of genetic algorithm and prior rules.
[0015] Optionally, the optimization goal in step S1 is:
[0016]
[0017]
[0018] Among them, V is the total number of vehicles, M j is the score of vehicle j, D is the total time, T j is the time when vehicle j arrives at the destination, and F is the basic score of vehicle j arriving at the destination on time.
[0019] Optionally, the assumptions of the model in step S2 include the following:
[0020] (1) All roads are one-way and connect two different intersections. There is at most one road in the same direction connecting the two intersections;
[0021] (2) Every intersection is at least the end of one road and the beginning of another road;
[0022] (3) The vehicles have the same travel speed, so the length of a road can be expressed by the travel time in a free-flowing state, and the speed of the vehicle is not affected by other vehicles;
[0023] (4) A traffic light is set up for each road: the traffic light at a certain intersection refers to the traffic lights corresponding to all roads ending at that intersection;
[0024] (5) At any time, at most one traffic light at each intersection is green. Only when the corresponding traffic light is green can vehicles on that road enter the intersection (pass). When the traffic light is red, vehicles reaching the end of the road queue up and wait for the green light.
[0025] (6) Ignoring the geometric dimensions of the vehicles and the space requirements of the queue: When the traffic light turns green, the first vehicle in the queue can pass through the intersection immediately, but each vehicle needs 1 second to pass through the intersection. That is, the green light lasts for n seconds, and the first n vehicles in the queue can pass through the intersection. The remaining vehicles can only wait for the next green light.
[0026] (7) Initial state (i.e., time 0), all vehicles are at the end of the first road on their respective paths: if the traffic light corresponding to the road is green at this time, they will pass directly; if there are multiple vehicles at the end of the same road, the vehicle with the smaller sequence number will be placed in front and go first; when the vehicle reaches the end of the last road on the path, the journey ends and the vehicle is removed and no longer considered;
[0027] (8) The vehicle's travel time does not increase when it passes through an intersection. That is, except for the time spent waiting for the green light, the vehicle's travel time is equal to the sum of the path lengths.
[0028] (9) The duration of a traffic light is calculated from time 0, that is, the first second of the corresponding road traffic light is on, which refers to the second from second 0 to second 1, that is, the time t when a vehicle arrives at the end of the road. At this time, if the corresponding traffic light is green, it is considered that the vehicle passes directly.
[0029] Optionally, in step S3, after data analysis, statistics are obtained on valid roads (referring to roads with vehicles traveling) connected according to the intersections. f , the intersection set L containing these repeated roads c , according to the number of roads connected by the intersection, establish the intersection set L1,...,L 12 After deleting the roads where no vehicles pass, a new intersection file is formed.
[0030] Genetic algorithm is a random search algorithm that simulates natural selection and natural genetic mechanisms in the biological world. It simulates the problem to be solved into a biological evolution process, encodes the problem parameters into chromosomes, and generates the next generation of populations through genetic operations such as selection, crossover, and mutation. According to the idea of "survival of the fittest", individuals with low fitness are eliminated, and after many generations of evolution, individuals that meet the optimization goals are finally generated.
[0031] Optionally, the genetic algorithm steps in step S4 include:
[0032] S41: Chromosome encoding;
[0033] S42: population initialization;
[0034] S43: calculation of fitness value;
[0035] S44: Genetic operator design;
[0036] S45: Algorithm termination condition.
[0037] All traffic lights in the city are regulated with the goal of all vehicles completing their tasks as quickly as possible, and the optimal method is found, including the cycle time of traffic lights at all intersections, the sequence of green lights, and the duration of green lights.
[0038] Optionally, the chromosome encoding step in step S41 includes:
[0039] Encode the intersections and store them in the variable cross_data, sort them and store them in the array cross_num;
[0040] Encode the intersection of each road;
[0041] Connect according to the order of intersections stored in the array cross_num to form the final chromosome.
[0042] Optionally, the chromosome encoding step in step S41 further includes:
[0043] Delete intersections and roads, and remove roads with no cars passing through and intersections with only one road connecting them.
[0044] The calculation of fitness value plays a very important role in genetic algorithm, and its size is the most direct and effective judgment of the quality of the generated method. After constructing a specific chromosome, the quality of the distribution plan is judged according to the size of the fitness function value of each chromosome.
[0045] Optionally, the genetic operator design step in step S44 includes:
[0046] Select the operator;
[0047] Crossover operator;
[0048] Mutation operator.
[0049] Optionally, in the step of selecting the operator, the probability of an individual being selected is:
[0050]
[0051] Among them, fitness i is the fitness value of individual i.
[0052] The beneficial effects of the present invention are:
[0053] 1. The present invention optimizes the traditional fixed-time traffic light scheduling algorithm, proposes a traffic light scheduling algorithm based on an improved genetic algorithm, and introduces prior knowledge. In the traditional fixed-time traffic light scheduling algorithm, the traffic light state transition time is fixed, and most traffic lights cannot dynamically change the state of the traffic light according to the real-time traffic flow conditions. The present invention uses a genetic algorithm to search for the global optimal traffic light scheduling scheme based on the real-time traffic flow conditions at each intersection. The genetic algorithm includes the following steps: initialization coding, fitness evaluation, and genetic operator operation. The experimental results show that the use of the improved genetic algorithm simplifies the calculation process, improves efficiency, reduces the probability of traffic congestion, and optimizes the traffic flow of the entire road network. The present invention controls the conversion of traffic light states through a traffic light scheduling algorithm, thereby reducing traffic flow congestion and vehicle detention.
[0054] 2. After reducing the dimension through prior knowledge and graph topology, the present invention uses genetic algorithms to design control schemes for the remaining intersections. On the basis of considering the global optimum, the scale of genetic algorithm search is reduced, so the solution can be obtained more quickly. Considering that after encountering an emergency, the present invention can find the affected nodes, and only needs to adjust the traffic light schemes of a small number of intersections, and then the modified global traffic light control scheme can be quickly calculated. The present invention solves the control scheme by classification, and the traffic light control schemes for each intersection obtained are close to the global optimal solution and have a high score. BRIEF DESCRIPTION OF THE DRAWINGS
[0055] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0056] Figure 1 A schematic diagram of a flow chart of a global traffic signal light control method based on an improved genetic algorithm according to the present invention;
[0057] Figure 2 A city-wide topological map according to an embodiment of the present invention;
[0058] Figure 3 A genetic algorithm flow chart of an embodiment of the present invention;
[0059] Figure 4 A schematic diagram of a crossover operator operation according to an embodiment of the present invention;
[0060] Figure 5 A schematic diagram of a graph topology optimization method based on a priori rules according to an embodiment of the present invention;
[0061] Figure 6 Schematic diagram of a traffic light control method combining a genetic algorithm with a priori rules according to an embodiment of the present invention. DETAILED DESCRIPTION
[0062] The following description and accompanying drawings fully illustrate the specific embodiments of this paper, so that those skilled in the art can practice them. The parts and features of some embodiments may be included in or replace the parts and features of other embodiments. The scope of the embodiments of this paper includes the entire scope of the claims, and all obtainable equivalents of the claims. Herein, the terms "first", "second" etc. are only used to distinguish an element from another element, and do not require or imply that there is any actual relationship or order between these elements. In fact the first element can also be called the second element, and vice versa.
[0063] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0064] Example 1
[0065] Figure 1 A global traffic signal light control method based on an improved genetic algorithm of the present invention is shown.
[0066] like Figure 1 As shown, a global traffic signal light control method based on an improved genetic algorithm comprises the following steps:
[0067] S1: Model simplification and optimization objectives;
[0068] S2: Assumptions of the model;
[0069] S3: data preprocessing;
[0070] S4: Global optimization control of traffic lights based on improved genetic algorithm;
[0071] S5: Graph topology optimization based on prior rules;
[0072] S6: Traffic light control based on the combination of genetic algorithm and prior rules.
[0073] Example 2
[0074] The goal of this embodiment is to minimize the travel time at signalized intersections and optimize the settings to reduce traffic congestion, fuel consumption and emissions. This embodiment focuses on optimizing the large number of traffic lights deployed in large areas of the city, and correctly setting the traffic lights to better alleviate traffic congestion. The focus is on solving the design of a posteriori traffic light scheduling scheme under the condition that most of the global information is known. The following problems are specifically studied and solved: Assume that in a certain city, the road network structure of the entire city, the fixed vehicle driving plan at a certain time and the unchanged driving speed are known. The traffic lights at each intersection in the city can change according to their own independent fixed signal cycles. Based on the known information, the global optimization and control method of the city’s traffic lights is studied, the scale of the urban road network to which the algorithm is applicable is analyzed, and a specific global scheduling plan is given according to the given data.
[0075] A global traffic signal light control method based on an improved genetic algorithm, comprising:
[0076] Step S1: Model simplification and optimization objectives
[0077] Topological modeling is performed on the roads and intersections of the target city, that is, a point-to-point matrix is established, and then a topological map of the entire city is drawn, such as Figure 2 The model space is very complex, and to solve the global optimal control solution, it is only necessary to ensure that the 200 vehicles with known information can reach the destination in the shortest time, and there is no need to set other irrelevant intersections.
[0078] Optionally, the optimization goal in step S1 is:
[0079]
[0080]
[0081] Among them, V is the total number of vehicles, M j is the score of vehicle j, D is the total time, T j is the time when vehicle j arrives at the destination, and F is the basic score of vehicle j arriving at the destination on time.
[0082] Optionally, the assumptions of the model in step S2 include the following:
[0083] (1) All roads are one-way and connect two different intersections. There is at most one road in the same direction connecting the two intersections;
[0084] (2) Every intersection is at least the end of one road and the beginning of another road;
[0085] (3) The vehicles have the same travel speed, so the length of a road can be expressed by the travel time in a free-flowing state, and the speed of the vehicle is not affected by other vehicles;
[0086] (4) A traffic light is set up for each road: the traffic light at a certain intersection refers to the traffic lights corresponding to all roads ending at that intersection;
[0087] (5) At any time, at most one traffic light at each intersection is green. Only when the corresponding traffic light is green can vehicles on that road enter the intersection (pass). When the traffic light is red, vehicles reaching the end of the road queue up and wait for the green light.
[0088] (6) Ignoring the geometric dimensions of the vehicles and the space requirements of the queue: When the traffic light turns green, the first vehicle in the queue can pass through the intersection immediately, but each vehicle needs 1 second to pass through the intersection. That is, the green light lasts for n seconds, and the first n vehicles in the queue can pass through the intersection. The remaining vehicles can only wait for the next green light.
[0089] (7) Initial state (i.e., time 0), all vehicles are at the end of the first road on their respective paths: if the traffic light corresponding to the road is green at this time, they will pass directly; if there are multiple vehicles at the end of the same road, the vehicle with the smaller sequence number will be placed in front and go first; when the vehicle reaches the end of the last road on the path, the journey ends and the vehicle is removed and no longer considered;
[0090] (8) The vehicle's travel time does not increase when it passes through an intersection. That is, except for the time spent waiting for the green light, the vehicle's travel time is equal to the sum of the path lengths.
[0091] (9) The duration of a traffic light is calculated from time 0, that is, the first second of the corresponding road traffic light is on, which refers to the second from second 0 to second 1, that is, the time t when a vehicle arrives at the end of the road. At this time, if the corresponding traffic light is green, it is considered that the vehicle passes directly.
[0092] Optionally, in step S3, after data analysis, statistics are obtained on valid roads (referring to roads with vehicles traveling) connected according to the intersections. f , the intersection set L containing these repeated roads c , according to the number of roads connected by the intersection, establish the intersection set L1,...,L 12 After deleting the roads where no vehicles pass, a new intersection file is formed.
[0093] In this embodiment, the road network structure, vehicle driving plans and driving speeds of the entire city are known. The method of the present application adapts to the fixed driving plans of a certain number of vehicles, allowing these vehicles to pass through each intersection as quickly as possible and reach their destination in the shortest time. Therefore, this is a global optimization problem.
[0094] Genetic algorithm is a random search algorithm that simulates natural selection and natural genetic mechanisms in the biological world. Figure 3As shown in the figure, by simulating the problem to be solved into a biological evolution process, encoding the problem parameters into chromosomes, and generating the next generation of population through genetic operations such as selection, crossover, and mutation, individuals with low fitness are eliminated according to the idea of "survival of the fittest", and finally generating individuals that meet the optimization goal after many generations of evolution.
[0095] Optionally, the genetic algorithm steps in step S4 include:
[0096] S41: Chromosome encoding;
[0097] S42: population initialization;
[0098] S43: calculation of fitness value;
[0099] S44: Genetic operator design;
[0100] S45: Algorithm termination condition.
[0101] All traffic lights in the city are regulated with the goal of all vehicles completing their tasks as quickly as possible, and the optimal method is found, including the cycle time of traffic lights at all intersections, the sequence of green lights, and the duration of green lights.
[0102] Optionally, the chromosome encoding step in step S41 includes:
[0103] Encode the intersections and store them as variables cross_data, sort them and store them in array cross_num, for example: [0,1,4,...], representing intersection 0, intersection 1, intersection 4,... respectively;
[0104] Encode each road intersection in the format of "traffic light sequence, first green light duration, second green light duration ..., nth green light duration", for example: [6000000002,33,22,41,3,23,45], where the first digit is the sequence of the green lights on. For example, 6000000002 means the sequence of the green lights on is "1, 2, 3, 4, 6, 5". The first digit represents the number of streets (number of traffic lights) at this intersection, and 2 represents the second sequence.
[0105] Connect according to the order of intersections stored in the array cross_num to form the final chromosome, for example: [6000000010,33,22,41,3,23,45,1000000001,23,20000000012,32,9.....].
[0106] After all traffic lights are added to the chromosome number, the chromosome length is too long, which is not conducive to calculation. Optionally, the chromosome encoding step in step S41 also includes: deleting intersections and roads, deleting roads without cars passing through and intersections connected by only one road.
[0107] In step S42, the genetic algorithm is run starting from population initialization, and its basic structure will have an important impact on the final optimization result. This embodiment uses the following program flow chart to generate an initial population m=100: The detailed steps of population initialization are shown in Algorithm 1:
[0108]
[0109] Where rond_n is the normal distribution function f(x) sampled:
[0110]
[0111] Among them, μ represents the mean and σ represents the standard deviation.
[0112] By consulting the literature, we know that in actual situations the duration of the green light is usually 27 seconds, so we set μ of the initial population to 27 and σ to 10.
[0113] The calculation of fitness value plays a very important role in genetic algorithms. Its size is the most direct and effective judgment of the quality of the generated method. After constructing a specific chromosome, the quality of the distribution plan is judged according to the size of the fitness function value of each chromosome. From the scheduling plan of the question, it can be seen that the optimization goal of the first question is the sum of the total scores of all vehicles. The specific calculation method is shown in Algorithm 2:
[0114]
[0115]
[0116] Optionally, the genetic operator design step in step S44 includes:
[0117] Select the operator;
[0118] Crossover operator;
[0119] Mutation operator.
[0120] Optionally, in the step of selecting an operator, this embodiment adopts a roulette wheel selection method. After normalizing the fitness function, the probability of an individual being selected is:
[0121]
[0122] Among them, fitness iis the fitness value of individual i.
[0123] Individuals with higher fitness scores have a greater probability of being selected, which means they have a greater probability of reproducing offspring.
[0124] Optionally, in the crossover operator step, this embodiment adopts a proportional maximum retention multi-point crossover method to maximize the integrity of the crossover gene, randomly select two chromosomes from the selected chromosomes, and randomly select a gene segment (except the gene segment representing the sequence code) from each chromosome, [s1, t1], [s2, t2]. When the crossover probability P is reached c (P c =0.8), a crossover operation is performed. The specific steps are shown in Algorithm 3:
[0125]
[0126]
[0127] Among them, since the actual meaning of the gene fragment in the crossover operator is the green light duration, there is no need to perform the traditional duplicate value removal work, and after the crossover, this embodiment takes the operation shown in step 8 to ensure that the best chromosomes are generated and retained to the greatest extent. The actual effect diagram of the crossover operation is shown in Figure 4 As shown:
[0128] Optionally, in the mutation operator step, since the above steps are always performed while keeping some gene segments unchanged, if the initial population fails to generate the optimal gene segment, a local optimal undesirable result will be produced. In order to avoid this problem, this embodiment adopts a single-point mutation operation. At the same time, since the chromosome length of this embodiment is very long, the mutation operation becomes very important. For each element in the chromosome, there is a P m (P m =0.3), but different methods should be used to mutate the elements representing the sequential coding and the elements representing the green light duration. The specific mutation steps are shown in Algorithm 4:
[0129]
[0130]
[0131] Optionally, in step S45, in order to improve the convergence speed of the algorithm, this embodiment sets an algorithm termination rule: if the error between the objective function result of the next generation and the previous generation is less than θ (θ = 0.1) for 20 consecutive generations, and the maximum fitness value of the population is the highest value among all iterations, the algorithm terminates. This embodiment sets the maximum number of iterations of the algorithm to 200, and the algorithm finally converges in about 40 generations, and the maximum fitness value is 107809.
[0132] Since the model of the global optimization control method of traffic lights based on the improved genetic algorithm established in this embodiment is to add chromosome encoding to all traffic lights, which makes the chromosome length very long and the algorithm runs slowly. Therefore, this embodiment reduces the scale of the intersections and roads of the traffic lights to be planned through data preprocessing, that is, only the intersections with vehicles are considered. At the same time, the optimal scheduling plan for an intersection with only one traffic light can also be easily obtained, that is, the order and time of the green lights on each road within a cycle. The time can be any positive integer within the total duration, so it can also be ignored. Moreover, the signal cycles of the traffic lights at each intersection are independent, and the signal cycle space that can be scheduled is very large. The solution may be as high as tens of thousands of dimensions, which brings great design difficulty. However, this also means that the scheduling plan for each intersection can be very flexible, so it is very convenient to design the best scheduling plan for certain intersections, which can further reduce the scale of the problem to be solved.
[0133] For some intersections with relatively simple structures, the relevant vehicles do not need to wait for traffic lights to pass, so these intersections have no effect in calculating vehicle time. The graph containing these nodes can be optimized through graph topology.
[0134] For intersections that only connect to one valid road, set the green light for the valid road for the entire duration. At the same time, some intersections connect to multiple roads, but since only 71 roads in all vehicle routes are repeated, most of the roads connected by the intersection will only have one vehicle at a fixed time point. For such intersections, a traffic light scheduling scheme can be designed based on a priori rules to ensure that all vehicles can pass directly when they arrive or wait for at most 1 second (that is, two vehicles on two roads want to enter the intersection at the same time).
[0135] Topological methods such as Figure 5 As shown in Figure 5, the topology is performed according to the route of the vehicle. The global topology method can be described as shown in Algorithm 5:
[0136]
[0137]
[0138] Count the driving routes of the remaining vehicles, draw a node graph, and then just optimize these nodes.
[0139] Optionally, in step S6, the prior rules can design traffic light scheduling schemes for two types of intersections. One type is that all roads connected to the intersection only pass one vehicle, and the other type is that the intersection is only connected to two roads, and only one road has vehicles passing through repeatedly. The designed scheduling scheme can make vehicles wait for very little time.
[0140] For the first type of situation, assume that the intersection is connected to n roads (i.e., n vehicles will arrive at this intersection), and the arrival time t of each vehicle at the intersection is known n and for road number W n (assuming t n is sorted by time for n). If the intersection is only connected to one road, then it is set that the corresponding road street lamp lasts for the whole journey (i.e., D). If n>1, the traffic light scheduling scheme for this intersection can be designed according to Table 1.
[0141] Table 1
[0142]
[0143] For the second type of situation, assume that two vehicles come on road W1 at times t1 and t2 (let t1 < t2), and one vehicle comes on road W2 at time t3. Then the traffic light scheduling scheme for this intersection can be designed according to Table 2.
[0144] Table 2
[0145]
[0146] When calculating the vehicle arrival time t n , if it is found that there are the same times, that is, t n = t n-1 , then t n = t n+1 , and at the same time, the vehicles on the corresponding road wait for 1 second. Such a design can ensure that there will be no conflicts in all times.
[0147] After the conditional judgment and analysis of all intersections in this embodiment, it is found that most intersections can apply the prior rules to design traffic control schemes. After excluding these intersections, the remaining important intersections that need to be optimized are obtained. Then, chromosome coding is performed on the traffic signal timing schemes of the selected intersections, and the problem scale is significantly reduced. In this embodiment, the genetic algorithm is first used to iteratively optimize and solve the traffic light timing schemes of these important intersections. On the basis of the solution results, an algorithm is designed according to the aforementioned prior rules to design the traffic light timing schemes of the remaining intersections. The total score of the final optimized scheme is 135807, and there is a certain optimization effect.
[0148] The intelligent control system of traffic signals can effectively alleviate traffic congestion and improve traffic efficiency, and is an important part of the smart transportation system. This embodiment focuses on the problem of traffic light control, studies the global optimization and control method of traffic signals, and establishes mathematical models and algorithms. When the road network structure and vehicle routes are known, the global optimization of traffic signal timing schemes with the goal of maximizing vehicle traffic efficiency is achieved; after the road network structure changes, local vehicle route planning and traffic signal control methods are given.
[0149] In order to solve the problem of global optimization and control of traffic lights, data preprocessing is first performed to exclude roads and intersections outside the itinerary plan; then a mathematical model based on genetic algorithm is established to genetically encode the traffic light timing scheme, and the traffic light schemes of all intersections together constitute chromosomes, with the total score of all vehicles as individual fitness; finally, a population of 100 is constructed, and the optimization solution is achieved through evolutionary iteration, and the total score of the optimization scheme is 107809.
[0150] Due to the large scale of the problem, the genetic algorithm is slow to solve. In order to improve the efficiency of the algorithm and improve the optimization results, this embodiment designs an optimization control method that combines the genetic algorithm with a priori rules. First, by analyzing the road network topology and vehicle travel plan, a few important intersections are selected, and the genetic algorithm is used to optimize the local intersection scheduling plan; on this basis, the remaining intersections are considered, and the traffic light timing plan is formed by an adjustment algorithm based on a priori rules in accordance with the principle of maximizing vehicle traffic efficiency; the total score of the optimization plan is finally obtained to be 135807.
[0151] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. A global traffic signal control method based on improved genetic algorithm, It is characterized in that The following steps are involved: S1: Model simplification and optimization objectives; S2: Assumptions of the model; S3: data preprocessing; S4: Global optimization control of traffic lights based on improved genetic algorithm; S5: Graph topology optimization based on prior rules; S6: Traffic light control based on genetic algorithm combined with prior rules; The optimization goal in step S1 is: ; in, V is the total number of vehicles, M j For vehicles j The score, D is the total duration, T j For vehicles j When you reach the end, F For vehicles j Basic points for reaching the finish line on time.
2. According to claim 1, a global traffic signal light control method based on an improved genetic algorithm, It is characterized in that The steps of the genetic algorithm in step S4 include: S41: Chromosome encoding; S42: population initialization; S43: calculation of fitness value; S44: Genetic operator design; S45: Algorithm termination condition.
3. According to claim 2, a global traffic signal light control method based on an improved genetic algorithm, It is characterized in that The chromosome encoding step in step S41 includes: Encode the intersections and store them in the variable cross_data, sort them and store them in the array cross_num; Encode the intersections of each road; Connect according to the order of intersections stored in the array cross_num to form the final chromosome.
4. A global traffic signal light control method based on an improved genetic algorithm according to claim 3, It is characterized in that The chromosome encoding step in step S41 also includes: Delete intersections and roads, and remove roads with no cars passing through and intersections with only one road connecting them.
5. A global traffic signal light control method based on an improved genetic algorithm according to claim 2, It is characterized in that The step S44 of genetic operator design includes: Select the operator; Crossover operator; Mutation operator.
6. A global traffic signal light control method based on an improved genetic algorithm according to claim 5, It is characterized in that In the step of selecting the operator, the probability of an individual being selected is: ; Among them, fitness i For individuals i The fitness value of .
