Vehicle path planning method and device

Through the combination of clustering algorithm and artificial bee colony algorithm, the problem of unreasonable path arrangement and local optimal dilemma in vehicle path planning is solved, the maintenance efficiency and the accuracy of path planning are improved, and the economic cost and safety risk are comprehensively considered.

CN118780455APending Publication Date: 2024-10-15GUANGDONG POWER GRID CO LTD +1
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410938187.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-12
Publication Date
2024-10-15

AI Technical Summary

Technical Problem

Existing vehicle path planning methods have unreasonable path arrangements in multi-site inspection, maintenance, and overhaul work, resulting in low work efficiency. Classic heuristic algorithms are prone to fall into local optimal dilemmas, are difficult to find optimal routes, and fail to comprehensively Consider economic costs, security risks, and time window penalty costs.

Method used

Using a combination of clustering algorithm and artificial bee colony algorithm, by obtaining the location information of the substation to be repaired and the number of maintenance vehicles, calculating the distance matrix, determining the maintenance priority weight, performing clustering and optimization, and generating the optimal maintenance path to avoid local Optimal solution and improve global optimization capabilities.

Benefits of technology

It improves the accuracy and maintenance efficiency of vehicle route planning, ensures the rationality and diversity of routes, comprehensively considers economic costs, safety risks and time window penalty costs, and meets practical application needs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118780455A_ABST
    Figure CN118780455A_ABST
Patent Text Reader

Abstract

The invention discloses a vehicle path planning method and device. The method relates to the field of vehicle path optimization, and comprises the steps: obtaining the position information of to-be-overhauled substations and the number of overhauled vehicles, and calculating the distance between any two to-be-overhauled substations to obtain a distance matrix; determining the maintenance priority weight of each to-be-maintained transformer substation, and determining an objective function of a clustering algorithm based on the distance matrix and the maintenance priority weight; clustering the to-be-overhauled transformer substation through a clustering algorithm to obtain a plurality of clustering results, and screening out N initial clustering results from the plurality of clustering results according to a target function; and taking each initial clustering result as an initial nectar source, screening out a target clustering result from the N initial clustering results according to an artificial bee colony algorithm, and determining a maintenance path corresponding to the target clustering result as a target maintenance path. Through the method and the device, the problem of low maintenance efficiency caused by inaccurate vehicle path planning of the maintenance transformer substation in related technologies is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of vehicle path optimization, and in particular, to a vehicle path planning method and device. Background Art

[0002] With the increase in the number of substations and the increasing complexity of the power grid structure, the inspection, maintenance and repair work of multiple sites has become more complicated than before, and the route planning for the attendance of power grid vehicles has become more important. However, in the work of multi-site inspection and maintenance, the vehicle route is usually manually formulated by the maintenance personnel based on their familiarity with the area and experience, which not only affects the work efficiency, but also may lead to unreasonable route arrangement. It is urgent to optimize the route through intelligent means such as mathematical modeling.

[0003] In related technologies, path optimization problems are often solved using classic heuristic algorithms such as genetic algorithms and ant colony algorithms. However, classic heuristic algorithms use local search to seek satisfactory solutions. The algorithms are easy to implement, but the solution results are prone to fall into the local optimal dilemma, that is, the results obtained are not the optimal route. In the actual work of power grid vehicles, due to the complex structure of the power grid and the wide distribution of substations, the path planning of power grid vehicles needs to comprehensively consider many factors.

[0004] There are two main limitations of vehicle routing optimization technology in related technologies. First, in practical applications, especially when facing large-scale service stations, the heuristic algorithms in related technologies still have certain limitations. For example, traditional heuristic algorithms such as particle swarm optimization algorithms and neural networks are prone to fall into local optimality in the later stages of iteration, and it is difficult to jump out of the current solution space, resulting in limited optimization capabilities; although emerging meta-heuristic algorithms such as artificial ant colony algorithms have strong optimization capabilities, they are very sensitive to parameter settings and lack reusability and robustness. In addition, the existing VRPTW (Vehicle Routing Problem with Time Windows) lacks comprehensive consideration of vehicle economic costs, safety risk costs, and time window penalty costs, resulting in incomplete optimization results that are difficult to meet actual application needs.

[0005] Currently, no effective solution has been proposed to address the problem of inaccurate vehicle path planning for substation maintenance in related technologies, which leads to low maintenance efficiency. Summary of the invention

[0006] The main purpose of the present application is to provide a vehicle path planning method and device to solve the problem of inaccurate vehicle path planning for maintenance substations in related technologies, resulting in low maintenance efficiency.

[0007] In order to achieve the above-mentioned purpose, according to one aspect of the present application, a vehicle path planning method is provided. The method includes: obtaining the location information of the substation to be repaired and the number of maintenance vehicles, calculating the distance between any two substations to be repaired, and obtaining a distance matrix; determining the maintenance priority weight of each substation to be repaired, and determining the objective function of the clustering algorithm based on the distance matrix and the maintenance priority weight; clustering the substations to be repaired by the clustering algorithm to obtain multiple clustering results, and screening out N initial clustering results from the multiple clustering results according to the objective function, wherein each clustering result contains K clustering clusters, K is the number of maintenance vehicles, each clustering cluster represents the maintenance path of a maintenance vehicle, N and K are both positive integers, and K is less than or equal to N; using each initial clustering result as the initial honey source, screening out the target clustering result from the N initial clustering results according to the artificial bee colony algorithm, and determining the maintenance path corresponding to the target clustering result as the target maintenance path.

[0008] Optionally, determining the maintenance priority weight of each substation to be overhauled includes: for each substation to be overhauled, determining the load level assessment value, fault frequency, maintenance plan frequency and voltage level of the substation to be overhauled, and determining a first weight for the load level assessment value, a second weight for the fault frequency, a third weight for the maintenance plan frequency and a fourth weight for the voltage level; determining the maximum load level assessment value, the maximum fault frequency, the maximum maintenance plan frequency and the maximum voltage level of all substations to be overhauled; calculating the ratio of the load level assessment value to the maximum load level assessment value to obtain a first ratio, calculating the ratio of the fault frequency to the maximum fault frequency to obtain a second ratio, calculating the ratio of the maintenance plan frequency to the maximum maintenance plan frequency to obtain a third ratio, calculating the ratio of the voltage level to the maximum voltage level to obtain a fourth ratio; performing weighted summation of the first ratio, the second ratio, the third ratio and the fourth ratio based on the first weight, the second weight, the third weight and the fourth weight to obtain the maintenance priority weight of the substation to be overhauled.

[0009] Optionally, determining the objective function of the clustering algorithm based on the distance matrix and the maintenance priority weight includes: determining the distance from each substation to be overhauled to the target substation from the distance matrix, and obtaining the maintenance distance of each substation to be overhauled, wherein the target substation is the substation corresponding to the cluster center of the cluster cluster to which the substation to be overhauled belongs; calculating the product of the maintenance distance of each substation to be overhauled and the maintenance priority weight to obtain the distance convergence item of each substation to be overhauled, accumulating the distance convergence items of all substations to be overhauled, and obtaining the total distance convergence item; obtaining the maintenance time convergence item of all substations to be overhauled, calculating the sum of the total distance convergence item and the maintenance time convergence item, and obtaining the objective function.

