A route planning method for urban garbage collection

Through multiple group division and path reorganization crossover operators, combined with environmental selection strategies, the problem of garbage collection route planning under the uncertainty of garbage volume is solved, and the complete transportation of garbage at garbage sites and the balance of robustness and efficiency of route planning are achieved. .

CN114118600BActive Publication Date: 2024-10-25ANHUI UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111457640.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-02
Publication Date
2024-10-25
Estimated Expiration
2041-12-02

AI Technical Summary

Technical Problem

Existing urban garbage collection route planning methods are difficult to ensure complete cleaning of garbage collection points when the amount of garbage is uncertain, resulting in air pollution and impact on life, and are prone to falling into local optimal solutions and have slow convergence speeds.

Method used

Multiple population division strategies and path reorganization crossover operators are used, combined with environmental selection strategies, to maintain population diversity, avoid premature phenomena, balance the robustness and convergence of the route planning scheme, and ensure the complete transportation of garbage at garbage sites.

Benefits of technology

It effectively avoids premature convergence of a single population, maintains diversity, ensures complete transportation of garbage at garbage sites in various scenarios, reduces the total transportation distance, and ensures the robustness and efficiency of route planning.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114118600B_ABST
    Figure CN114118600B_ABST
Patent Text Reader

Abstract

The present invention discloses a route planning method for urban garbage collection, which is applied to an urban garbage collection environment composed of a garbage disposal site, K garbage trucks and L garbage stations, and includes: 1. randomly generating an initial population and evaluating all individuals; 2. performing multiple population divisions according to the grouping similarity of garbage collection points; 3. performing interactive operations between subpopulations; 4. performing crossover and mutation operations on the subpopulations after interaction to generate temporary offspring; 5. comparing the subpopulations after interaction and the temporary offspring according to the environmental selection strategy to obtain the next generation population, and selecting the leader of each subpopulation; 6. outputting the final population if the termination condition is met; otherwise returning to step 3 for execution; 7. sorting all individuals of the final population in descending order according to the evaluation value, and selecting the route planning scheme with the minimum evaluation value. The present invention can weigh the optimality and robustness of the route planning scheme, so as to obtain a route planning scheme that adapts to various scenarios.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the field of vehicle path planning problems, and in particular is a route planning method for urban garbage collection. Background Art

[0002] The transportation link of urban garbage collection is an important link in the garbage disposal system. Choosing a reasonable garbage collection route can reduce the transportation distance and time and reduce fuel consumption.

[0003] The route planning methods for urban garbage collection can be mainly divided into two categories: exact algorithms and meta-heuristic algorithms. Exact algorithms include: branch and bound method, integer linear programming method and dynamic programming method. These exact methods are only applicable to small-scale route planning problems, because applying exact algorithms to large-scale route planning problems is very time-consuming, and exact algorithms cannot find the optimal solution to the problem within a reasonable time. Meta-heuristic algorithms include ant colony algorithm, particle swarm algorithm and genetic algorithm. The ant colony algorithm is inspired by the behavior of ants searching for food in nature. It uses a positive feedback mechanism to continuously search in the target space and gradually approach the optimal solution. However, the ant colony algorithm converges slowly and requires a long search time to obtain the optimal solution. When pheromones are scarce in the population, it is easy to fall into the local optimum. The idea of ​​the particle swarm algorithm originated from the study of the predation behavior of bird flocks and fish schools. It uses the information sharing function of individuals in the group to obtain the optimal solution of the problem. However, the particle swarm algorithm is prone to premature phenomenon and falls into the local optimum. The genetic algorithm is a search heuristic algorithm that imitates the natural selection process. It uses natural evolution techniques such as inheritance, mutation, selection and crossover to generate solutions to the problem to be optimized. Traditional genetic algorithms have good global optimization capabilities, but they also have disadvantages such as low search efficiency and slow convergence speed.

[0004] The existing urban garbage collection route planning problem assumes that the amount of garbage at the garbage collection point is known before route planning. However, in actual applications, the amount of garbage at each garbage collection point changes every day, and the specific amount of garbage at the collection point can only be known when the garbage truck visits the specific garbage collection point. In the case of uncertain garbage volume, the solutions obtained by the previous methods for solving the urban garbage collection route planning problem will result in incomplete cleaning of garbage collection points in some scenarios, which will cause air pollution and affect the lives of citizens. Summary of the invention

[0005] The present invention aims to solve the deficiencies of the above-mentioned prior art and proposes a route planning method for urban garbage collection, so as to maintain the diversity of the population, balance the optimality and robustness of the route planning scheme, thereby avoiding the occurrence of premature phenomenon, and obtain a route planning scheme that is suitable for a variety of scenarios, and the scheme has good performance in a variety of scenarios.

[0006] In order to achieve the above-mentioned purpose, the present invention adopts the following technical scheme:

[0007] The route planning method for urban garbage collection of the present invention is characterized in that it is applied to a garbage disposal site Gar, K garbage transport vehicles and L garbage sites V = {Cus1, Cus2, ..., Cus i ...,Cus L} in the urban waste collection environment, among which Cus i represents the i-th garbage station, i∈[1,L]; let the i-th garbage station Cus i and the jth spam site Cus j The route between them is recorded as (i, j), and the distance length of the route (i, j) is recorded as c ij ;

[0008] Define the garbage collection scene as Scene = {sc1, sc2, ..., sc p ,...,sc P}, sc p represents the pth scene, p∈[1,P]; P represents the total number of scenes;

