Charging station operation and maintenance path planning method combining heuristic algorithm based on divide-and-conquer thought with reinforcement learning

By combining divide-and-conquer thinking and reinforcement learning in charging station operation and maintenance path planning, the high time complexity and local optimal problems of existing algorithms are solved, and more efficient and accurate path planning is achieved, adapting to complex environments and new situations. Support the sustainable development of the new energy vehicle industry.

CN118690936APending Publication Date: 2024-09-24NANJING UNIV OF POSTS & TELECOMM
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410787865.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-18
Publication Date
2024-09-24

AI Technical Summary

Technical Problem

The existing charging station operation and maintenance path planning algorithm has the limitations of high time complexity, easy to fall into local optimality, and inability to effectively solve specific problems. It cannot meet the needs of the new energy vehicle industry for intelligent, automated and efficient operation and maintenance.

Method used

A heuristic algorithm based on the divide-and-conquer idea is used combined with a reinforcement learning method to divide regions through the divide-and-conquer idea, use a heuristic path optimization algorithm to generate the shortest path between regions, and use the reinforcement learning Q-learning algorithm to generate path planning in each region. Combined with the heuristic path optimization algorithm for local tuning, a more accurate and efficient path planning solution can be obtained.

Benefits of technology

It reduces the size of the problem, improves the local optimal problem of the heuristic path optimization algorithm, improves the efficiency and accuracy of path planning, can quickly find the optimal operation and maintenance path strategy in complex environments, adapts to new situations, and reduces the cost of operation and maintenance. Comprehensive cost.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118690936A
    Figure CN118690936A
Patent Text Reader

Abstract

The invention provides a charging station operation and maintenance path planning method based on the combination of a heuristic algorithm of a divide-and-conquer idea and reinforcement learning, and the method mainly comprises the following steps: collecting the longitudes and latitudes of all operation and maintenance target charging stations, and initializing a grid map; the operation and maintenance sites are divided according to the administrative regions to which the operation and maintenance sites belong by adopting the idea of division and treatment; a heuristic path optimization algorithm is selected to plan paths between the regions; a reinforcement learning Q-learning algorithm is adopted to carry out path planning on the maintenance stations in all the areas; the path plans of the maintenance stations in all the areas are combined according to the shortest path traversal sequence among the areas, and then a heuristic path optimization algorithm is adopted for local adjustment and optimization; and obtaining path planning routes and global path lengths of all the target operation and maintenance sites.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention discloses a charging station operation and maintenance path planning method based on a heuristic algorithm combining divide-and-conquer thinking with reinforcement learning, belonging to the technical field of path planning. Background Art

[0002] As new energy vehicles are developing rapidly, the scale of charging equipment is expanding, and my country has built about 5.6 million charging infrastructure. As the infrastructure for charging new energy vehicles, the operation and maintenance of charging stations is not only related to the popularization and use of new energy vehicles, but also closely related to the realization of green transportation and the reduction of carbon emissions.

[0003] As the main carrier of the country's new infrastructure, the operation and maintenance of charging equipment has always had problems such as difficulty in extracting fault characteristics from massive operating data, inability to handle simple occasional faults in a timely manner, inability of overall operation and maintenance resources to meet real-time needs, and inadequate fault operation and maintenance mode and strategy libraries. In terms of operation and maintenance path planning, the existing algorithms mainly include the search-based Dijkstra algorithm and A* algorithm, the sampling-based rapid expansion random tree algorithm (PRT) and PRM algorithm, and heuristic path optimization algorithms such as genetic algorithms, ant colony algorithms, and particle swarm algorithms. However, in actual applications, the above algorithms have limitations such as high time complexity, easy to fall into local optimality, and inability to effectively solve specific problems.

[0004] With the rapid development of the new energy vehicle industry and the continuous improvement of charging facilities, the charging pile operation and maintenance path planning algorithm will pay more and more attention to intelligence, automation and efficiency. This trend not only conforms to the trend of the times of technological progress, but is also an inevitable choice to promote green travel and realize a low-carbon society. In view of the defects of the existing algorithms, the construction of an intelligent operation and maintenance system and the construction of a new charging station path operation and maintenance model can greatly shorten the response time of operation and maintenance personnel, improve the timeliness and efficiency of fault handling, more reasonably allocate operation and maintenance resources, reduce the comprehensive cost of facility operation and maintenance, improve the quality and efficiency of business management, and provide strong support for the sustainable development of the new energy vehicle industry. Summary of the invention

