A lightweight hybrid genetic algorithm and variable neighborhood search algorithm for handling time windowed multi-depot vehicle routing problem

By optimizing vehicle routes across multiple warehouses using a lightweight hybrid genetic algorithm and a variable neighborhood search algorithm, the problem of multiple warehouses and time window constraints was solved, thereby improving logistics transportation efficiency and economic benefits.

CN118551832BActive Publication Date: 2026-11-24BEIJING INST OF TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410639083.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-05-22
Publication Date
2026-11-24
Estimated Expiration
2044-05-22

AI Technical Summary

Technical Problem

Existing vehicle routing methods are unable to effectively handle the constraints of multiple warehouses and customer service time windows, resulting in insufficient logistics efficiency and economic benefits.

Method used

A lightweight hybrid genetic algorithm and a variable neighborhood search algorithm are adopted. Initial routes are generated by customer point clustering and a greedy algorithm. Random crossover and multi-point mutation are combined to optimize vehicle paths. The roulette wheel algorithm is used to select genes, and the global optimal gene is updated through neighborhood search.

Benefits of technology

It improves the optimization efficiency of multi-warehouse vehicle routing problems, and is applicable to multi-warehouse vehicle routing problems with time windows and related variations, thereby improving logistics and transportation efficiency and economic benefits.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118551832B_ABST
    Figure CN118551832B_ABST
Patent Text Reader

Abstract

This invention provides a lightweight hybrid genetic algorithm and variable neighborhood search algorithm for handling multi-warehouse vehicle routing problems with time windows. It designs an initial route scheme generation method that first performs customer point clustering and then uses greedy insertion, resulting in a good initial scheme performance. An improved genetic crossover operator using random crossover length and random crossover insertion points significantly improves the search performance of the original crossover operator. The introduction of a 6-mutation operator with multiple random point exchanges enhances the search performance of the mutation operator, thereby improving the overall search performance. This method is applicable not only to optimization applications of multi-warehouse vehicle routing problems with time windows but also to related variations of similar problems, such as multi-warehouse green vehicle routing problems and multi-warehouse electric vehicle routing problems with time windows. Good path optimization results can be achieved simply by setting appropriate optimization objectives and constraints according to the specific optimization problem.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention belongs to the field of vehicle routing problem optimization technology, specifically involving a method for handling multi-warehouse vehicle routing problems with time windows using a lightweight hybrid genetic algorithm and a variable neighborhood search algorithm. Background Technology

[0002] As a classic operations research optimization problem, the vehicle routing problem has high application value and development prospects in many emerging fields and industries. For example, with the rapid development of e-commerce platforms, the industry has an urgent need to improve logistics efficiency, and vehicle routing optimization in typical scenarios such as warehouses can help to comprehensively improve logistics transportation efficiency and economic benefits. Existing optimization methods for vehicle routing problems mainly include: precise algorithms based on mathematical theory, heuristic algorithms, search algorithms, and hybrid algorithms. Precise algorithms based on mathematical theory, such as segmentation and pricing algorithms and dynamic programming, can achieve high accuracy but involve extremely high computational costs, limiting their application to small-scale problems involving only a few points. Heuristic algorithms, including genetic algorithms, particle swarm optimization, and ant colony optimization, offer high optimization efficiency and fast convergence, but are highly prone to falling into local optima. Search algorithms, such as tabu search, variable neighborhood search, and large neighborhood search, can increase the breadth or depth of the search to obtain better solutions, but their computational cost increases significantly with the problem size. Hybrid algorithms, primarily using heuristic algorithms as the upper layer and search algorithms as the lower layer, can achieve good optimization results but require long computation times. Furthermore, existing vehicle routing methods rarely address specific constraints such as multiple warehouses or customer service time requirements, making them insufficient for such transportation scenarios. Summary of the Invention