[0009] use Indicates the i-th garbage site Cus i In the pth scenario, sc p The amount of garbage Indicates the i-th garbage site Cus i The average amount of garbage in P scenes;

[0010] Let the maximum load of each garbage truck be Q;

[0011] The route planning method is performed according to the following steps:

[0012] Step 1: Randomly generate an initial population and evaluate all individuals in the population;

[0013] Let the population have NP individuals, define the serial number of the current individual in the initial population as num, and let the numth individual π num Represents K num The route planning scheme for K garbage trucks to visit L garbage sites; and num ≤K;

[0014] Step 1.1, and initialize num=1;

[0015] Step 1.2: Randomly generate the numth individual π num , and the individual π num Put into the population;

[0016] Step 1.2.1, initialize the set of unvisited junk sites I = {Cus1, Cus2, ..., Cus i ...,Cus L};

[0017] Step 1.2.2: Define the serial number of the current vehicle as k, initialize k=1, and define the path plan of the kth vehicle as R k , and initialize π num = {R k};

[0018] Step 1.2.3. Initialize R k ={Gar};

[0019] Step 1.2.4: Randomly select a spam site Cus in set I i , determine the path plan R to the kth vehicle k Insert spam site Cus i After that, whether it exceeds the maximum loading capacity Q of the vehicle; if not, the garbage station Cus i Add path scheme R k , as the next garbage site visited by the kth vehicle; if it exceeds, then π num ∪{R k}Assign the value to π num , assign k+1 to k, and reinitialize R k = {Gar}, and the spam site Cus i Add path scheme R k , as the first garbage site visited by the k-th vehicle;

[0020] 1.2.5. Cusing spam sites i After deleting from set I, determine whether set I is empty. If it is empty, output the numth individual π num , otherwise, repeat steps 1.2.4 in sequence;

[0021] Step 1.3: Use formula (1) to calculate the numth individual π num Evaluate and obtain the evaluation value f1(π num ):

[0022]

[0023] Step 1.4, after assigning num+1 to num, determine whether num>NP is true. If so, it means that the initial population is obtained; otherwise, return to step 1.2 and execute sequentially;

[0024] Step 2: Perform multi-population division based on the grouping similarity of garbage collection points, and divide the initial population into N small populations, each of which has M individuals; M×N=NP;

[0025] Step 2.1, define variable n, and initialize n=1;

[0026] Step 2.2: Sort all individuals in the population in ascending order according to their evaluation values, and select the individual with the smallest evaluation value as the leader individual π of the current nth small population. leader,n ;

[0027] Step 2.3: Use formula (2) to calculate the remaining res individuals π in the initial population res,n With the nth leader individual π leader,n The similarity NMI(π leader,n ,π res,n ), thus obtaining all remaining individuals in the initial population and the nth leader individual π leader,n Similarity:

[0028]

[0029] In formula (2), and The individual π leader,n and individual π res,n The number of garbage trucks used; C is a confusion matrix, C ab is the nth leader individual π leader,n The ath vehicle and individual π res,n The number of garbage collection points that the b-th vehicles pass through together; C a . is the sum of the elements in the ath row of the confusion matrix, C .b The sum of the elements in the bth column of the confusion matrix;

[0030] Step 2.4: Combine all remaining individuals in the initial population with the nth leader individual π leader,n The similarity is sorted in descending order, and the first M-1 individuals and the nth leader individual π are selected leader,n Form the nth small population and delete all individuals in the nth small population from the initial population;

[0031] Step 2.5, after assigning n+1 to n, determine whether n>N is true. If so, it means that N small populations are obtained, and each small population has M individuals; otherwise, return to step 2.2 and execute sequentially;

[0032] Step 3: Define the current number of iterations as gen, and initialize gen=1; let N small populations be sub-populations of the gen generation population, and perform interaction operations between sub-populations:

[0033] Step 3.1: The leader individuals in the sub-populations of the gen generation population form the leader set POOL gen ;

[0034] Step 3.2: Randomly select the leader set POOL gen An individual π leader,n , and use formula (2) to calculate individual π leader,n POOL with leadership collection gen Similarity to other individuals in

[0035] Step 3.3, select the individual π leader,n The individual with the highest similarity π sim,gen ;

[0036] Step 3.4: For individual π leader,n and individual π sim,gen For comparison: If individual π leader,n The evaluation value is less than that of individual π sim,gen The evaluation value of sim,gen Add individual π to the subpopulation leader,n On the contrary, to individual π leader,n Add individual π to the subpopulation sim,gen ;

[0037] Step 3.5: Set POOL in the leader group gen Delete individual π sim,gen and π leder,gen ;

[0038] Step 3.6: Return to step 3.2 and execute sequentially until the leader set POOL gen until there are no individuals in the population, thus obtaining N small populations after interaction and forming the sub-population after interaction of the gen generation population;

[0039] Step 4: Perform crossover and mutation operations on the sub-populations after the interaction of the gen generation population to generate temporary offspring of the gen generation population;

[0040] Step 4.1, initialize n = 1, let Parent n,gen Represents the nth subpopulation after interaction in the genth generation population;

[0041] Step 4.2: Based on the nth subpopulation after interaction, apply the binary tournament selection method to generate a mating pool M of size M n,gen ;

[0042] Step 4.2.1. Initialize MatingPool n,gen ={};

[0043] Step 4.2.2, from the nth subpopulation Parent n,gen Randomly select two individuals from the mating pool, compare the evaluation values ​​of the two individuals, and select the individual with the smaller evaluation value to store in the mating pool MatingPool n,gen ;

[0044] Step 4.2.3, repeat step 4.2.2 until the mating pool is MatingPool n,gen Until the scale reaches M;

