Post-disaster power-circuit collaborative repair method, system and equipment based on reinforcement learning

By constructing a time-series Markov decision network and Monte Carlo tree search algorithm based on reinforcement learning methods, we optimize the selection of collaborative repair objects for the distribution network and urban transportation network, and solve the problem of low repair efficiency of the electricity-road joint system after extreme natural disasters. problems, achieving rapid decision-making and efficient repair, and enhancing the ability to withstand disasters.

CN114239206BActive Publication Date: 2024-10-25XI AN JIAOTONG UNIV +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111604993.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-24
Publication Date
2024-10-25
Estimated Expiration
2041-12-24

AI Technical Summary

Technical Problem

The existing technology has problems of low efficiency and poor convergence in the collaborative repair of distribution networks and urban transportation networks after extreme natural disasters. It is difficult to effectively solve the slow repair speed of the power-road combined system under high-order faults and the large loss of total social benefits. problem.

Method used

A method based on reinforcement learning is used to construct a time-series Markov decision network and a Monte Carlo tree search algorithm. It combines the topology, fault information and maintenance team location of the distribution network and urban transportation network to optimize the selection of repair objects and form a rapid decision-making network. Generate collaborative repair plans to reduce repair object selection errors and decision-making time.

Benefits of technology

It improves the collaborative repair efficiency of the distribution network and urban transportation network, enhances the resistance of the electric-road combined system to natural disasters, and reduces the time of the repair process and the loss of total social benefits after extreme disasters.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114239206B_ABST
    Figure CN114239206B_ABST
Patent Text Reader

Abstract

The present invention discloses a post-disaster coordinated power circuit repair method, system and equipment based on reinforcement learning. A sequential Markov decision network is constructed through the network topology of the distribution network and the urban transportation network, fault information, and the location of the maintenance station and the location of the maintenance team. According to the current state of the power circuit joint system and the set of actions that can be taken, the Monte Carlo tree search method is used to select the repair object of the maintenance team according to the sequential Markov decision network, so as to form a data set with the state of the power circuit joint system as a sample and the best repair object in the current state as a sample label, and to construct a fast decision network with the state of the power circuit joint system as an input and the next repair object of the power circuit joint system as an output. The present invention takes into account the contradictions and synergies existing in the repair plan of the power circuit joint system, and the constructed reinforcement learning algorithm is helpful to improve the collaborative repair efficiency of the two and enhance the resistance of the power circuit joint system to natural disasters.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of power distribution network and urban transportation network repair, and specifically relates to a post-disaster power-circuit collaborative repair method, system and equipment based on reinforcement learning. Background Art

[0002] With the change of global climate, the occurrence of extreme natural disasters such as typhoons and floods is increasing day by day, posing a huge threat to the safety of people's lives and property and the stable development of society. As the key link and weak link of the power system, the safe and stable operation of the distribution network is the basis for normal power supply; as the physical channel connecting various geographical regions, the normal traffic state of the urban transportation network is the prerequisite for the dispatch of social resources. Therefore, how to enhance the ability of the distribution network and urban transportation network to resist extreme natural disasters is of great significance and value to reduce the loss of total social benefits.

[0003] In terms of improving the ability of distribution networks to resist extreme natural disasters, existing research mainly adopts different resilience enhancement strategies to improve the resilience of distribution networks from three time dimensions: before, during and after disasters. Before a disaster occurs, the probability of component damage is reduced by identifying the weak links of the distribution network and strengthening key components; when a disaster occurs, the system load loss is reduced through network reconstruction strategies such as distributed power supply access and tie switch closure; after the disaster, the damaged components are repaired by dispatching disaster relief resources and maintenance personnel. Considering the destructiveness of extreme natural disasters, high-order faults often occur in distribution networks. Therefore, corresponding maintenance processes are necessary after the disaster. The basic research idea of ​​the maintenance personnel scheduling problem is to establish and solve the optimization problem with the goal of minimizing the load loss of the distribution system, considering constraints such as path planning and maintenance sequence. At the same time, existing research improves the efficiency of repairing high-order faults in large distribution networks by pre-dispatching maintenance personnel and allocating damaged components. In terms of improving the ability of urban transportation networks to resist extreme natural disasters, existing research mainly establishes the shortest path model that takes into account travel time and maintenance time based on TSP (Traveling salesman problem) and VRP (Vehicle routing problem) problems to solve them. However, in terms of the coordinated repair of distribution networks and urban transportation networks, existing research involves less. The repair plan of the transportation network has a one-way impact on the repair plan of the power network. At the same time, the superposition of the number of faults in the power network and the transportation network further increases the fault order of the power-circuit joint system. Traditional optimization methods are difficult to solve problems such as slow solution speed and poor convergence under high-order faults. Summary of the invention

