Vehicle driving path planning method, device, electronic device and readable storage medium

By adjusting the number of sub-paths of the vehicle driving path through the heuristic planning algorithm and path splitting module, combined with the path optimization strategy and cost parameters, the problem of low path planning efficiency in the existing technology is solved, and the efficiency and optimization effect of path planning are achieved. of equilibrium.

CN111912420BActive Publication Date: 2024-09-24BEIJING JINGDONG ZHENSHI INFORMATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN201910378703.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-05-08
Publication Date
2024-09-24
Estimated Expiration
2039-05-08

AI Technical Summary

Technical Problem

Existing path planning methods are difficult to achieve a balance between path optimization and high efficiency, resulting in low efficiency in practical applications and unable to meet actual use needs.

Method used

Use a heuristic planning algorithm to generate vehicle driving paths, and adjust the number of sub-paths to reach the predetermined number of vehicles through split cost calculation and path splitting modules. Combined with path optimization strategies and cost parameters, ensure the efficiency of path planning results. and optimization.

Benefits of technology

On the basis of taking into account actual use needs, the efficiency of path planning is maximized and the effect is optimized, ensuring that the path planning results can meet the actual application needs of large-scale problems.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 00000000_0000
    Figure 00000000_0000
Patent Text Reader

Abstract

The present application discloses a vehicle driving path planning method, device, electronic device and readable storage medium, and relates to computer technology. The method includes: generating a vehicle driving path using a heuristic planning algorithm according to a starting point and a set of sites; each sub-path in the vehicle driving path starts from the starting point and passes through at least one of the sites; when the number of sub-paths in the vehicle driving path is less than a predetermined number of vehicles, for each sub-path, the splitting cost before and after the path splitting is calculated based on each site on the sub-path, and the site with the lowest splitting cost is determined; at the site with the lowest splitting cost, the sub-path is split until the number of sub-paths in the vehicle driving path is equal to the predetermined number of vehicles, and a set of vehicle driving paths is obtained as the path planning result. When performing path planning, the present application achieves a balanced effect of making the path optimal and efficient on the basis of taking into account the actual use needs.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to computer technology, and in particular to a vehicle driving path planning method, device, electronic device and readable storage medium. Background Art

[0002] The sequence of points or curves connecting the starting point and the end point is called a path, and the strategy for constructing a path is called path planning. Nowadays, path planning has a wide range of applications in many fields. For example, in express delivery, navigation and other application fields, path planning methods are often used to solve vehicle path planning problems.

[0003] At present, the path planning methods in the prior art only consider how to make the optimal path for planning. In actual implementation, the planning result of the optimal path is often inefficient, thereby reducing the implementation effect of the planned path. Therefore, the existing path planning methods cannot achieve a balanced effect of making the path optimal and efficient on the basis of taking into account the actual use needs. Summary of the invention

[0004] In view of this, the main purpose of the present application is to provide a vehicle driving path planning method, device, electronic device and readable storage medium, which can achieve a balanced effect of optimal path and high efficiency while taking into account actual usage needs when performing path planning.

[0005] In order to achieve the above objectives, the technical solution proposed in this application is:

[0006] In a first aspect, an embodiment of the present application provides a vehicle driving path planning method, comprising:

[0007] A vehicle driving path is generated using a heuristic planning algorithm according to a starting point and a site set; the site set includes all sites that the vehicle needs to pass through during driving, and the all sites are included in the generated vehicle driving path, wherein each sub-path in the vehicle driving path starts from the starting point and passes through at least one of the sites;

[0008] When the number of sub-paths in the vehicle driving path is less than a predetermined number of vehicles, for each sub-path, based on each station on the sub-path, the splitting cost before and after the path splitting is calculated to determine the station with the lowest splitting cost;

[0009] At the site with the lowest splitting cost, the sub-paths are split until the number of sub-paths in the vehicle driving path is equal to the predetermined number of vehicles, and the obtained set of vehicle driving paths is used as the path planning result.

[0010] In a possible implementation manner, the step of calculating the splitting cost before and after the path splitting based on each station on the sub-path is:

[0011] Deleting the path after the site in the subpath, and calculating the first cost reduced when the path after the site is deleted;

[0012] Generate a new sub-path using a heuristic planning algorithm according to each idle site released when the path after the site is deleted, and calculate the second cost increased by generating the new sub-path;

[0013] The splitting costs before and after path splitting are obtained according to the first cost and the second cost.

[0014] In a possible implementation manner, after generating the vehicle driving path using the heuristic planning algorithm according to the starting point and the site set, and before determining whether the number of sub-paths in the vehicle driving path is equal to a predetermined number of vehicles, the method further includes:

[0015] Randomly releasing at least one station in the vehicle driving path, and generating a new sub-path for the at least one station obtained by releasing using a heuristic planning algorithm;

[0016] After the number of sub-paths in the vehicle driving path is equal to a predetermined number of vehicles, the method further includes:

[0017] Return to the step of randomly releasing at least one station in the vehicle driving path until the number of executions is equal to a preset number threshold; wherein each execution obtains a group of vehicle driving paths, and the number of sub-paths in each group of vehicle driving paths is equal to the predetermined number of vehicles;

[0018] For each group of vehicle driving paths, the cost of the group of vehicle driving paths is calculated; and according to the calculated cost of each group of vehicle driving paths, one group is determined as the path planning result.