[0045] Step 4.3, define the number of crossover mutations as q, and initialize q = 1, let Child n,gen Represents the nth subpopulation Parent after interaction n,gen The child of and initialize Child n,gen ={};

[0046] Step 4.4, in the mating pool MatingPool n,gen Select two individuals and As the parent, Represents individual π 2q-1 K 2q-1 The route planning scheme for the garbage sites visited by the garbage trucks, Represents individual π 2q K 2q The route planning scheme for the garbage sites visited by the garbage trucks uses the recombination crossover operator to generate two children:

[0047] Step 4.4.1, generate a random value p1, if p1>p c , then π 2q-1 Assign to new individuals π 2q Assign to new individuals Otherwise, execute step 4.4.2; where p c is the set threshold, and p1∈[0,1], p c ∈[0,1];

[0048] Step 4.4.2: Randomly select individual π 2q-1 A route planning solution

[0049] Step 4.4.3. From individual π 2q Delete route planner All the spam sites visited in the process, thus obtaining the temporary individual π2′ q ;

[0050] Step 4.4.4: Route planning plan Add temporary individual π2′ q In order to obtain new individuals

[0051] Step 4.4.5: Obtain a new individual according to the process of steps 4.4.2 to 4.4.4

[0052] Step 4.5: For new individuals Individuals and new individuals Perform mutation operations;

[0053] Generate a random value p2, if p2>p c ′, then directly convert the new individual and Put it into the child collection Child n,gen Otherwise, use the mutation operator to modify the new individual and Improve and put the improved individuals into the child set Child n,gen ; Among them, p c ′ is the set threshold, and p2∈[0,1], p c ′∈[0,1];

[0054] Step 4.6: Determine whether the stop condition is met If satisfied, it means that the nth subpopulation Parent after interaction is obtained n,gen The child collection Child n,gen , otherwise, assign q+1 to q and return to step 4.4 to execute sequentially;

[0055] Step 4.7, after assigning n+1 to n, determine whether n>N is true. If so, it means that temporary offspring of N subpopulations of the gen generation are obtained; otherwise, return to step 4.2 and execute sequentially;

[0056] Step 5: Compare the N subpopulations of the gen generation and their temporary offspring according to the environmental selection strategy to obtain the N subpopulations of the gen+1 generation, and update the leader of each subpopulation of the gen+1 generation;

[0057] Step 5.1, initialize n=1;

[0058] Step 5.2: Define and initialize the nth new subpopulation NewParent n,gen ={};

[0059] Step 5.3: For the nth subpopulation Parent after interaction in the genth generation population n,gen The individuals in the gen-th generation and the n-th subpopulation Child in the temporary offspring of the gen-th generation population n,genIndividuals perform environmental selection operations:

[0060] Step 5.3.1, define variables and initialize t = 1; let Represents the nth subpopulation Parent n,gen The tth individual in ; Represents the nth child set Child n,gen The tth individual of ;

[0061] Step 5.3.2: Calculate the tth individual and The robust level of; if the robust level is zero, it means that the corresponding individual is a feasible solution;

[0062] Step 5.3.3: If is a feasible solution and is not a feasible solution, then the tth individual Add the nth new subpopulation NewParent n,gen ;

[0063] if is a feasible solution and is not a feasible solution, then Add the nth new subpopulation NewParent n,gen ;

[0064] if and If none of them is a feasible solution, the individuals with higher robustness level will be placed into the nth new subpopulation NewParent n,gen ;

[0065] if and The robustness level of is the same, then the individuals with smaller evaluation values ​​are placed in the nth new subpopulation NewParent n,gen ;

[0066] Step 5.3.4: Select the nth new subpopulation NewParent n,gen The individual with the smallest evaluation value is the leader;

[0067] Step 5.3.5, assign t+1 to t, and determine whether t>M is true. If true, it means that the nth new subpopulation NewParent is obtained. n , otherwise, return to step 5.3.2 and execute sequentially;

[0068] Step 5.4, after assigning n+1 to n, determine whether n>N is true. If so, it means that N new sub-populations are obtained and form the gen+1 generation population. Otherwise, return to step 5.2 and execute sequentially;

[0069] Step 6: After assigning gen+1 to gen, determine whether gen has reached the maximum number of iterations gen max If so, stop the iteration and get the gen max NP route planning solutions for the generation population, otherwise, return to step 3.1 and execute sequentially;

[0070] Step 7: For the gen max The NP route planning schemes of the generation population are sorted in descending order according to the evaluation value, and the route planning scheme with the smallest evaluation value is selected as the final scheme output.

[0071] The present invention is also characterized in that the route planning method for urban garbage collection is obtained by using formula (3):

[0072]

[0073] In formula (3), V k Represents the set of garbage sites served by the k-th vehicle.

[0074] Compared with the prior art, the present invention has the following beneficial effects:

[0075] 1. The present invention applies a multi-population division strategy, which can effectively avoid the phenomenon of premature convergence that may occur in a single population, maintain the diversity of the population, and allow the algorithm to search for a route planning scheme for urban garbage collection with a better evaluation value. Specifically, the strategy divides the population by the similarity of garbage station grouping, and divides garbage stations with similar robustness into the same sub-population, keeping the robustness level within the sub-population similar. In addition, the interaction between sub-populations proposed by the present invention can maintain the diversity within the sub-population and prevent the sub-population from falling into a local optimum.