[0004] The purpose of the present invention is to provide a post-disaster power-circuit collaborative repair method, system and equipment based on reinforcement learning, so as to overcome the shortcomings of the existing technology, improve the collaborative repair efficiency of distribution networks and urban transportation networks under extreme natural disasters, reduce the loss of total social benefits, and enhance the ability of the power-circuit joint system to resist natural disasters.

[0005] A post-disaster power-circuit collaborative repair method based on reinforcement learning, comprising the following steps

[0006] S1, construct a sequential Markov decision network based on the network topology of the distribution network and the urban transportation network, fault information, and the locations of maintenance stations and maintenance teams;

[0007] S2, according to the current state of the power-circuit joint system and the set of actions that can be taken, the Monte Carlo tree search method is used to select the next repair object of the maintenance team according to the time-series Markov decision network, forming a data set with the state of the power-circuit joint system as a sample and the best repair object in the current state as a sample label;

[0008] S3, constructing a fast decision network that takes the state of the electric-circuit joint system as input and the next repair object of the electric-circuit joint system as output, and optimizing the fast decision network using the data set obtained in S2 to minimize the action selection error of the fast decision network;

[0009] S4, uses the optimized fast decision network to generate a collaborative repair plan based on the fault data of the distribution network and transportation network under natural disasters.

[0010] Furthermore, the sequential Markov decision network includes a quadruple of state space, action space, state transition and reward function.

[0011] Furthermore, data information is collected from the three levels of distribution network, urban transportation network and maintenance team, and the state space S is represented as follows:

[0012]

[0013] Among them, e1, e2, …, e n Respectively represent the operating status of each transmission line, n is the total number of transmission lines in the distribution network; r1, r2, …, r m They represent the traffic status of each traffic road, and m is the total number of roads in the traffic network; There is only one variable among a total of n 0-1 variables Indicates that the current location of the power department maintenance team is at transmission line i; There is only one variable among a total of m 0-1 variables It means that the current location of the traffic department maintenance team is at traffic road j.

[0014] Furthermore, the set E(t) and the set R(t) are used to represent the line number set and the road number set that are restored to normal after repair, respectively. The action space A(t) is represented as follows:

[0015]

[0016] variable and Represent the numbers of route i and road j respectively.

[0017] Furthermore, when the faulty line or road is restored to normal operation after being repaired, or the location of the maintenance team changes, the 0-1 variables in the state space S are updated.

[0018] Furthermore, the negative of the social benefit loss value is used as the reward value for each step of the restoration plan. The expression of the reward function r(s,a) is as follows:

[0019]

[0020] in, is the total number of distribution network nodes, is the load loss power of node i in state s, is the travel time required to reach the fault line a in state s, is the repair time required when the repair line is a; is the travel time required to reach the faulty road a in state s, is the repair time required to repair the road a, L a is the length of road a, C e is the social benefit generated per unit of electricity, C r It is the social benefit generated by a unit length of road in unit time.

[0021] Furthermore, the optimal action corresponding to each sample in the data set is uniquely encoded as the sample label, and the cross entropy function is used as the loss function to train the fast decision network. The expression of the cross entropy function is as follows:

[0022]

[0023] In the formula, B represents the batch size, |A(t)| represents the number of actions in the selectable action set A(t), and y b,a represents the one-hot encoding value of the b-th sample label in action a, p b,a It represents the probability value of action a being selected when the fast decision network takes the bth sample as input.

[0024] Furthermore, the network topology, fault information, location of the maintenance station and the current location of the maintenance team of the distribution network and transportation network under natural disasters jointly constitute the initial state of the power-circuit joint system. The initial state is input into the optimized rapid decision-making network to decide the next repair object, and the state of the power-circuit joint system is updated according to the decision results and real-time repair status.

[0025] A post-disaster power-circuit collaborative repair system based on reinforcement learning, comprising:

[0026] The initial network module is used to construct a sequential Markov decision network based on the network topology of the distribution network and the urban transportation network, fault information, and the locations of maintenance stations and maintenance teams;

[0027] The data training module is used to select the next repair object of the maintenance team according to the current state of the power-circuit joint system and the set of actions that can be taken, using the Monte Carlo tree search method and the time-series Markov decision network, to form a data set with the state of the power-circuit joint system as a sample and the best repair object under the current state as a sample label;