[0010] Optionally, screening out N initial clustering results from multiple clustering results according to the objective function includes: calculating the function value of the objective function of each clustering result, and determining whether the function value is greater than or equal to a function value threshold; when the function value is greater than or equal to the function value threshold, determining the clustering result corresponding to the function value as the initial clustering result.

[0011] Optionally, screening out a target clustering result from N initial clustering results according to the artificial bee colony algorithm includes: determining a first maintenance path corresponding to each initial clustering result to obtain N first maintenance paths; optimizing the N first maintenance paths through the employed bee stage, follower bee stage and scout bee stage in the artificial bee colony algorithm to obtain N second maintenance paths; calculating the fitness evaluation value of each second maintenance path through a preset fitness function to obtain N fitness evaluation values, and determining the initial clustering result corresponding to the minimum fitness evaluation value among the N fitness evaluation values ​​as the target clustering result.

[0012] Optionally, optimizing N first maintenance paths through the employed bee stage in the artificial bee colony algorithm includes: calculating a first fitness evaluation value of each first maintenance path through a preset fitness function; for each first maintenance path, generating an updated maintenance path through a neighborhood operator and the first maintenance path, and calculating a second fitness evaluation value of the updated maintenance path through a preset fitness function; when the second fitness evaluation value is greater than or equal to the first fitness evaluation value, determining the first maintenance path as the second maintenance path, and increasing the number of times the first maintenance path has not been updated; when the second fitness evaluation value is less than the first fitness evaluation value, determining the updated maintenance path as the second maintenance path.

[0013] Optionally, optimizing N first maintenance paths through the follower bee stage in the artificial bee colony algorithm includes: determining a target maintenance path from the N first maintenance paths through a roulette wheel selection method, and calculating a third fitness evaluation value of the target maintenance path through a preset fitness function; generating an updated target maintenance path through a neighborhood operator and the target maintenance path, and calculating a fourth fitness evaluation value of the updated target maintenance path through a preset fitness function; when the fourth fitness evaluation value is greater than or equal to the third fitness evaluation value, determining the target maintenance path as the second maintenance path, and increasing the number of times the target maintenance path has not been updated; when the fourth fitness evaluation value is less than the third fitness evaluation value, determining the updated target maintenance path as the second maintenance path.

[0014] Optionally, optimizing N first maintenance paths through the scout bee stage in the artificial bee colony algorithm includes: determining whether the number of times the path is not updated of each first maintenance path is greater than or equal to a path not updated number threshold; when the number of times the path is not updated is less than the path not updated number threshold, determining the first maintenance path as the second maintenance path, and increasing the number of times the path is not updated of the first maintenance path; when the number of times the path is not updated is greater than or equal to the path not updated number threshold, generating an updated maintenance path through the neighborhood operator and the first maintenance path, determining the updated maintenance path as the second maintenance path, and clearing the number of times the path is not updated of the first maintenance path.

[0015] Optionally, the preset fitness function is obtained by: obtaining the waiting time penalty cost and safety risk cost of the maintenance vehicle; calculating the driving distance cost and vehicle maintenance cost based on the second maintenance path; calculating the sum of the waiting time penalty cost, safety risk cost, driving distance cost and vehicle maintenance cost to obtain the preset fitness function.

[0016] In order to achieve the above-mentioned purpose, according to another aspect of the present application, a vehicle path planning device is provided. The device includes: an acquisition unit, which is used to obtain the location information of the substation to be repaired and the number of maintenance vehicles, calculate the distance between any two substations to be repaired, and obtain a distance matrix; a first determination unit, which is used to determine the maintenance priority weight of each substation to be repaired, and determine the objective function of the clustering algorithm based on the distance matrix and the maintenance priority weight; a clustering unit, which is used to cluster the substations to be repaired by a clustering algorithm to obtain multiple clustering results, and select N initial clustering results from the multiple clustering results according to the objective function, wherein each clustering result contains K clustering clusters, K is the number of maintenance vehicles, each clustering cluster represents the maintenance path of a maintenance vehicle, N and K are both positive integers, and K is less than or equal to N; a second determination unit, which is used to use each initial clustering result as an initial honey source, select a target clustering result from the N initial clustering results according to the artificial bee colony algorithm, and determine the maintenance path corresponding to the target clustering result as the target maintenance path.

[0017] In order to achieve the above-mentioned purpose, according to another aspect of the present application, a computer program product is provided, including a computer program, and when the computer program is executed by a processor, the steps of the vehicle path planning method described in each embodiment of the present application are implemented.

[0018] Through the present application, the following steps are adopted: obtaining the location information of the substation to be overhauled and the number of overhaul vehicles, calculating the distance between any two substations to be overhauled, and obtaining a distance matrix; determining the overhaul priority weight of each substation to be overhauled, and determining the objective function of the clustering algorithm based on the distance matrix and the overhaul priority weight; clustering the substations to be overhauled by the clustering algorithm to obtain multiple clustering results, and screening out N initial clustering results from the multiple clustering results according to the objective function, wherein each clustering result contains K clustering clusters, K is the number of overhaul vehicles, each clustering cluster represents the overhaul path of an overhaul vehicle, N and K are both positive integers, and K is less than or equal to N; taking each initial clustering result as the initial nectar source, screening out the target clustering result from the N initial clustering results according to the artificial bee colony algorithm, and determining the overhaul path corresponding to the target clustering result as the target overhaul path, thereby solving the problem of inaccurate vehicle path planning for overhaul substations in related technologies, resulting in low overhaul efficiency. The optimal solution of the path optimization strategy is found by combining the clustering algorithm with the artificial bee colony algorithm. The relationship between the location information of the substation and the maintenance priority weight is used as the objective function to generate initial maintenance paths corresponding to multiple clustering results, thereby increasing the diversity and rationality of the initial solution. The artificial bee colony algorithm is used to prevent the algorithm from converging to the local optimal solution too early through local search of the current solution, thereby improving the global optimization ability, thereby improving the accuracy of vehicle path planning, and thus achieving the effect of improving the maintenance efficiency of the substation. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] The drawings constituting a part of the present application are used to provide a further understanding of the present application. The illustrative embodiments and descriptions of the present application are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0020] Figure 1 is a flow chart of a vehicle path planning method provided according to an embodiment of the present application;

[0021] Figure 2 is a schematic diagram of an optional vehicle path planning method provided according to an embodiment of the present application;

[0022] Figure 3 is a schematic diagram of a vehicle path planning device provided according to an embodiment of the present application;

[0023] Figure 4 is a schematic diagram of an electronic device provided according to an embodiment of the present application. DETAILED DESCRIPTION

[0024] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.

[0025] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present application.

[0026] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequential order. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present application described here. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0027] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data for display, data for analysis, etc.) involved in this disclosure are all information and data authorized by the user or fully authorized by all parties.

[0028] It should be noted that the information collected is information and data authorized by the user or fully authorized by all parties, and the collection, storage, use, processing, transmission, provision, disclosure and application of relevant data comply with the relevant laws, regulations and standards of the relevant regions, take necessary confidentiality measures, do not violate public order and good customs, and provide corresponding operation entrances for users to choose to authorize or refuse.

[0029] For the convenience of description, some nouns or terms involved in the embodiments of the present application are explained below:

[0030] K-means clustering algorithm is an unsupervised learning algorithm used to divide a data set into K clusters. It aims to divide the data into K clusters so that the data points in the same cluster are as similar as possible, while the data points in different clusters are as different as possible.

[0031] ABC (Artificial Bee Colony) is an optimization algorithm that simulates the foraging behavior of bees. It is an optimization algorithm based on swarm intelligence and is widely used in various optimization problems.

[0032] The present invention is described below in conjunction with preferred implementation steps. Figure 1 is a flow chart of a vehicle path planning method provided according to an embodiment of the present application, such as Figure 1 As shown, the method comprises the following steps:

[0033] Step S101, obtaining the location information of the substation to be repaired and the number of repair vehicles, calculating the distance between any two substations to be repaired, and obtaining a distance matrix.

[0034] Specifically, the substation to be inspected can be a substation that has a fault in the power grid. The vehicle's maintenance route can be reasonably planned based on the location information of the substation to be inspected in the power grid and the number of maintenance vehicles that can be used. In order to determine the target maintenance route of the maintenance vehicle, it is first necessary to calculate the distance between each substation. The distance can be selected as the Euclidean distance. By calculating the distance between any two substations to be inspected, the distance matrix of all substations to be inspected is obtained.

[0035] Step S102, determining the maintenance priority weight of each substation to be maintained, and determining the objective function of the clustering algorithm based on the distance matrix and the maintenance priority weight.

[0036] Specifically, the maintenance priority weight can be calculated by comprehensively considering factors such as the load level assessment value, fault frequency, maintenance plan frequency and voltage level of the substation to be repaired. For example, the load level assessment value, fault frequency, maintenance plan frequency and voltage level are weighted and summed according to the weight of each factor to obtain the maintenance priority weight of each substation to be repaired. The objective function of the clustering algorithm is used to minimize the distance between the data point and the center of the cluster to which it belongs, so as to ensure that the data points within the cluster are clustered as closely as possible, and the distance between different clusters is as large as possible. The objective function used in the embodiment of the present application can be determined based on the distance matrix and the maintenance priority weight.

[0037] Step S103, clustering the substations to be maintained by a clustering algorithm to obtain multiple clustering results, and screening out N initial clustering results from the multiple clustering results according to the objective function, wherein each clustering result contains K clusters, K is the number of maintenance vehicles, each cluster represents the maintenance path of a maintenance vehicle, N and K are both positive integers, and K is less than or equal to N.

[0038] Specifically, the clustering algorithm can be a K-means algorithm, which clusters all substations to be repaired according to their location information, and sets the number of clusters to be the number of maintenance vehicles K. Each cluster represents the initial maintenance path of a maintenance vehicle. The value of K can be n / g, where n is the number of substations to be repaired, and g is a positive value set according to the experiment. Clustering is performed using the K-means algorithm, and N initial clustering results whose objective function value is greater than or equal to the function value threshold are screened out from multiple clustering results.

[0039] Step S104, taking each initial clustering result as an initial nectar source, screening out a target clustering result from the N initial clustering results according to the artificial bee colony algorithm, and determining the maintenance path corresponding to the target clustering result as the target maintenance path.

[0040] Specifically, after obtaining N initial clustering results through the clustering algorithm, each initial clustering result is used as an initial honey source, and the artificial bee colony algorithm is used to find the optimal solution from the N initial clustering results, that is, the target clustering result. The maintenance path corresponding to the target clustering result is used as the target maintenance path for the maintenance vehicle.

[0041] It should be noted that the artificial bee colony algorithm is an optimization algorithm that simulates the foraging behavior of bees. The algorithm simulates the communication and collaboration behavior of bees in the process of finding food, and searches for the optimal solution by constantly updating the position of the bees. The artificial bee colony algorithm mainly includes three types of bees: employed bees, scout bees, and scout bees. Employed bees are responsible for searching for the optimal solution in the solution space, scout bees observe the behavior of employed bees and select the optimal solution, and scout bees are responsible for discovering new solutions. By introducing neighborhood operators in the artificial bee colony algorithm, the local search mechanism is used to prevent the algorithm from converging to the local optimal solution too early, improve the global optimization ability, and ensure that a better solution is found.

[0042] The embodiment of the present application adopts a hybrid algorithm of machine learning and heuristic algorithm, that is, a combination of k-means clustering algorithm and improved artificial bee colony algorithm, and applies it to the work vehicle attendance path optimization strategy. The site coordinate data is imported into the algorithm model for optimization, and the optimization results are imported into the map navigation software to obtain the final work vehicle attendance path planning plan.

[0043] The vehicle path planning method provided in the embodiment of the present application obtains the location information of the substation to be repaired and the number of repair vehicles, calculates the distance between any two substations to be repaired, and obtains a distance matrix; determines the repair priority weight of each substation to be repaired, and determines the objective function of the clustering algorithm based on the distance matrix and the repair priority weight; clusters the substations to be repaired by the clustering algorithm to obtain multiple clustering results, and screens out N initial clustering results from the multiple clustering results according to the objective function, wherein each clustering result contains K clustering clusters, K is the number of repair vehicles, each clustering cluster represents the repair path of a repair vehicle, N and K are both positive integers, and K is less than or equal to N; takes each initial clustering result as an initial honey source, and screens out a target clustering result from the N initial clustering results according to the artificial bee colony algorithm, and determines the repair path corresponding to the target clustering result as the target repair path, thereby solving the problem of inaccurate vehicle path planning for repair substations in the related technology, resulting in low repair efficiency. The optimal solution of the path optimization strategy is found by combining the clustering algorithm with the artificial bee colony algorithm. The relationship between the location information of the substation and the maintenance priority weight is used as the objective function to generate initial maintenance paths corresponding to multiple clustering results, thereby increasing the diversity and rationality of the initial solution. The artificial bee colony algorithm is used to prevent the algorithm from converging to the local optimal solution too early through local search of the current solution, thereby improving the global optimization ability, thereby improving the accuracy of vehicle path planning, and thus achieving the effect of improving the maintenance efficiency of the substation.

[0044] In order to ensure that the maintenance path is more reasonable, the maintenance priority weight is introduced into the objective function to obtain a more reasonable initial maintenance path. Optionally, in the vehicle path planning method provided in the embodiment of the present application, determining the maintenance priority weight of each substation to be repaired includes: for each substation to be repaired, determining the load level evaluation value, fault frequency, maintenance plan frequency and voltage level of the substation to be repaired, and determining the first weight of the load level evaluation value, the second weight of the fault frequency, the third weight of the maintenance plan frequency and the fourth weight of the voltage level; determining the maximum load level evaluation value of all substations to be repaired. valuation, maximum fault frequency, maximum maintenance plan frequency and maximum voltage level; calculate the ratio of the load level evaluation value to the maximum load level evaluation value to obtain a first ratio, calculate the ratio of the fault frequency to the maximum fault frequency to obtain a second ratio, calculate the ratio of the maintenance plan frequency to the maximum maintenance plan frequency to obtain a third ratio, calculate the ratio of the voltage level to the maximum voltage level to obtain a fourth ratio; based on the first weight, the second weight, the third weight and the fourth weight, perform weighted summation on the first ratio, the second ratio, the third ratio and the fourth ratio to obtain the maintenance priority weight of the substation to be repaired.