[0076] 2. The present invention proposes a crossover operator based on path recombination, the purpose of which is to retain local robust genes during the evolution process, so that the algorithm can search for a route planning solution for urban garbage collection with a better robustness level, which can transport all garbage from garbage stations to garbage disposal sites in various scenarios. Specifically, the operator considers the robustness of the solution and applies a roulette strategy to retain sub-paths with a higher robustness level in the solution, thereby retaining local robust genes.

[0077] 3. The present invention proposes a new environment selection strategy to balance the robustness and convergence of the route planning scheme for urban garbage collection. Specifically, the strategy uses three comparison strategies to compare the parent and child generations from the two perspectives of robustness level and objective function convergence, allowing the population to prioritize solutions with high robustness level and good convergence, thereby achieving the effect of balancing robustness and convergence, so that the final route planning scheme for urban garbage collection can ensure that the total transportation distance is short and that the urban garbage collection task can be completed in a variety of scenarios. BRIEF DESCRIPTION OF THE DRAWINGS

[0078] Figure 1 It is the algorithm flow chart of the present invention;

[0079] Figure 2 This is an example diagram of multiple population divisions of the present invention;

[0080] Figure 3 This is an example diagram of the recombination crossover operator of the present invention. DETAILED DESCRIPTION

[0081] In this embodiment, a route planning method for urban garbage collection is designed to solve the problem of urban garbage collection route planning when the amount of garbage at the garbage station is uncertain, and by applying a multi-population division strategy, it effectively avoids the phenomenon of premature maturity that may occur in a single population and maintains the diversity of the population. In addition, this method draws on the constraint processing method to propose an environmental selection strategy that can balance convergence and robustness, improve the robustness of the optimal solution, and thus obtain a robust optimal solution that performs well in a variety of scenarios; specifically, the route planning method is applied to a garbage disposal site Gar, K garbage trucks and L garbage stations V = {Cus1, Cus2, ..., Cus i ...,Cus L} in the urban waste collection environment, among which Cus i represents the i-th garbage station, i∈[1,L]; let the i-th garbage station Cus i and the jth spam site Cus j The route between them is recorded as (i, j), and the distance length of the route (i, j) is recorded as c ij ;

[0082] Define the garbage collection scene as Scene = {sc1, sc2, ..., sc p ,...,sc P}, sc p represents the pth scene, p∈[1,P]; P represents the total number of scenes;

[0083] use Indicates the i-th garbage site Cusi In the pth scenario, sc p The amount of garbage Indicates the i-th garbage site Cus i The average amount of garbage in P scenes;

[0084] Let the maximum load of each garbage truck be Q;

[0085] like Figure 1 As shown, the route planning method is performed in the following steps:

[0086] Step 1: Randomly generate an initial population and evaluate all individuals in the population;

[0087] Let the population have NP individuals, define the serial number of the current individual in the initial population as num, and let the numth individual π num Represents K num The route planning scheme for K garbage trucks to visit L garbage sites; and num ≤K;

[0088] Step 1.1, and initialize num=1;

[0089] Step 1.2: Randomly generate the numth individual π num , and the individual π num Put into the population;

[0090] Step 1.2.1, initialize the set of unvisited junk sites I = {Cus1, Cus2, ..., Cus i ...,Cus L};

[0091] Step 1.2.2: Define the serial number of the current vehicle as k, initialize k=1, and define the path plan of the kth vehicle as R k , and initialize π num = {R k};

[0092] Step 1.2.3. Initialize R k ={Gar};

[0093] Step 1.2.4: Randomly select a spam site Cus in set I i , determine the path plan R to the kth vehicle k Insert spam site Cus i After that, whether it exceeds the maximum loading capacity Q of the vehicle; if not, the garbage station Cus i Add path plan R k , as the next garbage site visited by the kth vehicle; if it exceeds, then π num∪{R k}Assign the value to π num , assign k+1 to k, and reinitialize R k = {Gar}, and the spam site Cus i Add path scheme R k , as the first garbage site visited by the k-th vehicle;

[0094] 1.2.5. Cusing spam sites i After deleting from set I, determine whether set I is empty. If it is empty, output the numth individual π num , otherwise, repeat steps 1.2.4 in sequence;

[0095] Step 1.3: Use formula (1) to calculate the numth individual π num Evaluate and obtain the evaluation value f1(π num ):

[0096]

[0097] Step 1.4, after assigning num+1 to num, determine whether num>NP is true. If so, it means that the initial population is obtained; otherwise, return to step 1.2 and execute sequentially;

[0098] like Figure 2 As shown in the figure, 6 individuals are randomly generated in the initial population, each of which represents a route planning scheme for urban garbage collection consisting of 1 garbage disposal site, 10 garbage stations and 3 vehicles. The target values ​​of the 6 individuals are also shown in the figure.

[0099] Step 2: Perform multi-population division based on the grouping similarity of garbage collection points, and divide the initial population into N small populations, each of which has M individuals; M×N=NP;

[0100] The pressure of environmental selection makes the population tend to evolve towards a small part of the search space, destroying the diversity of the population and causing the population to converge prematurely. In order to avoid this premature phenomenon, this paper proposes a multi-population partitioning strategy. Under the same robustness level, this strategy can search in multiple areas of the target space, maintain the diversity of the population, and enable the population to search for better solutions.

[0101] like Figure 2 As shown in the figure, there are 6 individuals in the population. The multi-population partitioning strategy divides the population into two sub-populations, each with three individuals. The evaluation value and robustness value of each individual are shown in the figure. The specific multi-population partitioning process is as follows:

[0102] Step 2.1, define variable n, and initialize n=1;