[0028] A network optimization module is used for a fast decision network that takes the state of the electric-circuit joint system as input and the next repair object of the electric-circuit joint system as output. The fast decision network is optimized using the data set obtained by the data training module to minimize the action selection error of the fast decision network.

[0029] The repair decision module uses an optimized fast decision network to generate a collaborative repair plan based on the fault data of the distribution network and transportation network under natural disasters.

[0030] A terminal device includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the steps of a post-disaster electric-circuit collaborative repair method are implemented.

[0031] Compared with the prior art, the present invention has the following beneficial technical effects:

[0032] The present invention discloses a post-disaster power-circuit collaborative repair method based on reinforcement learning. A sequential Markov decision network is constructed through the network topology of the distribution network and the urban transportation network, fault information, and the location of the maintenance station and the location of the maintenance team. Then, according to the current state of the power-circuit joint system and the set of actions that can be taken, a Monte Carlo tree search method is used to select the next repair object of the maintenance team according to the sequential Markov decision network, so as to form a data set with the state of the power-circuit joint system as a sample and the best repair object in the current state as a sample label. A fast decision network is constructed with the state of the power-circuit joint system as an input and the next repair object of the power-circuit joint system as an output. The present invention takes into account the contradiction and synergy of the repair plan of the power-circuit joint system, and the constructed reinforcement learning algorithm is helpful to improve the collaborative repair efficiency of the two and enhance the resistance of the power-circuit joint system to natural disasters.

[0033] The present invention takes into account the constraints of the real-time maintenance status of the transportation network on the maintenance plan of the distribution network, takes the minimum total loss of social benefits as the goal, and uses a centralized reinforcement learning algorithm to optimize the repair plans of the distribution network and the transportation department.

[0034] Furthermore, the present invention designs the state space, action space and reward function based on the reinforcement learning framework, and uses the MCTS algorithm to optimize the selection of repair objects for the power-circuit joint system. This not only avoids the problems of slow solution speed and poor convergence of the optimization method after the coupling failure of the power-circuit joint system, but also takes into account the uncertainty of the repair time and travel time in the actual scenario, and obtains the optimal repair object for the next step based on the empirical distribution of time uncertainty.

[0035] The present invention uses the state of the power-circuit joint system and the actions optimized by the MCTS algorithm to construct a data set for training a fast decision network, thereby realizing the selection of repair objects. The application of the fast decision network can greatly speed up the decision-making speed of repair object selection under the coupled fault of the power-circuit joint system, reduce the time required for the online decision-making process after an extreme disaster occurs, and further enhance the rapid action capability of the maintenance team in emergency scenarios. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] Figure 1 This is a specific process intention in the embodiment of the present invention.

[0037] Figure 2 Schematic diagram of the MCTS algorithm in an embodiment of the present invention.

[0038] Figure 3 4 is a neural network structure diagram of a fast decision network in an embodiment of the present invention.

[0039] Figure 4 A flow chart of a plan for repairing an electrical-circuit coupling fault in an embodiment of the present invention. DETAILED DESCRIPTION

[0040] The following embodiments are intended to further illustrate the present invention, but should not be construed as limiting the scope of protection of the present invention. Non-essential improvements and adjustments to the present invention made by those skilled in the art based on the contents of the present invention still fall within the scope of protection of the present invention.

[0041] Unless explicitly stated otherwise, throughout the specification and claims, the term “comprise” or variations such as “include” or “comprising”, etc., will be understood to include the stated elements or components but not to exclude other elements or components.

[0042] In the description of the present invention, it should be noted that the terms "center", "up", "down", "left", "right", "vertical", "horizontal", "inside", "outside", etc. indicate directions or positional relationships based on the directions or positional relationships shown in the accompanying drawings. They are only for the convenience of describing the present invention and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific direction, be constructed and operated in a specific direction. Therefore, they cannot be understood as limitations on the present invention.

[0043] The present invention provides a post-disaster electrical-circuit collaborative repair method based on reinforcement learning, comprising the following steps:

[0044] Based on the network topology, fault information, and locations of maintenance stations and maintenance teams of the distribution network and urban transportation network, the state space and action space of the power-circuit joint system in the collaborative repair process are designed, and the mathematical representation of the deterministic transfer of state with action is defined. At the same time, based on the load loss of the distribution network and the time and length of road repair, a reward function that takes into account the uncertainty of repair time and travel time is designed to achieve feedback and evaluation of the collaborative repair decision process.