[0005] The technical problem to be solved by the present invention is: to overcome the shortcomings of the existing technology and provide a method that combines reinforcement learning with a heuristic path optimization algorithm on the basis of the divide-and-conquer idea, reduces the scale of the problem, improves the problem that the heuristic path optimization algorithm is prone to fall into local optimality and is not easy to converge, and makes the final path planning solution more accurate and efficient.

[0006] The technical solution adopted by the present invention to solve the technical problem is: a charging station operation and maintenance path planning method based on a heuristic algorithm combined with reinforcement learning based on the divide-and-conquer idea, comprising the following steps:

[0007] The following steps are involved:

[0008] Step 1: Collect the longitude and latitude of all target charging stations and initialize the grid map;

[0009] Step 2: Adopt the idea of ​​divide and conquer and divide the operation and maintenance sites according to their administrative regions;

[0010] Step 3: Use a heuristic path optimization algorithm to plan the paths between regions;

[0011] Step 4: Use the reinforcement learning Q-learning algorithm to plan the paths for the maintenance stations in each area;

[0012] Step 5: Combine the maintenance station path planning in each area according to the shortest path traversal order between areas, and then use the heuristic path optimization algorithm for local optimization;

[0013] Step 6: Obtain the path planning routes and global path lengths of all target operation and maintenance sites.

[0014] Preferably, the longitude and latitude of all operation and maintenance target charging stations are collected in step 1, and the grid map is initialized. The specific implementation process is:

[0015] Step 1-1: Obtain the longitude and latitude information of all target charging stations by calling the Baidu Map API interface, and calculate the average longitude and latitude of all stations in each area to represent the center position of the area;

[0016] Step 1-2: Use the geospatial distance formula to calculate the great circle distance (i.e., the shortest distance) between two sites or areas based on longitude and latitude. The distance calculation is shown in formula (1):

[0017]

[0018] Where d is the distance between two regions or the distance between two sites; r is the radius of the earth; lat1, lon1 and lat2, lon2 are the latitude and longitude of region 1 and region 2 or the latitude and longitude of site 1 and site 2 respectively. The regional distance matrix and site distance matrix are calculated according to the geospatial distance formula.

[0019] Step 1-3: The map geographic file of the target environment is divided accurately according to the upper and lower limits of the longitude and latitude of the map boundary, and the side length of each grid is set to lenght (unit: meter) according to actual needs to form a grid network of rows×cols. The specific calculation is shown in formulas (2)-(5):

[0020]

[0021] length′=length / 1000×0.009, (4)

[0022] rows,cols=max(rows′,cols′), (5) where rows and cols represent the number of rows and columns of the grid, respectively, length represents the set grid side length, lat max and lat min Respectively represent the upper and lower limits of the latitude of the map boundary, lon max and lon min They represent the upper and lower limits of the longitude of the map boundary respectively. rows′ is the number of grid rows calculated based on the latitude range and the set grid side length. cols′ is the number of grid columns calculated based on the longitude range and the set grid side length. length′ is the value obtained by converting length.

[0023] Step 1-4: Extract the difference between the grid network and the original map, and extract the complete grid therein, i.e., the difference grid, to be processed as an obstacle in the subsequent reinforcement learning environment space;

[0024] Step 1-5: Based on the data of the difference grid, the movement of the intelligent agent is further visualized, the grid map is abstracted into a visualization grid window with each grid size of a set pixel, and the location information of obstacles, stations, intelligent agents, etc. is displayed.

[0025] Preferably, in step 2, the idea of ​​divide and conquer is specifically manifested as follows:

[0026] The maintenance sites are divided according to the administrative regions they belong to, forming several relatively independent sub-problems. Before solving each sub-problem, the shortest path that traverses all regions is generated. In each sub-problem, the shortest paths to the sites in each region are further refined and generated. Finally, the shortest paths in the regions are combined in the order of their shortest paths to form the final solution to the problem.

[0027] Preferably, in step 3, a heuristic path optimization algorithm is selected to plan the paths between regions, and the specific implementation process is as follows:

[0028] Take particle swarm as an example for modeling:

[0029] Step 3-1: Set the parameters such as population size, number of iterations, inertia weight ω, random numbers r1 and r2, and initialize the position of each particle in the population. Each particle represents a potential path plan.