[0103] Step 2.2: Sort all individuals in the population in ascending order according to their evaluation values, and select the individual with the smallest evaluation value as the leader individual π of the current nth small population. leader,n The purpose of selecting the leader of a small population by "minimum evaluation value" is to use the convergence advantage of the leader individual to guide the evolutionary direction of the entire small population. Figure 2 As shown, in the first round of population division, the individual with the smallest evaluation value among all 6 individuals is individual number 3, so individual number 3 is selected as the leader of the current population.

[0104] Step 2.3: Use formula (2) to calculate the remaining res individuals π in the initial population res,n With the nth leader individual π leader,n The similarity NMI(π leader,n ,π res,n ), thus obtaining all remaining individuals in the initial population and the nth leader individual π leader,n Similarity:

[0105]

[0106] In formula (2), and The individual π leader,n and individual π res,n The number of garbage trucks used; C is a confusion matrix, C ab is the nth leader individual π leader,n The ath vehicle and individual π res,n The number of garbage collection points that the b-th vehicles pass through together; C a. is the sum of the elements in the ath row of the confusion matrix, C .b The sum of the elements in the bth column of the confusion matrix. In the route planning problem of urban garbage collection with uncertain garbage volume, since the robustness of the solution is only related to the grouping of garbage collection points, but not to the specific visit order of garbage collection points within the group, the similarity index can be used to group individuals with similar robustness into the same subpopulation.

[0107] Step 2.4: Combine all remaining individuals in the initial population with the nth leader individual π leader,n The similarity is sorted in descending order, and the first M-1 individuals and the nth leader individual π are selected leader,n Form the nth small population and delete all individuals in the nth small population from the initial population;

[0108] like Figure 2As shown in the figure, in the first round of population division, the similarity between the leading individual No. 3 and the other five individuals is shown in the figure. The individuals with the highest similarity to No. 3 are No. 2 and No. 5, so No. 2, No. 5 and the leading individual No. 3 are divided into the same sub-population. By checking the robustness values ​​of No. 2, No. 3 and No. 5, it can be found that the robustness values ​​of these three individuals are very similar, which can effectively prove the correctness of the view proposed by the present invention that "the robustness of the solution is only related to the grouping of garbage collection points, but not to the specific access order of garbage collection points in the grouping".

[0109] Step 2.5, after assigning n+1 to n, determine whether n>N is true. If so, it means that N small populations are obtained, and each small population has M individuals; otherwise, return to step 2.2 and execute sequentially;

[0110] Step 3: Define the current number of iterations as gen, and initialize gen=1; let N small populations be sub-populations of the gen generation population, and perform interaction operations between sub-populations:

[0111] Step 3.1: The leader individuals in the sub-populations of the gen generation population form the leader set POOL gen ;

[0112] Step 3.2: Randomly select the leader set POOL gen An individual π leader,n , and use formula (2) to calculate individual π leader,n POOL with leadership collection gen Similarity to other individuals in

[0113] Step 3.3, select the individual π leader,n The individual with the highest similarity π sim,gen ;

[0114] Step 3.4: For individual π leader,n and individual π sim,gen For comparison: If individual π leader,n The evaluation value is less than that of individual π sim,gen The evaluation value of sim,gen Add individual π to the subpopulation leader,n On the contrary, to individual π leader,n Add individual π to the subpopulation sim,gen ;

[0115] Step 3.5: Set POOL in the leader group gen Delete individual π sim,gen and π leder,gen ;

[0116] Step 3.6: Return to step 3.2 and execute sequentially until the leader set POOLgen until there are no individuals in the population, thus obtaining N small populations after interaction and forming the sub-population after interaction of the gen generation population;

[0117] Step 4: Perform crossover and mutation operations on the sub-populations after the interaction of the gen generation population to generate temporary offspring of the gen generation population;

[0118] Step 4.1, initialize n = 1, let Parent n,gen Represents the nth subpopulation after interaction in the genth generation population;

[0119] Step 4.2: Based on the nth subpopulation after interaction, apply the binary tournament selection method to generate a mating pool M of size M n,gen ;

[0120] Step 4.2.1. Initialize MatingPool n,gen ={};

[0121] Step 4.2.2, from the nth subpopulation Parent n,gen Randomly select two individuals from the mating pool, compare the evaluation values ​​of the two individuals, and select the individual with the smaller evaluation value to store in the mating pool MatingPool n,gen ;

[0122] Step 4.2.3, repeat step 4.2.2 until the mating pool is MatingPool n,gen Until the scale reaches M;

[0123] Step 4.3, define the number of crossover mutations as q, and initialize q = 1, let Child n,gen Represents the nth subpopulation Parent after interaction n,gen The child of and initialize Child n,gen ={};

[0124] Step 4.4, in the mating pool MatingPool n,gen Select two individuals and As the parent, Represents individual π 2q-1 K 2q-1 The route planning scheme for the garbage sites visited by the garbage trucks, Represents individual π 2q K 2q The route planning scheme for the garbage sites visited by the garbage trucks. Figure 3 As shown in the figure, the gene sequences of two parents are shown. The recombination crossover operator is used to generate two offspring:

[0125] Step 4.4.1, generate a random value p1, if p1>p c , then π 2q-1 Assign to new individuals π 2q Assign to new individuals Otherwise, execute step 4.4.2; where p c is the set threshold, and p1∈[0,1], p c ∈[0,1];

[0126] like Figure 3 As shown, the specific crossover operator process is as follows:

[0127] Step 4.4.2: Randomly select individual π 2q-1 A route planning solution like Figure 3 As shown, the second sub-path of parent 1 is selected, and this sub-path visits garbage station No. 2, garbage station No. 7, and garbage station No. 5;