[0045] Specifically, the priority of the substation to be repaired is evaluated. Factors considered include the load level LD of the substationi , Fault frequency FF i , Maintenance plan frequency MS i , voltage level VL i The first weight α1, the second weight α2, the third weight α3 and the fourth weight α4. The calculation formula of the maintenance priority weight of the substation to be repaired is as follows:

[0046]

[0047] Among them, w i is the maintenance priority weight of the substation to be repaired, max(LD i ) is the maximum load level assessment value, max(FF i ) is the maximum fault frequency, max(MS i ) is the maximum maintenance plan frequency, max(VL i ) is the maximum voltage level.

[0048] The embodiment of the present application introduces an evaluation method for the maintenance priority weight of the substation to be repaired, comprehensively considers factors such as the load level, voltage level, fault frequency and maintenance plan of the substation, evaluates the priority level of different substations to be repaired by the weight addition method, and introduces the priority weight into the objective function of the clustering algorithm, thereby improving the accuracy of path division.

[0049] After determining the maintenance priority weight of each substation to be overhauled, an objective function is determined based on the maintenance priority weight. Optionally, in the vehicle path planning method provided in an embodiment of the present application, determining the objective function of the clustering algorithm based on the distance matrix and the maintenance priority weight includes: determining the distance from each substation to be overhauled to the target substation from the distance matrix, and obtaining the maintenance distance of each substation to be overhauled, wherein the target substation is the substation corresponding to the cluster center of the cluster cluster to which the substation to be overhauled belongs; calculating the product of the maintenance distance of each substation to be overhauled and the maintenance priority weight to obtain the distance convergence term of each substation to be overhauled, accumulating the distance convergence terms of all substations to be overhauled to obtain the total distance convergence term; obtaining the maintenance time convergence term of all substations to be overhauled, calculating the sum of the total distance convergence term and the maintenance time convergence term, and obtaining the objective function.

[0050] Specifically, the calculation formula of the objective function is as follows:

[0051]

[0052] Among them, p and q are positive coefficients, l y and l z is the possible service time due to the time window constraints of each customer. iis the maintenance priority weight of substation i. Euclidean distance represents the maintenance distance of the substation to be repaired, C k Represents a collection of substations to be repaired.

[0053] The embodiment of the present application determines the objective function of the clustering algorithm to ensure that the initial clustering results converge according to the maintenance distance and the maintenance priority weight of the substation to be repaired, thereby improving the accuracy of the initial maintenance path corresponding to the initial clustering result.

[0054] After determining the objective function, N initial clustering results are screened out from multiple distance results according to the objective function. Optionally, in the vehicle path planning method provided in an embodiment of the present application, screening out N initial clustering results from multiple clustering results according to the objective function includes: calculating the function value of the objective function of each clustering result, and determining whether the function value is greater than or equal to a function value threshold; when the function value is greater than or equal to the function value threshold, determining the clustering result corresponding to the function value as the initial clustering result.

[0055] Specifically, by bringing the maintenance priority weight and maintenance distance of the substation to be repaired under each clustering result into the objective function, the function value of the objective function of each clustering result is obtained. The function value threshold can be a value set according to expert experience. The clustering result with a function value greater than or equal to the function value threshold among the multiple clustering results clustered by the clustering algorithm is used as the initial clustering result.

[0056] The embodiment of the present application uses the K-means clustering algorithm to cluster the substations to be repaired, and generates multiple initial maintenance paths based on the relationship between the geographical location of the substation and the priority weight as the objective function, thereby increasing the diversity and rationality of the initial solution. The rationality of the initial maintenance path is ensured by screening out the clustering results with a function value greater than or equal to the function value threshold as the initial clustering result.

[0057] After determining the initial clustering results, it is necessary to screen out target clustering results through an artificial bee colony algorithm. Optionally, in the vehicle path planning method provided in an embodiment of the present application, screening out target clustering results from N initial clustering results according to the artificial bee colony algorithm includes: determining the first maintenance path corresponding to each initial clustering result to obtain N first maintenance paths; optimizing the N first maintenance paths through the employed bee stage, follower bee stage and scout bee stage in the artificial bee colony algorithm to obtain N second maintenance paths; calculating the fitness evaluation value of each second maintenance path through a preset fitness function to obtain N fitness evaluation values, and determining the initial clustering result corresponding to the minimum fitness evaluation value among the N fitness evaluation values ​​as the target clustering result.

[0058] Specifically, the first maintenance path contains K maintenance paths of K maintenance vehicles, and each honey bee is randomly assigned to each first maintenance path. Each first maintenance path is optimized according to the employed bee stage, the follower bee stage, and the scout bee stage in the artificial bee colony algorithm to obtain N second maintenance paths. The second maintenance path is iteratively optimized, and the optimization steps of the artificial bee colony algorithm are repeatedly executed. A maximum number of iterations is preset for the optimization process of the artificial bee colony algorithm. After the number of repeated executions reaches the maximum number of iterations, the initial clustering result corresponding to the minimum fitness evaluation value is selected from all the second maintenance paths as the target clustering result.

[0059] It should be noted that in the embodiment of the present application, the optimization of the employed bee stage, the follower bee stage and the scout bee stage is performed in the order of arrangement, that is, the employed bee stage is optimized first, then the follower bee stage is optimized, and finally the scout bee stage is optimized. The completion of the optimization of the three stages indicates that an iterative optimization of the artificial bee colony algorithm has been achieved.

[0060] The embodiment of the present application gradually approaches the optimal solution through multiple state transitions and fitness evaluations in the employed bee stage, the observation bee stage, and the scout bee stage in each iterative optimization process. In each iteration, the current optimal solution is updated and the global optimal solution is recorded until the maximum number of iterations is reached or the optimal solution is found; K-means clustering is innovatively used to generate the initial solution, and combined with the improved artificial bee colony algorithm for optimization, the limitations of a single algorithm are overcome, and the efficiency of the algorithm and the quality of the solution are improved.

[0061] Optionally, in the vehicle path planning method provided in the embodiment of the present application, optimizing N first maintenance paths through the employed bee stage in the artificial bee colony algorithm includes: calculating a first fitness evaluation value of each first maintenance path through a preset fitness function; for each first maintenance path, generating an updated maintenance path through a neighborhood operator and the first maintenance path, and calculating a second fitness evaluation value of the updated maintenance path through a preset fitness function; when the second fitness evaluation value is greater than or equal to the first fitness evaluation value, determining the first maintenance path as the second maintenance path, and increasing the number of times the path is not updated of the first maintenance path; when the second fitness evaluation value is less than the first fitness evaluation value, determining the updated maintenance path as the second maintenance path.

[0062] Specifically, the neighborhood operator is an operator used to perform edge detection, feature extraction and other operations on the image. For example, the updated maintenance path is generated by exchanging the positions of two nodes (i.e., the substations to be repaired) in the first maintenance path or inserting new nodes in the path. i The fitness evaluation value is f(S i), in the employed bee stage: for each first maintenance path S i :From S through the neighborhood operator i Generate an updated maintenance path S′. If f(S′) <f(S i ), that is, the second fitness evaluation value is less than the first fitness evaluation value, indicating that the new solution S′ is better than S i Better, replace S with S′ i , that is, the updated maintenance path is determined as the second maintenance path. At this time, the path has not been updated for the number of times I i = 0. If the second fitness evaluation value is greater than or equal to the first fitness evaluation value, then the first maintenance path S is set. i The number of times the path has not been updated I i =I i +1, not for the first inspection path S i Adjustment, that is, determining the first maintenance path as the second maintenance path.

