Optimal deployment method of distributed protection devices in 5G distribution networks based on reinforcement learning
Optimizing the layout of 5G distribution network protection devices through the reinforcement learning model solves the problem of unreliable layout of distribution network protection devices in the existing technology, and achieves safe and efficient operation of the distribution network and improvement of fault handling.
Patent Information
- Application Number
- CN202210330896.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-03-30
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2042-03-30
AI Technical Summary
Existing technology cannot effectively ensure that the protection devices of the 5G distribution network are optimally arranged within the reliability range, leading to problems with the security and efficiency of the distribution network.
Using a method based on reinforcement learning, by building a 5G distribution network protection system environment, a reinforcement learning model composed of a strategy body and an execution body is established, and a two-layer neuron network is used to optimize the layout of protection devices. Through interaction with the environment and iterative learning, Find the optimal arrangement of protective devices.
It is possible to find the optimal layout of 5G distribution network distributed protection devices while meeting reliability, ensuring the safe and efficient operation of the distribution network. It also provides low-latency, highly reliable information channels through 5G communications, improving fault location accuracy. sex and self-healing abilities.
Smart Images

Figure CN114710792B
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of distribution network protection, and specifically is a method for optimizing the layout of 5G distribution network distributed protection devices based on reinforcement learning. Background Art
[0002] The distribution network has the characteristics of multiple voltage levels, complex network structure, various equipment types, multiple and wide operation points, and relatively poor safety environment. There are relatively many safety risk factors. In order to provide electric energy to various users, higher requirements are put forward for the safe and reliable operation of the distribution network. Therefore, it is necessary to arrange protection devices to protect the distribution network. However, the number of distribution networks is large, the distribution is wide, and at the same time, affected by technology, how to arrange protection devices has become a difficult problem. At present, most of the configuration schemes of distribution network protection devices still follow the traditional ideas, and it is impossible to ensure the optimal distribution network protection devices within the reliability range. Summary of the invention
[0003] The present invention aims to solve the deficiencies of the above-mentioned prior art and proposes a method for optimizing the layout of 5G distribution network distributed protection devices based on reinforcement learning, in order to find the optimal layout of the 5G distribution network distributed protection system protection devices under the premise of meeting reliability, thereby ensuring that the distribution network can operate safely and efficiently.
[0004] In order to achieve the above-mentioned purpose, the present invention adopts the following technical scheme:
[0005] The optimization arrangement method of a 5G distribution network distributed protection device based on reinforcement learning of the present invention is characterized in that it comprises the following steps:
[0006] Step 1: Build a 5G distribution network protection system environment;
[0007] Let L = [l1,l2,...,l i ,...,l n ] indicates whether the n nodes of the 5G distribution network are equipped with protection devices. If l i = 0, indicating that the i-th node is not equipped with a protection device. i =1, indicating that the i-th node is equipped with a protection device, and each node can only be equipped with one protection device at most, i=1,2,...,n;
[0008] Let D = [d1, d2, ..., d i ,...,d n ] represents the actual distance between n nodes of the 5G distribution network and the 5G base station, d i represents the actual distance between the i-th node and the 5G base station. i = 0, d i =0; i = 1, 2, ..., n;
[0009] Let S = [L, D] represent the layout information of the protection device of the 5G distribution network protection system;
[0010] The n nodes of the initialized 5G distribution network are all equipped with protection devices, that is, {l i =1,i=1,2,...,n};
[0011] Step 2: Establish a reinforcement learning model for the 5G distribution network protection system. The reinforcement learning model consists of a strategy body and an execution body:
[0012] The strategy body is composed of two layers of neural networks. The input layer of the strategy body inputs the layout information S of the protection device of the 5G distribution network protection system, and the output layer of the strategy body outputs the probability π(A) of all actions a, where π(A) is obtained by the strategy π(θ) and the SoftMax function, and θ is a set of neural network parameters;
[0013] The execution body is used to execute an action to change the layout information of the protection device of the 5G distribution network protection system, and the reward module in the execution body calculates the reward;
[0014] Step 3: Train the reinforcement learning model in the 5G distribution network protection system environment;
[0015] Step 3.1, define the number of rounds as m, and initialize m=1;
[0016] Step 3.2, define the number of training rounds per round as t, and initialize t = 1;
[0017] Define the layout information of the protection device of the protection system in the mth round and the tth training as And initialize
[0018] Step 3.3: The input layer of the strategy body inputs the layout information
[0019] Step 3.4: The strategy body passes the strategy And the SoftMax function outputs the probability of all actions a in is the t-th training strategy in the m-th round, is the set of neural network parameters for the mth round and the tth training. is the probability of all actions a in the tth training of the mth round;
[0020] Step 3.5: In the 5G distribution network protection system environment, the execution body outputs the probability of all actions a according to the strategy body. Select Action The executive body performs an action in the mth round of training Thereby changing the number of protection devices on the m adjacent points of the i-th node, that is, changing the layout information of the protection devices of the 5G distribution network protection system And output the layout information of the mth round t+1th training
[0021] Only when l i = 0, the executive body adds a protection device to each of the m adjacent nodes of the i-th node; i +1,i=1,2,...,n;
[0022] Only when l i =1, the execution body reduces one protection device for each of the m adjacent nodes of the i-th node; i -1,n=1,2,...,n;
[0023] Step 3.6: Determine whether formula (1) is true. If true, execute step 3.7. Otherwise, return to execute step 3.4:
[0024]
[0025] In formula (1), s is the reliability of the protection system, p i is the probability of failure of the protection device at the ith node, s ex It is the reliability expected when the 5G distribution network is operating normally;
[0026] Step 3.7: The reward module of the executive body calculates the reward for the mth round of training at the tth time through equations (2) to (5):
[0027]
[0028]
[0029]
[0030]
[0031] In formula (2) to formula (5), is the reward for the distance between the protection device and the 5G base station in the mth round of training, is the reward for the number of protective devices in the mth round of training, is the reward for protecting the reliability of the system in the mth round of training; is the reward for the number of protective devices in the mth round of training;
[0032] Step 3.8: The policy updates the parameters of the mth round tth training through equations (6) and (7): Thus, the parameters of the mth round t+1th training are obtained
[0033]
[0034]
[0035] In formula (6) and formula (7), α is the learning rate, is a parameter The partial guide, is The value function of is The following strategy, is the value function expectations;
[0036] Step 3.9, after assigning t+1 to t, determine whether t>C1 is true. If so, end the current m-th round of training and obtain the optimal layout information for the current m-th round. and will Store in collection After that, execute step 3.10, otherwise, return to execute step 3.3 in sequence; where C1 is the maximum number of iterations per round;
[0037] Step 3.10, after assigning m+1 to m, determine whether m>C2 is true. If so, end all training and select The optimal layout information S is obtained *max ; Otherwise, return to step 3.2 and execute sequentially, where C2 is the maximum number of iterations;
[0038] Step 4: Use the optimal layout information S *max Arrange distributed protection devices for 5G distribution network.
[0039] Compared with the prior art, the present invention has the following beneficial effects:
[0040] 1. The present invention takes advantage of the continuous interaction and learning between reinforcement learning and the environment, and considering the characteristics of large number and wide distribution of distribution networks, in the 5G distribution network protection system environment, changes the number and layout of protection devices in multiple dimensions, and finds the optimal layout of protection devices through iterative learning of reinforcement learning, thereby realizing the protection of the distribution network and ensuring the safe and reliable operation of the distribution network;
[0041] 2. The present invention uses 5G communication technology to provide a low-latency, highly reliable information channel for distribution network protection services, thereby solving the problems of weak selectivity of traditional distribution network protection, inaccurate fault location, long time to remove faults, and inability of distribution network lines to achieve self-healing after fault removal. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] Figure 1 This is a flow chart of a method for optimizing the deployment of distributed protection devices for 5G distribution networks based on reinforcement learning according to the present invention;
[0043] Figure 2 This is the environmental diagram of the 5G distribution network protection system of the present invention;
[0044] Figure 3 This is a diagram of the reinforcement learning training process of the present invention. DETAILED DESCRIPTION
[0045] In this embodiment, if Figure 1 As shown, a method for optimizing the layout of a 5G distribution network distributed protection device based on reinforcement learning is characterized in that it includes the following steps:
[0046] Step 1: Figure 2 As shown, build a 5G distribution network protection system environment;
[0047] Let L = [l1,l2,...,l i ,...,l n ] indicates whether the n nodes of the 5G distribution network are equipped with protection devices. If l i = 0, indicating that the i-th node is not equipped with a protection device. i =1, indicating that the i-th node is equipped with a protection device, and each node can only be equipped with one protection device at most, i=1,2,...,n;
[0048] Let D = [d1, d2, ..., d i ,...,d n ] represents the actual distance between n nodes of the 5G distribution network and the 5G base station, d i represents the actual distance between the i-th node and the 5G base station. i = 0, d i =0; i = 1, 2, ..., n;
[0049] Let S = [L, D] represent the layout information of the protection device of the 5G distribution network protection system;
[0050] The n nodes of the initialized 5G distribution network are all equipped with protection devices, that is, {l i =1,i=1,2,...,n};
[0051] Step 2: Establish a reinforcement learning model for the 5G distribution network protection system. The reinforcement learning model consists of a strategy body and an execution body:
[0052] The strategy body consists of two layers of neural networks. The input layer of the strategy body inputs the layout information S of the protection device of the 5G distribution network protection system, and the output layer of the strategy body outputs the probability π(A) of all actions a, where π(A) is obtained by the strategy π(θ) and the SoftMax function, and θ is the set of neural network parameters.
[0053] The executive body is used to execute actions to change the layout information of the protection device of the 5G distribution network protection system, and the reward module in the executive body calculates the reward;
[0054] Step 3: Figure 3 As shown, the reinforcement learning model is trained in the 5G distribution network protection system environment;
[0055] Step 3.1, define the number of rounds as m, and initialize m=1;
[0056] Step 3.2, define the number of training rounds per round as t, and initialize t = 1;
[0057] Define the layout information of the protection device of the protection system in the mth round and the tth training as And initialize
[0058] Step 3.3: Input layer of the strategy body inputs layout information
[0059] Step 3.4: The strategy body passes the strategy And the SoftMax function outputs the probability of all actions a in is the t-th training strategy in the m-th round, is the set of neural network parameters for the mth round and the tth training. is the probability of all actions a in the tth training of the mth round;
[0060] Step 3.5: In the 5G distribution network protection system environment, the probability of all actions a output by the execution body according to the strategy body Select Action The executive body performs actions in the mth round of training Thereby changing the number of protection devices on the m adjacent points of the i-th node, that is, changing the layout information of the protection devices of the 5G distribution network protection system And output the layout information of the mth round t+1th training
[0061] Only when l i= 0, the executive body adds a protection device to each of the m adjacent nodes of the i-th node; l i +1,i=1,2,...,n;
[0062] Only when l i =1, the execution body reduces one protection device for each of the m adjacent nodes of the i-th node; i -1,n=1,2,...,n;
[0063] Simply changing the number of protection devices cannot cope with the actual situation of a large number of distribution networks and wide distribution. Taking into account the actual situation of complex distribution networks, different actions are performed in each round to ensure that the protection effect is improved while meeting the reliability of the distribution network.
[0064] Step 3.6: Determine whether formula (1) is true. If true, execute step 3.7. Otherwise, return to execute step 3.4:
[0065]
[0066] In formula (1), s is the reliability of the protection system, p i is the probability of failure of the protection device at the ith node, s ex It is the reliability expected when the 5G distribution network is operating normally;
[0067] Step 3.7: The reward module of the executive body calculates the reward for the mth round of training at the tth time through equations (2) to (5).
[0068]
[0069]
[0070]
[0071]
[0072] In formula (2) to formula (5), is the reward for the distance between the protection device and the 5G base station in the mth round of training, is the reward for the number of protective devices in the mth round of training, is the reward for protecting the reliability of the system in the mth round of training; is the reward for the number of protection devices in the mth round of training. The distance between the protection device and the 5G base station will affect the reliability of the protection system.
[0073] Step 3.8: The policy updates the parameters of the mth round tth training through equations (6) and (7): Thus, the parameters of the mth round t+1th training are obtained
[0074]
[0075]
[0076] In formula (6) and formula (7), α is the learning rate, is a parameter The partial guide, is The value function of is The following strategy, is the value function expectations;
[0077] Step 3.9, after assigning t+1 to t, determine whether t>C1 is true. If so, end the current m-th round of training and obtain the optimal layout information for the current m-th round. and will Store in collection After that, execute step 3.10, otherwise, return to execute step 3.3 in sequence; where C1 is the maximum number of iterations per round;
[0078] Step 3.10, after assigning m+1 to m, determine whether m>C2 is true. If so, end all training and select The optimal layout information S is obtained *max ; Otherwise, return to step 3.2 and execute sequentially, where C2 is the maximum number of iterations;
[0079] Step 4: Use the optimal layout information S *max Arrange distributed protection devices for 5G distribution network.
Claims
1. A method for optimizing the layout of distributed protection devices in 5G distribution networks based on reinforcement learning, characterized in that: The following steps are involved: Step 1: Build a 5G distribution network protection system environment; make Indicates whether the n nodes of the 5G distribution network are equipped with protection devices. , indicating the If no protection device is installed on the nodes, , which means that the i-th node is equipped with a protection device, and each node can only be equipped with one protection device at most. ; make Indicates the actual distance between n nodes of the 5G distribution network and the 5G base station. represents the actual distance between the i-th node and the 5G base station. hour, ; ; make Indicates the layout information of the protection devices of the 5G distribution network protection system; The n nodes of the initialized 5G distribution network are all equipped with protection devices, namely ; Step 2: Establish a reinforcement learning model for the 5G distribution network protection system. The reinforcement learning model consists of a strategy body and an execution body: The strategy body is composed of two layers of neural networks, and the input layer of the strategy body inputs the layout information of the protection device of the 5G distribution network protection system. , the output layer of the strategy body outputs all actions Probability ,in, Through Strategy and The function yields, is the set of neural network parameters; The execution body is used to execute an action to change the layout information of the protection device of the 5G distribution network protection system, and the reward module in the execution body calculates the reward; Step 3: Train the reinforcement learning model in the 5G distribution network protection system environment; Step 3.1, define the number of rounds as m, and initialize m=1; Step 3.2, define the number of training rounds per round as t, and initialize t=1; Define the layout information of the protection device of the protection system in the mth round and the tth training as , and initialize ; Step 3.3: The input layer of the strategy body inputs the layout information ; Step 3.4: The strategy body passes the strategy and Function outputs all actions Probability ,in is the t-th training strategy in the m-th round, is the set of neural network parameters for the mth round and the tth training. is the probability of all actions a in the tth training of the mth round; Step 3.5: In the 5G distribution network protection system environment, the execution body outputs the probability of all actions a according to the strategy body. Select Action , the executive body performs an action in the mth round of training , thereby changing the m of nodes s The number of protection devices on the adjacent points, that is, changing the layout information of the protection devices of the 5G distribution network protection system , and output the layout information of the mth round t+1th training : Only when When the execution body is m of nodes s Add a protective device to each adjacent point; ; Only when When the execution body is m of nodes s Each adjacent point reduces one protection device; ; Step 3.6: Determine whether formula (1) is true. If true, execute step 3.
7. Otherwise, return to execute step 3.4: (1) In formula (1), is the reliability of the protection system, It is The probability of a protection device failure on each node, It is the reliability expected when the 5G distribution network is operating normally; Step 3.7: The reward module of the executive body calculates the reward for the mth round of training at the tth time through equations (2) to (5): : (2) (3) (4) (5) In formula (2) to formula (5), is the reward for the distance between the protection device and the 5G base station in the mth round of training, is the reward for the number of protective devices in the mth round of training, is the reward for protecting the reliability of the system in the mth round of training; is the reward for the number of protective devices in the mth round of training; Step 3.8: The policy updates the parameters of the mth round tth training through equations (6) and (7): , thus obtaining the parameters for the mth round t+1th training : (6) (7) In formula (6) and formula (7), is the learning rate, is a parameter The partial guide, is The value function of is The following strategy, is the value function expectations; Step 3.9: After assigning t+1 to t, determine > Is it true? If true, end the current m-th round of training and get the optimal layout information for the current m-th round , and Store in collection After that, execute step 3.10, otherwise, return to execute step 3.3 sequentially; among which, is the maximum number of iterations per round; Step 3.10, after assigning m+1 to m, determine > Is it true? If so, end all training and start from the set Get the best layout information ; Otherwise, return to step 3.2 and execute sequentially, where: is the maximum number of iteration rounds; Step 4: Use the best layout information Arrange distributed protection devices for 5G distribution network.