[0128] Step 4.4.3. From individual π 2q Delete route planner All the spam sites visited in , thereby obtaining the temporary individual π′ 2q .like Figure 3 As shown, in parent generation 2, garbage station No. 2, garbage station No. 7 and garbage station No. 5 are deleted to obtain temporary individuals;

[0129] Step 4.4.4: Route planning plan Add temporary individual π′ 2q In order to obtain new individuals like Figure 3 As shown, the subpath "2-7-5" is put into the temporary individual as the fourth subpath of the temporary individual, and the child of the parent generation 2 is obtained. The child needs four vehicles to complete the garbage collection task.

[0130] Step 4.4.5: Obtain a new individual according to the process of steps 4.4.2 to 4.4.4

[0131] Step 4.5: For new individuals Individuals and new individuals Perform mutation operations;

[0132] Generate a random value p2, if p2>p′ c , then directly convert the new individual and Put it into the child collection Child n,gen Otherwise, use the mutation operator to modify the new individual and Improve and put the improved individuals into the child set Child n,gen ; where p′ c is the set threshold, and p2∈[0,1], p′ c ∈[0,1];

[0133] The mutation operation scans all possible different pairs of nodes (u, v), which may belong to the same subpath or different subpaths. Let x be the successor of u, that is, there is an edge (u, x) from u to x in individual π; let y be the successor of v, that is, there is an edge (v, y) from v to y in individual π; let T(u) represent the subpath that visits customer u. For each pair of nodes, try the following 9 operations until a better solution is found:

[0134] 1) M1: If u is a customer point, delete u from the individual and insert node u after node v;

[0135] 2) M2: If u and x are customer points, delete u and x from the individual and insert an edge (u, x) after node v;

[0136] 3) M3: If u and x are customer points, delete u and x from the individual and insert an edge (x,u) after node v;

[0137] 4) M4: If u and v are customer points, exchange the two nodes;

[0138] 5) M5: If u, x, and v are all customer points, exchange the edge (u, x) and the node v;

[0139] 6) M6: If u, x, v, y are all customer points, then swap edge (u, x) and edge (v, y);

[0140] 7) M7: If T(u) = T(v), replace the edges (u,x) and (v,y) with the edges (u,v) and (x,y);

[0141] 8) M8: If T(u) ≠ T(v), replace the edges (u,x) and (v,y) with the edges (u,v) and (x,y);

[0142] 9)M9: If T(u)≠T(v), replace edges (u,x) and (v,y) with edges (u,y) and (x,v).

[0143] Step 4.6: Determine whether the stop condition is met If satisfied, it means that the nth subpopulation Parent after interaction is obtained n,gen The child collection Child n,gen , otherwise, assign q+1 to q and return to step 4.4 to execute sequentially;

[0144] Step 4.7, after assigning n+1 to n, determine whether n>N is true. If so, it means that temporary offspring of N subpopulations of the gen generation are obtained; otherwise, return to step 4.2 and execute sequentially;

[0145] Step 5: Compare the N subpopulations of the gen generation and their temporary offspring according to the environmental selection strategy to obtain the N subpopulations of the gen+1 generation, and update the leader of each subpopulation of the gen+1 generation;

[0146] In order to balance convergence and robustness, this method proposes an environment selection strategy. This strategy can effectively preserve solutions with good convergence and robustness in the population. The specific environment selection strategy is as follows: 1) Feasible solutions are better than infeasible solutions; 2) Infeasible solutions with high robustness levels are better than infeasible solutions with low robustness levels; 3) Feasible solutions with small objective function values ​​are better than feasible solutions with large objective function values. Among them, the feasible solution mentioned in this method refers to a completely robust solution, that is, the solution can ensure that the vehicle capacity constraint is not violated in all test scenarios. The robustness level in this method is characterized by formula (3).

[0147] Step 5.1, initialize n=1;

[0148] Step 5.2: Define and initialize the nth new subpopulation NewParent n,gen ={};

[0149] Step 5.3: For the nth subpopulation Parent after interaction in the genth generation population n,gen The individuals in the gen-th generation and the n-th subpopulation Child in the temporary offspring of the gen-th generation population n,gen Individuals perform environmental selection operations:

[0150] Step 5.3.1, define variables and initialize t = 1; let Represents the nth subpopulation Parent n,gen The tth individual in ; Represents the nth child set Child n,gen The tth individual of ;

[0151] Step 5.3.2: Use formula (3) to calculate the tth individual and The robust level of; if the robust level is zero, it means that the corresponding individual is a feasible solution;

[0152]

[0153] In formula (3), V krepresents the set of garbage sites served by the kth vehicle. Among them, P scenes Scene={sc1,sc2,...,sc p ,...,sc P}As the number of iterations changes, every gen thres2 The P scenes are regenerated in each iteration.

[0154] Step 5.3.3: If is a feasible solution and is not a feasible solution, then the tth individual Add the nth new subpopulation NewParent n,gen ;

[0155] if is a feasible solution and is not a feasible solution, then Add the nth new subpopulation NewParent n,gen ;

[0156] if and If none of them is a feasible solution, the individuals with higher robustness level will be placed into the nth new subpopulation NewParent n,gen ;

[0157] if and The robustness level of is the same, then the individuals with smaller evaluation values ​​are placed in the nth new subpopulation NewParent n,gen ;

[0158] Step 5.3.4: Select the nth new subpopulation NewParent n,gen The individual with the smallest evaluation value is the leader;

