Road line selection planning method and device based on evolution calculation, equipment and medium
By generating original paths, standard paths and random paths, and updating them using genetic algorithms, the problem of inefficiency and deviation in highway construction planning in the existing technology is solved, automatic lowest-cost path selection is achieved, and the overall cost is significantly reduced and improved. efficiency.
Patent Information
- Application Number
- CN202410825856.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-25
- Publication Date
- 2024-09-03
AI Technical Summary
In the existing technology, highway construction planning requires manual planning of multiple routes and budgeting costs for comparison. The workload is large and prone to deviations, and the lowest-cost path selection cannot be effectively achieved.
A method based on evolutionary computation is used to generate the original path, standard path and random path, and use the genetic algorithm to update them, obtain the cost of each path, and select the path with the highest fitness as the final selection path to achieve automated planning.
It realizes the automated planning of highway construction route selection, reduces the overall cost, improves efficiency, reduces the amount of calculation, improves the degree of automation, and ensures the selection of the optimal path.
Smart Images

Figure CN118586602A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of highway site selection, and in particular to a highway route selection planning method, device, equipment and medium based on evolutionary calculation. Background Art
[0002] In the prior art, path planning is generally optimized by calculating the fitness (or cost) of multiple directly determinable routes. However, for highway construction planning, there is no directly determinable route. In order to pursue the lowest cost, the only way currently is to manually plan multiple routes and compare the estimated costs to select the best solution. This is a large workload and prone to deviations. Summary of the invention
[0003] In view of the deficiencies in the prior art, the purpose of the present invention is to provide a highway route planning method, device, equipment and medium based on evolutionary computing. For pre-built roads, original paths, standard paths and random paths are generated based on the starting point, end point and surrounding buffer zone, and a genetic algorithm is used to evolve the original paths, standard paths and random paths to obtain the path with the lowest cost. The optimal solution can be selected without manual planning, and the workload is small and deviations are not easy to occur.
[0004] In order to solve the above technical problems, the technical solution adopted by the present invention is: A highway route planning method based on evolutionary computing comprises the following steps: For the pre-built highway, the straight line path between the starting point and the end point is taken as the original path, and a certain range of areas on both sides of the original path are selected to obtain the buffer zone in the area; A polyline path between the starting point and the end point and passing through the buffer zone is used as the standard path, and a randomly generated polyline path between the starting point and the end point is used as the random path; Based on the genetic algorithm, the original path, standard path and random path are updated to obtain a new path; Obtain the costs of the original path, standard path, random path, and new path, obtain the fitness of each path based on the cost, and select the path with the highest fitness as the final selected path.
[0005] Furthermore, the method for obtaining the buffer zone within the region is: Acquire high-cost plots within the region and at the edge of the region; For each high-cost plot, obtain the high-cost plot polylines constituting the high-cost plot; Get the minimum bounding rectangle of the high-cost plot polyline; The minimum enclosing rectangle is expanded to obtain a buffer zone.
[0006] Furthermore, a method of using a path between the starting point and the end point and passing through the surrounding buffer zone as a standard path is as follows: Set the number of points to be selected n, and obtain the contribution weight of each buffer zone to the standard path bend:
[0007] Where: is the contribution weight, is the construction cost per unit length of each buffer zone, is the distance from the centroid of the buffer zone to the original path, is the area of the buffer zone; The contribution weights of all buffer zones are normalized to obtain the weights of all buffer zones; Based on the contribution weights of all buffer zones and the number of candidate points, the distribution of each candidate point in each buffer zone is obtained; Based on the distribution of the candidate points in each buffer zone, a point in the buffer zone where the candidate point is located is randomly selected as the candidate point; Connect the starting point, each candidate point and the end point in sequence to obtain the standard path.
[0008] Furthermore, a method of using a randomly generated broken line path between a starting point and an end point as a random path is as follows: Randomly select n candidate points in the area, connect the starting point, each candidate point and the end point in sequence to generate a random path.
[0009] Furthermore, the method for obtaining the cost of the original path, the standard path, the random path, and the new path is: Cutting step: for each path, obtain the first line segment of the path in each buffer zone and the second line segment of the path intersecting with each buffer zone, the first line segment includes the case where both ends are in one buffer zone and the case where one end is at the edge of one buffer zone and the other end is in the buffer zone, the two ends of the second line segment are at the edges of two buffer zones respectively; First line segment cost acquisition step: multiplying the length of each first line segment by the unit length construction cost of the buffer zone where the first line segment is located to obtain the cost of the first line segment; Second line segment cost acquisition step: multiplying the length of each second line segment by the unit length construction cost of the non-buffer zone to obtain the cost of the second line segment; Path cost acquisition step: summing up the costs of all first line segments and all second line segments to obtain the cost of the path; Repeat the cutting step to the path cost acquisition step until the costs of all original paths, standard paths, random paths, and new paths are obtained.
[0010] Furthermore, the original path, the standard path, and the random path are updated by using a crossover operator and / or a mutation operator based on a genetic algorithm to obtain a new path as follows: The starting point, the end point and the candidate point are marked with position codes, and the position codes corresponding to the original path, the standard path and the random path are generated based on the position codes of the starting point, the end point and the candidate point; For each path, the position of each candidate point on the path is encoded as a gene, and each gene is encoded into a chromosome using a real number, so that each path forms a chromosome; The chromosome is updated by using a crossover operator and / or a mutation operator to obtain a new chromosome, and a new path is obtained based on the new chromosome.
[0011] Furthermore, the expression for obtaining fitness based on cost is:
[0012] Where: is the construction cost of the path, is a set constant.
[0013] A highway route planning device based on evolutionary computing, comprising: The original path acquisition module is used to take the straight path of the starting point and the end point of the pre-built highway as the original path, select a certain range of areas on both sides of the original path, and obtain the buffer zone in the area; A standard path and random path acquisition module, which uses a polyline path between a starting point and an end point and passing through a buffer zone as a standard path, and uses a randomly generated polyline path between a starting point and an end point as a random path; A new path acquisition module is used to update the original path, standard path, and random path based on a genetic algorithm to obtain a new path; The final selected path acquisition module is used to obtain the costs of the original path, standard path, random path, and new path, obtain the fitness of each path based on the cost, and select the path with the highest fitness as the final selected path.
[0014] An electronic device comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the above-mentioned highway route planning method based on evolutionary calculation when executing the program.
[0015] A non-transitory computer-readable storage medium stores a computer program, which, when executed by a processor, implements the above-mentioned highway route selection planning method based on evolutionary calculation.
[0016] Compared with the prior art, the present invention has the following advantages and beneficial effects: The present invention sets an original path, a standard path and a random path. The original path is generated by a straight line path between a starting point and an end point, the standard path is generated by a broken line path set between the starting point and the end point and passing through a surrounding buffer zone, and the random path is generated by a broken line path set between the starting point and the end point and randomly generated. Adding the standard path represents a heuristic initialization, which will converge faster in the early stage, otherwise it is a completely random initialization, which converges slowly and is difficult to obtain an optimal path; adding the original path can ensure convergence to the optimal solution, and the global search capability is strong. The present invention updates the original path, the standard path and the random path based on a genetic algorithm to obtain a new path, and obtains the cost of the original path, the standard path, the random path and the new path, obtains the fitness of each path based on the cost, and selects the path with the highest fitness as the final selected path. Compared with the prior art, the line selection planning of highway construction can be automatically realized, and a route plan with a relatively lowest cost is obtained, the overall cost is greatly reduced, the efficiency is greatly improved, the calculation amount is easy to control, the degree of automation is high, and the operation effect is good. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of this application. The illustrative embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings: Figure 1 A schematic diagram of a highway route selection planning method based on evolutionary computing according to the present invention; Figure 2 A schematic diagram of an original path and a surrounding buffer zone according to a specific embodiment of the present invention; Figure 3 A schematic diagram of an original path, a standard path and a random path according to a specific embodiment of the present invention; Figure 4 A schematic diagram of a minimum circumscribed rectangle of a high-cost land parcel polyline according to a specific embodiment of the present invention; Figure 5 A schematic diagram of a buffer zone according to a specific embodiment of the present invention; Figure 6 It is a schematic diagram of a highway route selection planning device based on evolutionary computing of the present invention. DETAILED DESCRIPTION
[0018] To make the purpose, technical solutions and advantages of the present invention clearer, various embodiments of the present invention will be described in detail below in conjunction with the accompanying drawings. However, it will be appreciated by those skilled in the art that in various embodiments of the present invention, many technical details are proposed in order to enable the reader to better understand the present application. However, even without these technical details and various changes and modifications based on the following embodiments, the technical solutions claimed in the present application can also be implemented. The following division of various embodiments is for the convenience of description and should not constitute any limitation on the specific implementation of the present invention. Various embodiments can be combined and referenced with each other without contradiction.
[0019] Example 1 In the related art, highway construction planning is usually carried out by manually planning multiple routes and comparing the estimated costs. However, this method is labor-intensive and prone to deviations. The present embodiment provides a highway route selection planning method based on evolutionary computing. For pre-built highways, original paths, standard paths and random paths are generated based on the starting point, end point and surrounding buffer zone. Genetic algorithms are used to evolve the original paths, standard paths and random paths to obtain the path with the lowest cost. The optimal solution can be selected without manual planning, and the workload is small and deviations are not likely to occur.
[0020] This embodiment provides a highway route planning method based on evolutionary computing, such as Figure 1 As shown, the following steps are included: Step S1: For the pre-built highway, a straight line path between the starting point and the end point is used as the original path, and a certain range of areas on both sides of the original path are selected to obtain a buffer zone within the area; Step S2: taking a polyline path between the starting point and the end point and passing through the buffer zone as a standard path, and taking a randomly generated polyline path between the starting point and the end point as a random path; Step S3: updating the original path, the standard path, and the random path based on the genetic algorithm to obtain a new path; Step S4: Obtain the costs of the original path, the standard path, the random path, and the new path, obtain the fitness of each path based on the cost, and select the path with the highest fitness as the final selected path.
[0021] The present embodiment provides a highway route planning method based on evolutionary computing, which sets an original path, a standard path and a random path. The original path is generated by a straight path between a starting point and an end point, the standard path is generated by a broken line path set between the starting point and the end point and passing through a surrounding buffer zone, and the random path is generated by a randomly generated broken line path set between the starting point and the end point. The addition of the standard path in the present embodiment represents a heuristic initialization, and the addition of the standard path will converge faster in the early stage. Otherwise, it is completely random initialization, which converges slowly and is difficult to obtain the optimal path. The original path is added because the fitness of the original path is usually higher than that of the random path, and the "bend" in the "path bending contribution" is the original path. The original path is the initial path, and the final solution may be obtained by "bending" the original path. Without adding the original path, the algorithm may not converge to the optimal solution, and the global search ability will be deteriorated. In this embodiment, the original path, the standard path, and the random path are updated based on the genetic algorithm to obtain a new path, and the costs of the original path, the standard path, the random path, and the new path are obtained. The fitness of each path is obtained based on the cost, and the path with the highest fitness is selected as the final selected path. Compared with the existing technology, the line selection planning of highway construction can be automatically realized, and the route plan with the relatively lowest cost is obtained, the overall cost is greatly reduced, the efficiency is greatly improved, the calculation amount is easy to control, the degree of automation is high, and the operation effect is good.
[0022] In step S1 of this embodiment, Figure 2 As shown, a schematic diagram of an original path and a surrounding buffer zone of a specific embodiment of the present invention is shown, where the starting point and the end point of a pre-built highway are selected on a topographic map, and both the starting point and the end point are represented by location codes, which are geographic coordinate data.
[0023] Specifically, consider the position encoding in continuous space, the coordinates of the starting point and the end point are known, respectively and .
[0024] In step S1 of this embodiment, Figure 2 As shown, there are multiple high-cost plots in the area around the original path. Buffer zones can be obtained based on the high-cost plots. Specifically, the method for obtaining the buffer zones in the area is: Step S101: Take a certain range of areas on both sides of the center line and obtain high-cost plots within the area and at the edge of the area; Step S102: for each high-cost land parcel, obtaining a high-cost land parcel polyline constituting the high-cost land parcel; Step S103: Obtain the minimum bounding rectangle of the high-cost land parcel polyline, such as Figure 4 FIG. 1 is a schematic diagram of a minimum circumscribed rectangle of a high-cost land parcel polyline according to a specific embodiment of the present invention; Step S104: Expand the minimum bounding rectangle to obtain a buffer zone, such as Figure 5 As shown, a schematic diagram of a buffer zone of a specific embodiment of the present invention.
[0025] In step S101 of this embodiment, a circle with a certain radius can be generated as the area with the midpoint of the center line as the center, or a rectangle with a certain size can be generated as the area by extending the center line to both sides.
[0026] In step S102 of this embodiment, Figure 2 As shown, it is a schematic diagram of multiple high-cost plots of the present invention. Each high-cost plot is a high-cost plot such as a residential area, water surface, mountainous area, etc. These high-cost plots have affected the construction of roads. The high-cost plots are surrounded by irregular lines, and the positions of the lines surrounding the high-cost plots are encoded as geographic coordinate data.
[0027] High-cost plots are fitted with polygon vertices. A high-cost plot can be represented as: .
[0028] If there is no high-cost plot, then the path with the lowest cost is the original path from the start point to the end point. On this basis, add a high-cost plot. If this high-cost plot does not intersect with the original straight line, then the path with the lowest cost is still the original path; if this high-cost plot intersects with the original straight line, then the path will either bypass or pass through this high-cost plot, and the place where the path bends on the basis of the original path is likely to be near the high-cost plot. For this problem, there is the following understanding: the existence of a high-cost plot may cause the path to bend near it or pass directly through it. Different high-cost plots have different contributions to the possible bending of the path. The influencing factors include unit length cost, the distance from the high-cost plot to the original straight line, the area of the high-cost plot, etc.
[0029] In step S2 of this embodiment, Figure 3 FIG. 1 is a schematic diagram of an original path, a standard path, and a random path according to a specific embodiment of the present invention. In the figure, the orange broken line is the standard path. The method of using a path between a starting point and an end point and passing through a surrounding buffer zone as the standard path is: Step S201: setting the number n of the points to be selected so that the points to be selected are distributed in each buffer zone; Step S202: sequentially connect the starting point, each candidate point and the end point to obtain a standard path.
[0030] Specifically, in step S201 of this embodiment, the number of each to-be-selected point is set, and the method of distributing each to-be-selected point in each buffer zone is: Step S2011: Obtain the contribution weight of each buffer zone to the standard path bend:
[0031] Where: is the contribution weight, is the construction cost per unit length of each buffer zone, is the distance from the centroid of the buffer zone to the original path, is the area of the buffer zone; Step S2011: normalizing the contribution weights of all buffer zones to obtain the weights of all buffer zones; Step S2012: obtaining the distribution of each candidate point in each buffer zone based on the contribution weights of all buffer zones and the number of candidate points; Step S2013: Based on the distribution of each first candidate point in each buffer zone, for each candidate point, randomly select a point in the buffer zone where the candidate point is located as the candidate point.
[0032] For example, suppose n=10, that is, the starting point plus 10 candidate points are used as a path planning scheme. When initializing these 10 candidate points, perform the following operations: Will The normalized value is used as the probability, and a high-cost plot is selected according to this probability. Then a buffer is established for the polygon formed by the high-cost plot polyline surrounding the high-cost plot, and a point is randomly selected in the buffer as the candidate point. The method of establishing a buffer is to first take the minimum enclosing rectangle of the polygon, and then expand the minimum enclosing rectangle according to the set parameter expansion_factor.
[0033] The above is a heuristic method to obtain the initial solution (standard path). The initial population should also include a portion of completely randomly sampled solutions (random paths) and a straight line solution from the starting point to the end point (the original path composed of n candidate points evenly divided into the starting point).
[0034] The following parameters need to be set in advance: population_size is the population size, inspired_initialize_rate is the proportion of heuristic initialization to the initial population (including heuristic initialization and 1 straight line solution), n_nodes is the number of candidate points on the planning path (excluding the starting point), and expansion_factor is the expansion ratio of the circumscribed rectangle.
[0035] In step S201 of this embodiment, Figure 3 As shown, the green polyline is a random path. The method of using a randomly generated path between the starting point and the end point as a random path is: Randomly select n candidate points in the area, connect the starting point, each candidate point and the end point in sequence to generate a random path.
[0036] Specifically, after the candidate points are selected, the shortest path between the starting point and the end point that passes through all the candidate points in each buffer zone is regarded as the standard path or the random path.
[0037] Standard paths or random paths are composed of the start and end points plus the middle The polyline composed of the selected points is used to fit. The coordinates of the selected points are … , so a standard path or random path planning solution can be expressed as: .
[0038] In step S4 of this embodiment, the method for obtaining the costs of the original path, the standard path, the random path, and the new path is: Step S401: Cutting step: for each path, obtain the first line segment of the path in each buffer zone and the second line segment of the path intersecting with each buffer zone, the first line segment includes the case where both ends are in one buffer zone and the case where one end is at the edge of one buffer zone and the other end is in the buffer zone, the second line segment has two ends at the edges of two buffer zones respectively; Step S402: first line segment cost acquisition step: multiplying the length of each first line segment by the unit length construction cost of the buffer zone where the first line segment is located to obtain the cost of the first line segment; Step S403: a step of obtaining the cost of the second line segment: multiplying the length of each second line segment by the unit length construction cost of the non-buffer zone to obtain the cost of the second line segment; Step S404: path cost acquisition step: summing up the costs of all first line segments and all second line segments to obtain the cost of the path; Step S405: Repeat the cutting step to the path cost acquisition step until the costs of all original paths, standard paths, random paths, and new paths are acquired.
[0039] In step S4 of this embodiment, the method of updating the original path, the standard path, and the random path using a crossover operator and / or a mutation operator based on a genetic algorithm to obtain a new path is: Step S411: using position codes to mark the starting point, the end point and the point to be selected, and generating position codes corresponding to each original path, standard path and random path based on the position codes of the starting point, the end point and the point to be selected; Step S412: For each path, the position code of each candidate point on the path is used as a gene, and each gene is encoded with a real number, so that each path forms a chromosome, and each gene is a decimal real number; Step S413: Use a crossover operator and / or a mutation operator to update the chromosome to obtain a new chromosome, and obtain a new path based on the new chromosome.
[0040] For each path, after removing the starting point and the end point, the x or y coordinate of each point is regarded as a gene and encoded into a chromosome with a real number. , each gene is a decimal real number.
[0041] In step S413 of this embodiment, the crossover operator is to take a gene in each of the two chromosomes to exchange the position code to obtain a new chromosome, and generate a new path based on the new chromosome; the mutation operator is to randomly generate a position code, replace the position code in a gene with the position code, obtain a new chromosome, and generate a new path based on the new chromosome.
[0042] Here are the steps to generate a new population each round: First, retain the paths represented by chromosomes with higher fitness in the previous round of population, and the retention ratio is elite_percentage.
[0043] According to the normalized value of the fitness of the chromosome in the previous round of population as the probability, roulette wheel selection is performed, two chromosomes are selected each time, and the crossover operator and mutation operator are applied to generate two new chromosomes, and the new chromosomes are placed in the new population until the new population size equals population_size.
[0044] There are two methods for the crossover operator.
[0045] The first method is to generate two intersection points pos_1 and pos_2, and exchange the parent fragments according to these two points.
[0046] child1 = parent1[0:pos1] + parent2[pos1:pos2]+ parent1[pos2:] child2 = parent2[0:pos1] + parent1[pos1:pos2]+ parent2[pos2:] The second method is to randomly generate a 01 string of the same length as the chromosome each time a crossover occurs, and generate offspring according to whether each bit in the 01 string is 0 or 1. If the first bit of the 01 string is 0, the first bit of child1 is the first bit of parent1, and the first bit of child2 is the first bit of parent2; if the first bit of the 01 string is 1, the first bit of child1 is the first bit of parent2, and the first bit of child2 is the first bit of parent1.
[0047] The mutation probability mutation_rate is a pre-set parameter that determines the probability of an individual mutation in one iteration. After the crossover operator generates two offspring, it determines whether a mutation occurs according to the mutation probability. If a mutation occurs, a mutation point is randomly generated, and the original value of the mutation point is set to x. A value is randomly selected in the range of [x-mutation_range, x+mutation_range] as the new value after the mutation. Mutation_range is a pre-set parameter that indicates the range when the mutation occurs.
[0048] The following parameters need to be set in advance: elite_percentage is the retention ratio of excellent chromosomes in the previous round of population, mutation_rate is the mutation probability, and mutation_range is the mutation range.
[0049] In step S4 of the present invention, the expression for obtaining fitness based on cost is:
[0050] Where: is the construction cost of the path, is a set constant.
[0051] The goal of this evolutionary calculation is to make the cost of route construction as low as possible. For a path planning solution route, its fitness It should be larger when the total cost is lower.
[0052] The cost calculation is implemented as follows: For a path planning scheme, it can be divided into n+1 segments. Each segment is checked in turn to see if it intersects with a buffer in the buffer set (or is inside the buffer). If so, the intersection point is calculated, and the length of the intersecting segment is calculated. The cost of this segment is the length of the intersecting segment multiplied by the unit length cost of the intersecting buffer, plus the length of the unintersecting part multiplied by 1. The sum of the costs of each segment is the cost.
[0053] Example 2 Embodiment 2 provides a highway route selection planning device based on evolutionary computing, such as Figure 4 As shown, including: The original path acquisition module is used to take the straight path of the starting point and the end point of the pre-built highway as the original path, select a certain range of areas on both sides of the original path, and obtain the buffer zone in the area; A standard path and random path acquisition module, which uses a polyline path between a starting point and an end point and passing through a buffer zone as a standard path, and uses a randomly generated polyline path between a starting point and an end point as a random path; A new path acquisition module is used to update the original path, standard path, and random path based on a genetic algorithm to obtain a new path; The final selected path acquisition module is used to obtain the costs of the original path, standard path, random path, and new path, obtain the fitness of each path based on the cost, and select the path with the highest fitness as the final selected path.
[0054] Example 3 Embodiment 3 provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the above-mentioned highway route planning method based on evolutionary calculation when executing the program.
[0055] Example 4 Embodiment 4 provides a non-transitory computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the above-mentioned highway route planning method based on evolutionary calculation is implemented.
[0056] Those skilled in the art can understand that all or part of the steps in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a program, and the program is stored in a storage medium, including several instructions to enable a device (which can be a single-chip microcomputer, chip, etc.) or a processor to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.
[0057] Those skilled in the art will appreciate that the above-mentioned embodiments are specific examples for implementing the present invention, and in actual applications, various changes may be made thereto in form and detail without departing from the spirit and scope of the present invention.
[0058] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.
Claims
1. A highway route planning method based on evolutionary computing, characterized in that: The following steps are involved: For the pre-built highway, the straight line path between the starting point and the end point is taken as the original path, and a certain range of areas on both sides of the original path are selected to obtain the buffer zone in the area; A polyline path between the starting point and the end point and passing through the buffer zone is used as the standard path, and a randomly generated polyline path between the starting point and the end point is used as the random path; Based on the genetic algorithm, the original path, standard path and random path are updated to obtain a new path; Obtain the costs of the original path, standard path, random path, and new path, obtain the fitness of each path based on the cost, and select the path with the highest fitness as the final selected path.
2. The highway route planning method based on evolutionary computing according to claim 1 is characterized in that: The method to obtain the buffer zone within the area is: Acquire high-cost plots within the region and at the edge of the region; For each high-cost plot, obtain the high-cost plot polylines constituting the high-cost plot; Get the minimum bounding rectangle of the high-cost plot polyline; The minimum enclosing rectangle is expanded to obtain a buffer zone.
3. The highway route planning method based on evolutionary computing according to claim 1 is characterized in that: The method of using a path between the starting point and the end point and passing through the surrounding buffer zone as the standard path is: Set the number of points to be selected n, and obtain the contribution weight of each buffer zone to the standard path bend: Where: is the contribution weight, is the construction cost per unit length of each buffer zone, is the distance from the centroid of the buffer zone to the original path, is the area of the buffer zone; The contribution weights of all buffer zones are normalized to obtain the weights of all buffer zones; Based on the contribution weights of all buffer zones and the number of candidate points, the distribution of each candidate point in each buffer zone is obtained; Based on the distribution of the candidate points in each buffer zone, a point in the buffer zone where the candidate point is located is randomly selected as the candidate point; Connect the starting point, each candidate point and the end point in sequence to obtain the standard path.
4. The highway route planning method based on evolutionary computing according to claim 3 is characterized in that: The method of using a randomly generated polyline path between the starting point and the end point as a random path is: Randomly select n candidate points in the area, connect the starting point, each candidate point and the end point in sequence, and generate a random path.
5. The highway route planning method based on evolutionary computing according to claim 1 is characterized in that: The method to obtain the cost of the original path, standard path, random path, and new path is: Cutting step: for each path, obtain the first line segment of the path in each buffer zone and the second line segment of the path intersecting with each buffer zone, the first line segment includes the case where both ends are in one buffer zone and the case where one end is at the edge of one buffer zone and the other end is in the buffer zone, the two ends of the second line segment are at the edges of two buffer zones respectively; First line segment cost acquisition step: multiplying the length of each first line segment by the unit length construction cost of the buffer zone where the first line segment is located to obtain the cost of the first line segment; Second line segment cost acquisition step: multiplying the length of each second line segment by the unit length construction cost of the non-buffer zone to obtain the cost of the second line segment; Path cost acquisition step: summing up the costs of all first line segments and all second line segments to obtain the cost of the path; Repeat the cutting step to the path cost acquisition step until the costs of all original paths, standard paths, random paths, and new paths are obtained.
6. The highway route planning method based on evolutionary computing according to claim 3 is characterized in that: The method of updating the original path, standard path, and random path by using crossover operator and / or mutation operator based on genetic algorithm to obtain a new path is as follows: The starting point, the end point and the candidate point are marked with position codes, and the position codes corresponding to the original path, the standard path and the random path are generated based on the position codes of the starting point, the end point and the candidate point; For each path, the position of each candidate point on the path is encoded as a gene, and each gene is encoded into a chromosome using a real number, so that each path forms a chromosome; The chromosome is updated by using a crossover operator and / or a mutation operator to obtain a new chromosome, and a new path is obtained based on the new chromosome.
7. The highway route planning method based on evolutionary computing according to claim 1 is characterized by: The expression for obtaining fitness based on cost is: Where: is the construction cost of the path, is a set constant.
8. A highway route planning device based on evolutionary computing, characterized in that: include: The original path acquisition module is used to take the straight path of the starting point and the end point of the pre-built highway as the original path, select a certain range of areas on both sides of the original path, and obtain the buffer zone in the area; A standard path and random path acquisition module, which uses a polyline path between a starting point and an end point and passing through a buffer zone as a standard path, and uses a randomly generated polyline path between a starting point and an end point as a random path; A new path acquisition module is used to update the original path, standard path, and random path based on a genetic algorithm to obtain a new path; The final selected path acquisition module is used to obtain the costs of the original path, standard path, random path, and new path, obtain the fitness of each path based on the cost, and select the path with the highest fitness as the final selected path.
9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the program, the highway route planning method based on evolutionary calculation as described in any one of claims 1 to 7 is implemented.
10. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the highway route selection planning method based on evolutionary calculation as described in any one of claims 1 to 7 is implemented.
