Single-point intersection traffic signal timing optimization method based on IAGA algorithm, electronic equipment and storage medium
Optimizing traffic signal timing through the IAGA algorithm solves the problem of unreasonable signal light control in the existing technology, adjusts the signal light duration according to actual traffic conditions, reduces traffic congestion and energy consumption, and improves traffic efficiency.
Patent Information
- Application Number
- CN202410503348.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-25
- Publication Date
- 2024-09-06
AI Technical Summary
Existing traffic signal timing methods are mainly based on static traffic flow data and lack the ability to adjust dynamic traffic flow and environment in real time, resulting in unreasonable signal light control, traffic congestion, increased energy consumption, and frequent traffic accidents.
A single-point intersection traffic signal timing optimization method based on the IAGA algorithm is adopted. By establishing a nonlinear multi-objective signal timing optimization model and using an improved genetic algorithm to solve the problem, the signal length is adjusted to minimize the average delay time and minimize the average parking. times, maximize traffic capacity, and satisfy various constraints.
It can dynamically adjust the signal duration according to actual traffic conditions, reduce queue waiting time, improve traffic efficiency, reduce intersection congestion, improve road traffic capacity, and promote the development of smart transportation systems.
Smart Images

Figure CN118609382A
Abstract
Description
Technical Field
[0001] The invention belongs to the field of urban traffic control, and in particular relates to a single-point intersection traffic signal timing optimization method based on an IAGA algorithm, an electronic device and a storage medium. Background Art
[0002] The large-scale use of motor vehicles has greatly facilitated people's travel and increased the frequency and efficiency of residents' travel, but it has also brought about traffic congestion problems. As of 2023, according to data from the Ministry of Public Security, the total number of cars in China has reached 330 million. The sharp increase in the number of cars and people's high travel needs have had a variety of impacts on urban intersections. Dans's law shows that the construction of new roads can alleviate traffic congestion to some extent, but the resulting new traffic demand may make these roads congested again. In addition, with the rapid development of urbanization in my country, the urban traffic burden has also increased sharply. Due to the continuous increase in traffic demand, the constructed traffic road network may eventually be insufficient to cope with it. At the same time, restrictions such as land and planning will also hinder the increase of traffic facilities. Traffic congestion usually occurs at urban intersections and their surrounding areas, and unreasonable signal light control is the main factor leading to traffic obstruction.
[0003] Urban traffic signals are managed through a coordinated control system, which aims to improve safety and traffic efficiency. The traffic center coordinates all intersections and road sections to achieve smooth traffic, mutual coordination and balanced traffic volume, thereby reducing travel time and improving trafficability.
[0004] Traffic signal timing is one of the key issues in urban traffic management. Reasonable signal timing schemes can improve traffic efficiency, reduce congestion, reduce energy consumption and emissions, and improve driving safety. However, unreasonable signal timing schemes will lead to traffic congestion, poor driving, increased energy consumption and emissions, and increased traffic accident rates. Therefore, studying the optimization of traffic signal timing has important theoretical and practical significance. Traffic signal timing optimization is a complex optimization problem. First, traffic signal timing needs to consider the coordination and synchronization between multiple intersections in order to achieve the optimization of the entire traffic network. Secondly, traffic signal timing needs to consider the changes in the temporal and spatial distribution of traffic flow and various traffic conditions in order to dynamically adjust the signal timing scheme. In addition, traffic signal timing also needs to consider the distribution and scheduling of traffic flow in order to achieve fast and efficient traffic.
[0005] At present, traditional signal timing methods are mainly designed based on static traffic flow data and empirical rules, and lack the ability to adjust to dynamic traffic flow and environment in real time. Summary of the invention
[0006] The purpose of the present invention is to provide a single-point intersection traffic signal timing optimization method, electronic device and storage medium based on the IAGA algorithm to solve the problems existing in the above-mentioned prior art.
[0007] To achieve the above object, the present invention provides a single-point intersection traffic signal timing optimization method based on the IAGA algorithm, comprising the following steps:
[0008] S1. Establish a nonlinear multi-objective signal timing optimization model based on optimization objectives and constraints;
[0009] S2. Solving the nonlinear multi-objective signal timing optimization model based on the IAGA algorithm;
[0010] S3. Inputting the intersection data to be optimized into the solved nonlinear multi-objective signal timing optimization model to obtain a timing optimization solution.
[0011] Optionally, the optimization objectives are: minimizing average delay time, minimizing average number of stops, and maximizing traffic capacity.
[0012] Optionally, the calculation model of the average delay time is:
[0013] D=∑ i d i q i / ∑ i q i
[0014] Where D is the average delay time of vehicles at the intersection in one cycle, d i It is the delay time when there is no initial vehicle queue;
[0015] The calculation model of the average number of parking times is:
[0016] S=∑ j s i q i / ∑ i q i
[0017] Where S is the average number of vehicle stops at the intersection within a signal cycle, g ei is the effective green light duration of the i-th signal phase; C is the total signal cycle duration; x ij is the saturation of the jth inlet channel in the i-th phase; q i is the actual vehicle flow arriving at the intersection in phase i;
[0018] The calculation model of the traffic capacity is:
[0019]
[0020] Among them, Q is the intersection capacity, S ij is the saturated flow rate of the jth lane in phase i, g i is the effective green light duration of the i-th phase, C is the signal cycle, n is the number of phases, and m is the number of lanes.
[0021] Optionally, the constraints include the green light time of each phase, the total signal cycle time, and the loss time.
[0022] Optionally, the constraint condition is expressed as:
[0023]
[0024] Among them, g e is the effective green light time of each phase, L 总 is the total loss time, C min , C max are the minimum signal total period and the maximum signal total period, respectively, t min ,t max They are the minimum green light duration and the maximum green light duration respectively.
[0025] Optionally, the nonlinear multi-objective signal timing optimization model is specifically:
[0026]
[0027] Among them, x is the effective green light time of the signal phase, k1, k2, k3 are the weight coefficients corresponding to the average delay time, average number of stops, and traffic capacity, respectively, and m1, m2, m3 are the normalization coefficients corresponding to the average delay time, average number of stops, and traffic capacity, respectively.
[0028] Optionally, the IAGA algorithm is an improved algorithm based on a genetic algorithm, and the improvement process is:
[0029] The crossover operator and mutation operator are modified, and the correction formula is as follows:
[0030]
[0031]
[0032] Among them, p j represents the crossover probability, p j_max represents the maximum crossover probability, p j_min represents the minimum crossover probability, p b represents the mutation probability, p b_max represents the maximum mutation probability, p b_min represents the minimum mutation probability, it max represents the maximum evolutionary generation, iter represents the current evolutionary generation, f avgrepresents the average fitness value of individuals in the population, f′ represents the larger fitness value of the two individuals to be crossed, and f represents the fitness value of the individual to be mutated; set p j_max =0.9, p j_min =0.3, p b_max =0.1, p b_min =0.01.
[0033] The present invention also provides an electronic device, including a memory and a processor, wherein the memory is used to store a computer program, and the processor runs the computer program to enable the electronic device to execute the above-mentioned single-point intersection traffic signal timing optimization method.
[0034] The present invention also provides a computer-readable storage medium storing a computer program, wherein the computer program, when executed by a processor, implements the single-point intersection traffic signal timing optimization method as described above.
[0035] The technical effects of the present invention are:
[0036] 1) The present invention adjusts the duration of traffic lights through a variety of evaluation indicators, which can more comprehensively optimize traffic flow according to actual traffic conditions, reduce queuing waiting time, and improve traffic efficiency.
[0037] 2) The present invention can reduce the occurrence of intersection congestion, alleviate traffic congestion, improve road capacity, and improve the overall efficiency of the transportation system through reasonable timing.
[0038] 3) The improved algorithm of the present invention is applied to traffic signal timing optimization, which can promote the development of intelligent transportation systems and provide new ideas and methods for traffic management. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] The drawings constituting a part of the present application are used to provide a further understanding of the present application. The illustrative embodiments and descriptions of the present application are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:
[0040] Figure 1 A flow chart of a single-point intersection traffic signal timing optimization method based on the IAGA algorithm in an embodiment of the present invention;
[0041] Figure 2 It is a comparison diagram of the algorithm fitness of the IAGA algorithm in the embodiment of the present invention and the traditional genetic algorithm with different iteration times; wherein, Figure 2 (a) is a comparative test with 50 iterations; Figure 2 (b) is a comparative test with 100 iterations; Figure 2 (c) is a comparative test with 200 iterations; Figure 2 (d) is a comparative test with 500 iterations;
[0042] Figure 3 It is a channelization diagram of the intersection of Dongshan East Road and the northern section of Huaihe Avenue in an embodiment of the present invention;
[0043] Figure 4 is a current phase timing diagram of an intersection in an embodiment of the present invention;
[0044] Figure 5 Schematic diagram of the operation process of the IAGA algorithm in an embodiment of the present invention;
[0045] Figure 6 It is a fitness change curve diagram for iterative calculation during the evening peak period in an embodiment of the present invention;
[0046] Figure 7 This is a phase timing diagram of the optimization scheme in an embodiment of the present invention. DETAILED DESCRIPTION
[0047] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0048] It should be noted that the steps shown in the flowcharts of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and that, although a logical order is shown in the flowcharts, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0049] like Figure 1-7 As shown, this embodiment provides a single-point intersection traffic signal timing optimization method based on the IAGA algorithm, including:
[0050] S1. Establish a nonlinear multi-objective signal timing optimization model based on optimization objectives and constraints;
[0051] Construction of multi-objective signal timing optimization model:
[0052] The signal timing problem is reframed as a multi-objective planning problem, and a control scheme that meets multiple requirements is developed.
[0053] 1. Average intersection delay model
[0054] Intersection delay analysis is complex and is affected by signal cycle, timing, traffic volume and randomness. Commonly used delay models include the Webster model and the HCM model.
[0055] 1) Webster signal intersection delay calculation model
[0056] The Webster method can minimize vehicle delays. This method uses Monte Carlo simulation to calibrate random delays and average delays simultaneously to obtain a delay formula, as shown in formula (1). The average delay time of each vehicle in the i-th phase is defined as follows:
[0057]
[0058] Where: d i It refers to the average delay time of vehicles entering and exiting the intersection in the i-th phase; g ei is the actual effective green light duration of the i-th phase; C is the entire cycle of the signal light; q ij It refers to the value of the traffic volume actually arriving at the jth entrance at phase i after being converted into standard units; x ij is the traffic saturation flow of the jth entrance lane in phase i.
[0059] The average delay time of vehicles at an intersection within a cycle is shown in formula (2).
[0060] ∑ i d i q i / ∑ i q i (2)
[0061] The Webster delay model effectively describes the relationship between the timing, traffic flow, saturation and vehicle delay at a signalized intersection.
[0062] 2) HCM Delay Model
[0063] The delay calculation formula of the HCM delay model is shown in equations (3) and (4).
[0064] (1) The delay calculation formula when there is no initial vehicle queue is:
[0065]
[0066] (2) When there is an initial vehicle queue, the delay calculation formula is:
[0067]
[0068] When x ij When ≤1.0, When x ij When >1.0, t=T, u=1.
[0069] Where: i is the green-to-signal ratio of the i-th phase; P E is the balanced delay coordination coefficient; T is the duration of intersection delay in the actual survey; e = KI, K is the signal correction coefficient, I is the adjustment coefficient for merging and diverging; Qij is the capacity of the flow direction; d i0 is the initial queue additional delay, caused by the number of vehicles in the initial queue; t is the actual number of vehicles without queue; u is the delay parameter; Q b is the initial surplus vehicles during the analysis period.
[0070] The average delay time of vehicles at an intersection within a cycle is shown in formula (5):
[0071] ∑ i d i q i / ∑ i q i (5)
[0072] The HCM delay model incorporates the latest research and can more accurately assess the average traffic signal delay at each saturation level.
[0073] 2. Average number of stops at intersections model
[0074] Vehicles usually need to stop at intersections when the traffic light turns red, making the number of stops one of the key indicators for measuring the traffic flow efficiency of the intersection. The increase in the total number of stops of vehicles in a signal cycle leads to an increase in the traffic delay time, and is negatively correlated with the traffic saturation of the intersection. The average number of stops at a certain phase of the intersection can be expressed by formula (6).
[0075]
[0076] The average number of vehicle stops at an intersection within a signal cycle is shown in formula (7).
[0077] ∑ j s i q i / ∑ i q i (7)
[0078] In formula (6) and formula (7), g ei is the effective green light duration of the i-th signal phase; C is the total signal cycle duration; x ij is the saturation of the jth inlet channel in the i-th phase; q i is the actual vehicle flow arriving at the intersection in phase i.
[0079] 3. Intersection Capacity Model
[0080] Traffic capacity is an important parameter that characterizes the ability to handle traffic. The calculation method of the traffic capacity of a single lane is shown in formula (8).
[0081]
[0082] In the formula, Qij is the capacity of the jth lane in phase i; S ij is the saturated flow rate of the jth lane in phase i; g i is the effective green light duration of the i-th phase; C is the signal period.
[0083] The intersection capacity Q is the sum of the capacities of individual lanes, as shown in formula (9).
[0084]
[0085] In formula (9), n is the number of phases and m is the number of lanes.
[0086] In the multi-objective control model, multiple evaluation objectives are combined to create an objective function to comprehensively evaluate things. The model takes minimizing the average vehicle delay at the intersection, reducing the number of stops and improving the traffic capacity as the optimization objectives, and uses the effective green light time of the signal phase as the optimization objective variable, that is,
[0087] min f(x,C)=min[D(x,C),S(x,C),1 / Q(x,C)] (10)
[0088] Multiple evaluation indicators are integrated through the idea of weighted normalization to solve the complexity of the problem. The objective function is expressed as shown in (11):
[0089]
[0090] In the formula: k1, k2, k3 are the weight coefficients corresponding to the three evaluation indicators;
[0091] m1, m2, m3 - normalization coefficients corresponding to the three evaluation indicators.
[0092] Constraints:
[0093] A shorter signal cycle may result in insufficient time for pedestrians to cross the road, increasing safety risks. It is necessary to ensure that the minimum duration and cycle length of the green light can meet the needs of pedestrians. If the signal cycle is too long, it will cause a waste of green lights and reduce traffic efficiency. Therefore, an upper limit for the longest cycle should be set. The constraints are:
[0094]
[0095] Where: g e L is the effective green light time of each phase; 总 is the total loss time; C min , C max are the minimum signal total period and the maximum signal total period respectively; t min ,t max They are the minimum green light duration and the maximum green light duration respectively.
[0096] S2. Solve the nonlinear multi-objective signal timing optimization model based on the IAGA algorithm:
[0097] Genetic Algorithm (GA) is an optimization algorithm based on natural principles and natural genetic mechanisms, that is, the principle of natural selection, survival of the fittest and survival of the fittest, that is, in the process of continuous iteration of the population, individuals with strong adaptability are preserved and individuals with poor adaptability are eliminated. In practical engineering applications, it can be expressed as finding the solution that best meets the conditions of the solution to the problem from many possible solutions, that is, finding an optimal solution.
[0098] Genetic algorithms have the following shortcomings:
[0099] 1) Easy to converge prematurely. The basic genetic algorithm uses the roulette wheel selection method for selection, which means that when the fitness of an individual is high, it is more likely to dominate the subsequent selection process, which may cause the population to tend to homogenize in advance, and this homogenization may cause it to fall into the local optimum and fail to reach the best global solution.
[0100] 2) Weak local search capability. Although the basic genetic algorithm has good global search capabilities, it is not good at local search. This limitation often makes the algorithm face the problem of slow convergence or even difficulty in convergence in the later stages of iteration.
[0101] 3) The crossover mutation operator is non-directional.
[0102] The information exchange and mutation of the crossover operator and mutation operator are random, so there is no guarantee that the new individuals generated will have strong adaptability and enter a new round of screening. If individuals with poor adaptability are generated, the evolution of the population will slow down.
[0103] Algorithm Improvements
[0104] The crossover probability and mutation probability of the basic genetic algorithm do not change with the iteration of the population, so this fixed parameter iteration mechanism cannot truly reflect the process of continuous evolution of the population. Therefore, based on the basic genetic algorithm, the crossover probability and mutation probability are improved and the Improved Adaptive Genetic Algorithms (IAGA) is proposed.
[0105] The adaptive genetic algorithm is an optimization of the basic genetic algorithm, which makes up for the deficiency of the traditional algorithm that the crossover and mutation operators are fixed in any problem. However, the adaptive genetic algorithm itself also has certain limitations, that is, when the individual fitness value is large, the mutation probability and crossover probability approach zero, which will cause the population to hardly move forward and eventually fall into the range of the local optimal solution. In view of this limitation, an improved adaptive genetic algorithm is proposed. Its basic principle is: in the early stage of population evolution, through the action of genetic operators, individuals undergo comprehensive evolution to prevent the population from reaching a consistent state too early; in the later stage of evolution, when individuals are close to the optimal solution, individuals conduct local searches near the optimal solution and adjust the search strategy according to the characteristics of the area. In the selection and crossover process, those below the mean are adaptively modified, otherwise the genetic operation is performed at the maximum crossover rate and mutation rate. The improved adaptive genetic algorithm is mainly based on the crossover operator and mutation operator, so the two operators need to be corrected. The correction formula is as follows:
[0106]
[0107]
[0108] In formula (13) and (14): p j represents the crossover probability, p j_max represents the maximum crossover probability, p j_min represents the minimum crossover probability, p b represents the mutation probability, p b_max represents the maximum mutation probability, p b_min represents the minimum mutation probability, it max represents the maximum evolutionary generation, iter represents the current evolutionary generation, f avg represents the average fitness value of individuals in the population, f′ represents the larger fitness value of the two individuals to be crossed, and f represents the fitness value of the individual to be mutated. Set p j_max =0.9, p j_min =0.3, p b_max =0.1, p b_min =0.01.
[0109] When eliminating individuals, the adaptive genetic algorithm replaces the worst individual in each iteration with the best individual. Further improvement can be based on saving the historical optimal of each individual, so as to increase the algorithm's solution speed.
[0110] By improving the crossover, mutation and preservation processes, the crossover and mutation of individuals in the population will not stagnate due to being trapped in the range of local optimal solutions, thereby maximizing the speed of population update iteration and the convergence speed of the algorithm.
[0111] Computational efficiency analysis of IAGA algorithm
[0112] The IAGA algorithm, due to its flexible crossover operator and mutation operator, prevents the objective function from falling into the local optimal solution and can converge to the global optimal solution at an ideal speed.
[0113] In order to verify the performance of GA timing optimization after crossover probability and mutation probability are improved, the improved algorithm is compared with the traditional genetic algorithm in solving multi-objective models. Using MATLAB as the simulation environment, 50, 100, 200, and 500 iterations are tested under the same setting environment. The fitness comparison before and after the improved algorithm is shown in the figure below. Figure 2 .
[0114] The experimental results show that the improved algorithm converges faster than the traditional algorithm, and the fitness value of the traditional genetic algorithm is higher than the improved fitness value based on adaptive crossover probability and mutation probability, which means that the improved genetic algorithm is easier to find the optimal value in the population iteration process.
[0115] The improved adaptive genetic algorithm has the following characteristics based on the basic genetic algorithm:
[0116] (1) Having ideal global and local search capabilities;
[0117] (2) Having ideal convergence and iteration capabilities;
[0118] Therefore, an adaptive method is applied to optimize the parameters of signal timing, which provides a good parameter optimization capability foundation for algorithm construction, thereby achieving the superiority of algorithm control parameters. The present invention solves the nonlinear multi-objective signal timing optimization model by improving the adaptive genetic algorithm, and can obtain accurate model parameters.
[0119] S3. The intersection data to be optimized is input into the solved nonlinear multi-objective signal timing optimization model to obtain a timing optimization solution;
[0120] Embodiment 1
[0121] Example intersection survey and data processing
[0122] The intersection of Dongshan East Road and the northern section of Huaihe Avenue is located at the intersection of Huaihe Avenue, Dongshan Middle Road and Dongshan East Road in Tianjia'an District, Huainan City. The north-south Huaihe Avenue is the main north-south trunk road in Huainan City; Dongshan East Road leads to Datong District in the east, and Dongshan West Road intersects with Quanshan Road in the west, passing by the Huainan Museum. On the other hand, the intersection is located in the core area of the old government affairs of Huainan, surrounded by large shopping malls such as Wuyue Plaza and outdoor pedestrian streets. There are many bus stops nearby, and there are many buses passing by. At the same time, the Chengbei Elevated Road is to the north. This series of factors has caused the daily traffic and passenger flow at the intersection of Dongshan East Road and the northern section of Huaihe Avenue to be particularly large.
[0123] The east entrance of the intersection includes six lanes, including one right-turn lane, four straight lanes and one left-turn lane; the south entrance has four lanes, including one right-turn lane, two straight lanes and one left-turn lane; the west entrance has six lanes, including two right-turn lanes, three straight lanes and one left-turn lane. The north entrance includes five lanes, including one right-turn lane, one right-turn and straight mixed lane, one straight-through lane, one left-turn and straight mixed lane and one left-turn lane. The channelization diagram of the intersection of Dongshan East Road and the northern section of Huaihe Avenue is as follows Figure 3 shown.
[0124] When collecting data, we observed and recorded the morning and evening peak traffic at urban intersections and made statistics, which served as the basis for analysis. The study selected representative urban intersections, and after understanding their current service levels, developed a plan to optimize traffic signal timing. The selection criteria for intersections are as follows:
[0125] 1) Choose an intersection controlled by traffic lights with a flat road surface and symmetrical layout;
[0126] 2) Choose intersections with relatively large traffic volumes and prone to congestion during peak hours. These intersections are usually key nodes in and out of the city or important transportation hubs;
[0127] 3) Based on the actual traffic survey data, select representative traffic volume distribution, including traffic volume in different time periods and directions;
[0128] 4) Select a representative intersection so that the simulation results can be extended to other similar intersections.
[0129] The present invention measures the actual traffic at the intersection of Dongshan East Road and the northern section of Huaihe Avenue. This intersection is a crossroads consisting of four entrance lanes. Each entrance lane is equipped with an investigator to observe the traffic flow of each entrance lane. The traffic volume of motor vehicles turning right, going straight and turning left is recorded separately, and the records are divided into vehicle types. The traffic flow survey time period is the morning rush hour (7:30-8:30) on weekdays.
[0130] 1. Basic data processing
[0131] 1) Road traffic volume
[0132] The traffic volume conversion takes small passenger cars as the standard model, and the conversion coefficient specified in Table 1 shall prevail. The traffic volume to be surveyed is converted into a standard equivalent car according to the vehicle conversion coefficient specified in the "Urban Road Engineering Design Code" (CJJ37-2012), and the traffic volume at the intersection of Dongshan East Road and Huaihe Avenue North Section is obtained. The peak hour traffic volume is shown in Table 2.
[0133] Table 1 Vehicle type conversion coefficient
[0134]
[0135] Table 2 Traffic flow at the morning peak hour at the intersection of Dongshan East Road and the northern section of Huaihe Avenue
[0136]
[0137] 2) Traffic signal timing
[0138] The current signal control method of the intersection adopts timing cycle control, with a total signal cycle of 176s, a green signal ratio of 0.93, and a total of four phases. The current phase timing table of the intersection is shown in Table 3, and the current phase timing diagram is shown in Figure 4 As shown, right-turning vehicles at the intersection are not controlled by the signal lights.
[0139] Table 3 Current phase timing table
[0140]
[0141] 2. Objective function program writing
[0142] With the optimization goals of reducing the average delay per vehicle, reducing the number of stops, and improving the traffic capacity of the intersection, the effective green light time in the signal phase is adjusted as a variable for multi-objective optimization, namely:
[0143]
[0144] Constraints:
[0145]
[0146] Generally, the signal cycle of the intersection is set between 30 and 300 seconds. In particular, taking the example intersection as an example, when implementing the second crossing, the green light time for pedestrians in the north-south and east-west directions is between 20 and 80 seconds. Therefore, the green light time range for straight driving is also set to 20 to 80 seconds. During peak hours, the green light time of the signal overlap phase is set to 3 to 80 seconds; the duration of other signal phases is between 0 and 80 seconds. The steps for writing the objective function program for the example intersection are as follows:
[0147] 1. Define optimization variables and clarify analysis objects
[0148] Determine the function name and optimize the variable g e ,According to the specific conditions of the intersection, the effective green time is taken as a variable, including the peak period (four signal phases).
[0149] 2. Set up the entry channel and delay matrix
[0150] The entrance lane delay d(i,j) is represented by a 4×2 matrix, where each entrance lane includes straight and left turns; the total intersection delay D is presented by a 1×4 matrix.
[0151] 3. Determine the time of loss
[0152] The loss time is determined based on actual survey data, and the signal cycle length is defined accordingly.
[0153] 4. Enter traffic flow
[0154] The one-hour peak traffic flow is calculated based on actual data and represented as a 4×2 matrix:
[0155] q=([1032 360; 1020 288; 1380 420; 720 300])';
[0156] 5. Calculate lane delays
[0157] According to the lane delay analysis formula, the lane delay is calculated under the signal cycle constraint to obtain a 4×6 matrix.
[0158] 6. Calculate the delay of the import channel Based on the fourth step, calculate the delay of each import channel by weight to form a 1×4 matrix.
[0159] 7. Calculate average delay
[0160] According to the limitation of signal cycle, the delay of each lane was calculated using the preset lane delay analysis formula, and then the delay of each entrance was calculated by weighted method, and finally the average delay of the intersection in this example was obtained.
[0161] After completing the above steps, you can write and improve the program file.
[0162] Algorithm optimization
[0163] 1. Algorithm program implementation
[0164] By optimizing the multi-objective signal timing, the average delay at the intersection can be reduced, the number of stops can be reduced, and the traffic efficiency can be enhanced. The model uses the duration of green lights in each direction as the optimization variable and has nonlinear characteristics. The objective function and constraints are relatively complex, and traditional algorithms are difficult to cope with their complexity. Modern algorithms such as simulated annealing, genetic algorithms, ant colonies, and particle swarm algorithms have been successfully applied to solve similar problems. In particular, genetic algorithms are very suitable for handling such complex optimization problems due to their excellent global exploration capabilities and robustness. The further improved IAGA algorithm effectively solves the premature problem of genetic algorithms and improves the convergence speed. The present invention uses the improved genetic algorithm IAGA to solve the established multi-objective signal timing optimization model.
[0165] This embodiment uses the IAGA algorithm to optimize signal timing parameters, selects an improved selection operator to ensure global optimal convergence, and adds adaptive crossover and mutation rate. Figure 5 .
[0166] Use MATLAB to write an algorithm program. The basic steps are:
[0167] 1) Determine the encoding scheme for real numbers. The encoding length is the same as the number of variables;
[0168] 2) Constructing the fitness function: Taking the green light duration as the variable, the goal is to reduce the average delay, reduce the number of stops and improve the traffic efficiency. The fitness function is formed through weighting and normalization methods;
[0169] 3) Strategies for selecting the IAGA algorithm, covering selection methods, crossover, and mutation processes;
[0170] (1) Fitness function
[0171] The optimization target is the average delay per vehicle at the intersection, the number of stops, and the traffic capacity. The traffic capacity is treated as an inverse, and the smaller the function value, the greater the fitness value, and the better the individual. That is:
[0172] min f(x,C)=min[D(x,C),S(x,C),1 / Q(x,C)] (21)
[0173] Therefore, the key to completing the calculation of the fitness value is to complete the program expression of the objective function. Since the lane channelization and signal timing of different intersections are different, a certain intersection in Huainan City will be taken as an example to illustrate the idea of optimizing the objective function program.
[0174] (2) Select an operation
[0175] According to the roulette method, the selection operation will select individuals with good fitness from the initial population to form a new population, preparing for the next operation.
[0176] (3) Crossover operation
[0177] The crossover operation uses the real number crossover method to randomly select two individuals from the population and obtain new individuals according to the adaptive crossover probability.
[0178] (4) Mutation Operation
[0179] The mutation operation uses the real crossover method to obtain new individuals according to the adaptive mutation probability.
[0180] (5) Main function of the algorithm
[0181] Write the main algorithm program, set the parameters, and use the program to implement the IAGA optimization process. Parameter setting should be based on the actual analysis of the target object to ensure that the parameter range is reasonably selected to ensure the effectiveness of the algorithm.
[0182] Therefore, based on the complete genetic operator and fitness function, the population is randomly initialized; the fitness value of the population is calculated to find the optimal individual; selection operation; crossover operation; mutation operation; determine whether the evolution is over, if not, return to the second step.
[0183] Finally, put the objective function, the genetic algorithm operation (selection, crossover, mutation) files and the main program file into a folder, and then run the main program. In this way, you can set the parameters and solve them one by one, and display the optimization results of the signal timing. If necessary, you can also modify the variable values, such as entering the real green light time and calculating the current delay. By comparing the delays before and after optimization, you can see the effect of the optimization.
[0184] Timing optimization results
[0185] After writing the fitness function and genetic operations in the IAGA algorithm, the main parameters of the algorithm were set: population size 100, number of iterations 200, crossover rate 0.3-0.9, mutation rate 0.01-0.1, and the algorithm optimization process was carried out after optimizing the variables.
[0186] Optimize signal timing, keep signal phase and order unchanged, reduce average delay and number of stops, and improve traffic efficiency. After iterating through the IAGA algorithm, Figure 6 The fitness curve changes during the evening peak period are shown in Table 4. The phase timing diagram is shown in Figure 7 It can be seen from the data that by applying the solution of the present invention, the signal cycle during the morning peak period is reduced by 68s and the average delay is reduced by 32.55%.
[0187] Table 4 Optimized timing scheme based on IAGA
[0188]
[0189] The above is only a preferred specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions that can be easily thought of by a person skilled in the art within the technical scope disclosed in the present application should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A single-point intersection traffic signal timing optimization method based on IAGA algorithm, characterized in that: The following steps are involved: S1. Establish a nonlinear multi-objective signal timing optimization model based on optimization objectives and constraints; S2. Solving the nonlinear multi-objective signal timing optimization model based on the IAGA algorithm; S3. Inputting the intersection data to be optimized into the solved nonlinear multi-objective signal timing optimization model to obtain a timing optimization solution.
2. The single-point intersection traffic signal timing optimization method based on the IAGA algorithm according to claim 1 is characterized in that: The optimization objectives are: minimizing the average delay time, minimizing the average number of stops, and maximizing the traffic capacity.
3. The single-point intersection traffic signal timing optimization method based on the IAGA algorithm according to claim 2 is characterized in that: The calculation model of the average delay time is: D=∑ i d i q i / ∑ i q i Where D is the average delay time of vehicles at the intersection in one cycle, d i It is the delay time when there is no initial vehicle queue; The calculation model of the average number of parking times is: S=∑ j s i q i / ∑ i q i Where S is the average number of vehicle stops at the intersection within a signal cycle, g ei is the effective green light duration of the i-th signal phase; C is the total signal cycle duration; x ij is the saturation of the jth inlet channel in the i-th phase; q i is the actual vehicle flow arriving at the intersection in phase i; The calculation model of the traffic capacity is: Where Q is the intersection capacity, S ij is the saturated flow rate of the jth lane in phase i, g i is the effective green light duration of the i-th phase, C is the signal cycle, n is the number of phases, and m is the number of lanes.
4. The single-point intersection traffic signal timing optimization method based on the IAGA algorithm according to claim 1 is characterized in that: The constraint conditions include the green light time of each phase, the total signal cycle time, and the loss time.
5. The single-point intersection traffic signal timing optimization method based on the IAGA algorithm according to claim 4 is characterized in that: The constraint condition is expressed as: Among them, g e is the effective green light time of each phase, L 总 is the total loss time, C min , C max are the minimum signal total period and the maximum signal total period, respectively, t min ,t max They are the minimum green light duration and the maximum green light duration respectively.
6. The single-point intersection traffic signal timing optimization method based on the IAGA algorithm according to claim 1 is characterized in that: The nonlinear multi-objective signal timing optimization model is specifically: Among them, x is the effective green light time of the signal phase, k1, k2, k3 are the weight coefficients corresponding to the average delay time, average number of stops, and traffic capacity, respectively, and m1, m2, m3 are the normalization coefficients corresponding to the average delay time, average number of stops, and traffic capacity, respectively.
7. The single-point intersection traffic signal timing optimization method based on the IAGA algorithm according to claim 1 is characterized in that: The IAGA algorithm is an improved algorithm based on the genetic algorithm, and the improvement process is: The crossover operator and mutation operator are modified, and the correction formula is as follows: Among them, p j represents the crossover probability, p j_max represents the maximum crossover probability, p j_min represents the minimum crossover probability, p b represents the mutation probability, p b_max represents the maximum mutation probability, p b_min represents the minimum mutation probability, it max represents the maximum evolutionary generation, iter represents the current evolutionary generation, f avg represents the average fitness value of individuals in the population, f′ represents the larger fitness value of the two individuals to be crossed, and f represents the fitness value of the individual to be mutated; set p j_max =0.9, p j_min =0.3, p b_max =0.1, p b_min =0.
01.
8. The present invention also provides an electronic device, comprising a memory and a processor, wherein the memory is used to store a computer program, and the processor runs the computer program to enable the electronic device to execute the single-point intersection traffic signal timing optimization method according to any one of claims 1-7.
9. The present invention further provides a computer-readable storage medium storing a computer program, wherein the computer program, when executed by a processor, implements the single-point intersection traffic signal timing optimization method as described in any one of claims 1 to 7.
Citation Information
Cited By
Traffic planning method
CN119339563A
Trunk traffic coordination control method and system
CN119942815A
A method and system for coordinated control of arterial roads
CN119942815B