[0003] In view of this, and to address the technical problems existing in this field, the present invention provides a multi-warehouse vehicle route planning method based on genetic algorithms and variable neighborhood search, specifically including the following steps:

[0004] Step 1: Using each warehouse point as a cluster center, cluster customer nodes in the vehicle routing problem based on their distances relative to warehouse nodes. In customer point clustering, sort the customer nodes by their corresponding time windows from smallest to largest to obtain a customer node sequence. Connect the first customer node in the sequence to a warehouse node and calculate the route cost. Then, execute a loop of route selection and route cost calculation based on a greedy algorithm. At the same time, gradually insert customer nodes in the sequence into the candidate routes to generate a set of initial routing schemes representing the access order of customer nodes. These routing schemes are connected end to end to form a gene sequence. Other genes in the initial population are generated by shuffling gene fragments based on this gene. The gene sequence with the lowest total route cost is taken as the globally optimal gene.

[0005] Step 2: Using the route cost corresponding to the gene as the gene's fitness, the roulette wheel algorithm is used to select genes and obtain parent genes;

[0006] Step 3: Introduce random crossover gene fragment length and random crossover gene fragment insertion point to construct an improved crossover algorithm. First, perform a gene crossover between parent genes to obtain a set of offspring genes. Then, perform a gene crossover between each parent gene and the globally optimal gene to obtain a second set of offspring genes.

[0007] Step 4: Compare the two sets of offspring genes with their parent genes, select the optimal gene to replace the original parent gene and retain it; perform multi-point random mutation on the retained gene to obtain the mutated offspring gene.

[0008] Step 5: Compare the route costs corresponding to the parental and offspring genes before and after the mutation, retain the gene with the lower cost, and select the best gene as the current global optimal gene as the input of the neighborhood search algorithm; execute a neighborhood search containing 6 neighborhood operators, and update the global optimal gene based on the neighborhood search results.

[0009] Step 6: If the total running time does not exceed the set threshold, return to step 2; otherwise, output the updated global optimal gene as the optimization result, so that the vehicle travels according to its corresponding route.

[0010] Furthermore, the clustering in step one is specifically implemented based on the following formula:

[0011]

[0012] In the formula, Clu k Represents the k-th warehouse node D k Clustering centered on the i-th customer point, where i represents the i-th customer point, d i,Dk Representing customer point i to warehouse node D k The distance between them, d i,Dm Represents the distance from customer node i to the m-th warehouse node D m The distance between them, V D V represents the set of repository nodes. N Represents a set of client nodes;

[0013] The specific process of the greedy algorithm includes the following steps:

[0014] a. Arrange the client nodes in the cluster according to the right boundary of their time windows. i Sort the nodes in ascending order to form an initial sequence of client nodes, Sv.

[0015] b. Select a customer node in Sv, connect it to the warehouse node, and calculate the cost of the route;

[0016] c. Delete the first client node in Sv and proceed to the loop of step d;

[0017] d. Select the first customer node in Sv and insert it at the end of an existing non-empty route to form a candidate route; simultaneously, connect the customer node to the warehouse node to form a new candidate route, and calculate the cost increase between each candidate route and the initial route using the following formula:

[0018] Dc i =Cost i,1 -Cost i,0

[0019] In the formula, Dc i Cost is the increase in cost for the i-th route. i,0 Cost is the cost of the i-th initial route before node insertion, and Cost i,1 Let $C$ be the cost of the i-th candidate route after the node is inserted; for the new candidate route, let the cost of the initial route be 0.

[0020] Select the route with the lowest cost increase, insert the selected customer node at the end of the selected route, while leaving the other routes unchanged and removing this customer node from the sequence Sv;

[0021] e. Continue executing the above loop Sv until all client nodes in the sequence have been inserted. This completes the route generation for this cluster. Then, jump to the next cluster and continue the entire greedy algorithm process.

[0022] f. After all routes have been inserted, connect all routes end to end to form multiple gene sequences; select the gene sequence with the lowest total cost as the global optimal gene.