[0019] In a possible implementation manner, the step of generating a new sub-path is:

[0020] From each of the idle sites, a must-go site parameter is allocated to each vehicle that is not allocated a path, and the must-go site parameter is input into a heuristic planning algorithm to generate a new sub-path; each of the new sub-paths includes the must-go site.

[0021] In a possible implementation manner, after generating the vehicle driving path using the heuristic planning algorithm according to the starting point and the site set, and before determining whether the number of sub-paths in the vehicle driving path is equal to a predetermined number of vehicles, the method further includes:

[0022] Randomly releasing at least one station in the vehicle's driving path, while ensuring that each vehicle retains at least one station; for the at least one station obtained by releasing, using a heuristic planning algorithm to generate a new sub-path;

[0023] After the number of sub-paths in the vehicle driving path is equal to a predetermined number of vehicles, the method further includes:

[0024] Return to the step of randomly releasing at least one station in the vehicle driving path until the number of executions is equal to a preset number threshold; wherein each execution obtains a group of vehicle driving paths, and the number of sub-paths in each group of vehicle driving paths is equal to the predetermined number of vehicles;

[0025] For each group of vehicle driving paths, the cost of the group of vehicle driving paths is calculated; and according to the calculated cost of each group of vehicle driving paths, one group is determined as the path planning result.

[0026] In a possible implementation manner, the step of generating a new sub-path is:

[0027] According to the uncarried idle demand released when the route after the station is deleted, the vehicle capacity parameters are set for the vehicles not assigned to the route respectively, so that the capacity difference between the sum of the vehicle capacity parameters of the vehicles not assigned to the route and the idle demand is less than the vehicle capacity parameter of each vehicle not assigned to the route;

[0028] The vehicle capacity parameters are input into a heuristic planning algorithm to generate a new sub-path.

[0029] In a possible implementation manner, the step of generating a new sub-path is:

[0030] Set the cost parameters for each vehicle that is not assigned a route;

[0031] Each of the cost parameters is input into a heuristic planning algorithm to generate a new sub-path.

[0032] In a second aspect, an embodiment of the present application provides a vehicle driving path planning device, comprising:

[0033] A path planning module, used to generate a vehicle driving path using a heuristic planning algorithm according to a starting point and a site set; the site set includes all sites that the vehicle needs to pass through during driving, and the all sites are included in the generated vehicle driving path, wherein each sub-path in the vehicle driving path starts from the starting point and passes through at least one of the sites;

[0034] A judging module, used for judging whether the number of sub-paths in the vehicle driving path is equal to a predetermined number of vehicles;

[0035] The path splitting module is used to calculate the splitting cost before and after the path splitting based on each station on the sub-path for each sub-path, and determine the station with the lowest splitting cost; it is also used to split the corresponding sub-path at the station with the lowest splitting cost until the number of sub-paths in the vehicle driving path is equal to the predetermined number of vehicles.

[0036] In a third aspect, an embodiment of the present application provides 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 first aspect provided by the embodiment of the present application and the steps of each possible implementation method in the first aspect are implemented.

[0037] In a fourth aspect, an embodiment of the present application provides a computer program stored thereon, which, when executed by a processor, implements the first aspect provided by the embodiment of the present application and the steps of each possible implementation method in the first aspect.

[0038] In summary, the present application proposes a vehicle driving path planning method, device, electronic device and readable storage medium. After performing path planning to obtain a vehicle planned path, it is determined whether the number of paths in the vehicle planned path is equal to a predetermined number of vehicles. By setting the predetermined number of vehicles, it can be ensured that the path planned by the vehicle driving path planning method provided in the embodiment of the present application meets the actual use requirements. Moreover, by ensuring that the number of paths in the vehicle planned path is equal to the predetermined number of vehicles, the efficiency of the path planned by the vehicle driving path planning method provided in the embodiment of the present application can be maximized, thereby achieving a balanced effect of optimal path and high efficiency on the basis of taking into account the actual use requirements. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] Figure 1 This is an example of an application scenario of the embodiment of the present application;

[0040] Figure 2 This is an example of the path planning result obtained by using the heuristic planning algorithm for path planning;

[0041] Figure 3 This is a flow chart of the first embodiment of the present application;

[0042] Figure 4 This is a flow chart of the second embodiment of the present application;

[0043] Figure 5 A schematic diagram of a process of calculating the splitting cost before and after the path splitting based on each station on the sub-path in the second embodiment of the present application;

[0044] Figure 6This is an example of a path planning result obtained using the vehicle driving path planning method provided in the second embodiment of the application;

[0045] Figure 7 This is a flow chart of the third embodiment of the present application;

[0046] Figure 8 This is a flow chart of the fourth embodiment of the present application;

[0047] Fig. 9 This is a flow chart of Embodiment 5 of the present application;

[0048] Fig.10 A schematic diagram of the structure of a vehicle driving path planning device provided in Example 6 of the present application;

[0049] Fig.11 A schematic diagram of the structure of another vehicle driving path planning device provided in Example 6 of the present application;

[0050] Fig.12 A schematic diagram of the structure of an electronic device provided in Example 7 of the present application. DETAILED DESCRIPTION

[0051] The sequence of points or curves connecting the starting position and the end position is a path, and the strategy for constructing the path is path planning. Nowadays, path planning has been widely used in many fields such as navigation, robotics, and drones.