[0159] Step 5.3.5, assign t+1 to t, and determine whether t>M is true. If true, it means that the nth new subpopulation NewParent is obtained. n , otherwise, return to step 5.3.2 and execute sequentially;

[0160] Step 5.4, after assigning n+1 to n, determine whether n>N is true. If so, it means that N new sub-populations are obtained and form the gen+1 generation population. Otherwise, return to step 5.2 and execute sequentially;

[0161] Step 6: After assigning gen+1 to gen, determine whether gen has reached the maximum number of iterations gen max If so, stop the iteration and get the gen max Generate NP route planning solutions for the population, otherwise, return to step 3.1 and execute sequentially.

[0162] Step 7: For the gen max The NP route planning schemes of the generation population are sorted in descending order according to the evaluation value, and the route planning scheme with the smallest evaluation value is selected as the final scheme output.

Claims

1. A route planning method for urban garbage collection, characterized in that Applied to a garbage disposal site Gar, K garbage trucks and L garbage stations V = {Cus1, Cus2, ..., Cus i ...,Cus L } in the urban waste collection environment, among which Cus i represents the i-th garbage site, i∈[1,L]; let the i-th garbage site Cus i and the jth spam site Cus j The route between them is recorded as (i, j), and the distance length of the route (i, j) is recorded as c ij ; Define the garbage collection scene as Scene = {sc1, sc2, ..., sc p ,...,sc P }, sc p represents the pth scene, p∈[1,P]; P represents the total number of scenes; Use d i s Indicates the i-th garbage site Cus i In the pth scenario, sc p The amount of garbage; i Indicates the i-th garbage site Cus i The average amount of garbage in P scenes; Let the maximum load of each garbage truck be Q; The route planning method is performed according to the following steps: Step 1: Randomly generate an initial population and evaluate all individuals in the population; Let the population have NP individuals, define the serial number of the current individual in the initial population as num, and let the numth individual π num Represents K num The route planning scheme for K garbage trucks to visit L garbage sites; and num ≤K; Step 1.1, and initialize num=1; Step 1.2: Randomly generate the numth individual π num , and the individual π num Put into the population; Step 1.2.1, initialize the set of unvisited junk sites I = {Cus1, Cus2, ..., Cus i ...,Cus L }; Step 1.2.2: Define the serial number of the current vehicle as k, initialize k=1, and define the path plan of the kth vehicle as R k , and initialize π num = {R k }; Step 1.2.

3. Initialize R k ={Gar}; Step 1.2.4: Randomly select a spam site Cus in set I i , determine the path plan R to the kth vehicle k Insert spam site Cus i After that, whether it exceeds the maximum loading capacity Q of the vehicle; if not, the garbage station Cus i Add path scheme R k , as the next garbage site visited by the kth vehicle; if it exceeds, π num ∪{R k }Assign the value to π num , assign k+1 to k, and reinitialize R k = {Gar}, and the spam site Cus i Add path scheme R k , as the first garbage site visited by the k-th vehicle; Step 1.2.5: Custody of spam sites i After deleting from set I, determine whether set I is empty. If it is empty, output the numth individual π num , otherwise, repeat steps 1.2.4 in sequence; Step 1.3: Use formula (1) to calculate the numth individual π num Evaluate and obtain the evaluation value f1(π num ): Step 1.4, after assigning num+1 to num, determine whether num>NP is true. If so, it means that the initial population is obtained; otherwise, return to step 1.2 and execute sequentially; Step 2: divide the initial population into N small populations according to the grouping similarity of the garbage collection points, and each small population has M individuals; M×N=NP; Step 2.1, define variable n, and initialize n=1; Step 2.2: Sort all individuals in the population in ascending order according to their evaluation values, and select the individual with the smallest evaluation value as the leader individual π of the current nth small population. leader,n ; Step 2.3: Use formula (2) to calculate the remaining res individuals π in the initial population res,n With the nth leader π leader,n The similarity NMI(π leader,n ,π res,n ), thus obtaining all remaining individuals in the initial population and the nth leader individual π leader,n Similarity: In formula (2), and The individual π leader,n and individual π res,n The number of garbage trucks used; C is a confusion matrix, C ab is the nth leader individual π leader,n The ath vehicle and individual π res,n The number of garbage collection points that the b-th vehicles pass through together; C a. is the sum of the elements in the ath row of the confusion matrix, C .b The sum of the elements in the bth column of the confusion matrix; Step 2.4: Combine all remaining individuals in the initial population with the nth leader individual π leader,n The similarity is sorted in descending order, and the first M-1 individuals and the nth leader individual π are selected leader,n Form the nth small population and delete all individuals in the nth small population from the initial population; Step 2.5, after assigning n+1 to n, determine whether n>N is true. If so, it means that N small populations are obtained, and each small population has M individuals; otherwise, return to step 2.2 and execute sequentially; Step 3: Define the current number of iterations as gen, and initialize gen=1; let N small populations be sub-populations of the gen generation population, and perform interaction operations between sub-populations: Step 3.1: The leader individuals in the sub-populations of the gen generation population form the leader set POOL gen ; Step 3.2: Randomly select the leader set POOL gen An individual π leader,n , and use formula (2) to calculate individual π leader,n POOL with leadership collection gen Similarity to other individuals in Step 3.3, select the individual π leader,n The individual with the highest similarity π sim,gen ; Step 3.4: For individual π leader,n and individual π sim,gen For comparison: If individual π leader,n The evaluation value is less than that of individual π sim,gen The evaluation value of sim,gen Add individual π to the subpopulation leader,n ; On the contrary, to individual π leader,n Add individual π to the subpopulation sim,gen ; Step 3.5: Set POOL in the leader group gen Delete individual π sim,gen and π leder,gen ; Step 3.6: Return to step 3.2 and execute sequentially until the leader set POOL gen until there are no individuals in the population, thus obtaining N small populations after interaction and forming the sub-population after interaction of the gen generation population; Step 4: Perform crossover and mutation operations on the sub-populations after the interaction of the gen generation population to generate temporary offspring of the gen generation population; Step 4.1, initialize n = 1, let Parent n,gen Represents the nth subpopulation after interaction in the genth generation population; Step 4.2: Based on the nth subpopulation after interaction, apply the binary tournament selection method to generate a mating pool M of size M n,gen ; Step 4.2.