[0063] The embodiment of the present application adopts an improved artificial bee colony algorithm and introduces a neighborhood operator. By performing a local search on the current solution, the algorithm is prevented from converging to a local optimal solution too early, thereby improving the global optimization capability and ensuring that a better solution is found.

[0064] Optionally, in the vehicle path planning method provided in the embodiment of the present application, optimizing N first maintenance paths through the follower bee stage in the artificial bee colony algorithm includes: determining a target maintenance path from the N first maintenance paths through a roulette wheel selection method, and calculating a third fitness evaluation value of the target maintenance path through a preset fitness function; generating an updated target maintenance path through a neighborhood operator and the target maintenance path, and calculating a fourth fitness evaluation value of the updated target maintenance path through a preset fitness function; when the fourth fitness evaluation value is greater than or equal to the third fitness evaluation value, determining the target maintenance path as the second maintenance path, and increasing the number of times the target maintenance path has not been updated; when the fourth fitness evaluation value is less than the third fitness evaluation value, determining the updated target maintenance path as the second maintenance path.

[0065] Specifically, in the following bee stage: for each observing bee, a target maintenance path S is selected from the N first maintenance paths using the roulette wheel selection method. i . From S through the neighborhood operator i Generate the updated target maintenance path S′. If f(S′) <f(S i ), that is, the fourth fitness evaluation value is less than the third fitness evaluation value, indicating that the new solution S′ is better than S i Better, replace S with S′ i , that is, the updated target maintenance path is determined as the second maintenance path, then I i= 0. If the fourth fitness evaluation value is greater than or equal to the third fitness evaluation value, then the target maintenance path S is set. i The number of times the path has not been updated I i =I i +1, do not inspect the target path S i Adjustment, that is, determining the target maintenance path as the second maintenance path.

[0066] The embodiment of the present application optimizes the maintenance path through the following bee stage of the artificial bee colony algorithm, thereby screening out a more reasonable target maintenance path.

[0067] Optionally, in the vehicle path planning method provided in the embodiment of the present application, optimizing N first maintenance paths through the scout bee stage in the artificial bee colony algorithm includes: determining whether the number of times the path is not updated of each first maintenance path is greater than or equal to a path not updated threshold number of times; when the number of times the path is not updated is less than the path not updated threshold number of times, determining the first maintenance path as the second maintenance path, and increasing the number of times the path is not updated of the first maintenance path; when the number of times the path is not updated is greater than or equal to the path not updated threshold number of times, generating an updated maintenance path through the neighborhood operator and the first maintenance path, determining the updated maintenance path as the second maintenance path, and clearing the number of times the path is not updated of the first maintenance path.

[0068] Specifically, in the scout bee stage: for each first maintenance path, determine whether any nectar source has been abandoned, that is, determine whether the number of times the path has not been updated for each first maintenance path has reached the path not updated number threshold. If the number of times the path has not been updated is greater than or equal to the path not updated number threshold, generate an updated maintenance path through the neighborhood operator and the first maintenance path, and replace the abandoned nectar source with the updated maintenance path, that is, determine the updated maintenance path as the second maintenance path, and clear the number of times the path has not been updated for the first maintenance path. If the number of times the path has not been updated is less than the path not updated number threshold, keep the first maintenance path unchanged.

[0069] The embodiment of the present application optimizes the maintenance path through the scout bee stage of the artificial bee colony algorithm, thereby screening out a more reasonable target maintenance path.

[0070] Optionally, in the vehicle path planning method provided in an embodiment of the present application, the preset fitness function is obtained by: obtaining the waiting time penalty cost and safety risk cost of the maintenance vehicle; calculating the driving distance cost and vehicle maintenance cost based on the second maintenance path; calculating the sum of the waiting time penalty cost, safety risk cost, driving distance cost and vehicle maintenance cost to obtain the preset fitness function.

[0071] Specifically, the calculation formula of the preset fitness function is as follows:

[0072]

[0073] Among them, D ij is the distance between the substation to be repaired i and the substation to be repaired, . Assume that there are N substations to be repaired, and the substations to be repaired i, j∈{1, 2, ..., N}. The number of maintenance vehicles is K, k∈{1, 2, ..., K}. M k is the maintenance cost coefficient of vehicle k. i is the safety risk factor of substation i. i is the penalty cost for exceeding the time window. i is the penalty cost variable for exceeding the time window. Under the premise of satisfying the maximum vehicle load and time window constraints, the cost including the travel distance is The vehicle maintenance cost is and waiting time penalty cost and security risk costs The goal of this study is to minimize the total substation maintenance vehicle transportation cost. ijk is a binary variable, indicating whether vehicle k is going from substation i to substation j. If yes, then x ijk =1, otherwise 0. ik If vehicle k serves service point i, it is 1, otherwise it is 0.

[0074] It should be noted that the preset fitness function also needs to meet the following constraints:

[0075]

[0076]

[0077] Among them, constraint (1) stipulates that each substation i to be repaired can only be served by one vehicle k, and constraints (2) and (3) stipulate that the number of times vehicle k leaves and enters substation i is the same as the number of times it serves the substation. Constraint (4) shows that the fatigue degree f of vehicle k at substation i is ik Add the travel time t from i to j ii The continuous working time limit L shall not be exceeded. (5) indicates the fatigue degree f of substation j ik Less than or equal to the fatigue degree f of substation i ik Add the travel time minus the fatigue recovery coefficient. (6) refers to the time a the vehicle takes to arrive at the substation i Should be within the time window, (7) guarantees the service order, where M is a natural number approaching infinity. (8) shows that the priority of substation i is higher than that of substation i. The soft time window that satisfies substation i is [e i , l i ]. ik The fatigue level of vehicle k at service point i.

[0078] The fatigue driving model is as follows:

[0079] v t =v0(1-αt)+β(1-αt);

[0080]

[0081]

[0082] Where α and β are fatigue coefficient and recovery coefficient respectively, V0 is the initial speed, which means the vehicle speed at time t=0. t S represents the vehicle speed at time t. i S is the starting position of the vehicle on the path from substation i to substation j. j is the final location of the vehicle on the path from substation i to substation j. ij is the travel time from substation i to substation j. According to the integral formula, it represents the cumulative time of the vehicle's distance from Si to Sj divided by the vehicle's speed.

[0083] The embodiment of the present application aims to minimize the comprehensive cost including the economic cost of the vehicle, the safety risk cost and the time window penalty cost, and establishes a substation maintenance vehicle path optimization model with driver fatigue control and substation patrol priority, that is, a preset fitness function. On the basis of path optimization, priority weights are introduced to comprehensively consider factors such as the importance of the substation, equipment failure history and maintenance plan, so as to improve the accuracy of the fitness function. In the optimization target, the economic cost, safety risk cost and time window penalty cost are comprehensively considered, and the driver's fatigue factor is considered in the constraint conditions, taking into account driving safety and work efficiency, so that the optimization result is more in line with actual production needs and further improves the actual application effect. Comprehensively consider multiple factors such as vehicle driving distance, vehicle maintenance cost, waiting time and safety risk and use this as a comprehensive optimization target. Finally, the driver's fatigue driving factor is considered in path planning, which reduces the risk of fatigue driving and improves the safety and reliability of path planning.