[0045] Based on the current state of the power-circuit joint system and the set of actions that can be taken, the Monte Carlo Tree Search (MCTS) algorithm is used to select the next repair object for the maintenance team. At the same time, the selection of the repair object is optimized based on the reward function, and finally a data set is formed with the state of the power-circuit joint system as the sample and the best repair object in the current state as the sample label;

[0046] Based on imitation learning, a fast decision network is designed that takes the state of the electric-circuit joint system as input and the action of the electric-circuit joint system, i.e., the next repair object, as output. The fast decision network is trained using the data set formed in step 2 to minimize the action selection error of the fast decision network;

[0047] The actual data of the distribution network and transportation network under extreme natural disasters are collected to form the initial state of the power-circuit joint system, which is input into the deep neural network trained in step 3 to select the next repair object. At the same time, the state of the power-circuit joint system is updated according to the real-time repair situation and input into the deep neural network in a loop, and finally the corresponding total social benefit loss value under the collaborative repair plan is obtained.

[0048] The specific process is as follows Figure 1 The present invention includes four parts, namely, the four-tuple design of the collaborative repair decision process, the generation of training set data based on MCTS, the construction and training of the fast decision network, and the formulation of the circuit-coupled fault repair plan. The details of each part are as follows.

[0049] Quadruple design of collaborative repair decision-making process

[0050] Under extreme natural disasters, the power-circuit joint system is prone to high-order coupling failures, so the formulation of the repair order of the power grid maintenance team and the road network maintenance team belongs to the problem of sequential decision-making. Since the present invention formulates the power-circuit repair plan based on the reinforcement learning framework, it is necessary to model the collaborative repair process of power-circuit high-order coupling failures as a sequential Markov decision model, that is, to design its corresponding state space, action space, state transition and reward function quadruple. The quadruple design of the sequential Markov decision process is described in detail below.

[0051] State Space:

[0052] Data information is collected from three levels: distribution network, urban transportation network and maintenance team, and the state space of the collaborative repair decision-making process is constructed.

[0053] At the distribution network level, the network topology and fault line information of the distribution network need to be considered, so each transmission line is numbered and represented by a 0-1 variable e i Indicates the operating status of line i, 0 and 1 respectively indicate that the line is currently in normal operation and fault state;

[0054] In the urban traffic network level, it is necessary to consider the network topology of the traffic network and the information of the faulty roads. Therefore, each traffic road is numbered and represented by a 0-1 variable r. j Indicates the traffic status of road j, 0 and 1 respectively indicate that the road is currently in normal traffic status and fault status;

[0055] At the maintenance team level, the current location of the maintenance team needs to be considered. The present invention considers a maintenance team of the power department and a maintenance team of the transportation department, and uses unique hot coding to represent the transmission line location and traffic road location of the maintenance team. The data information collected at the three levels is spliced ​​to obtain the representation of the state space S as follows:

[0056]

[0057] Among them, e1, e2, …, e n Respectively represent the operating status of each transmission line, n is the total number of transmission lines in the distribution network; r1, r2, …, r m They represent the traffic status of each traffic road, and m is the total number of roads in the traffic network; There is only one variable among a total of n 0-1 variables Indicates that the current location of the power department maintenance team is at transmission line i; There is only one variable among a total of m 0-1 variables It means that the current location of the traffic department maintenance team is at traffic road j.

[0058] Action Space:

[0059] The present invention uses variables and Represent the numbers of route i and road j respectively.

[0060] Considering that the maintenance team cannot interrupt the current work when preparing for rescue and repairing the line or road, the present invention uses a 0-1 variable f t e and f t r They represent the current status of the maintenance team of the power department and the maintenance team of the transportation department, 0 and 1 respectively represent that the maintenance team can execute or cannot execute the next repair plan, and t represents the current moment; at the same time, the lines and roads that have been restored to normal after repair are not the objects of repair that can be selected in the next step. The set E(t) and the set R(t) are used to represent the line number set and road number set that have been restored to normal after repair. Therefore, the action space A(t) is represented as follows:

[0061]

[0062] It should be pointed out that when the maintenance teams of the power department and the transportation department are both in an idle state, since the selection process of the next repair object is very short, the next repair object of the power department is selected first by default.

[0063] State transfer:

[0064] When the faulty line or road is repaired and resumes normal operation, or the location of the maintenance team changes, the state of the power-circuit joint system also changes accordingly. At this time, the 0-1 variables in equation (1) can be updated.