[0052] At present, the path planning methods in the prior art mainly include two categories: precise solution planning algorithms and heuristic planning algorithms. The precise solution planning algorithm can give an accurate optimal solution, but the scale of the problems it can solve is limited. Due to the long time occupied by the calculation and the excessive consumption of resources, the calculation efficiency is low, and it is basically impossible to calculate and solve large-scale problems. The heuristic planning algorithm can solve large-scale problems, but it only gives a heuristic feasible path. Even if it can meet the needs of path planning, the obtained path planning results are often inefficient and the implementation effect is not good. Moreover, whether it is a precise solution planning algorithm or a heuristic planning algorithm, it only considers how to make the obtained path optimal for planning. In actual implementation, the planning result of the optimal path is often inefficient, thereby reducing the implementation effect of the planned path. Therefore, the existing path planning method cannot achieve a balanced effect of making the path optimal and efficient on the basis of taking into account the actual use needs.

[0053] The vehicle driving route planning method, device, electronic device and readable storage medium provided in the embodiments of the present application can be applied to any scenario where it is necessary to simultaneously consider at least two practical constraints such as the number of vehicles, vehicle capacity, vehicle cost or station for route planning, and is particularly suitable for large-scale problems. For example, when the number of vehicles, starting point and station are restricted at the same time, specifically, Figure 1 As shown in the figure, assume that a path planning is performed for a scenario with 3 vehicles, 1 starting point, and 100 stations. If an exact solution planning algorithm is used, the time cost and computing resource consumption cost are too high to be practically applied because the exact solution planning algorithm is too inefficient when solving large-scale problems with a large number of vehicles or stations. If a heuristic planning algorithm is used, it cannot be guaranteed that the planned path can use all vehicles. Figure 2 The figure shows a feasible path obtained when using the heuristic planning algorithm to plan the path for a scenario containing 3 vehicles, 1 starting point and 100 stations. Figure 2 As shown in the figure, the heuristic planning algorithm can only ensure the use of all stations for solving. Even if the path planning result obtained is the optimal solution in terms of the path, in terms of efficiency, the implementation efficiency is low and the implementation effect is not good when applying its path planning result because too few vehicles are used.

[0054] In view of this, the vehicle driving path planning method, device, electronic device and readable storage medium proposed in the embodiments of the present application, after performing path planning to obtain a vehicle planned path, determine whether the number of paths in the vehicle planned path is equal to a predetermined number of vehicles. By setting the predetermined number of vehicles, it can be ensured that the path planned by the vehicle driving path planning method provided in the embodiments of the present application meets actual usage requirements, and by ensuring that the number of paths in the vehicle planned path is equal to the predetermined number of vehicles, the efficiency of the path planned by the vehicle driving path planning method provided in the embodiments of the present application can be maximized, thereby achieving a balanced effect of optimal path and high efficiency on the basis of taking into account actual usage requirements.

[0055] In order to make the objectives, technical solutions and advantages of the present application more clear, the present application will be further described in detail below with reference to the accompanying drawings and specific embodiments.

[0056] Embodiment 1

[0057] Figure 3 This is a flow chart of the first embodiment of the present application, as shown in Figure 3 As shown, this embodiment mainly includes:

[0058] S301: Generate a vehicle driving path using a heuristic planning algorithm based on a starting point and a site set; the site set includes all sites that the vehicle needs to pass through during driving, and the all sites are included in the generated vehicle driving path, wherein each sub-path in the vehicle driving path starts from the starting point and passes through at least one of the sites.

[0059] Here, any commonly used heuristic planning algorithm can be used to generate the vehicle driving path, such as genetic algorithm, simulated annealing algorithm, ant colony algorithm, meta-heuristic algorithm and hyper-heuristic algorithm, etc. The generated vehicle driving path includes at least one sub-path.

[0060] S302: When the number of sub-paths in the vehicle driving path is less than a predetermined number of vehicles, for each sub-path, the splitting cost before and after the path splitting is calculated based on each station on the sub-path, and the number of sub-paths in the vehicle driving path of the station with the lowest splitting cost is determined.

[0061] In the generated vehicle driving path, one vehicle travels on each path, so the number of sub-paths in the vehicle driving path is equal to the number of vehicles used in path planning. Determining whether the number of sub-paths in the vehicle driving path is equal to the pre-given number of vehicles is to determine whether the number of vehicles used in path planning is equal to the pre-given number of vehicles.

[0062] Specifically, the following steps 1 to 3 may be used to calculate the splitting cost before and after the path splitting based on each station on the sub-path:

[0063] Step 1: Delete the path after the site in the sub-path, and calculate the first cost reduced when the path after the site is deleted.

[0064] Step 2: Generate a new sub-path using a heuristic planning algorithm according to each idle site released when the path after the site is deleted, and calculate the second cost increased by generating the new sub-path.

[0065] Step 3: Obtain the splitting costs before and after path splitting according to the first cost and the second cost.

[0066] S303: At the site with the lowest splitting cost, the sub-paths are split until the number of sub-paths in the vehicle driving path is equal to a predetermined number of vehicles, and the obtained set of vehicle driving paths is used as a path planning result.

[0067] When splitting, any commonly used heuristic planning algorithm can be used to generate the vehicle driving path, such as genetic algorithm, simulated annealing algorithm, ant colony algorithm, meta-heuristic algorithm and hyper-heuristic algorithm. When generating new sub-paths, the following three possible implementation methods AC can also be used to reduce the number of times the vehicle driving path is split and improve the computational efficiency of the vehicle driving path splitting method.

