A collection and maintenance work planning method based on beam search

Through the collection and operation and maintenance work planning method based on cluster search, the problems of data errors and low dispatch efficiency of operation and maintenance faults in power consumption information collection are solved, efficient maintenance sequence planning and calculation stability are achieved, and the power operation efficiency is significantly improved. Dimensional efficiency and effectiveness.

CN112163679BActive Publication Date: 2024-10-22STATE GRID ZHEJIANG ELECTRIC POWER CO LTD +4
View PDF 9 Cites 0 Cited by

Patent Information

Application Number
CN202010935929.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-09-08
Publication Date
2024-10-22
Estimated Expiration
2040-09-08

AI Technical Summary

Technical Problem

In the existing technology, data errors or missing due to equipment failure or communication loss during the power consumption information collection process affect data analysis and use, and on-site operation and maintenance failures are concentrated, making it difficult for a single operator to complete the dispatch task, and the existing algorithm Long running time and poor calculation stability.

Method used

The collection operation and maintenance work planning method based on cluster search is adopted to balance the planning effect and computing efficiency by initializing the priority queue, traversing the time window, scanning the fault point, updating the plan, and pruning to optimize the search path, thereby reducing the search space and time.

Benefits of technology

It achieves the maximum maintenance utility and the stability of the calculation effect, shortens the running time, improves the calculation efficiency, and is significantly better than other algorithms.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112163679B_ABST
    Figure CN112163679B_ABST
Patent Text Reader

Abstract

The present invention discloses a collection and operation and maintenance work planning method based on beam search, which relates to the field of power operation and maintenance. Most of the collection and operation and maintenance work plans have the problems of long running time and low stability of computing effect. The present invention includes the following steps: 1) Initialize the priority queues of each window; divide the given working time into T discrete time nodes; maintain a priority queue for each time node; 2) traverse the plan; based on the beam search, for each time window t, maintain a priority queue to save the K plans with the highest maintenance utility obtained by completing the fault point maintenance in the current time window; until the planning traversal is completed; 3) compare all maintenance plans to obtain the plan with the highest total maintenance utility. This technical solution balances the planning effect and computing efficiency, reduces the space and time occupied by the search, and retains some high-quality plans; it has the advantages of short running time and high stability of computing effect.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of electric power operation and maintenance, and in particular to a collection and operation and maintenance work planning method based on beam search. Background Art

[0002] The basis for the collision between smart grid and artificial intelligence lies in data. In this regard, as a basic platform for collecting real-time electricity consumption information of users and with the goal of "full coverage" of power grid user data, the electricity consumption information collection system provides sufficient data guarantee. However, in the process of data collection and storage in a real environment, due to the failure of data collection equipment or data loss during communication, it is inevitable that the collected data will be wrong or missing, resulting in incomplete data information and affecting the subsequent analysis and use of such data. To a certain extent, only by ensuring the reliability of collected data can we support upper-level applications based on the collection of big data, such as reasonably analyzing and understanding the electricity consumption of power customers.

[0003] In order to reduce the impact of such problems on actual data use, appropriate processing can generally be performed at the data collection end. For on-site operation and maintenance at the data collection end, due to the large number of failures occurring in certain periods, a single operator cannot complete the assigned tasks in the area in charge. In this case, it is also very important to assign the operator an appropriate number of fault points to be repaired and arrange the appropriate repair sequence.

[0004] Given the location of the operator and the fault point, the goal of task planning is to give a sequence of fault points within a given time limit so that the total maintenance utility is as large as possible. This problem and its dual problem have certain similarities with the classic traveling salesman problem, and both are NP-hard problems. However, the traveling salesman problem cannot be directly applied to the solution of this problem. Not limited to the classic traveling salesman problem, many works have also explored variants of the traveling salesman problem, such as the traveling salesman problem with time constraints and the traveling salesman problem with capacity constraints, but these variant problems cannot be directly used to solve this problem or the dual problem of this problem. Therefore, how to design a reasonable heuristic method to solve this problem as well as possible is a big challenge in this work.