[0065] Reward function:

[0066] Since the goal of repairing damaged lines and roads is to reduce the power grid load loss and road repair time after extreme disasters and minimize the total loss value of social benefits, the present invention uses the negative of the social benefit loss value as the reward value for each step of the repair plan.

[0067] Considering that the dimensions of power grid load loss and road repair time are different, they cannot be directly used as the loss value of social benefits. Therefore, the present invention introduces the social benefit C generated by unit electricity e The social benefit C generated by a unit length of road per unit time r The expression of the reward function r(s,a) is as follows:

[0068]

[0069] in, is the total number of distribution network nodes, is the load loss power of node i in state s, is the travel time required to reach the fault line a in state s, is the repair time required when the repair line is a; is the travel time required to reach the faulty road a in state s, is the repair time required to repair the road a, L a is the length of road a.

[0070] Considering that the maintenance team may encounter congestion during the passage process, and the time of the maintenance team's fault repair process also has a certain degree of uncertainty, the present invention adds the probability distribution of the passage time and the repair time on the basis of formula (3) to enhance the robustness of the optimized power-circuit collaborative repair plan. The expression of the reward function r(s,a) taking into account time uncertainty is as follows:

[0071]

[0072] in, is the travel time uncertainty corresponding to the fault line a under state s, is the repair time uncertainty corresponding to the repair line a; is the travel time uncertainty corresponding to the faulty road a under state s, is the uncertainty of the repair time corresponding to repairing road a.

[0073] Based on the reward function taking into account time uncertainty in equation (4), actions a1, a2, …, a1 are selected in sequence in state s1. τ The corresponding cumulative reward value R(s1,a1,a2,…,a τ ) can be expressed as:

[0074]

[0075] When k>1, the state s of the circuit-circuit system k By k-1 and a k-1 Obtained through state transfer.

[0076] Training set data generation based on MCTS

[0077] Based on the state space, action space, state transfer and reward function of the collaborative repair decision-making process, the present invention uses the MCTS algorithm in reinforcement learning to formulate a specific collaborative repair plan to guide the maintenance team to carry out post-disaster repair work.

[0078] Considering that the post-disaster repair process is a sequential decision-making process, the maintenance team needs to select one from no more than n+m fault objects to repair at each stage according to the current circuit fault situation. Therefore, at each stage, the present invention uses the MCTS algorithm to perform 4 (n+m) searches and build a search tree, and finally selects the optimal repair object under the current circuit fault state based on the summarized search results. It should be noted that the nodes of the search tree correspond to the states of the circuit joint system, and the edges of the search tree correspond to the actions of the circuit joint system, that is, the repair objects.

[0079] In the process of constructing the search tree at each stage, the current state of the circuit joint system is used as the root node of the search tree, and the root node of the search tree in each stage remains unchanged. The MCTS algorithm is divided into four steps in each search, namely selection, expansion, simulation and backtracking. For details, see Figure 2 .

[0080] The following is a detailed description of each search process of MCTS.

[0081] choose:

[0082] Based on the state s corresponding to the current node, the set of actions that can be taken is obtained according to formula (2). On this basis, the present invention uses the upper confidence interval (UCT) algorithm to select actions. The selection strategy of the UCT algorithm tends to select actions with higher average cumulative benefits, and is willing to explore actions with fewer selections. The specific expression of UCT (s, a) is as follows:

[0083]

[0084] In formula (6), Q(s,a) is the cumulative reward value corresponding to selecting action a in state s, n(s,a) is the number of times action a is selected in state s, and c b is the equilibrium constant between exploitation and exploration, and its value is n(s) is the total number of times the circuit-circuit system is in state s. In formula (7), is the cumulative reward value corresponding to the i-th selection of action a in state s, where is the set of actions executed after action a is selected for the i-th time,

[0085] Select the action with the largest UCT value in state s and add the selected action to the corresponding set In the process, the state of the power-circuit joint system is updated to the corresponding child node, and the above selection action is repeated until the power-circuit joint system is in an unexplored state or all faults are repaired.

[0086] Extensions:

[0087] When the circuit-circuit system is in state s but there are still actions that have not been selected, it can be seen from equation (6) that the UCT value corresponding to the unselected action is infinite. Therefore, the UCT algorithm will give priority to the unexplored action a and add the selected action a to the corresponding set and updates the state of the circuit-circuit joint system to s′.

[0088] simulation:

[0089] When the circuit-circuit joint system is in an unexplored state s′, a random uniform sampling strategy is used to select the next action until all faults are repaired, and all actions obtained by random uniform sampling are added to the corresponding set And calculate the cumulative reward value corresponding to this simulation

[0090] Backtrack:

[0091] After each simulation, we start from state s′ and trace back to the root node, updating the selection times n(s) and n(s,a) of each selected state and action, as well as the corresponding cumulative reward value Q(s,a). The specific update formula is as follows:

[0092] n(s)=n(s)+1 (8)

[0093] n(s,a)=n(s,a)+1 (9)

[0094]

[0095] After repeating the above four steps 4(n+m) times in total in each stage, the optimal action in the current state of the circuit-circuit joint system is selected according to the constructed search tree, that is, the action with the largest cumulative reward value Q(s,a) at the root node of the search tree as the next repair object. At the same time, the corresponding state-action pair is formed as the training sample of the fast decision network.

[0096] Based on the root node and the corresponding optimal action, the state of the circuit joint system is updated, and the root node of the search tree is updated to the state after the transfer, and only the tree structure under this node is retained. On this basis, the next stage of search is carried out, and the corresponding state-action pair is formed and added to the training set when the search is completed in each stage.

[0097] Construction and training of fast decision-making network:

[0098] Considering that the search process of the MCTS algorithm takes a certain amount of time, it is difficult to meet the requirements of rapid repair of the power-circuit joint system after a disaster. Therefore, based on the training set generated by the MCTS algorithm and imitation learning, the present invention constructs a fast decision network that takes the state of the power-circuit joint system as input and the action taken by the power-circuit joint system in the current state, i.e., the next repair object, as output. The specific network structure is as follows: Figure 3 shown.

[0099] The basic structure of the fast decision network is a feedforward neural network, which includes one input layer, one output layer and eight hidden layers. The input layer and hidden layer of the fast decision network use the ELU nonlinear function as the activation function, and the output layer uses the SoftMax layer as the activation function. It should be pointed out that before the output of the output layer is input to the SoftMax layer, the set of actions that the circuit-circuit joint system cannot take in the current state and current time needs to be discarded. The expressions of the two activation functions are as follows:

[0100]

[0101] In formula (12), x i It is the i-th component of the output vector after the output layer of the fast decision network discards unreasonable actions. The output vector has a total of n components.

[0102] In order to avoid the gradient vanishing problem caused by too many layers, the present invention adds a residual connection structure on the basis of the feedforward neural network, which effectively solves the non-convergence problem after stacking multiple hidden layers. The output y of the kth residual connection is k for:

[0103] y k =g(f(x 2k-1 ))+x 2k-1 (13)

[0104] f(x 2k-1 )=ELU(W 2k-1 x 2k-1 +b 2k-1 ) (14)

[0105] g(x 2k )=ELU(W 2kx 2k +b 2k )(14)

[0106] In formula (13), x 2k-1 is the input of the 2k-1th hidden layer; in formula (14), W 2k-1 and b 2k-1 are the weight matrix and bias of the 2k-1th hidden layer respectively; in formula (15), x 2k is the input of the 2kth hidden layer, W 2k and b 2k They are the weight matrix and bias of the 2kth hidden layer respectively.

[0107] Considering that the output of the fast decision network is the selection probability value corresponding to each action, the present invention performs one-hot encoding on the optimal action corresponding to each sample in the training set as the sample label, and uses the cross entropy function as the loss function to train the fast decision network. The expression of the cross entropy function is as follows:

[0108]

[0109] In the formula, B represents the batch size, |A(t)| represents the number of actions in the selectable action set A(t), and y b,a represents the one-hot encoding value of the b-th sample label in action a, p b,a It represents the probability value of action a being selected when the fast decision network takes the bth sample as input.

[0110] Development of a repair plan for power-circuit coupling faults:

[0111] In order to verify the effectiveness of the repair plan based on the MCTS algorithm and the rapid decision network proposed in the present invention, it is necessary to collect actual data of the distribution network and the transportation network under extreme natural disasters, specifically including the network topology, fault information, and the location of the maintenance station and the current location of the maintenance team of the distribution network and the transportation network, which together constitute the initial state of the power-circuit joint system. The initial state is input into the deep neural network trained in step 3 to decide the next repair object, and the state of the power-circuit joint system is updated according to the decision result and the real-time repair situation, and then input into the deep neural network in a loop. Finally, a collaborative repair plan based on the MCTS algorithm and the rapid decision network is obtained under the fault scenario, as well as the corresponding total social benefit loss value. See the specific flowchart. Figure 4 .