[0068] A: In one possible implementation, when generating a new sub-path, a must-go site parameter is assigned to each idle site for each vehicle that is not assigned a path, and the must-go site parameter is input into the heuristic planning algorithm to generate a new sub-path. The must-go sites can be randomly assigned, or more suitable sites can be selected as must-go sites based on distance and other principles.

[0069] The generated new sub-path includes the necessary stations for each vehicle that is not assigned a path, so that all vehicles that are not assigned a path can be forced to be used when generating a new sub-path.

[0070] B: In another possible implementation, when generating a new sub-path, the vehicle capacity parameters are set for the vehicles that are not assigned to the path according to the untransported idle demand that is released when the path after the site is deleted, so that the capacity difference between the sum of the vehicle capacity parameters of the vehicles that are not assigned to the path and the idle demand is smaller than the vehicle capacity parameters of each vehicle that is not assigned to the path; the vehicle capacity parameters are input into the heuristic planning algorithm to generate a new sub-path.

[0071] In this way, only when all vehicles on each unassigned path are fully utilized can their vehicle capacity parameters meet the capacity requirements of the released untransported idle demand when the path after the station is deleted. This can force all vehicles on the unassigned paths to be used when generating new sub-paths, reducing the number of times the vehicle driving path is split.

[0072] C: In another possible implementation, a cost parameter is set for each vehicle that is not assigned a route; each cost parameter is input into a heuristic planning algorithm to generate a new sub-route.

[0073] Preferably, when generating a new sub-route, the cost parameter of each vehicle not assigned a route may be set to a negative number.

[0074] In this way, each additional vehicle used will reduce the total cost parameter of vehicle use in the path planning result. In order to reduce the total cost parameter of vehicle use in the path planning result as much as possible, all vehicles that are not assigned to the path can be used when generating a new sub-path.

[0075] Embodiment 2

[0076] like Figure 4 As shown, the vehicle driving path planning method provided in the second embodiment of the present application includes:

[0077] S401: Generate an initial vehicle driving path.

[0078] For each station that is not assigned to a vehicle driving path, add the station to the optimal vehicle driving path and the suboptimal vehicle driving path obtained in the current round of planning in turn, calculate the cost difference between the two paths after the station is added to the above optimal vehicle driving path and the suboptimal vehicle driving path, select the station with the largest cost difference among the stations that are not assigned to a vehicle driving path, and assign it to the optimal vehicle driving path obtained in the current round of planning; iterate the above steps until each station is assigned to a vehicle driving path.

[0079] S402: Determine whether the number of iterations of the vehicle driving path planning method provided in this embodiment is equal to a preset number threshold.

[0080] S403: If the number of iterations is less than a preset threshold, the vehicle driving path is optimized.

[0081] Specifically, the step of optimizing the vehicle driving path includes: randomly releasing at least one station in the vehicle driving path, and generating a new sub-path for the at least one released station using a heuristic planning algorithm.

[0082] In a possible implementation, a path optimization strategy may be used to optimize the vehicle's driving path.

[0083] Specifically, a set of route optimization strategies includes a ruin step and a recreate step. The ruin step is to select and release several sites from the generated vehicle driving path; the recreate step is to re-plan the path according to the released sites. When the recreate step is used to re-plan the sites released in the ruin step, the path planning result may be the same as the vehicle driving path before the ruin step, or a different path planning result may be obtained.

[0084] Table 1 shows the methods that can be used in the ruin step.

[0085] Table 1 Implementation of the ruin step

[0086]

[0087]

[0088] Table 2 shows the methods that can be used in the recreate step.

[0089] Table 2 Implementation of the recreate step

[0090] Method Name Implementation Regret Choose the point that maximizes the cost difference between the optimal path and the suboptimal path best Choose the point with the lowest cost

[0091] Combining the ruin step and the recreate step can form a set of route optimization strategies. Table 3 shows all possible combinations of route optimization strategies.

[0092] Table 3 Combination of route optimization strategies

[0093] Combination name ruin steps recreate steps radial_best radial best radial_regret radial regret random_best random best random_regret random regret worst_best worst best worst_regret worst regret clusters_best clusters best clusters_regret clusters regret string_best string best string_regret string regret

[0094] In a possible implementation, the 10 route planning strategies may be each assigned a weight corresponding to the 10 route planning strategies, and then, based on the 10 route planning strategies and the weights corresponding to the 10 route planning strategies, any possible random algorithm, such as a roulette algorithm, may be used to randomly select a route planning strategy from the 10 route planning strategies to optimize the vehicle driving path.

[0095] In addition, the method of generating the initial vehicle driving path in step S401 can also be implemented using any of the methods in the above-mentioned recreate step.

[0096] Following the above step S403, the content of step S404 is introduced next.

[0097] S404: Determine whether the number of sub-paths in the vehicle driving path is equal to a predetermined number of vehicles.

[0098] S405: If the number of sub-paths in the vehicle driving path is not equal to the pre-given number of vehicles, for each sub-path, the splitting cost before and after the path splitting is calculated based on each station on the sub-path, and the station with the lowest splitting cost is determined; at the station with the lowest splitting cost, the sub-path is split until the number of sub-paths in the vehicle driving path is equal to the pre-given number of vehicles.