[0005] On the other hand, the problem considered in this study is a combinatorial optimization problem. Algorithms applicable to general combinatorial optimization problems can also be used to solve this problem. These algorithms include genetic algorithms, simulated annealing algorithms, and ant colony algorithms. In recent years, the use of deep neural networks to learn heuristic solutions to combinatorial optimization problems has received widespread attention in the academic community, and this methodology is also applicable to this problem. However, most of these algorithms have problems such as long running time and low stability of calculation results. Summary of the invention

[0006] The technical problem to be solved and the technical task proposed by the present invention are to improve and perfect the existing technical solutions and provide a collection and operation and maintenance work planning method based on beam search to achieve the purpose of taking into account the total maintenance utility and the stability of the running time and the calculation effect. To this end, the present invention adopts the following technical solutions.

[0007] The collection and operation and maintenance work planning method based on beam search includes the following steps:

[0008] 1) Initialize each window priority queue

[0009] Initialize the priority queue list PQ[T+1] of each window; divide the given working time into T discrete time nodes; for each time node, maintain a priority queue to save the B solutions with the highest urgency to complete the task at the current time node;

[0010] Initialize the initial plan Lg of the operator; for the initial time node, set the urgency of the current operator to complete the task to 0 and the total maintenance utility to 0;

[0011] Insert the initial plan from Lg to PQ[0];

[0012] 2) Traversal planning

[0013] Starting from time window t=0, for each plan maintained in the current time window, scan all fault points that are not in the plan. If the repair fault point p i The required time is y, then update the current plan to the time node Among the K plans of t, τ is the minimum time unit; τ is less than the minimum commuting maintenance time between all maintenance points to avoid the total planning time still falling into the original time window after adding a new maintenance node; K is an integer greater than 1; based on beam search, for each time window t, a priority queue is maintained to save the K plans with the highest maintenance utility obtained by completing the fault point maintenance in the current time window; until the planning traversal is completed;

[0014] 3) Compare all maintenance plans and obtain the plan with the highest total maintenance utility.

[0015] As a preferred technical means: in step 2) including the steps of:

[0016] 201) Determine whether the time window t is between 0 and T; if so, proceed to the next step; if not, consider that the time window has been traversed and end;

[0017] 202) traverse the plan under the current time window t;

[0018] 203) Determine whether the planning under the current time window t is traversed, if so, move the current time window t back by one window and return to step 201); if not, proceed to the next step;

[0019] 204) Update the current plan and insert it into the queue of the current time window t;

[0020] 205) Determine whether the queue length is greater than the threshold K; if not, return to step 203); if yes, proceed to the next step;

[0021] 206) Pop up the plan with the minimum maintenance utility in the current time window t; and return to step 203).

[0022] As a preferred technical means: in step 206), the maintenance utility minimum pop-up includes the following steps:

[0023] A) Determine whether the fault point P is not in the plan L; if so, proceed to the next step;

[0024] B) Determine whether the total planning time s(Lc+p) after adding the fault point P is greater than or equal to T; if so, insert (Lc+p) into PQ[w((Lc+p)];

[0025] C) If the total utility C(Lc+p) of the plan (Lc+p) is greater than the total utility C(Lg) of the plan (Lg); then Lg = Lc+p;

[0026] D) If PQ[w((Lc+p)] is greater than K, then the minimum maintenance utility is popped out of the priority queue.

[0027] As a preferred technical means: K is 4. Under the same conditions, the average total utility of the heuristic algorithm based on beam search increases with the increase of K. This is because as the parameter K increases, the number of candidate plans per time unit increases accordingly, and eventually there is a chance to select a better plan.

[0028] As a preferred technical means: in step 2), for each plan maintained at the current time node, scan all tasks that are not in the plan. If the time required for job w is τ and the time to go to the work package is δ, then update the current plan to the K plans at time node t+δ+τ. Under the same conditions, the average total utility of the heuristic algorithm based on beam search increases with the increase of K and decreases with the increase of τ. Under the same conditions, as the τ value decreases, the divided time windows will increase accordingly, and the number of plans for each time window is fixed, so the best choice can be made from more candidate plans.