[0030] Step 3-2: Sample the regions without replacement to generate a region sequence, which is the initial position of a particle. Define the fitness function as the total path length of the region sequence. The distance between regions can be obtained from the region distance matrix, and the total path length can be obtained by summing them up;

[0031] Step 3-3: Update particle velocity and position, and calculate the fitness function value;

[0032] Step 3-4: Update the individual best position. For each particle, compare its current fitness function value with the fitness function value corresponding to its individual historical best position. If the current fitness function value is higher, use the current position to update the individual best position.

[0033] Step 3-5: Update the global best position. For each particle, compare its current fitness function value with the fitness function value corresponding to the global best position. If the current fitness function value is higher, use the current position to update the global best position.

[0034] Step 3-6: Determine whether the maximum number of iterations is met. If not, repeat steps 3 to 5. Otherwise, terminate the iteration and obtain the region sequence corresponding to the global optimal particle position as the shortest path between regions, and its corresponding fitness function value as the shortest path length between regions.

[0035] Preferably, in step 4, the use of the reinforcement learning Q-learning algorithm to perform path planning for the maintenance stations in each area includes: when executing the Q-learning algorithm, assuming that the current state of the agent is s, and the corresponding set of selectable actions a is the action space A, as shown in formula (6):

[0036] A={A|O,U,D,L,R,LU,RU,LD,RD}, (6)

[0037] Among them, O represents staying in place, U represents upward movement, D represents downward movement, L represents left movement, R represents right movement, LU represents upper-left movement, RU represents upper-right movement, LD represents lower-left movement, and RD represents lower-right movement.

[0038] The agent selects an action based on the ε-greedy strategy, where the exploration rate ε will change dynamically according to the function of the number of iterations episode. The specific function expression is shown in formula (7):

[0039]

[0040] Preferably, the use of a reinforcement learning Q-learning algorithm to plan the paths of the maintenance stations in each area includes: in the Q-learning algorithm, after the agent selects an action according to the ε-greedy strategy, it reaches the next state s′ and obtains a corresponding reward r. The states reached by different action selections correspond to different rewards, which are divided into three types of rewards: r1, r2, and r3. The specific calculation of r1, r2, and r3 is shown in formulas (8)-(10):

[0041]

[0042] Among them, in r2, d = d1-d2, d1 represents the current visited site x i+1 With visited site x i-1 The geographical distance between them, d2 represents the visited site x i With visited site x i-1 The geographical distance between them.

[0043] The final reward function r is the sum of the above three parts, and its specific expression is shown in formula (11):

[0044] r=r1+r2+r3, (11)

[0045] Preferably, in steps 5 and 6, the maintenance site path planning in each area is combined according to the shortest path traversal order between areas, and a heuristic path optimization algorithm is used for local optimization, so as to finally obtain the path planning routes and global path lengths of all target operation and maintenance sites.

[0046] Compared with the prior art, the beneficial effects of the present invention are: 1. In the charging station operation and maintenance path planning method based on the divide-and-conquer idea of ​​the heuristic algorithm combined with reinforcement learning, on the basis of the divide-and-conquer idea, reinforcement learning is combined with the heuristic path optimization algorithm to reduce the scale of the problem and improve the problem that the heuristic path optimization algorithm is prone to fall into local optimality and is not easy to converge.

[0047] 2. Through this charging station operation and maintenance path planning method based on the divide-and-conquer idea combined with reinforcement learning, the heuristic path optimization algorithm cannot guarantee the optimal path. When dealing with complex environments or large-scale path planning problems with high time complexity, it is proposed to divide the maintenance sites according to their administrative regions based on the divide-and-conquer idea to reduce the scale of the problem. After using the heuristic path optimization algorithm to generate the shortest path between regions, it is combined with reinforcement learning to generate the site path planning in each region, and improve the exploration rate ε of the ε-greedy strategy of the reinforcement learning algorithm action selection, so that it can more reasonably achieve a balance between exploring the environment and using information. At the same time, for the setting of the reinforcement learning reward function, considering the actual target environment and problem conditions, the algorithm reduces the invalid expansion and exploration of the obstacle grid and the grid without the station, reduces the time consumption, and greatly improves the efficiency of path planning.