[0099] Specifically, you can use Figure 5 The steps shown calculate the split cost of the path before and after the split based on each station on the subpath:

[0100] S501: Delete the path after the site in the sub-path, and calculate the first cost reduced when the path after the site is deleted.

[0101] Here, the first cost may be determined according to different application scenarios. For example, the first cost may be at least one of the cost of the distance traveled by the vehicle, the cost of the time traveled by the vehicle, the cost of using the vehicle, and the like.

[0102] The distance cost of the vehicle travels is the length of the vehicle travel path. At this time, the first cost is the length of the path deleted after the site.

[0103] When the first cost is the time cost of vehicle travel, the first cost may be the time taken by the vehicle to pass the deleted path. Since the average speeds of different vehicles are different, the average speeds of different vehicles may be used as parameters to obtain the time taken by the vehicle to pass the deleted path.

[0104] During the driving process of the vehicle, costs such as fuel consumption and wear and tear will be generated. Therefore, when the first cost is the vehicle's usage cost, the input parameter is the usage cost generated by different unit lengths of vehicle driving. At this time, the first cost is the usage cost generated when the vehicle travels the length of the deleted path.

[0105] S502: Generate a new sub-path using a heuristic planning algorithm according to each idle site released when the path after the site is deleted, and calculate a second cost increased by generating the new sub-path.

[0106] Similarly, the second cost may also be determined according to different application scenarios. For example, the second cost may be at least one of the cost of the distance traveled by the vehicle, the cost of the time traveled by the vehicle, the cost of using the vehicle, and the like.

[0107] The distance cost of the vehicle is the length of the vehicle's travel path. In this case, the second cost is the length of the newly generated sub-path.

[0108] When the second cost is the time cost of vehicle travel, the second cost may be the time length of the vehicle passing through the new sub-path. Similarly, the time length of the vehicle passing through the new sub-path may be obtained by taking the average speed of different vehicles as a parameter.

[0109] Similarly, when the second cost is the use cost of the vehicle, the input parameter is the use cost generated by different vehicle unit lengths. In this case, the second cost is the use cost generated when the vehicle travels a new sub-path length.

[0110] S503: Obtain the splitting costs before and after path splitting according to the first cost and the second cost.

[0111] Specifically, when both the first cost and the second cost are positive numbers, the difference between the second cost and the first cost may be used as the splitting cost when the path is split based on the site of the path.

[0112] When splitting, any common path planning method can be used to generate a new sub-path, for example, directly using the above recreate step to generate a new sub-path, or using one of the above 10 route planning strategies to generate a new sub-path.

[0113] If the above recreate step is directly used to generate a new sub-path, or one of the above 10 route planning strategies is used to generate a new sub-path, the sum of the number of paths in the generated new sub-path and the number of sub-paths in the original vehicle driving path cannot be guaranteed to be equal to the pre-given number of vehicles. Therefore, it is necessary to determine whether the number of sub-paths in the split vehicle driving path is equal to the pre-given number of vehicles. If not, return to the step of splitting the vehicle driving path. This process continues until the number of sub-paths in the split vehicle driving path is equal to the pre-given number of vehicles, that is, until all pre-given vehicles in the vehicle driving path are used.

[0114] Following the above step S405, the content of step S406 is introduced next.

[0115] S406: If the number of sub-paths in the vehicle driving path is equal to the predetermined number of vehicles, the obtained set of vehicle driving paths is used as the path planning result and added to the feasible path set storing the path planning result.

[0116] The above set of vehicle driving paths includes at least one sub-path. Furthermore, if the number of sub-paths in the optimized vehicle driving path is equal to the predetermined number of vehicles, there is no need to split the sub-paths, and there is no need to perform the operation of generating new sub-paths. The optimized vehicle driving path is directly used as the path planning result and added to the feasible path set storing the path planning result.

[0117] S407: If the number of iterations is equal to a preset threshold, for each group of vehicle driving paths, the cost of the group of vehicle driving paths is calculated; and a group is determined as a path planning result according to the calculated cost of each group of vehicle driving paths.

[0118] Specifically, the cost of the vehicle's driving path may be determined according to different application scenarios. For example, the cost of the vehicle's driving path may be at least one of: the distance cost of the vehicle's driving, the time cost of the vehicle's driving, the use cost of the vehicle, and the like.

[0119] When the cost of the vehicle driving path is the distance cost of the vehicle driving, the cost of each group of vehicle driving paths is the total mileage of each sub-path included in the group of vehicle driving paths. The vehicle driving path with the shortest total mileage in the feasible path set is selected as the path planning result.

[0120] When the cost of the vehicle driving path is the time cost of the vehicle driving, the cost of each group of vehicle driving paths is the total time required for the vehicle to travel through each sub-path in the group of vehicle driving paths. The vehicle driving path with the least total time in the feasible path set is selected as the path planning result.

[0121] When the cost of the vehicle driving path is the vehicle usage cost, the cost of each group of vehicle driving paths is the total usage cost required for the vehicle to travel through each sub-path in the group of vehicle driving paths. The vehicle driving path with the minimum total usage cost in the feasible path set is selected as the path planning result.