[0029] Beneficial effects: The present invention uses heuristic beam search based on the optimal algorithm to reasonably prune the search path, balances the planning effect and computing efficiency, reduces the space and time occupied by the search, and deletes some plans with relatively poor quality at each step of depth expansion, retaining some plans with higher quality; it has the advantages of short running time and high stability of computing effect. BRIEF DESCRIPTION OF THE DRAWINGS

[0030] Figure 1 It is a flow chart of the present invention.

[0031] Figure 2 It is a schematic diagram of the collection and operation and maintenance work planning principle of the present invention. DETAILED DESCRIPTION

[0032] The technical solution of the present invention is further described in detail below in conjunction with the accompanying drawings.

[0033] like Figure 1 As shown, the collection and operation and maintenance work planning method based on beam search includes the following steps:

[0034] 1) Initialize each window priority queue

[0035] Initialize the priority queue list PQ[T+1] of each window; divide the given working time into T discrete time nodes; for each time node, maintain a priority queue to save the B solutions with the highest urgency to complete the task at the current time node;

[0036] Initialize the initial plan Lg of the operator; for the initial time node, set the urgency of the current operator to complete the task to 0 and the total maintenance utility to 0;

[0037] Insert the initial plan from Lg to PQ[0];

[0038] 2) Traversal planning

[0039] Starting from time window t=0, for each plan maintained in the current time window, scan all fault points that are not in the plan. If the repair fault point p i The required time is y, then update the current plan to the time node Among the K plans of t, τ is the minimum time unit; τ is less than the minimum commuting maintenance time between all maintenance points to avoid the total planning time still falling into the original time window after adding a new maintenance node; K is an integer greater than 1; based on beam search, for each time window t, a priority queue is maintained to save the K plans with the highest maintenance utility obtained by completing the fault point maintenance in the current time window; until the planning traversal is completed;

[0040] 3) Compare all maintenance plans and obtain the plan with the highest total maintenance utility.

[0041] The following is a further explanation of the specific method:

[0042] 1. Principle of the method

[0043] The collection and operation and maintenance dispatching problem targeted by this technical solution can be represented by a four-tuple<P,u,f,T> In which, P = {p0, p1, ..., p M} contains the operator's starting point p0 and the set of fault points {p1,p2,...,p M},u(p i ) represents the utility of repairing the fault point, f(v,w) represents the time taken to go from point v to point w and complete the repair, and T represents the total operation time of the operator. Then, the goal of task planning is to give a fault point label sequence L = {l1,l2,...,l N}(N represents the length of the output sequence, l i is the fault point p li ), so that the total utility of the maintenance of these fault points is as large as possible. In addition, for the convenience of conceptual description, in this embodiment, c(L) represents the total utility of planning L, s(L) represents the total time of planning L, w(L) represents the time window corresponding to the total time of planning L, (L+p i ) indicates adding a fault point p to plan L i The new plan after that, (PL) represents the set of remaining fault points after removing the fault points in L from P.

[0044] Before introducing the heuristic search method of this technical solution, we first introduce a search method that can obtain the optimal solution to this problem. This method first divides the total operation time T into units with the smallest unit being τ. For each time window, a queue is maintained to store all plans in the current time window. Starting from time window t = 0, iteratively take out the plan from the front of the queue and scan all tasks that are not in the plan. If the repair fault point p i If the time required is y, update the current plan to the time window The corresponding queue. Finally, from all the maintenance plans, the plan with the highest total maintenance utility is selected. The specific method flow is as follows:

[0045]