[0084] According to another embodiment of the present application, an optional vehicle path planning method is also provided. Figure 2 is a schematic diagram of an optional vehicle path planning method provided according to an embodiment of the present application. Figure 2 As shown, the method includes: inputting the substation coordinates and priority, the number of vehicles K, and the cost coefficient H i , P iParameters such as . The K-means algorithm is used to generate the initial population of the substation, calculate the fitness value of the initial population and record the best nectar source. In the employed bee stage, the employed bees execute the domain search strategy, calculate the fitness value of the new solution and carry out the survival of the fittest. In the follower bee stage, the selection probability of the nectar source is calculated according to the roulette method, and the follower bee executes the domain search strategy, calculates the fitness value of all solutions and makes a greedy selection to determine whether any nectar source has been abandoned. In the scout bee stage, if the nectar source is found to be abandoned, the abandoned nectar source is replaced with the newly generated solution and searched again, and the optimal solution is iteratively updated. If no nectar source is abandoned or the scout bee stage determines the current optimal solution, it is determined whether the termination condition is met, that is, whether the maximum number of iterations is reached. If the maximum number of iterations is reached, the optimal path and vehicle scheduling plan are output. If the maximum number of iterations is not reached, iterative optimization continues from the employed bee stage.

[0085] The embodiment of the present application uses an optional vehicle path planning method, combined with the K-means clustering algorithm and the improved artificial bee colony algorithm, to significantly improve the convergence speed when generating the initial solution. K-means clustering quickly generates high-quality initial solutions, reduces the solution space that needs to be explored during the optimization process, and improves the overall convergence speed. In addition, through the improvement of the neighborhood search strategy and the adaptation function, the algorithm can effectively avoid the defects of the local optimal solution. Improve the efficiency of staff attendance and improve the safety and reliability of patrol commuting work. By improving the traditional VRPTW, adding constraints suitable for safe production work, improving the objective function, and optimizing the vehicle path.

[0086] For example, Table 1 and Table 2 are comparisons of the optimization effects of the optional vehicle path planning method according to the embodiment of the present application, compared with the path optimization method using only the artificial honey colony algorithm in the related art. Among them, KABC represents the vehicle path planning method based on the combination of K-means and improved artificial bee colony algorithm provided in the embodiment of the present application, and ABC represents the path optimization method using only the artificial honey colony algorithm in the related art. The gap represents the optimization effect gap between the optional vehicle path planning method provided in the embodiment of the present application and the path optimization method in the related art.

[0087] Table 1

[0088]

[0089] Table 2

[0090]

[0091]

[0092] It should be noted that the steps shown in the flowcharts of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and that, although a logical order is shown in the flowcharts, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0093] The embodiment of the present application also provides a vehicle path planning device. It should be noted that the vehicle path planning device of the embodiment of the present application can be used to execute the vehicle path planning method provided in the embodiment of the present application. The vehicle path planning device provided in the embodiment of the present application is introduced below.

[0094] Figure 3 Schematic diagram of a vehicle path planning device provided according to an embodiment of the present application. Figure 3 As shown, the device comprises:

[0095] The acquisition unit 301 is used to acquire the location information of the substation to be repaired and the number of repair vehicles, calculate the distance between any two substations to be repaired, and obtain a distance matrix;

[0096] A first determining unit 302 is used to determine the maintenance priority weight of each substation to be repaired, and determine the objective function of the clustering algorithm based on the distance matrix and the maintenance priority weight;

[0097] The clustering unit 303 is used to cluster the substations to be repaired by a clustering algorithm to obtain multiple clustering results, and select N initial clustering results from the multiple clustering results according to the objective function, wherein each clustering result contains K clusters, K is the number of maintenance vehicles, each cluster represents the maintenance path of a maintenance vehicle, N and K are both positive integers, and K is less than or equal to N;

[0098] The second determining unit 304 is used to use each initial clustering result as an initial nectar source, filter out a target clustering result from the N initial clustering results according to the artificial bee colony algorithm, and determine the maintenance path corresponding to the target clustering result as the target maintenance path.

[0099] The vehicle path planning device provided in the embodiment of the present application obtains the location information of the substation to be repaired and the number of repair vehicles through the acquisition unit 301, calculates the distance between any two substations to be repaired, and obtains the distance matrix; the first determination unit 302 determines the maintenance priority weight of each substation to be repaired, and determines the objective function of the clustering algorithm based on the distance matrix and the maintenance priority weight; the clustering unit 303 clusters the substations to be repaired through the clustering algorithm to obtain multiple clustering results, and selects N initial clustering results from the multiple clustering results according to the objective function, wherein each clustering result contains K clustering clusters, K is the number of repair vehicles, and each clustering cluster represents a repair vehicle. The maintenance path of the vehicle, N and K are both positive integers, K is less than or equal to N; the second determination unit 304, using each initial clustering result as the initial honey source, screens out the target clustering result from the N initial clustering results according to the artificial bee colony algorithm, and determines the maintenance path corresponding to the target clustering result as the target maintenance path, which solves the problem of inaccurate vehicle path planning for maintenance substations in related technologies, resulting in low maintenance efficiency, and finds the optimal solution of the path optimization strategy by combining the clustering algorithm with the artificial bee colony algorithm. According to the relationship between the location information of the substation and the maintenance priority weight as the objective function, the initial maintenance paths corresponding to multiple clustering results are generated, and the diversity and rationality of the initial solution are increased. The artificial bee colony algorithm is adopted, and the algorithm is prevented from converging to the local optimal solution too early through local search of the current solution, and the global optimization ability is improved, thereby improving the accuracy of vehicle path planning, and thus achieving the effect of improving the maintenance efficiency of the substation.

[0100] Optionally, in the vehicle path planning device provided in the embodiment of the present application, the first determination unit 302 includes: a first determination module, which is used to determine the load level evaluation value, fault frequency, maintenance plan frequency and voltage level of each substation to be repaired, and determine the first weight of the load level evaluation value, the second weight of the fault frequency, the third weight of the maintenance plan frequency and the fourth weight of the voltage level; a second determination module, which is used to determine the maximum load level evaluation value, the maximum fault frequency, the maximum maintenance plan frequency and the maximum voltage level of all substations to be repaired; a first calculation module, which is used to calculate the ratio of the load level evaluation value to the maximum load level evaluation value to obtain a first ratio, calculate the ratio of the fault frequency to the maximum fault frequency to obtain a second ratio, calculate the ratio of the maintenance plan frequency to the maximum maintenance plan frequency to obtain a third ratio, calculate the ratio of the voltage level to the maximum voltage level to obtain a fourth ratio; a summation module, which is used to perform weighted summation of the first ratio, the second ratio, the third ratio and the fourth ratio based on the first weight, the second weight, the third weight and the fourth weight to obtain the maintenance priority weight of the substation to be repaired.