[0122] When the vehicle driving route planning method provided in the embodiment of the present application is used to plan the route for a scenario where at least two practical constraints such as the number of vehicles, vehicle capacity, vehicle costs or stations need to be considered simultaneously, for example, Figure 1 As shown in Figure 2, the path planning for the scenario with 3 vehicles, 1 starting point and 100 stations can be obtained as follows: Figure 6 The path planning results shown are Figure 6 The vehicle driving path shown uses all three given vehicles, maximizing the efficiency of the path while ensuring that the path is optimal. This achieves a balanced effect of optimal path and high efficiency while taking into account actual usage needs.

[0123] Embodiment 3

[0124] like Figure 7 As shown, the vehicle driving path planning method provided in the third embodiment of the present application includes:

[0125] S701: Generate an initial vehicle driving path.

[0126] S702: Determine whether the number of iterations of the vehicle driving path planning method provided in this embodiment is equal to a preset number threshold.

[0127] S703: If the number of iterations is less than a preset threshold, the vehicle driving path is optimized, and during the optimization, it is ensured that each vehicle retains at least one station.

[0128] Specifically, the step of optimizing the vehicle driving path includes: randomly releasing at least one station in the vehicle driving path and ensuring that each vehicle retains at least one station; and generating a new sub-path for the at least one released station using a heuristic planning algorithm.

[0129] The path optimization strategy provided in the first embodiment can be used to optimize the vehicle driving path.

[0130] S704: Determine whether the number of sub-paths in the vehicle driving path is equal to a predetermined number of vehicles.

[0131] S705: If the number of sub-paths in the vehicle driving path is not equal to the predetermined number of vehicles, for each sub-path, the splitting cost before and after the path splitting is calculated based on each station on the sub-path, and the station with the lowest splitting cost is determined.

[0132] S706: Allocate a must-go site parameter to each vehicle that is not assigned a route from each idle site, input the must-go site parameter into a heuristic planning algorithm, and generate a new sub-route.

[0133] S707: If the number of sub-paths in the vehicle driving path is equal to the predetermined number of vehicles, the obtained set of vehicle driving paths is used as the path planning result and added to the feasible path set storing the path planning result.

[0134] S708: If the number of iterations is equal to a preset threshold, for each group of vehicle driving paths, the cost of the group of vehicle driving paths is calculated; and a group is determined as a path planning result according to the calculated cost of each group of vehicle driving paths.

[0135] Embodiment 4

[0136] like Figure 8 As shown, the vehicle driving path planning method provided in the fourth embodiment of the present application includes:

[0137] S801: Generate an initial vehicle driving path.

[0138] S802: Determine whether the number of iterations of the vehicle driving path planning method provided in this embodiment is equal to a preset number threshold.

[0139] S803: If the number of iterations is less than a preset threshold, the vehicle driving path is optimized.

[0140] Specifically, the step of optimizing the vehicle driving path includes: randomly releasing at least one station in the vehicle driving path, and generating a new sub-path for the at least one released station using a heuristic planning algorithm.

[0141] The path optimization strategy provided in the first embodiment can be used to optimize the vehicle driving path.

[0142] S804: Determine whether the number of sub-paths in the vehicle driving path is equal to a predetermined number of vehicles.

[0143] S805: If the number of sub-paths in the vehicle driving path is not equal to the predetermined number of vehicles, for each sub-path, the splitting cost before and after the path splitting is calculated based on each station on the sub-path, and the station with the lowest splitting cost is determined.

[0144] S806: According to the untransported idle demand released when the path after the site is deleted, the vehicle capacity parameters are set for the vehicles that are not assigned to the path, so that the capacity difference between the sum of the vehicle capacity parameters of the vehicles that are not assigned to the path and the idle demand is smaller than the vehicle capacity parameters of each vehicle that is not assigned to the path; the vehicle capacity parameters are input into the heuristic planning algorithm to generate a new sub-path.

[0145] S807: If the number of sub-paths in the vehicle driving path is equal to the predetermined number of vehicles, the obtained set of vehicle driving paths is used as the path planning result and added to the feasible path set storing the path planning result.

[0146] S808: If the number of iterations is equal to a preset threshold, for each group of vehicle driving paths, the cost of the group of vehicle driving paths is calculated; and a group is determined as a path planning result according to the calculated cost of each group of vehicle driving paths.

[0147] Embodiment 5

[0148] like Fig. 9 As shown, the vehicle driving path planning method provided in Embodiment 5 of the present application includes:

[0149] S901: Generate an initial vehicle driving path.

[0150] S902: Determine whether the number of iterations of the vehicle driving path planning method provided in this embodiment is equal to a preset number threshold.

[0151] S903: If the number of iterations is less than a preset threshold, the vehicle driving path is optimized.

[0152] Specifically, the step of optimizing the vehicle driving path includes: randomly releasing at least one station in the vehicle driving path, and generating a new sub-path for the at least one released station using a heuristic planning algorithm.

[0153] The path optimization strategy provided in the first embodiment can be used to optimize the vehicle driving path.

[0154] S904: Determine whether the number of sub-paths in the vehicle driving path is equal to a predetermined number of vehicles.

[0155] S905: If the number of sub-paths in the vehicle driving path is not equal to the predetermined number of vehicles, for each sub-path, the splitting cost before and after the path splitting is calculated based on each station on the sub-path, and the station with the lowest splitting cost is determined.

[0156] S906: Setting a cost parameter for each vehicle that is not assigned a route; inputting each cost parameter into a heuristic planning algorithm to generate a new sub-route.