[0046] Obviously, this method cannot complete the calculation in polynomial time. As the value of t increases, the number of plans maintained in each time window grows exponentially. In order to reduce the space and time occupied by the search, some plans with relatively poor quality should be deleted at each step of depth expansion, and some plans with higher quality should be retained. Such a heuristic search method is also called a beam search. Using the idea of ​​beam search, the heuristic method proposed in this technical solution maintains a priority queue for each time window t, which is used to save the K plans with the highest maintenance utility for completing the fault point repair in the current time window. In this way, this method starts from the time window t=0, and for each plan maintained in the current time window, scans all fault points that are not in the plan. If the repair fault point p i The required time is y, then update the current plan to the time node The values ​​of K and τ are set by the actual scenario characteristics. A general guiding principle is that the τ value should be less than the minimum commuting maintenance time between all maintenance points. This is to avoid the total planning time still falling into the original time window after adding a new maintenance node; the K value is an integer greater than 1. Based on the optimal algorithm, this method reasonably prunes the search path based on heuristic beam search, balancing the planning effect and computational efficiency.

[0047] The specific process of this method is as follows:

[0048]

[0049] 2. Process of this embodiment

[0050] like Figure 1 , 2 As shown, Figure 1 and Figure 2 The flowchart and schematic diagram of the collection and operation work planning algorithm based on beam search are shown. The given working time is divided into T discrete time nodes. For each time node, a priority queue is maintained to save the B solutions with the highest urgency to complete the task at the current time node (B=4 in the figure). For the initial time node, the urgency of the current operator to complete the task is set to 0. Starting from time node t=0, for each solution maintained at the current time node, scan all tasks that are not in the solution. If the time required for job w is τ and the time to go to the work package is δ, then update the current solution to the B solutions at time node t+δ+τ. Among all the last solutions, take the solution with the highest urgency as the current solution.

[0051] 3. Method Validation

[0052] 1. Sample Generation

[0053] In this experiment, the sample of dispatching work<P,u,f,T> The following rules are used for generation. Without loss of generality, the operator's starting point p0 and the fault points p1, p2, ..., p M Randomly sampled from [0,1]×[0,1] square units, each fault point p i The maintenance utility u(p i ) is randomly selected from the list [0.1, 0.2, 0.3, ..., 1], from point p i Go to point p j The time it takes to complete the repair is f(p i ,p j )=dist(p i ,p j ) / v+t j , where dist(·,·) represents the Euclidean distance between two points, v = 2 represents the speed of the operator, and t j It represents the time taken to repair the fault point, sampled from the uniform distribution U(0,0.1).

[0054] In this experiment, according to the sample generation method described above, a test set with 1000 samples and a validation set with 100 samples were randomly generated, where the number of fault points M in each sample was fixed to 40.

[0055] 2. Algorithm Comparison

[0056] In order to verify the effectiveness of the method proposed in this technical solution, this experiment will compare the effects of four algorithms, including a greedy algorithm, two meta-heuristic algorithms (genetic algorithm and simulated annealing algorithm) and the algorithm proposed in this technical solution.

[0057] Greedy algorithm: This algorithm selects the fault point with the largest ratio of utility value to time at each step.

[0058] Genetic Algorithm (GA): This algorithm is a method that searches for the optimal solution by simulating the natural evolution process. The experimental results selected the best parameter combination in the validation set.

[0059] Simulated annealing algorithm (SA): This algorithm is based on a method similar to solid annealing to iteratively solve the optimal solution. The experimental results selected the parameter combination with the best effect in the validation set.

[0060] This algorithm uses attention mechanism and reinforcement learning to solve graph combinatorial optimization problems. The experimental results select the best parameter combination in the validation set.

[0061] Beam search-based heuristic algorithm (BH): This method is an algorithm proposed by this technical solution. The results under different parameter combinations are compared in the experiment.

[0062] method Average Utility method Average Utility Greedy 8.307 GA 7.384 SA 9.181 AM 10.005 BH(τ=0.25,K=10) 9.314 BH(τ=0.25,K=20) 9.822 BH(τ=0.20,K=10) 9.878 BH(τ=0.20,K=20) 10.275 BH(τ=0.15,K=10) 10.360 BH(τ=0.15,K=20) 10.629 BH(τ=0.10,K=10) 10.635 BH(τ=0.10,K=20) 10.836