[0023] Furthermore, the selection probability of the roulette wheel algorithm in step two is specifically based on the normalized gene fitness calculation:

[0024] Fit g =1 / Cost g

[0025] p g =Fit g / ∑ i Fit i

[0026] In the formula, Fit g It refers to the fitness of gene g, Cost g p is the route cost corresponding to gene g. gIt represents the probability that gene g might be selected.

[0027] Furthermore, the improved crossover algorithm constructed in step three specifically involves randomly selecting a crossover gene segment from the two genes to be crossed, with the length and position of the selected crossover gene segment being random; at the same time, when inserting the crossover gene segment into the opposite gene, the selected insertion point is also random.

[0028] Furthermore, in step four, for each gene involved in the mutation, 10 sites are randomly selected, and the gene mutation is completed by randomly swapping the positions of these 10 sites.

[0029] Furthermore, the six neighborhood operators included in step five of the neighborhood search specifically include:

[0030] Translation operator: Randomly select two gene points and move one of them behind the other.

[0031] Swap operator: Randomly select two gene sites and swap their positions;

[0032] Fragment inversion operator: Randomly select a gene fragment and invert the gene sequence within that fragment;

[0033] Grouping and swapping operator: Randomly select two gene segments of the same length that do not overlap, and perform a position swapping of the gene segments;

[0034] Multi-point random swap operator: Randomly selects multiple gene sites and randomly swaps the positions of these sites;

[0035] Gene segment translation operator: Randomly select a segment of a gene and translate it to a randomly selected point;

[0036] The specific process of neighborhood search includes the following steps:

[0037] a. Parameter generation: Randomly generate the order of use of neighborhood operators, and generate the following maximum number of iterations for each operator:

[0038] S l =Max_N / 6

[0039] In the formula, S l Max_N represents the maximum number of iterations for the l-th neighborhood operator, and Max_N represents the total maximum number of iterations for the neighborhood search algorithm.

[0040] b. Search: The search operation is performed starting from the first search operator;

[0041] c. Cost determination: For each search operation, calculate the route cost corresponding to the generated gene and compare it with the route cost corresponding to the input global optimal gene. If the cost of the newly generated gene is lower, replace the global optimal gene with it and jump to the next search operator.

[0042] d. Iteration Determination: After each search operation, the number of iterations completed by the search operator is incremented by 1, and the following expression is checked to see if it holds true:

[0043] s l l

[0044] In the formula, s l This represents the number of iterations that the l-th search operator has completed. If this expression is true, the current search operator will continue to be executed; otherwise, the current search operator has completed its search and will no longer be accessed. The process will then jump to the next search operator.

[0045] e. Termination decision: When all search operators have completed the search, exit the local search;

[0046] The maximum number of iterations, Max_N, for the neighborhood search algorithm is calculated using the following formula:

[0047]

[0048] In the formula, gen represents the number of iterations in the genetic algorithm, β0, β 1分别 These are two algorithm constants. This represents rounding down to the nearest integer.

[0049] The multi-warehouse vehicle routing method based on genetic algorithms and variable neighborhood search provided by this invention designs an initial route scheme generation method that first performs customer point clustering and then uses greedy insertion, resulting in a good initial scheme performance. An improved genetic crossover operator using random crossover length and random crossover insertion points significantly improves the search performance of the original crossover operator. The introduction of a 6-mutation operator with multiple random point exchanges enhances the search performance of the mutation operator, thereby improving overall search performance. This method is applicable not only to optimization applications of multi-warehouse vehicle routing problems with time windows but also to related variations of similar problems, such as multi-warehouse green vehicle routing problems with time windows and multi-warehouse electric vehicle routing problems with time windows. Good route optimization results can be achieved simply by setting suitable optimization objectives and constraints according to the specific optimization problem. Attached Figure Description

[0050] Figure 1 This is a flowchart of the method provided by the present invention;