[0157] S907: If the number of sub-paths in the vehicle driving path is equal to the predetermined number of vehicles, the obtained set of vehicle driving paths is used as the path planning result and added to the feasible path set storing the path planning result.

[0158] S908: If the number of iterations is equal to a preset threshold, for each group of vehicle driving paths, the cost of the group of vehicle driving paths is calculated; and a group is determined as a path planning result according to the calculated cost of each group of vehicle driving paths.

[0159] Based on the same design concept, the embodiments of the present application also provide a vehicle driving path planning device, an electronic device and a readable storage medium.

[0160] Embodiment 6

[0161] like Fig.10 As shown, the embodiment of the present application provides a vehicle driving path planning device 1000, comprising:

[0162] The path planning module 1001 is used to generate a vehicle driving path using a heuristic planning algorithm according to a starting point and a site set; the site set includes all sites that the vehicle needs to pass through during driving, and the all sites are included in the generated vehicle driving path, wherein each sub-path in the vehicle driving path starts from the starting point and passes through at least one of the sites;

[0163] A first judgment module 1002 is used to judge whether the number of sub-paths in the vehicle driving path is equal to a predetermined number of vehicles;

[0164] The path splitting module 1003 calculates the splitting cost before and after the path splitting based on each station on the sub-path for each sub-path when the number of sub-paths in the vehicle driving path is less than the predetermined number of vehicles, and determines the station with the lowest splitting cost; at the station with the lowest splitting cost, splits the corresponding sub-path until the number of sub-paths in the vehicle driving path is equal to the predetermined number of vehicles, and uses the obtained set of vehicle driving paths as the path planning result.

[0165] In a possible implementation manner, the path splitting module 1003 is further configured to:

[0166] Deleting the path after the site in the subpath, and calculating the first cost reduced when the path after the site is deleted;

[0167] Generate a new sub-path using a heuristic planning algorithm according to each idle site released when the path after the site is deleted, and calculate the second cost increased by generating the new sub-path;

[0168] The splitting costs before and after path splitting are obtained according to the first cost and the second cost.

[0169] In a possible implementation manner, the embodiment of the present application further provides a vehicle driving path planning device 1100. In addition to the path planning module 1101, the first judgment module 1102 and the path splitting module 1103, the vehicle driving path planning device 1100 also includes:

[0170] A path optimization module 1104 is used to randomly release at least one station in the vehicle driving path, and generate a new sub-path using a heuristic planning algorithm for the at least one station obtained by the release;

[0171] The second judgment module 1105 is further used to judge whether the number of executions is equal to a preset number threshold after the number of sub-paths in the vehicle driving path is equal to the predetermined number of vehicles; wherein each execution obtains a group of vehicle driving paths, and the number of sub-paths in each group of vehicle driving paths is equal to the predetermined number of vehicles;

[0172] The path selection module 1106 is used to calculate the cost of each group of vehicle driving paths for the group of vehicle driving paths; and determine a group as the path planning result according to the calculated cost of each group of vehicle driving paths.

[0173] In a possible implementation manner, the path splitting module 1103 is further configured to:

[0174] From each of the idle sites, a must-go site parameter is allocated to each vehicle that is not allocated a path, and the must-go site parameter is input into a heuristic planning algorithm to generate a new sub-path; each of the new sub-paths includes the must-go site.

[0175] In a possible implementation, the path optimization module 1104 is used to randomly release at least one station in the vehicle driving path, while ensuring that each vehicle retains at least one station; and to generate a new sub-path using a heuristic planning algorithm for the at least one station obtained by releasing;

[0176] The second judgment module 1105 is further used to judge whether the number of executions is equal to a preset number threshold after the number of sub-paths in the vehicle driving path is equal to the predetermined number of vehicles; wherein each execution obtains a group of vehicle driving paths, and the number of sub-paths in each group of vehicle driving paths is equal to the predetermined number of vehicles;

[0177] The path selection module 1106 is used to calculate the cost of each group of vehicle driving paths for the group of vehicle driving paths; and determine a group as the path planning result according to the calculated cost of each group of vehicle driving paths.

[0178] In a possible implementation manner, the path splitting module 1103 is further configured to:

[0179] According to the uncarried idle demand released when the path after the site is deleted, the vehicle capacity parameters are set for the vehicles that are not assigned to the path, so that the capacity difference between the sum of the vehicle capacity parameters of the vehicles that are not assigned to the path and the idle demand is smaller than the vehicle capacity parameters of each vehicle that is not assigned to the path; the vehicle capacity parameters are input into the heuristic planning algorithm to generate a new sub-path.

[0180] In a possible implementation manner, the path splitting module 1103 is further configured to:

[0181] A cost parameter is set for each vehicle that is not assigned a route; each cost parameter is input into a heuristic planning algorithm to generate a new sub-route.

[0182] Embodiment 7

[0183] like Fig.12 As shown, an embodiment of the present application also provides an electronic device 1200, including a memory 1201, a processor 1202, and a computer program stored in the memory 1201 and executable on the processor 1202. When the processor 1202 executes the program, it can be used to implement the steps in embodiment one or embodiment five of the present application.

[0184] Embodiment 8

[0185] An embodiment of the present application also provides a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the steps in Embodiment 1 or Embodiment 5 of the present application are implemented.