1. Initialize MatingPool n,gen ={}; Step 4.2.2, from the nth subpopulation Parent n,gen Randomly select two individuals from the mating pool, compare the evaluation values ​​of the two individuals, and select the individual with the smaller evaluation value to store in the mating pool MatingPool n,gen ; Step 4.2.3, repeat step 4.2.2 until the mating pool is MatingPool n,gen Until the scale reaches M; Step 4.3, define the number of crossover mutations as q, and initialize q = 1, let Child n,gen Represents the nth subpopulation Parent after interaction n,gen The child of and initialize Child n,gen ={}; Step 4.4, in the mating pool MatingPool n,gen Select two individuals and As the parent, Represents individual π 2q-1 K 2q-1 The route planning scheme for the garbage sites visited by the garbage trucks, Represents individual π 2q K 2q The route planning scheme for the garbage sites visited by the garbage trucks uses the recombination crossover operator to generate two children: Step 4.4.1, generate a random value p1, if p1>p c , then π 2q-1 Assign to new individuals π 2q Assign to new individuals Otherwise, execute step 4.4.2; where p c is the set threshold, and p1∈[0,1], p c ∈[0,1]; Step 4.4.2: Randomly select individual π 2q-1 A route planning solution Step 4.4.

3. From individual π 2q Delete route planner All the spam sites visited in , thereby obtaining the temporary individual π′ 2q ; Step 4.4.4: Route planning plan Add temporary individual π′ 2q In order to obtain new individuals Step 4.4.5: Obtain a new individual according to the process of steps 4.4.2 to 4.4.4 Step 4.5: For new individuals Individuals and new individuals Perform mutation operations; Generate a random value p2, if p2>p′ c , then directly convert the new individual and Put it into the child collection Child n,gen Otherwise, the mutation operator is used to modify the new individual and Improve and put the improved individuals into the child set Child n,gen ; where p′ c is the set threshold, and p2∈[0,1], p′ c ∈[0,1]; Step 4.6: Determine whether the stop condition is met If satisfied, it means that the nth subpopulation Parent after interaction is obtained n,gen The child collection Child n,gen , otherwise, assign q+1 to q and return to step 4.4 to execute sequentially; Step 4.7, after assigning n+1 to n, determine whether n>N is true. If so, it means that temporary offspring of N subpopulations of the gen generation are obtained; otherwise, return to step 4.2 and execute sequentially; Step 5: Compare the N subpopulations of the gen generation and their temporary offspring according to the environmental selection strategy to obtain the N subpopulations of the gen+1 generation, and update the leader of each subpopulation of the gen+1 generation; Step 5.1, initialize n=1; Step 5.2: Define and initialize the nth new subpopulation NewParent n,gen ={}; Step 5.3: For the nth subpopulation Parent after interaction in the genth generation population n,gen The individuals in the gen-th generation and the n-th subpopulation Child in the temporary offspring of the gen-th generation population n,gen Individuals perform environmental selection operations: Step 5.3.1, define variables and initialize t = 1; let Represents the nth subpopulation Parent n,gen The tth individual in ; Represents the nth child set Child n,gen The tth individual of ; Step 5.3.2: Calculate the tth individual and The robust level of; if the robust level is zero, it means that the corresponding individual is a feasible solution; Step 5.3.3, if is a feasible solution and is not a feasible solution, then the tth individual Add the nth new subpopulation NewParent n,gen ; if is a feasible solution and is not a feasible solution, then Add the nth new subpopulation NewParent n,gen ; if and If none of them is a feasible solution, the individuals with higher robustness level will be placed into the nth new subpopulation NewParent n,gen ; if and The robustness level of is the same, then the individuals with smaller evaluation values ​​are placed in the nth new subpopulation NewParent n,gen ; Step 5.3.4: Select the nth new subpopulation NewParent n,gen The individual with the smallest evaluation value is the leader; Step 5.3.5, assign t+1 to t, and determine whether t>M is true. If true, it means that the nth new subpopulation NewParent is obtained. n , otherwise, return to step 5.3.2 and execute sequentially; Step 5.4, after assigning n+1 to n, determine whether n>N is true. If so, it means that N new sub-populations are obtained and form the gen+1 generation population. Otherwise, return to step 5.2 and execute sequentially; Step 6: After assigning gen+1 to gen, determine whether gen has reached the maximum number of iterations gen max If so, stop the iteration and get the gen max NP route planning solutions for the generation population, otherwise, return to step 3.1 and execute sequentially; Step 7: For the gen max The NP route planning schemes of the generation population are sorted in descending order according to the evaluation value, and the route planning scheme with the smallest evaluation value is selected as the final scheme output.

2. A route planning method for urban garbage collection according to claim 1, characterized in that: The robustness level is obtained using formula (3): In formula (3), V k Represents the set of garbage sites served by the k-th vehicle.