[0101] Optionally, in the vehicle path planning device provided in the embodiment of the present application, the first determination unit 302 includes: a third determination module, used to determine the distance from each substation to be repaired to the target substation from the distance matrix, and obtain the maintenance distance of each substation to be repaired, wherein the target substation is the substation corresponding to the cluster center of the cluster cluster to which the substation to be repaired belongs; a second calculation module, used to calculate the product of the maintenance distance of each substation to be repaired and the maintenance priority weight, to obtain the distance convergence item of each substation to be repaired, and to accumulate the distance convergence items of all substations to be repaired to obtain the total distance convergence item; an acquisition module, used to obtain the maintenance time convergence item of all substations to be repaired, calculate the sum of the total distance convergence item and the maintenance time convergence item, and obtain the objective function.

[0102] Optionally, in the vehicle path planning device provided in the embodiment of the present application, the clustering unit 303 includes: a third calculation module, used to calculate the function value of the objective function of each clustering result, and determine whether the function value is greater than or equal to the function value threshold; a fourth determination module, used to determine the clustering result corresponding to the function value as the initial clustering result when the function value is greater than or equal to the function value threshold.

[0103] Optionally, in the vehicle path planning device provided in the embodiment of the present application, the second determination unit 304 includes: a fifth determination module, used to determine the first maintenance path corresponding to each initial clustering result, and obtain N first maintenance paths; an optimization module, used to optimize the N first maintenance paths through the employed bee stage, follower bee stage and scout bee stage in the artificial bee colony algorithm, and obtain N second maintenance paths; a fourth calculation module, used to calculate the fitness evaluation value of each second maintenance path through a preset fitness function, obtain N fitness evaluation values, and determine the initial clustering result corresponding to the minimum fitness evaluation value among the N fitness evaluation values ​​as the target clustering result.

[0104] Optionally, in the vehicle path planning device provided in the embodiment of the present application, the optimization module includes: a first calculation submodule, used to calculate a first fitness evaluation value of each first maintenance path through a preset fitness function; a first generation submodule, used to generate an updated maintenance path for each first maintenance path through a neighborhood operator and the first maintenance path, and calculate a second fitness evaluation value of the updated maintenance path through a preset fitness function; a first determination submodule, used to determine the first maintenance path as the second maintenance path when the second fitness evaluation value is greater than or equal to the first fitness evaluation value, and increase the number of times the path is not updated of the first maintenance path; a second determination submodule, used to determine the updated maintenance path as the second maintenance path when the second fitness evaluation value is less than the first fitness evaluation value.

[0105] Optionally, in the vehicle path planning device provided in the embodiment of the present application, the optimization module includes: a third determination submodule, used to determine the target maintenance path from N first maintenance paths through a roulette selection method, and calculate the third fitness evaluation value of the target maintenance path through a preset fitness function; a second generation submodule, used to generate an updated target maintenance path through a neighborhood operator and the target maintenance path, and calculate the fourth fitness evaluation value of the updated target maintenance path through a preset fitness function; a fourth determination submodule, used to determine the target maintenance path as the second maintenance path when the fourth fitness evaluation value is greater than or equal to the third fitness evaluation value, and increase the number of times the target maintenance path is not updated; a fifth determination submodule, used to determine the updated target maintenance path as the second maintenance path when the fourth fitness evaluation value is less than the third fitness evaluation value.

[0106] Optionally, in the vehicle path planning device provided in the embodiment of the present application, the optimization module includes: a judgment submodule, used to judge whether the number of times the path is not updated of each first maintenance path is greater than or equal to a path not updated number threshold; a sixth determination submodule, used to determine the first maintenance path as the second maintenance path when the number of times the path is not updated is less than the path not updated number threshold, and increase the number of times the path is not updated of the first maintenance path; a third generation submodule, used to generate an updated maintenance path through the neighborhood operator and the first maintenance path when the number of times the path is not updated is greater than or equal to the path not updated number threshold, determine the updated maintenance path as the second maintenance path, and clear the number of times the path is not updated of the first maintenance path.

[0107] Optionally, in the vehicle path planning device provided in an embodiment of the present application, the preset fitness function is obtained by: obtaining the waiting time penalty cost and safety risk cost of the maintenance vehicle; calculating the driving distance cost and vehicle maintenance cost based on the second maintenance path; calculating the sum of the waiting time penalty cost, safety risk cost, driving distance cost and vehicle maintenance cost to obtain the preset fitness function.

[0108] The vehicle path planning device includes a processor and a memory. The acquisition unit 301, the first determination unit 302, the clustering unit 303 and the second determination unit 304 are all stored in the memory as program units, and the processor executes the program units stored in the memory to implement corresponding functions.

[0109] The processor includes a kernel, which retrieves the corresponding program unit from the memory. One or more kernels can be set, and the maintenance efficiency of the substation can be improved by adjusting the kernel parameters.

[0110] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM, and the memory includes at least one memory chip.

[0111] An embodiment of the present invention provides a computer-readable storage medium having a program stored thereon, and the program implements a vehicle path planning method when executed by a processor.

[0112] An embodiment of the present invention provides a processor, which is used to run a program, wherein the vehicle path planning method is executed when the program is running.

[0113] Figure 4 is a schematic diagram of an electronic device provided according to an embodiment of the present application. Figure 4 As shown, the electronic device 401 includes a processor, a memory, and a program stored in the memory and can be run on the processor. When the processor executes the program, the following steps are implemented: obtaining the location information of the substation to be repaired and the number of repair vehicles, calculating the distance between any two substations to be repaired, and obtaining a distance matrix; determining the maintenance priority weight of each substation to be repaired, and determining the objective function of the clustering algorithm based on the distance matrix and the maintenance priority weight; clustering the substations to be repaired by the clustering algorithm to obtain multiple clustering results, and screening N initial clustering results from the multiple clustering results according to the objective function, wherein each clustering result contains K clustering clusters, K is the number of repair vehicles, each clustering cluster represents the repair path of a repair vehicle, N and K are both positive integers, K is less than or equal to N; using each initial clustering result as an initial honey source, screening the target clustering result from the N initial clustering results according to the artificial bee colony algorithm, and determining the repair path corresponding to the target clustering result as the target repair path. The device in this article can be a server, PC, PAD, mobile phone, etc.

[0114] The present application also provides a computer program product, which, when executed on a data processing device, is suitable for executing a program that initializes the following method steps: obtaining the location information of the substation to be repaired and the number of maintenance vehicles, calculating the distance between any two substations to be repaired, and obtaining a distance matrix; determining the maintenance priority weight of each substation to be repaired, and determining the objective function of the clustering algorithm based on the distance matrix and the maintenance priority weight; clustering the substations to be repaired by the clustering algorithm to obtain multiple clustering results, and screening out N initial clustering results from the multiple clustering results according to the objective function, wherein each clustering result contains K clustering clusters, K is the number of maintenance vehicles, each clustering cluster represents the maintenance path of a maintenance vehicle, N and K are both positive integers, and K is less than or equal to N; using each initial clustering result as an initial nectar source, screening out a target clustering result from the N initial clustering results according to the artificial bee colony algorithm, and determining the maintenance path corresponding to the target clustering result as the target maintenance path.

[0115] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.

[0116] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0117] These computer program instructions may also be stored in a computer readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0118] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.

[0119] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.

[0120] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.

[0121] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.

[0122] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

[0123] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.