[0051] Figure 2 ​This is a schematic diagram of the random crossover step in the method provided by the present invention;

[0052] Figure 3 A schematic diagram of the six neighborhood operators in the method provided by this invention;

[0053] Figure 4 The cost curve for the optimization process in an example of the present invention;

[0054] Figure 5 The diagram shows the optimized effect of an example based on the present invention. Detailed Implementation

[0055] The technical solution of the present invention will now be clearly and completely described with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0056] The multi-warehouse vehicle routing method based on genetic algorithms and variable neighborhood search provided by this invention, such as... Figure 1 As shown, the specific steps include:

[0057] Step 1: Using each warehouse point as a cluster center, cluster customer nodes in the vehicle routing problem based on their distances relative to warehouse nodes; construct an initial gene population using each customer point in the obtained cluster, with each gene corresponding to a route segment; sort the customer nodes in ascending order according to their corresponding time windows to obtain a customer node sequence; connect the first customer node in the sequence to a warehouse node and calculate the route cost; then, execute a loop of route selection and route cost calculation based on a greedy algorithm, while gradually inserting customer nodes in the sequence into candidate routes to form multiple gene sequences; select the gene sequence with the lowest total route cost as the globally optimal gene.

[0058] Step 2: Using the route cost corresponding to the gene as the gene's fitness, the roulette wheel algorithm is used to select genes and obtain parent genes;

[0059] Step 3: Introduce random crossover gene fragment length and random crossover gene fragment insertion point to construct an improved crossover algorithm. First, perform a gene crossover between parent genes to obtain a set of offspring genes. Then, perform a gene crossover between each parent gene and the globally optimal gene to obtain a second set of offspring genes.

[0060] Step 4: Compare the two sets of offspring genes with their parent genes, select the optimal gene to replace the original parent gene and retain it; perform multi-point random mutation on the retained gene to obtain the mutated offspring gene.

[0061] Step 5: Compare the route costs corresponding to the parental and offspring genes before and after the mutation, retain the gene with the lower cost, and select the best gene as the current global optimal gene as the input of the neighborhood search algorithm; execute a neighborhood search containing 6 neighborhood operators, and update the global optimal gene based on the neighborhood search results.

[0062] Step 6: If the total running time does not exceed the set threshold, return to step 2; otherwise, output the updated global optimal gene as the optimization result, so that the vehicle travels according to its corresponding route.

[0063] In a preferred embodiment of the present invention, the clustering process in step one specifically includes:

[0064] First, define two types of nodes: warehouse and customer: warehouse node V. D ={D m |m∈{1,2,……n D}}, where V D Let D be the set of warehouse nodes. m Let n be the m-th warehouse node. D Number of warehouse nodes; V number of customer nodes N ={N i |i∈{1,2,……n N}}, where V N Let N be the set of client nodes. i For the i-th client node n N The number of customer nodes; two types of information are defined for each warehouse node: location information (x Dm ,y Dm ), and time window (0, et Dm At the same time, four types of information are defined for each client node: location information (x i ,y i ), demand (q) i ), time window (st i ,et i ) and service time st i For warehouse node q i =et i =st i =0; The distance between each customer node and each warehouse node can be calculated using location information, as shown in the following formula:

[0065]

[0066] Where d i,Dm Represents the i-th customer node and warehouse node D m The distance between them;

[0067]

[0068] In the formula, Clu k Represents the k-th warehouse node D k Clustering centered on the i-th customer point, where i represents the i-th customer point, d i,Dk Representing customer point i to warehouse node D k The distance between them, d i,Dm Represents the distance from customer node i to the m-th warehouse node D m The distance between them, V D V represents the set of repository nodes. N Representative customer point set;

[0069] The specific process of the greedy algorithm includes the following steps:

[0070] a. Arrange the client nodes in the cluster according to the right boundary of their time windows. i Sort the nodes in ascending order to form an initial sequence of client nodes, Sv.