[0063] The above table compares the average total utility calculated by different algorithms for 1000 randomly generated samples under different settings. The heuristic algorithm based on beam search proposed in this technical solution is significantly better than the other three algorithms (Greedy, GA, SA and AM) in terms of performance. This shows that it is necessary to design a specialized heuristic method for this specific combinatorial optimization problem. In addition, it can be observed that, under the same other conditions, the average total utility of the heuristic algorithm based on beam search increases with the increase of K and decreases with the increase of τ. This is because as the parameter K increases, the number of candidate plans for each time unit increases accordingly, and eventually there is a chance to select a better plan; and as the value of τ decreases, the divided time windows will increase accordingly, and the number of plans in each time window is fixed, so it is possible to select the best from more candidate plans.

[0064] above Figure 1 , 2 The collection and operation and maintenance work planning method based on beam search shown is a specific embodiment of the present invention, which has embodied the substantial characteristics and progress of the present invention. According to actual use needs and under the guidance of the present invention, equivalent modifications in shape, structure, etc. can be made to it, which are all within the protection scope of this scheme.

Claims

1. A collection and operation and maintenance work planning method based on beam search, characterized by: The following steps are involved: 1) Initialize each window priority queue Initialize the priority queue list PQ[T+1] of each window; divide the given working time into T discrete time nodes; for each time node, maintain a priority queue to save the B solutions with the highest urgency to complete the task at the current time node; Initialize the initial plan Lg of the operator; for the initial time node, set the urgency of the current operator to complete the task to 0 and the total maintenance utility to 0; Insert the initial plan from Lg to PQ[0]; 2) Traversal planning Starting from time window t=0, for each plan maintained in the current time window, scan all fault points that are not in the plan. If the fault point is to be repaired The required time is y, then update the current plan to the time node Among the K plans; is the minimum time unit; The value is smaller than the minimum commuting maintenance time between all maintenance points to avoid the total planning time still falling into the original time window after adding a new maintenance node; the K value is an integer greater than 1; based on the beam search, for each time window t, a priority queue is maintained to save the K plans with the highest maintenance utility that complete the fault point maintenance in the current time window; until the planning traversal is completed; 3) Compare all maintenance plans and obtain the plan with the highest total maintenance utility; In step 2) include the steps: 201) Determine whether the time window t is between 0 and T; if so, proceed to the next step; if not, consider that the time window has been traversed and the process ends; 202) Traverse the plan under the current time window t; 203) Determine whether the planning under the current time window t is traversed. If so, move the current time window t back by one window and return to step 201); if not, proceed to the next step; 204) Update the current plan and insert it into the queue of the current time window t; 205) Determine whether the queue length is greater than the threshold K; if not, return to step 203); if yes, proceed to the next step; 206) Pop up the plan with the minimum maintenance utility in the current time window t; and return to step 203).

2. The method for planning collection and operation and maintenance work based on beam search according to claim 1, characterized in that: In step 206), the maintenance utility minimum pop-up includes the following steps: A) Determine whether the fault point P is not in the plan L; if so, proceed to the next step; B) Determine the total planning time after adding the fault point P Is it greater than or equal to T? If so, insert To PQ[ ]middle; C) If planning Total utility C Bigger than planning Total utility C ;but = ; D) If PQ[ ] is greater than K, the minimum maintenance utility is popped out from the priority queue.

3. The method for planning collection and operation and maintenance work based on beam search according to claim 2, characterized in that: K is 4.

4. The collection and operation and maintenance work planning method based on beam search according to claim 1 is characterized in that: In step 2), for each plan maintained at the current time node, scan all tasks that are not in the plan. If the time required for job w is , the time to go to the work package is , then update the current plan to the time node Among the K solutions.

Citation Information

Patent Citations

  • Method and system for rapid self-healing of power grid

    CN102904256A

  • Generator unit maintenance schedule minimum lost load expecting method considering large-scale wind power integration

    CN104392282A

  • Power distribution network multi-objective fault recovery method based on hybrid algorithm

    CN105069517A

  • Workload matching and utility optimization-based intelligent work order dispatching method

    CN106779388A

  • Path planning method and device

    CN110231044A