[0112] In the offline stage, the training data generated by the MCTS algorithm can be used, and the fast decision network can be optimized according to the constructed training set. This stage is not required to be real-time and fast. In the online stage, it is necessary to recycle the fast decision network to obtain a collaborative repair plan for power-circuit coupling faults. Considering that the mapping process of the fast decision network only requires simple product sum operations and several nonlinear operations, the time complexity is low. Therefore, compared with traditional optimization methods, the post-disaster collaborative repair method of power grids and road networks based on the MCTS algorithm and the fast decision network proposed in the present invention is efficient and fast.

[0113] In one embodiment of the present invention, a terminal device is provided, which includes a processor and a memory, wherein the memory is used to store a computer program, the computer program includes program instructions, and the processor is used to execute the program instructions stored in the computer storage medium. The processor adopts a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), off-the-shelf programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. It is the computing core and control core of the terminal, which is suitable for implementing one or more instructions, and is specifically suitable for loading and executing one or more instructions to implement the corresponding method flow or corresponding function; the processor described in the embodiment of the present invention can be used for the operation of the post-disaster circuit collaborative repair method.

[0114] A post-disaster power-circuit collaborative repair system based on reinforcement learning, comprising:

[0115] The initial network module is used to construct a sequential Markov decision network based on the network topology of the distribution network and the urban transportation network, fault information, and the locations of maintenance stations and maintenance teams;

[0116] The data training module is used to select the next repair object of the maintenance team according to the current state of the power-circuit joint system and the set of actions that can be taken, using the Monte Carlo tree search method and the time-series Markov decision network, to form a data set with the state of the power-circuit joint system as a sample and the best repair object under the current state as a sample label;

[0117] A network optimization module is used for a fast decision network that takes the state of the electric-circuit joint system as input and the next repair object of the electric-circuit joint system as output. The fast decision network is optimized using the data set obtained by the data training module to minimize the action selection error of the fast decision network.

[0118] The repair decision module uses an optimized fast decision network to generate a collaborative repair plan based on the fault data of the distribution network and transportation network under natural disasters.

[0119] In another embodiment of the present invention, the present invention also provides a storage medium, specifically a computer-readable storage medium (Memory), which is a memory device in a terminal device for storing programs and data. The computer-readable storage medium includes a built-in storage medium in the terminal device, which provides a storage space and stores the operating system of the terminal, and may also include an extended storage medium supported by the terminal device. In addition, one or more instructions suitable for being loaded and executed by a processor are also stored in the storage space, and these instructions may be one or more computer programs (including program codes). It should be noted that the computer-readable storage medium here can be a high-speed RAM memory or a non-volatile memory (Non-volatile memory), such as at least one disk storage. The processor can load and execute one or more instructions stored in the computer-readable storage medium to implement the corresponding steps of the post-disaster circuit collaborative repair method in the above embodiment.

[0120] The present invention targets the coupled fault scenario of the power-circuit joint system under extreme natural disasters, takes into account the constraints of the real-time maintenance of the transportation network on the maintenance plan of the distribution network, takes the minimum total loss of social benefits as the goal, and uses a centralized reinforcement learning algorithm to optimize the repair plan of the distribution network and the transportation department. The present invention takes into account the contradictions and synergies of the repair plan of the power-circuit joint system, and the constructed reinforcement learning algorithm helps to improve the efficiency of the coordinated repair of the two and enhance the resistance of the power-circuit joint system to natural disasters.

[0121] The present invention designs the state space, action space and reward function based on the reinforcement learning framework, and uses the MCTS algorithm to optimize the selection of repair objects for the power-circuit joint system. It not only avoids the problems of slow solution speed and poor convergence of the optimization method after the coupling failure of the power-circuit joint system, but also considers the uncertainty of repair time and travel time in actual scenarios, and obtains the optimal repair object for the next step based on the empirical distribution of time uncertainty.

[0122] The present invention uses the state of the power-circuit joint system and the actions optimized by the MCTS algorithm to construct a data set for training a fast decision network, thereby realizing the selection of repair objects. The application of the fast decision network can greatly speed up the decision-making speed of repair object selection under the coupled fault of the power-circuit joint system, reduce the time required for the online decision-making process after an extreme disaster occurs, and further enhance the rapid action capability of the maintenance team in emergency scenarios.