[0071] b. Select the first customer node in Sv, connect it to the warehouse node, and calculate the cost of the route;

[0072] c. Delete the first client node in Sv and proceed to the loop of step d;

[0073] d. Select the first customer node in Sv and insert it at the end of an existing non-empty route to form a candidate route; simultaneously, connect the customer node to the warehouse node to form a new candidate route, and calculate the cost increase between each candidate route and the initial route using the following formula:

[0074] Dc i =Cost i,1 -Cost i,0

[0075] In the formula, Dc i Cost is the increase in cost for the i-th route. i,0 Cost is the cost of the i-th initial route before node insertion, and Cost i,1 Let $C$ be the cost of the i-th candidate route after the node is inserted; for the new candidate route, let the cost of the initial route be 0.

[0076] Select the route with the lowest cost increase, insert the selected customer node at the end of the selected route, while leaving the other routes unchanged and removing this customer node from the sequence Sv;

[0077] e. Continue executing the above loop Sv until all client nodes in the sequence have been inserted. This completes the route generation for this cluster. Then, jump to the next cluster and continue the entire greedy algorithm process.

[0078] f. After all routes have been inserted, connect all routes end to end to form multiple gene sequences; select the gene sequence with the lowest total cost as the global optimal gene.

[0079] In a preferred embodiment of the present invention, the selection probability of the roulette wheel algorithm in step two is specifically based on normalized gene fitness calculation:

[0080] Fit g =1 / Cost g

[0081] p g =Fit g / ∑ i Fit i

[0082] In the formula, Fit g It refers to the fitness of gene g, Cost g p is the route cost corresponding to gene g. g It represents the probability that gene g might be selected.

[0083] In a preferred embodiment of the present invention, the improved crossover algorithm constructed in step three specifically involves randomly selecting a crossover gene segment from the two genes to be crossed, with the length and position of the selected crossover gene segment being random; at the same time, when inserting the crossover gene segment into the opposite gene, the selected insertion point is also random.

[0084] In a preferred embodiment of the present invention, step four specifically involves randomly selecting 10 sites for each gene involved in the mutation, and completing the gene mutation by randomly swapping the positions of these 10 sites.

[0085] In a preferred embodiment of the present invention, the six neighborhood operators included in step five of the neighborhood search specifically include:

[0086] Translation operator: Randomly select two gene points and move one of them behind the other.

[0087] Swap operator: Randomly select two gene sites and swap their positions;

[0088] Fragment inversion operator: Randomly select a gene fragment and invert the gene sequence within that fragment;

[0089] Grouping and swapping operator: Randomly select two gene segments of the same length that do not overlap, and perform a position swapping of the gene segments;

[0090] Multi-point random swap operator: Randomly selects multiple gene sites and randomly swaps the positions of these sites;

[0091] Gene segment translation operator: Randomly select a segment of a gene and translate it to a randomly selected point;

[0092] The specific process of neighborhood search includes the following steps:

[0093] a. Parameter generation: Randomly generate the order of use of neighborhood operators, and generate the following maximum number of iterations for each operator:

[0094] S l =Max_N / 6

[0095] In the formula, S l Max_N represents the maximum number of iterations for the l-th neighborhood operator, and Max_N represents the total maximum number of iterations for the neighborhood search algorithm.

[0096] b. Search: The search operation is performed starting from the first search operator;

[0097] c. Cost determination: For each search operation, calculate the route cost corresponding to the generated gene and compare it with the route cost corresponding to the input global optimal gene. If the cost of the newly generated gene is lower, replace the global optimal gene with it and jump to the next search operator.

[0098] d. Iteration Determination: After each search operation, the number of iterations completed by the search operator is incremented by 1, and the following expression is checked to see if it holds true:

[0099] s l l

[0100] In the formula, s l This represents the number of iterations that the l-th search operator has completed. If this expression is true, the current search operator will continue to be executed; otherwise, the current search operator has completed its search and will no longer be accessed. The process will then jump to the next search operator.