[0124] The above are only embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included within the scope of the claims of the present application.

Claims

1. A vehicle path planning method, characterized in that: include: Obtain the location information of the substation to be repaired and the number of maintenance vehicles, calculate the distance between any two substations to be repaired, and obtain the distance matrix; Determine the maintenance priority weight of each substation to be repaired, and determine the objective function of the clustering algorithm based on the distance matrix and the maintenance priority weight; Clustering the substation to be repaired by a clustering algorithm to obtain a plurality of clustering results, and screening N initial clustering results from the plurality of clustering results according to the objective function, wherein each clustering result contains K clusters, K is the number of the repair vehicles, each cluster represents the repair path of a repair vehicle, N and K are both positive integers, and K is less than or equal to N; Each initial clustering result is used as an initial nectar source, a target clustering result is screened out from the N initial clustering results according to an artificial bee colony algorithm, and a maintenance path corresponding to the target clustering result is determined as a target maintenance path.

2. The method according to claim 1, characterized in that Determine the maintenance priority weight of each substation to be repaired including: For each substation to be overhauled, determining a load level assessment value, a fault occurrence frequency, a maintenance plan frequency, and a voltage level of the substation to be overhauled, and determining a first weight of the load level assessment value, a second weight of the fault occurrence frequency, a third weight of the maintenance plan frequency, and a fourth weight of the voltage level; Determine the maximum load level assessment value, maximum fault frequency, maximum maintenance plan frequency and maximum voltage level of all substations to be repaired; Calculating a ratio of the load level assessment value to the maximum load level assessment value to obtain a first ratio, calculating a ratio of the fault occurrence frequency to the maximum fault occurrence frequency to obtain a second ratio, calculating a ratio of the maintenance plan frequency to the maximum maintenance plan frequency to obtain a third ratio, and calculating a ratio of the voltage level to the maximum voltage level to obtain a fourth ratio; The first ratio, the second ratio, the third ratio and the fourth ratio are weightedly summed based on the first weight, the second weight, the third weight and the fourth weight to obtain the maintenance priority weight of the substation to be repaired.

3. The method according to claim 1, characterized in that Determining the objective function of the clustering algorithm based on the distance matrix and the maintenance priority weight includes: Determine the distance from each substation to be repaired to the target substation from the distance matrix to obtain the repair distance of each substation to be repaired, wherein the target substation is the substation corresponding to the cluster center of the cluster to which the substation to be repaired belongs; Calculate the product of the maintenance distance and maintenance priority weight of each substation to be repaired to obtain the distance convergence item of each substation to be repaired, and add up the distance convergence items of all substations to be repaired to obtain the total distance convergence item; Obtain the maintenance time convergence item of all substations to be maintained, calculate the sum of the total distance convergence item and the maintenance time convergence item, and obtain the objective function.

4. The method according to claim 1, characterized in that: Screening out N initial clustering results from the plurality of clustering results according to the objective function includes: Calculate the function value of the objective function of each clustering result, and determine whether the function value is greater than or equal to a function value threshold; When the function value is greater than or equal to the function value threshold, the clustering result corresponding to the function value is determined as the initial clustering result.

5. The method according to claim 1, characterized in that Screening out target clustering results from the N initial clustering results using the artificial bee colony algorithm includes: Determine the first maintenance path corresponding to each initial clustering result, and obtain N first maintenance paths; The N first maintenance paths are optimized through the employed bee stage, the follower bee stage and the scout bee stage in the artificial bee colony algorithm to obtain N second maintenance paths; The fitness evaluation value of each second maintenance path is calculated by a preset fitness function to obtain N fitness evaluation values, and the initial clustering result corresponding to the minimum fitness evaluation value among the N fitness evaluation values ​​is determined as the target clustering result.

6. The method according to claim 5, characterized in that Optimizing the N first maintenance paths through the employed bee stage in the artificial bee colony algorithm includes: Calculate a first fitness evaluation value of each first maintenance path by using a preset fitness function; For each first maintenance path, generating an updated maintenance path through a neighborhood operator and the first maintenance path, and calculating a second fitness evaluation value of the updated maintenance path through the preset fitness function; When the second fitness evaluation value is greater than or equal to the first fitness evaluation value, determining the first maintenance path as the second maintenance path, and increasing the number of times the first maintenance path is not updated; When the second fitness evaluation value is smaller than the first fitness evaluation value, the updated maintenance path is determined as the second maintenance path.

7. The method according to claim 5, characterized in that Optimizing the N first maintenance paths through the following bee stage in the artificial bee colony algorithm includes: Determine a target maintenance path from the N first maintenance paths by using a roulette wheel selection method, and calculate a third fitness evaluation value of the target maintenance path by using the preset fitness function; Generate an updated target maintenance path through a neighborhood operator and the target maintenance path, and calculate a fourth fitness evaluation value of the updated target maintenance path through the preset fitness function; In a case where the fourth fitness evaluation value is greater than or equal to the third fitness evaluation value, determining the target maintenance path as the second maintenance path, and increasing the number of times the path is not updated of the target maintenance path; When the fourth fitness evaluation value is smaller than the third fitness evaluation value, the updated target maintenance route is determined as the second maintenance route.

8. The method according to claim 5, characterized in that Optimizing the N first maintenance paths through the scout bee stage in the artificial bee colony algorithm includes: Determine whether the number of times the path is not updated for each first maintenance path is greater than or equal to a threshold number of times the path is not updated; In a case where the number of times the path is not updated is less than the threshold number of times the path is not updated, determining the first maintenance path as the second maintenance path, and increasing the number of times the path is not updated of the first maintenance path; When the number of times the path has not been updated is greater than or equal to the threshold of the number of times the path has not been updated, an updated maintenance path is generated by using a neighborhood operator and the first maintenance path, the updated maintenance path is determined as the second maintenance path, and the number of times the path has not been updated of the first maintenance path is cleared.

9. The method according to claim 5, characterized in that The preset fitness function is obtained by the following method: Obtaining the waiting time penalty cost and safety risk cost of the vehicle being repaired; Calculating a travel distance cost and a vehicle maintenance cost based on the second maintenance path; The sum of the waiting time penalty cost, the safety risk cost, the driving distance cost and the vehicle maintenance cost is calculated to obtain the preset fitness function.

10. A vehicle path planning device, characterized in that: include: An acquisition unit is used to acquire the location information of the substation to be repaired and the number of repair vehicles, calculate the distance between any two substations to be repaired, and obtain a distance matrix; A first determination unit is used to determine the maintenance priority weight of each substation to be repaired, and determine the objective function of the clustering algorithm based on the distance matrix and the maintenance priority weight; A clustering unit, used for clustering the substations to be repaired by a clustering algorithm to obtain a plurality of clustering results, and screening out N initial clustering results from the plurality of clustering results according to the objective function, wherein each clustering result includes K clusters, K is the number of the repair vehicles, each cluster represents the repair path of a repair vehicle, N and K are both positive integers, and K is less than or equal to N; The second determination unit is used to use each initial clustering result as an initial nectar source, screen out a target clustering result from the N initial clustering results according to the artificial bee colony algorithm, and determine the maintenance path corresponding to the target clustering result as the target maintenance path.

Citation Information

Cited By

  • Path planning navigation method, device, equipment and medium

    CN119940677A