[0123] The embodiments of the present invention are described in detail above, but the embodiments are only part of the embodiments of the present invention, and the protection scope of the present invention is not limited thereto. Based on the embodiments of the present invention, non-creative improvements, equivalent substitutions and changes made by those skilled in the art should all fall within the scope of the patent coverage of the present invention.

Claims

1. A post-disaster power-circuit collaborative repair method based on reinforcement learning, characterized in that: The following steps are included S1, construct a sequential Markov decision network based on the network topology of the distribution network and the urban transportation network, fault information, and the locations of maintenance stations and maintenance teams; The sequential Markov decision network includes a quadruple of state space, action space, state transition and reward function; Data information is collected from three levels: distribution network, urban transportation network and maintenance team, and the state space S is expressed as follows: Among them, e1, e2, …, e n Respectively represent the operating status of each transmission line, n is the total number of transmission lines in the distribution network; r1, r2, …, r m They represent the traffic status of each traffic road, and m is the total number of roads in the traffic network; There is only one variable among a total of n 0-1 variables Indicates that the current location of the power department maintenance team is at transmission line i; There is only one variable among a total of m 0-1 variables Indicates that the current location of the traffic department maintenance team is at traffic road j; The set E(t) and the set R(t) are used to represent the line number set and road number set that are restored to normal after repair, respectively. The action space A(t) is represented as follows: variable and Represent the numbers of route i and road j respectively; When the faulty line or road is restored to normal operation after repair, or the location of the maintenance team changes, the 0-1 variables in the state space S are updated; The negative of the social benefit loss value is used as the reward value for each step of the restoration plan. The expression of the reward function r(s,a) is as follows: in, is the total number of distribution network nodes, is the load loss power of node i in state s, is the travel time required to reach the fault line a in state s, is the repair time required when the repair line is a; is the travel time required to reach the faulty road a in state s, is the repair time required to repair the road a, L a is the length of road a, C e is the social benefit generated per unit of electricity, C r The social benefits generated by a unit length of road in a unit time; S2, according to the current state of the power-circuit joint system and the set of actions that can be taken, the Monte Carlo tree search method is used to select the next repair object of the maintenance team according to the time-series Markov decision network, forming a data set with the state of the power-circuit joint system as a sample and the best repair object in the current state as a sample label; S3, constructing a fast decision network that takes the state of the electric-circuit joint system as input and the next repair object of the electric-circuit joint system as output, and optimizing the fast decision network using the data set obtained in S2 to minimize the action selection error of the fast decision network; S4, uses the optimized fast decision network to generate a collaborative repair plan based on the fault data of the distribution network and transportation network under natural disasters.

2. According to the reinforcement learning-based post-disaster circuit collaborative repair method of claim 1, it is characterized in that: The optimal action corresponding to each sample in the data set is encoded as a sample label, and the cross entropy function is used as the loss function to train the fast decision network. The expression of the cross entropy function is as follows: In the formula, B represents the batch size, |A(t)| represents the number of actions in the selectable action set A(t), and y b,a represents the one-hot encoding value of the b-th sample label in action a, p b,a It represents the probability value of action a being selected when the fast decision network takes the bth sample as input.

3. According to the reinforcement learning-based post-disaster circuit collaborative repair method of claim 1, it is characterized in that: The network topology, fault information, location of the maintenance station and the current location of the maintenance team of the distribution network and transportation network under natural disasters jointly constitute the initial state of the power-circuit joint system. This initial state is input into the optimized rapid decision-making network to decide the next repair object, and the state of the power-circuit joint system is updated according to the decision results and real-time repair status.

4. A post-disaster electric-circuit collaborative repair system based on the post-disaster electric-circuit collaborative repair method based on reinforcement learning as claimed in claim 1, characterized in that: include: The initial network module is used to construct a sequential Markov decision network based on the network topology of the distribution network and the urban transportation network, fault information, and the locations of maintenance stations and maintenance teams; The data training module is used to select the next repair object of the maintenance team according to the current state of the power-circuit joint system and the set of actions that can be taken, using the Monte Carlo tree search method and the time-series Markov decision network, to form a data set with the state of the power-circuit joint system as a sample and the best repair object under the current state as a sample label; A network optimization module is used for a fast decision network that takes the state of the electric-circuit joint system as input and the next repair object of the electric-circuit joint system as output. The fast decision network is optimized using the data set obtained by the data training module to minimize the action selection error of the fast decision network. The repair decision module uses an optimized fast decision network to generate a collaborative repair plan based on the fault data of the distribution network and transportation network under natural disasters.

5. A terminal device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 3 are implemented.