[0101] e. Termination decision: When all search operators have completed the search, exit the local search;

[0102] The maximum number of iterations, Max_N, for the neighborhood search algorithm is calculated using the following formula:

[0103]

[0104] In the formula, gen represents the number of iterations in the genetic algorithm, β0, β 1分别 ​These are two algorithm constants. This represents rounding down to the nearest integer.

[0105] In an example based on this invention, simulation software is used to model the multi-warehouse vehicle routing problem with time windows, and algorithm simulation is performed. Figure 4 The algorithm's total route cost convergence curve is shown for an instance of a multi-warehouse vehicle routing problem with a time window. Figure 5 This is a roadmap for the optimization results of the corresponding instances.

[0106] It should be understood that the sequence number of each step in the embodiments of the present invention does not imply the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present invention.

[0107] Although embodiments of the invention have been shown and described, it will be understood by those skilled in the art that various changes, modifications, substitutions and alterations can be made to these embodiments without departing from the principles and spirit of the invention, the scope of which is defined by the appended claims and their equivalents.

Claims

1. A multi-warehouse vehicle routing method based on genetic algorithm and variable neighborhood search, characterized by: step: Step 1: Using each warehouse point as a cluster center, cluster customer nodes in the vehicle routing problem based on their distances relative to warehouse nodes. Construct an initial gene population using each customer point in the resulting cluster. In the customer point cluster, each gene corresponds to a route segment. Sort the customer nodes by their corresponding time windows from smallest to largest to obtain a customer node sequence. Connect the first customer node in the sequence to a warehouse node and calculate the route cost. Then, execute a loop of route selection and route cost calculation based on a greedy algorithm, while gradually inserting customer nodes from the sequence into candidate routes to generate a set of initial routing schemes representing the customer node access order. These routing schemes, connected end-to-end, form a gene sequence. Other genes in the initial population are generated by shuffling gene fragments based on this gene. Multiple gene sequences are formed. The gene sequence with the lowest total route cost is taken as the globally optimal gene. Step 2: Using the route cost corresponding to the gene as the gene's fitness, the roulette wheel algorithm is used to select genes and obtain parent genes; Step 3: Introduce random crossover gene fragment length and random crossover gene fragment insertion point to construct an improved crossover algorithm. First, perform a gene crossover between parent genes to obtain a set of offspring genes. Then, perform a gene crossover between each parent gene and the globally optimal gene to obtain a second set of offspring genes. Step 4: Compare the two sets of offspring genes with their parent genes, select the optimal gene to replace the original parent gene and retain it; Perform multi-point random mutations on the retained genes to obtain the mutated offspring genes; Step 5: Compare the route costs corresponding to the parental and offspring genes before and after the mutation, retain the gene with the lower cost, and select the best gene as the current global optimal gene as the input of the neighborhood search algorithm; execute a neighborhood search containing 6 neighborhood operators, and update the global optimal gene based on the neighborhood search results. Step 6: If the total running time does not exceed the set threshold, return to step 2; otherwise, output the updated global optimal gene as the optimization result, so that the vehicle travels according to its corresponding route.