[0186] In summary, the above are only preferred embodiments of the present application and are not intended to limit the protection scope of the present application. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present application shall be included in the protection scope of the present application.

Claims

1. A vehicle driving path planning method, characterized in that: include: Generate vehicle travel paths using a heuristic planning algorithm based on the starting point and station set; The site set includes all sites that the vehicle needs to pass through during driving, and all the sites are included in the generated vehicle driving path, wherein each sub-path in the vehicle driving path starts from a starting point and passes through at least one of the sites; When the number of sub-paths in the vehicle driving path is less than a predetermined number of vehicles, for each sub-path, based on each station on the sub-path, the splitting cost before and after the path splitting is calculated to determine the station with the lowest splitting cost; At the site with the lowest splitting cost, the sub-paths are split until the number of sub-paths in the vehicle driving path is equal to the predetermined number of vehicles, and the obtained set of vehicle driving paths is used as the path planning result; The step of calculating the splitting cost before and after the path splitting based on each station on the sub-path is: Deleting the path after the site in the subpath, and calculating the first cost reduced when the path after the site is deleted; Generate a new sub-path using a heuristic planning algorithm according to each idle site released when the path after the site is deleted, and calculate the second cost increased by generating the new sub-path; The splitting costs before and after path splitting are obtained according to the first cost and the second cost.

2. The method according to claim 1, characterized in that After generating the vehicle driving path by using the heuristic planning algorithm according to the starting point and the site set, and before determining whether the number of sub-paths in the vehicle driving path is equal to a predetermined number of vehicles, the method further includes: Randomly releasing at least one station in the vehicle driving path, and generating a new sub-path for the at least one station obtained by releasing using a heuristic planning algorithm; After the number of sub-paths in the vehicle driving path is equal to a predetermined number of vehicles, the method further includes: Return to the step of randomly releasing at least one station in the vehicle driving path until the number of executions is equal to a preset number threshold; wherein each execution obtains a group of vehicle driving paths, and the number of sub-paths in each group of vehicle driving paths is equal to the predetermined number of vehicles; For each group of vehicle driving paths, the cost of the group of vehicle driving paths is calculated; and according to the calculated cost of each group of vehicle driving paths, one group is determined as the path planning result.

3. The method according to claim 1, characterized in that: The steps of generating a new subpath are: From each of the idle sites, a must-go site parameter is allocated to each vehicle that is not allocated a path, and the must-go site parameter is input into a heuristic planning algorithm to generate a new sub-path; each of the new sub-paths includes the must-go site.

4. The method according to claim 3, characterized in that After generating the vehicle driving path by using the heuristic planning algorithm according to the starting point and the site set, and before determining whether the number of sub-paths in the vehicle driving path is equal to a predetermined number of vehicles, the method further includes: Randomly releasing at least one station in the vehicle's driving path, while ensuring that each vehicle retains at least one station; for the at least one station obtained by releasing, using a heuristic planning algorithm to generate a new sub-path; After the number of sub-paths in the vehicle driving path is equal to a predetermined number of vehicles, the method further includes: Return to the step of randomly releasing at least one station in the vehicle driving path until the number of executions is equal to a preset number threshold; wherein each execution obtains a group of vehicle driving paths, and the number of sub-paths in each group of vehicle driving paths is equal to the predetermined number of vehicles; For each group of vehicle driving paths, the cost of the group of vehicle driving paths is calculated; and according to the calculated cost of each group of vehicle driving paths, one group is determined as the path planning result.

5. The method according to claim 1, characterized in that The steps of generating a new subpath are: According to the uncarried idle demand released when the route after the station is deleted, the vehicle capacity parameters are set for the vehicles not assigned to the route respectively, so that the capacity difference between the sum of the vehicle capacity parameters of the vehicles not assigned to the route and the idle demand is less than the vehicle capacity parameter of each vehicle not assigned to the route; The vehicle capacity parameters are input into a heuristic planning algorithm to generate a new sub-path.

6. The method according to claim 1, characterized in that The steps of generating a new subpath are: Set the cost parameters for each vehicle that is not assigned a route; Each of the cost parameters is input into a heuristic planning algorithm to generate a new sub-path.

7. A vehicle driving path planning device, characterized in that: include: A path planning module is used to generate a vehicle driving path using a heuristic planning algorithm based on the starting point and the station set; The site set includes all sites that the vehicle needs to pass through during driving, and all the sites are included in the generated vehicle driving path, wherein each sub-path in the vehicle driving path starts from a starting point and passes through at least one of the sites; A judging module, used for judging whether the number of sub-paths in the vehicle driving path is equal to a predetermined number of vehicles; A path splitting module is used to calculate the splitting cost before and after the path splitting based on each station on the sub-path for each sub-path, and determine the station with the lowest splitting cost; and is also used to split the sub-path at the station with the lowest splitting cost until the number of sub-paths in the vehicle driving path is equal to the predetermined number of vehicles; Among them, the path splitting module is specifically used to delete the path after the site in the sub-path, and calculate the first cost reduced when the path after the site is deleted; according to each idle site released when the path after the site is deleted, a new sub-path is generated using a heuristic planning algorithm, and the second cost increased by generating the new sub-path is calculated; according to the first cost and the second cost, the splitting cost before and after the path splitting is obtained.

8. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the method steps described in any one of claims 1 to 6 are implemented.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method steps described in any one of claims 1 to 6 are implemented.