[0048] 3. In this charging station operation and maintenance path planning method based on the divide-and-conquer idea combined with the heuristic algorithm and reinforcement learning, in view of the large and complex environment of charging pile operation and maintenance, reinforcement learning does not require precise modeling, and it can find the optimal operation and maintenance path planning strategy through trial and error. And the reinforcement learning algorithm can generalize to unseen states and scenarios during the learning process. In the operation and maintenance of charging piles, various new situations and problems may be encountered. Reinforcement learning can use previous learning experience to quickly adapt to and handle these new situations, ensuring the effectiveness and efficiency of operation and maintenance path planning. BRIEF DESCRIPTION OF THE DRAWINGS

[0049] Figure 1 This is a flow chart of a charging station operation and maintenance path planning method based on a heuristic algorithm combined with reinforcement learning based on the divide-and-conquer idea;

[0050] Figure 2 is a grid map of the target environment;

[0051] Figure 3 It is a visualization window diagram of the agent's movement;

[0052] Figure 4 This is a flow chart of charging pile path planning based on particle swarm optimization algorithm;

[0053] Figure 5 This is a flowchart of charging pile path planning based on the Q-learning algorithm.

[0054] Figure 6 It is the overall flow chart of the present invention. DETAILED DESCRIPTION

[0055] The present invention will be further described in detail below in conjunction with the accompanying drawings.

[0056] Example: Figure 1 , Figure 6The figure shows a flow chart of a charging station operation and maintenance path planning method based on a heuristic algorithm combined with reinforcement learning based on the divide-and-conquer idea, which specifically includes the following steps:

[0057] Step 1: Collect the longitude and latitude of all target charging stations and initialize the grid map.

[0058] Step 1-1: Obtain the longitude and latitude information of all target charging stations by calling the Baidu Map API interface, and calculate the average longitude and latitude of all stations in each area to represent the center position of the area;

[0059] Step 1-2: Use the geospatial distance formula to calculate the great circle distance (i.e., the shortest distance) between two sites or areas based on longitude and latitude. The distance calculation is shown in formula (1):

[0060]

[0061] Where d is the distance between two regions or the distance between two sites; r is the radius of the earth; lat1, lon1 and lat2, lon2 are the latitude and longitude of region 1 and region 2 or the latitude and longitude of site 1 and site 2 respectively. The regional distance matrix and site distance matrix are calculated according to the geospatial distance formula.

[0062] Step 1-3: The map geographic file of the target environment is divided accurately according to the upper and lower limits of the longitude and latitude of the map boundary, and the side length of each grid is set to lenght (unit: meter) according to actual needs to form a grid network of rows×cols. The specific calculation is shown in formulas (2)-(5):

[0063]

[0064] length′=length / 1000×0.009, (4)

[0065] rows,cols=max(rows′,cols′), (5)

[0066] Among them, rows and cols represent the number of rows and columns of the grid, length represents the set grid side length, lat max and lat min Respectively represent the upper and lower limits of the latitude of the map boundary, lon max and lon minRespectively represent the upper and lower limits of the longitude of the map boundary, rows′ is the number of grid rows calculated based on the latitude range and the set grid side length, cols′ is the number of grid columns calculated based on the longitude range and the set grid side length, and length′ is the value obtained by converting length. The grid map of the target environment is as follows: Figure 2 shown.

[0067] Step 1-4: Extract the difference between the grid network and the original map, and extract the complete grid therein, i.e., the difference grid, to be processed as an obstacle in the subsequent reinforcement learning environment space;

[0068] Step 1-5: Based on the data of the difference grid, the movement of the intelligent agent is further visualized. The grid map is abstracted into a visualization grid window with each grid size set in pixels. The black squares represent obstacle grids, the yellow circles represent the location information of regional sites, and the red squares represent the location of the intelligent agent. The final visualization effect is as follows: Figure 3 shown.

[0069] Step 2: Adopt the idea of ​​divide and conquer and divide the operation and maintenance sites according to their administrative regions.

[0070] The maintenance sites are divided according to the administrative regions they belong to, forming several relatively independent sub-problems. Before solving each sub-problem, the shortest path that traverses all regions is generated. In each sub-problem, the shortest paths to the sites in each region are further refined and generated. Finally, the shortest paths in the regions are combined in the order of their shortest paths to form the final solution to the problem.

[0071] Step 3: Use a heuristic path optimization algorithm to plan the paths between regions.

[0072] Heuristic path optimization algorithms are used: genetic algorithm, particle swarm algorithm, and simulated annealing algorithm to plan the paths between regions. Using particle swarm as an example for modeling, Figure 4 The charging pile path process based on the particle swarm optimization algorithm is as follows:

[0073] Step 3-1: Set the parameters such as population size, number of iterations, inertia weight ω, random numbers r1 and r2, and initialize the position of each particle in the population. Each particle represents a potential path plan.

[0074] Step 3-2: Sample the regions without replacement to generate a region sequence, which is the initial position of a particle. Define the fitness function as the total path length of the region sequence. The distance between regions can be obtained from the region distance matrix, and the total path length can be obtained by summing them up;

[0075] Step 3-3: Update particle velocity and position, and calculate the fitness function value;

[0076] Step 3-4: Update the individual best position. For each particle, compare its current fitness function value with the fitness function value corresponding to its individual historical best position. If the current fitness function value is higher, use the current position to update the individual best position.

[0077] Step 3-5: Update the global best position. For each particle, compare its current fitness function value with the fitness function value corresponding to the global best position. If the current fitness function value is higher, use the current position to update the global best position.

[0078] Step 3-6: Determine whether the maximum number of iterations is met. If not, repeat steps 3-3 to 3-5. Otherwise, terminate the iteration and obtain the region sequence corresponding to the global optimal particle position as the shortest path between regions, and its corresponding fitness function value as the shortest path length between regions.

[0079] Step 4: Use the reinforcement learning Q-learning algorithm to plan the paths for the maintenance stations in each area.

[0080] The core of the Q-learning algorithm lies in the learning function Q(s,a) (i.e., Q value), which represents the expected reward that can be obtained by taking an action a in a given state s. The Q value is stored in the Q-table. Figure 5 The charging pile path process based on the Q-learning algorithm, the specific steps are as follows:

[0081] Step 4-1: Initialize the environment and determine the state space S and action space A. The position of the agent in the map is determined by the boundary of the agent block at the visible window. This position is the state s. The set of all states s is the state space S. The representation of the state vector s is shown in formula (6):

[0082] s=[O x -15,O y -15,O x +15,O y +15], (6)

[0083] The corresponding set of selectable actions a is the action space A, as shown in formula (7):

[0084] A={A|O,U,D,L,R,LU,RU,LD,RD}, (7)

[0085] Among them, O represents staying in place, U represents upward movement, D represents downward movement, L represents left movement, R represents right movement, LU represents upper-left movement, RU represents upper-right movement, LD represents lower-left movement, and RD represents lower-right movement.

[0086] Step 4-2: Initialize parameters. Set the learning rate α, exploration rate ε, discount factor γ and maximum number of iterations, and obtain the initial state for each iteration.

[0087] Step 4-3: For all s∈S and a∈A, initialize Q(s,a) in the Q-table to zero.

[0088] Step 4-4: Action selection. Assume that the current state of the agent is s. The agent selects an action according to the ε-greedy strategy, that is, randomly generates a number. If it is less than the exploration rate ε, it randomly selects an action a; if it is greater than the exploration rate ε, it selects the optimal action. The exploration rate ε will change dynamically according to the function of the number of iterations episode. The specific function expression is shown in formula (8):

[0089]

[0090] Step 4-5: Observe the environment and obtain reward feedback. After selecting an action, you will get a corresponding reward r when you reach the next state s′. The rewards corresponding to the states reached by different action selections are different. There are three types of rewards: r1, r2, and r3. The specific values ​​of r1, r2, and r3 are shown in formulas (9) to (11):

[0091]

[0092] Among them, in r2, d = d1-d2, d1 represents the current visited site x i+1 With visited site x i-1 The geographical distance between them, d2 represents the visited site x i With visited site x i-1 The geographical distance between them.

[0093] The final reward function r is the sum of the above three parts, and its specific expression is shown in formula (12):

[0094] r=r1+r2+r3, (12)

[0095] Step 4-6: Update Q-table. Update Q-table according to the Q value calculation expression. The Q value calculation is shown in formula (13):