2. The method as described in claim 1, characterized in that: The clustering in step one is specifically implemented based on the following formula: In the formula, Clu k Represents the k-th warehouse node D k Clustering centered on the i-th customer point, where i represents the i-th customer point, d i,Dk Representing customer point i to warehouse node D k The distance between them, d i,Dm Represents the distance from customer node i to the m-th warehouse node D m The distance between them, V D V represents the set of repository nodes. N Represents a set of client nodes; The specific process of the greedy algorithm includes the following steps: a. Arrange the client nodes in the cluster according to the right boundary of their time windows. i Sort the nodes in ascending order to form an initial sequence of client nodes, Sv. b. Select the first customer node in Sv, connect it to the warehouse node, and calculate the cost of the route; c. Delete the first client node in Sv and proceed to the loop in step d; d. Select the first customer node in Sv and insert it at the end of an existing non-empty route to form a candidate route; simultaneously, connect the customer node to the warehouse node to form a new candidate route, and calculate the cost increase between each candidate route and the initial route using the following formula: Dc i =Cost i,1 -Cost i,0 In the formula, Dc i Cost is the increase in cost for the i-th route. i,0 Cost is the cost of the i-th initial route before node insertion, and Cost i,1 Let $C$ be the cost of the i-th candidate route after the node is inserted; for the new candidate route, let the cost of the initial route be 0. Select the route with the lowest cost increase, insert the selected customer node at the end of the selected route, while leaving the other routes unchanged and removing this customer node from the sequence Sv; e. Continue executing the above loop Sv until all client nodes in the sequence have been inserted. This completes the route generation for this cluster. Then, jump to the next cluster and continue the entire greedy algorithm process. f. After all routes have been inserted, connect all routes end to end to form multiple gene sequences; select the gene sequence with the lowest total cost as the global optimal gene.

3. The method as described in claim 1, characterized in that: In step two, the selection probability of the roulette wheel algorithm is specifically based on the normalized gene fitness calculation: Fit g =1 / Cost g p g =Fit g / ∑ i Fit i In the formula, Fit g It refers to the fitness of gene g, Cost g p is the route cost corresponding to gene g. g It represents the probability that gene g might be selected.

4. The method as described in claim 1, characterized in that: The improved crossover algorithm constructed in step three involves randomly selecting a crossover gene segment from the two genes to be crossed. The length and position of the selected crossover gene segment are random. At the same time, when inserting the crossover gene segment into the opposite gene, the selected insertion point is also random.

5. The method as described in claim 1, characterized in that: In step four, 10 sites are randomly selected for each gene involved in the mutation, and the gene mutation is completed by randomly swapping the positions of these 10 sites.

6. The method as described in claim 1, characterized in that: The six neighborhood operators included in step five of the neighborhood search specifically include: Translation operator: Randomly select two gene points and move one of them behind the other. Swap operator: Randomly select two gene sites and swap their positions; Fragment inversion operator: Randomly select a gene fragment and invert the gene sequence within that fragment; Grouping and swapping operator: Randomly select two gene segments of the same length that do not overlap, and perform a position swapping of the gene segments; Multi-point random swap operator: Randomly selects multiple gene sites and randomly swaps the positions of these sites; Gene segment translation operator: Randomly select a segment of a gene and translate it to a randomly selected point; The specific process of neighborhood search includes the following steps: a. Parameter generation: Randomly generate the order of use of neighborhood operators, and generate the following maximum number of iterations for each operator: S l = Max_N / 6 In the formula, S l Max_N represents the maximum number of iterations for the l-th neighborhood operator, and Max_N represents the total maximum number of iterations for the neighborhood search algorithm. b. Search: The search operation is performed starting from the first search operator; c. Cost determination: For each search operation, calculate the route cost corresponding to the generated gene and compare it with the route cost corresponding to the input global optimal gene. If the cost of the newly generated gene is lower, replace the global optimal gene with it and jump to the next search operator. d. Iteration Determination: After each search operation, the number of iterations completed by the search operator is incremented by 1, and the following expression is checked to see if it holds true: s l <S l In the formula, s l This represents the number of iterations that the l-th search operator has completed. If this expression is true, the current search operator will continue to be executed; otherwise, the current search operator has completed its search and will no longer be accessed. The process will then jump to the next search operator. e. Termination decision: When all search operators have completed the search, exit the local search; The maximum number of iterations, Max_N, for the neighborhood search algorithm is calculated using the following formula: In the formula, gen represents the number of iterations of the genetic algorithm, and β0 and β1 are two algorithm constants. This represents rounding down to the nearest integer.