[0096] Q(s,a)=(1-α)*Q(s,a)+α*[r+γ*max[Q(s′,a'))], (13)

[0097] Among them, α represents the learning rate (0 < α ≤ 1), which determines the influence degree of newly learned information on the original Q value; r represents the immediate reward obtained after executing action a; γ represents the discount factor (0 < γ ≤ 1), which determines the degree of importance the agent attaches to future rewards; s′ represents the next state transferred to after executing action a; a′ represents the optimal action selected in state s′.

[0098] Steps 4 - 7: Determine whether state s′ is a termination state. The termination conditions are: the agent visits an obstacle cell or the agent has traversed all stations. If s′ is an obstacle cell, initialize the agent's position to the starting point to start the next iteration, and repeat Steps 4 - 3 to Steps 4 - 6; if all stations have been traversed, output the traversal path of the stations and the total path length, and initialize the agent's position to the starting point to start the next iteration, and repeat Steps 4 - 3 to Steps 4 - 6.

[0099] Step 4 - 8: Determine whether the maximum number of iterations has been reached. If the maximum number of iterations has been reached, end the algorithm.

[0100] Step 5: Combine the path planning of the maintenance stations in each area according to the traversal order of the shortest paths between areas, and then use a heuristic path optimization algorithm for local optimization.

[0101] Combine the path planning of the maintenance stations in each area obtained according to the traversal order of the shortest paths between areas, and then use heuristic path optimization algorithms: genetic algorithm, particle swarm algorithm, simulated annealing algorithm for local optimization.

[0102] Step 6: Obtain the path planning routes and the global path length of all target operation and maintenance stations.

[0103] Finally, obtain the path planning routes and the global path length of all target operation and maintenance stations.

[0104] The preferred embodiments of the present invention have been described in detail above. However, the present invention is not limited to the specific details in the above embodiments. Any person skilled in the art may use the disclosed technical content to make changes or modifications into equivalent embodiments with equivalent changes. However, any simple modification, equivalent change, and modification made to the above embodiments based on the technical essence of the present invention without departing from the technical solution content of the present invention still fall within the protection scope of the technical solution of the present invention.

Claims

1. A charging station operation and maintenance path planning method based on a heuristic algorithm combined with reinforcement learning based on the divide-and-conquer idea, characterized in that: The following steps are involved: Step 1: Collect the longitude and latitude of all target charging stations and initialize the grid map; Step 2: Adopt the idea of ​​divide and conquer and divide the operation and maintenance sites according to their administrative regions; Step 3: Use a heuristic path optimization algorithm to plan the paths between regions; Step 4: Use the reinforcement learning Q-learning algorithm to plan the paths for the maintenance stations in each area; Step 5: Combine the maintenance station path planning in each area according to the shortest path traversal order between areas, and then use the heuristic path optimization algorithm for local optimization; Step 6: Obtain the path planning routes and global path lengths of all target operation and maintenance sites.

2. The charging station operation and maintenance path planning method based on the divide-and-conquer heuristic algorithm combined with reinforcement learning according to claim 1 is characterized in that: In step 1, the longitude and latitude of all target charging stations are collected, and the grid map is initialized. The specific implementation process of data collection and map initialization is as follows: Step 1-1: Obtain the longitude and latitude information of all target charging stations by calling the Baidu Map API interface, and calculate the average longitude and latitude of all stations in each area to represent the center position of the area; Step 1-2: Use the geospatial distance formula to calculate the great circle distance (i.e., the shortest distance) between two sites or areas based on longitude and latitude. The distance calculation is shown in formula (1): Where d is the distance between two regions or the distance between two sites; r is the radius of the earth; lat1, lon1 and lat2, lon2 are the latitude and longitude of region 1 and region 2 or the latitude and longitude of site 1 and site 2 respectively. The regional distance matrix and site distance matrix are calculated according to the geospatial distance formula. Step 1-3: The map geographic file of the target environment is divided accurately according to the upper and lower limits of the longitude and latitude of the map boundary, and the length of each grid side is set to length (unit: meter) according to actual needs to form a grid network of rows×cols. The specific calculation is shown in formulas (2)-(5): length′=length / 1000×0.009, (4) rows, cols=max(rows′, cols′), (5) Among them, rows and cols represent the number of rows and columns of the final grid grid, length represents the set grid side length, lat max and lat min Respectively represent the upper and lower limits of the latitude of the map boundary, lon max and lon min They represent the upper and lower limits of the longitude of the map boundary, rows′ is the number of grid rows calculated based on the latitude range and the set grid side length, cols′ is the number of grid columns calculated based on the longitude range and the set grid side length, and length′ is the value obtained by converting length. Step 1-4: Extract the difference between the grid network and the original map, and extract the complete grid therein, i.e., the difference grid, to be processed as an obstacle in the subsequent reinforcement learning environment space; Step 1-5: Based on the data of the difference grid, the movement of the intelligent agent is further visualized, the grid map is abstracted into a visualization grid window with each grid size of a set pixel, and the location information of obstacles, stations, intelligent agents, etc. is displayed.

3. The charging station operation and maintenance path planning method based on the divide-and-conquer heuristic algorithm combined with reinforcement learning according to claim 1 is characterized in that: In step 2, the idea of ​​divide and conquer is adopted. The operation and maintenance sites are divided according to the administrative regions to which they belong, forming several relatively independent sub-problems. Before solving each sub-problem, the shortest path that traverses all regions is generated. In each sub-problem, the shortest path of the sites in each region is refined and generated. Finally, the order of the shortest paths in the regions is combined to form the final solution to the problem.

4. The charging station operation and maintenance path planning method based on the divide-and-conquer heuristic algorithm combined with reinforcement learning according to claim 1 is characterized in that: In step 3, a heuristic path optimization algorithm is used to plan the paths between regions. The specific implementation process is as follows: A heuristic path optimization algorithm is used to plan the paths between regions, and a particle swarm is used as an example for modeling: Step 3-1: Set the population size, number of iterations, inertia weight ω, random number r1 and r2 parameters, initialize the position of each particle in the population, and each particle represents a potential path plan; Step 3-2: Sample the regions without replacement to generate a region sequence, which is the initial position of a particle. Define the fitness function as the total path length of the region sequence. The distance between regions can be obtained from the region distance matrix, and the total path length can be obtained by summing them up. Step 3-3: Update particle velocity and position, and calculate the fitness function value; Step 3-4: Update the individual best position. For each particle, compare its current fitness function value with the fitness function value corresponding to its individual historical best position. If the current fitness function value is higher, use the current position to update the individual best position. Step 3-5: Update the global best position. For each particle, compare its current fitness function value with the fitness function value corresponding to the global best position. If the current fitness function value is higher, use the current position to update the global best position. Step 3-6: Determine whether the maximum number of iterations is met. If not, repeat steps 3-3 to 3-5. Otherwise, terminate the iteration and obtain the region sequence corresponding to the global optimal particle position as the shortest path between regions, and its corresponding fitness function value as the shortest path length between regions.

5. The charging station operation and maintenance path planning method based on the divide-and-conquer heuristic algorithm combined with reinforcement learning according to claim 1 is characterized in that: In step 4, the reinforcement learning Q-learning algorithm is used to plan the paths of the maintenance stations in each area. When executing the Q-learning algorithm, the current state of the agent is s, and the corresponding set of selectable actions a is the action space A, as shown in formula (6): A={A|O,U,D,L,R,LU,RU,LD,RD}, (6) O means staying in place, U means upward movement, D means downward movement, L means left movement, R means right movement, LU means upper left movement, RU means upper right movement, LD means lower left movement, and RD means lower right movement. The agent selects an action based on the ε-greedy strategy, where the exploration rate ε will change dynamically according to the function of the number of iterations episode. The specific function expression is shown in formula (7):

6. The charging station operation and maintenance path planning method based on the divide-and-conquer heuristic algorithm combined with reinforcement learning according to claim 5 is characterized in that: Q-learning algorithm action selection strategy, after the agent selects an action according to the ε-greedy strategy, it will get the corresponding reward r when it reaches the next state s′. The rewards corresponding to the states reached by different action selections are different, and there are three types of rewards: r1, r2, and r3. The specific calculation of r1, r2, and r3 is shown in formulas (8)-(10): Among them, in r2, d = d1-d2, d1 represents the current visited site x i+1 Visit site x i-1 The geographical distance between them, d2 represents the visited site x i Visit site x i-1 The geographical distance between The final reward function r is the sum of the above three parts, and its specific expression is shown in formula (11): r=r1+r2+r3, (11)。 7. The charging station operation and maintenance path planning method based on the divide-and-conquer heuristic algorithm combined with reinforcement learning according to claim 6 is characterized in that: In step 5, based on the Q-learning calculation results, the maintenance station path planning in each area is combined according to the shortest path traversal order between areas, and the heuristic path optimization algorithm is used for local optimization.

8. The charging station operation and maintenance path planning method based on the divide-and-conquer heuristic algorithm combined with reinforcement learning according to claim 7 is characterized in that: In step 6, based on the results of local optimization, the path planning routes and global path lengths of all target operation and maintenance sites are obtained.

Citation Information

Cited By

  • Accurate positioning and path planning method for nuclear power robot

    CN119690073A