Method and system for identifying line parameters of medium voltage distribution network based on FORL reinforcement learning
By using FORL-based reinforcement learning, a topology map and agent model of medium-voltage distribution network are constructed. By combining historical and real-time data, the real-time and accurate identification of line parameters of medium-voltage distribution network is achieved, which solves the problem of large errors in traditional methods and improves identification efficiency and accuracy.
Patent Information
- Application Number
- CN202311539025.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-17
- Publication Date
- 2026-11-27
- Estimated Expiration
- 2043-11-17
AI Technical Summary
Existing technologies struggle to achieve real-time and accurate identification of medium-voltage distribution network line parameters, especially when the grid status fluctuates due to the integration of numerous new energy sources and loads. Traditional methods suffer from large errors and are unable to perform online measurements.
A FORL-based reinforcement learning approach is adopted to construct a medium-voltage distribution network topology model, and then use an agent and a reinforcement learning model, combined with historical and real-time measurement data, to identify line resistance and reactance, thereby achieving online parameter identification.
It improves the accuracy and efficiency of line parameter identification, reduces calculation time, overcomes the shortcomings of traditional methods in terms of accuracy and efficiency, and adapts to changes in power grid conditions.
Smart Images

Figure CN117559423B_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the field of power distribution network topology and parameter identification technology, and specifically relates to a method and system for identifying line parameters of medium-voltage power distribution networks based on FORL reinforcement learning. Background Technology
[0002] The line parameters of a distribution network are crucial for its control and analysis. These parameters are affected by factors such as temperature, operating environment, and skin effect, making direct measurement by instruments difficult. Due to the large-scale integration of time-varying renewable energy sources and loads into the distribution network, the network state fluctuates significantly. Therefore, the requirements for parameter identification in distribution networks are increasingly stringent, necessitating online, real-time identification of distribution network parameters.
[0003] A power distribution network comprises multiple nodes. Identifying power distribution network line parameters primarily involves identifying line resistance and reactance. Traditional theoretical calculations typically utilize physical parameters such as the line's geometric mean distance and material structure, combined with factors like temperature and geographical location, to calculate reactance, resistance, and susceptance using formulas. Alternatively, parameters per unit length of line can be obtained from product catalogs and multiplied by the length. However, because power line parameters are easily affected by the operating environment, impedance parameters can change, leading to significant errors in theoretical calculations. Another method is offline power outage measurement. Before commissioning a new line or after de-energizing an existing line, an external power source is used to measure line data using various meters such as voltmeters and ammeters. The meter readings are then manually read and combined with relevant formulas to calculate the parameters. However, this method has drawbacks, such as requiring the tested line to be de-energized and the inability to measure mutual inductance in parallel lines with multiple circuits.
[0004] In recent years, online measurement methods have been gradually applied. Currently, research on real-time online identification mainly relies on the least squares method and its improved versions. Wang Gaomeng et al., in their paper "A Method for Identifying Line Parameters of Low-Voltage Distribution Networks Based on AMI Measurement Information," proposed using multi-time-section measurement information from AMIs to establish a nonlinear equation set for the parameters of the entire network branches. Hou Yanruo et al. proposed a method and system for identifying parameters of T-type distribution network lines based on PMUs, using PMU measurement devices to numerically solve the identification model. However, the current number of measurement devices installed in distribution networks and the quality of measurement information often cannot meet the requirements for parameter identification, making measurement data acquisition difficult and requiring improvement in calculation accuracy. Summary of the Invention
[0005] To address the shortcomings of existing technologies, this invention provides a method and system for identifying medium-voltage distribution network line parameters based on FORL reinforcement learning, thereby solving the technical problem of achieving simple, reliable, and timely line parameter identification that is accurate.
[0006] To solve the above-mentioned technical problems, the present invention adopts the following technical solution.
[0007] This invention first discloses a method for identifying line parameters in medium-voltage distribution networks based on FORL reinforcement learning. The method includes the following steps:
[0008] Step 1: Using the bus in the medium-voltage distribution network as nodes and the connecting lines as edges, construct a topology model of the medium-voltage distribution network, collect historical measurement data of the medium-voltage distribution network and perform data preprocessing to generate training samples for identifying line parameters of the medium-voltage distribution network.
[0009] Step 2: Based on the parameters to be identified in the connection lines, construct the FORL reinforcement learning agent and the FORL reinforcement learning model;
[0010] Step 3: Use the medium-voltage distribution network line parameter identification training samples to train the FORL reinforcement learning model. Take the parameters to be identified as the current state, iteratively update the objective function and state through power flow calculation, obtain the optimal environment parameters of the algorithm, and save the training model.
[0011] Step 4: Collect real-time measurement data of medium-voltage distribution network, input the real-time measurement data into the trained FORL reinforcement learning model, and obtain the identification results of line resistance and reactance of medium-voltage distribution network.
[0012] The present invention further includes the following preferred embodiments:
[0013] Step 1 further includes:
[0014] Step 1.1: Using the bus in the medium-voltage distribution network as nodes in the topology model, and the connecting lines as edges (including branches and branches where tie switches are located), and setting the starting power node of the medium-voltage distribution network as the reference node, the topology model of the medium-voltage distribution network is obtained, denoted as G = {V, B}; where V = {V1, V2, ..., V...} M} represents the set of nodes in the topological graph model, V i Let M be the number of nodes in the topological graph model; B = {B ij |i∈[0,M],j∈[0,M],i≠j} represents the set of edges in the topological graph model G; where B ij V represents i Nodes and V j There are edge connections between nodes, and n represents the total number of branches in the topological graph model; the edge elements in set B are numbered to obtain the branch set B. line ={L i |i∈[0,n]};
[0015] Step 1.2: Calculate the historical initial parameters based on the physical quantities measured by the measuring devices installed at the bus nodes in the medium-voltage distribution network. The historical measurement data comes from the data collected by smart meters, including node voltage, current, active power, and reactive power collected every 15 minutes.
[0016] Step 2 further includes:
[0017] Step 2.1: For the parameter to be identified, i.e., the resistance R of the i-th connection line. i and reactance X i Generate FORL reinforcement learning quintuple {S i A i R i P i , π i} to characterize the FORL problem; where S i ={x i} represents the state space of the i-th variable, A i Let R represent the action space of the i-th agent. i P represents the reward signal obtained from the environment. i ={p1, p2} represent the probabilities of the search path direction and the action selection, respectively, π i This represents the strategy guiding the i-th agent to take action;
[0018] Step 2.2: Each connection line contains two parameters to be solved. Let the parameter to be solved for the h-th line be the reactance X. h and resistance R h X h =x h R h =x n+h h∈{1,2,…,n}. Divide the i-th variable into D. i There are 10 cells; the j-th cell of the i-th variable is denoted as c. ij Where i∈{1, 2, ..., n}, j∈{1, 2, ..., D} i Let Q be the empirical value explored in the j-th cell of the i-th variable. (i,j) The value function is as follows:
[0019] Q k+1 (i,j) =Q k (i,j) +α·δ k (i)
[0020] Where α is the learning rate, δ k (i) is the increment of the value function, calculated as follows:
[0021] δ k(i)=Re+γ·[maxQ k (i,j) -Q k (i,j) ]
[0022] Where Re is the reward signal and γ is the discount rate.
[0023] Step 3 further includes:
[0024] Step 3.1: First, initialize the computing environment, the parameters to be identified, the parameter range, and the FORL reinforcement learning model network parameters. Initialize the counter k = 1, x best =0.
[0025] Step 3.2: Calculate the experience value Q for exploring each cell. (i,j) , where α is the learning rate;
[0026] Step 3.3: Agent i bases its actions on empirical values. Size, select search direction and cell;
[0027] Step 3.4: According to the path calculation rules, select the path that maximizes the calculated path value. The formula for calculating the agent's search probability p1 in the path direction is as follows:
[0028]
[0029] Where τ represents the discount parameter; L l(i,j) For path-valued functions, the update method is as follows:
[0030]
[0031] Where L l(i,j) (x i ) represents state x i The path value is given below, where ω1 represents the weight of the value function when calculating the path value, and Q... (l,m) This represents the value of the m-th value function, which is arranged in descending order of the value functions of all behaviors along the search path l.
[0032] In the probability of choosing the optimal action for the i-th agent, the probability of choosing the optimal action is p2(h):
[0033]
[0034] Step 3.5: Explore cells based on behavior. After exploring cells, the newly generated i-th variable x' i Together with the remaining invariant variables, they form a new state space, and k increases by 1, i.e., k = k + 1;
[0035] Step 3.6: Set x'i and r' i Substitute the values into the system to perform power flow calculations and obtain the corresponding branch B. i Voltage amplitude V at the first node hi :
[0036]
[0037]
[0038]
[0039] Among them, P ei For the corresponding branch B i The active power of the end node, Q ei For the corresponding branch B i Reactive power at the end node, V ei For the corresponding branch B i Voltage amplitude at the end node.
[0040] Step 3.7: Set x' i With the variable X in the optimal state at this time best Substitute each into the objective function F(X);
[0041]
[0042]
[0043] Where n is the total number of samples participating in the identification, ω t It is the weight of each sample participating in the identification, X y The parameter to be identified, y a It is the measured voltage value V of the actual system. hi y e It is the calculated voltage value;
[0044] Step 3.8: In the new state space, evaluate the environment by calculating the objective function and reward signal, feed back the reward signal Re to agent i, and update the optimal parameters x. best :
[0045]
[0046] Update the value function Q according to the update rules. (i,j) ;
[0047] Step 3.9: Iterate through steps 3.1 to 3.8 until k > k max k max The optimal network parameters of the model are obtained by setting a preset threshold, and the training model is saved.
[0048] The weights of the value function satisfy the following constraints:
[0049] 0≤ω1≤1,
[0050]
[0051]
[0052] This invention also discloses a medium-voltage distribution network line parameter identification system based on FORL reinforcement learning, which utilizes the aforementioned FORL-based reinforcement learning method for medium-voltage distribution network line parameter identification. The system includes a topology construction and sample acquisition module, a reinforcement learning model construction module, a reinforcement learning model training module, and a real-time line parameter identification module.
[0053] The topology construction and sample acquisition module is used to construct a topology model of the medium-voltage distribution network using the bus in the medium-voltage distribution network as nodes and the connecting lines as edges, and to collect historical measurement data of the medium-voltage distribution network and perform data preprocessing to generate training samples for identifying line parameters of the medium-voltage distribution network.
[0054] The reinforcement learning model construction module is used to construct a FORL reinforcement learning agent and a FORL reinforcement learning model based on the parameters to be identified in the connection line.
[0055] The reinforcement learning model training module is used to train the FORL reinforcement learning model by identifying training samples using the parameters of the medium-voltage distribution network line. The parameters to be identified are used as the current state, and the objective function and state are iteratively updated through power flow calculation to obtain the optimal parameters of the algorithm and complete the model training.
[0056] The real-time line parameter identification module is used to collect real-time measurement data of medium-voltage distribution network, input the real-time measurement data into the trained FORL reinforcement learning model, and obtain the line parameter identification results of medium-voltage distribution network.
[0057] Accordingly, this application also discloses a terminal, including a processor and a storage medium;
[0058] The storage medium is used to store instructions;
[0059] The processor is configured to operate according to the instructions to execute the steps of the aforementioned method for identifying medium-voltage distribution network line parameters based on FORL reinforcement learning.
[0060] Accordingly, this application also discloses a computer-readable storage medium storing a computer program thereon, which, when executed by a processor, implements the steps of the aforementioned method for identifying medium-voltage distribution network line parameters based on FORL reinforcement learning.
[0061] The beneficial effects of this invention are that, compared with the prior art, it provides a method and system for identifying medium-voltage distribution network line parameters based on FORL reinforcement learning. This method fully considers the data collected by measurement devices and uses this data to achieve fast and accurate identification of medium-voltage distribution network parameter ranges, improving upon the shortcomings of traditional mathematical optimization methods in terms of computational efficiency and accuracy. It also ensures the accuracy of parameter prediction results while minimizing time consumption, thus improving identification efficiency. Attached Figure Description
[0062] Figure 1 This is a flowchart of the medium-voltage distribution network line parameter identification method based on FORL reinforcement learning in this invention.
[0063] Figure 2 This is a diagram of a medium-voltage power distribution network topology in one embodiment of the present invention.
[0064] Figure 3 This is a structural diagram of the FORL reinforcement learning agent in this invention.
[0065] Figure 4 This is a flowchart of the FORL reinforcement learning model training process in this invention.
[0066] Figure 5 This is a schematic diagram of the structure of the medium-voltage distribution network line parameter identification system based on FORL reinforcement learning in this invention. Detailed Implementation
[0067] To make the objectives, technical solutions, and advantages of the present invention clearer, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention.
[0068] The embodiments described in this application are merely some, not all, embodiments of the present invention. Based on the spirit of the present invention, other embodiments obtained by those skilled in the art without inventive effort are all within the protection scope of the present invention.
[0069] Reinforcement learning algorithms have good online computation capabilities and are often used for online parameter identification. To address the shortcomings of existing technologies, this invention proposes a method and system for identifying medium-voltage distribution network line parameters based on FORL reinforcement learning, achieving simple, reliable, and timely line parameter identification with high accuracy.
[0070] See Figure 1 As shown, the method for identifying medium-voltage distribution network line parameters based on FORL reinforcement learning disclosed in this invention includes the following steps:
[0071] Step 1: Using the bus in the medium-voltage distribution network as nodes and the connecting lines as edges, construct a topology model of the medium-voltage distribution network, collect historical measurement data of the medium-voltage distribution network and perform data preprocessing to generate training samples for identifying line parameters of the medium-voltage distribution network.
[0072] In step 1, by identifying the buses and connecting lines in the medium-voltage distribution network, the structure of the medium-voltage distribution network is abstracted into a topology model containing only nodes and line edges. See also... Figure 2 The diagram shows the topology of a medium-voltage distribution network. The nodes are numbered in ascending order according to the topology model and power flow direction. The system has n edges, and each connecting line has two parameters to be solved. Let R be the resistance and reactance of the i-th connecting line. i and Z i .
[0073] Specifically, step 1 further includes:
[0074] Step 1.1: Using the bus in the medium-voltage distribution network as nodes in the topology model, and the connecting lines as edges (including branches and branches where tie switches are located), and setting the starting power node of the medium-voltage distribution network as the reference node, the topology model of the medium-voltage distribution network is obtained, denoted as G = {V, B}; where V = {V1, V2, ..., V...} M} represents the set of nodes in the topological graph model, V i Let M be the number of nodes in the topological graph model. B = {B} ij |i∈[0,M],j∈[0,M],i≠j} represents the set of edges in the topological graph model G; where B ij V represents i Nodes and V j There are edge connections between nodes, and n represents the total number of branches in the topological graph model. Numbering the edge elements in set B yields the branch set Bi. line ={L i |i∈[0,n]}.
[0075] Step 1.2: Calculate historical initial parameters based on the physical quantities measured by the measuring devices installed at the bus nodes in the medium-voltage distribution network. The distribution network operation data comes from smart meter data collection, including node voltage, current, active power, and reactive power collected every 15 minutes. The historical measurement data is preprocessed, including:
[0076] Step 1.21: Set the measurement data threshold, calculate the deviation of each measurement data from the mean, and delete the measurement data if it is higher than the predefined percentage;
[0077] Step 1.22: Fill in the missing historical measurement data using Newton's interpolation method;
[0078] Step 1.23: Arrange the historical measurement data according to the data standardization method.
[0079] Step 2: Based on the parameters to be identified in the connected lines, construct the FORL reinforcement learning agent and the FORL reinforcement learning model. This method does not rely on historical data, does not require solving a system of equations, and can adaptively learn the optimal policy, continuously refining it in iterations. This improves upon the shortcomings of traditional mathematical optimization methods in terms of computational efficiency and accuracy. It ensures the accuracy of parameter prediction results while minimizing time consumption, thus improving identification efficiency and exhibiting strong generalization ability. Figure 3 This is a structural diagram of the FORL reinforcement learning agent in this invention.
[0080] Specifically, step 2 further includes:
[0081] Step 2.1: For the parameters to be identified, generate the FORL reinforcement learning quintuple {S} i A i R i P i , π i} to characterize the FORL problem. Where S i ={x i Let} represent the state space of the i-th variable. i Let R represent the action space of the i-th agent. i P represents the reward signal obtained from the environment. i ={p1, p2} represent the probabilities of the search path direction and the action selection, respectively, π i This refers to the strategy by which the agent guides its actions.
[0082] Step 2.2: The state space of each connecting line contains two parameters to be solved. Let the parameter to be solved for the h-th line be the reactance X. h and resistance R h , where X h =x h R h =x n+h h∈{1,2,…,n}. Divide the i-th variable into D. i There are 10 cells. The j-th cell of the i-th variable is denoted as c. ij Where i∈{1, 2, ..., 2n}, j∈{1, 2, ..., D} i Let Q be the empirical value explored in the j-th cell of the i-th variable. (i,j) :
[0083] Q k+1 (i,j) =Q k(i,j) +α·δ k (i)
[0084] Where α is the learning rate, δ k (i) is the increment of the value function, calculated as follows:
[0085] δ k (i)=Re+γ·[maxQ k (i,j) -Q k (i,j) ]
[0086] Where Re is the reward signal and γ is the discount rate. In a preferred example, γ = 0.2 is selected.
[0087] Step 3: Use the medium-voltage distribution network line parameter identification training samples to train the FORL reinforcement learning model, take the parameters to be identified as the current state, iteratively update the objective function and state through power flow calculation, and obtain the optimal parameters.
[0088] For each identified resistance and reactance parameter, determine the range of the parameter, and use the parameter value as state x. i The behavior after exploration is complete. i The next state after performing the action is: x i+1 →x i +a i The new state x′ is obtained. i , x′ i =x i+1 Where X′ h =x′ h , R′ h =x′ n+h h∈{1,2,…,n}. Let x′ i A power flow calculation is performed on the input system, followed by the calculation of the objective function F(X) and the reward Re. After each iteration, the parameter x′ is used... i Compute the value function Q with respect to x best To update, if the value of Q is smaller than the previous value, then x... best No update is performed. The optimal parameter x is obtained after all iterations are completed. best .
[0089] Specifically, step 3 further includes:
[0090] Step 3.1: First, initialize the computing environment, the parameters to be identified, the parameter range, and the FORL reinforcement learning model network parameters. Initialize the counter k = 1, x best =0.
[0091] Step 3.2: Calculate the experience value Q for each cell exploration based on Step 2.2. (i,j) , where α is the learning rate. In a specific embodiment, α can be set to 0.6.
[0092] Step 3.3: Agent i bases its actions on empirical values. The value function determines the search direction and cell. According to Markov decision processes, the probability of the agent taking the next action depends on its previous actions, and the value function determines the probability of choosing an action.
[0093] Step 3.4: According to the path calculation rules, select the path that maximizes the calculated path value. The formula for calculating the agent's search probability p1 in the path direction is as follows:
[0094]
[0095] Where τ represents the discount parameter, and in a specific embodiment, τ can be set to 0.5. l(i,j) For path-valued functions, the update method is as follows:
[0096]
[0097] Where L l(i,j) (x i ) represents state x i The path value is given below, where ω1 represents the weight of the value function when calculating the path value, and Q... (l,m) This represents the value of the m-th value function, where k∈N, arranged in descending order of the value functions of all behaviors along search path l. In a specific embodiment, ω1 can be set to 1. The weights of the value functions satisfy the following constraints:
[0098] 0≤ω1≤1,
[0099]
[0100]
[0101] In the probability of choosing the optimal action for the i-th agent, the probability of choosing the optimal action is p2(h):
[0102]
[0103] Step 3.5: Explore cells based on behavior. After exploring cells, the newly generated i-th dimension variable x' i Together with the other invariant variables, they form a new state space, and k increases by 1, i.e., k = k + 1.
[0104] Step 3.6: Place X' i and R' iSubstitute the values into the system to perform power flow calculations and obtain the corresponding branch B. i Voltage amplitude V at the first node hi :
[0105]
[0106]
[0107]
[0108] Among them, P ei For the corresponding branch B i The active power of the end node, Q ei For the corresponding branch B i Reactive power at the end node. V ei For the corresponding branch B i Voltage amplitude at the end node.
[0109] Step 3.7: Set x' i With x at this time best Substitute each into the objective function F(X).
[0110]
[0111]
[0112] Where n is the total number of samples participating in the identification, ω t It is the weight of each sample participating in the identification, x' i The parameter to be identified, y a It is the measured voltage value V of the actual system. hi y e It is the calculated voltage value.
[0113] Step 3.8: In the new state space, evaluate the environment by calculating the objective function and reward signal, feed back the reward signal Re to agent i, and update the optimal parameters x. best :
[0114]
[0115] Update the value function Q according to the update rules. (i,j) .
[0116] Step 3.9: Iterate through steps 3.1 to 3.7 until k > k max k max The optimal network parameters of the model are obtained by setting a preset threshold, and the training model is saved. Figure 4 A diagram illustrating the training process is shown.
[0117] Step 4: Collect real-time measurement data of medium-voltage distribution network, input the real-time measurement data into the trained FORL reinforcement learning model, and obtain the identification results of line resistance and reactance of medium-voltage distribution network.
[0118] Specifically, step 4 further includes:
[0119] Step 4.1: Input the real-time collected node voltage amplitude, node voltage injected active power, and node voltage injected reactive power into the FORL reinforcement learning model to determine the parameter optimization direction and behavior. Then, under the guidance of the strategy, select the behavior and continuously iterate to learn, obtain the real-time parameters of the medium-voltage distribution network line, and output the resistance and reactance identification results.
[0120] The beneficial effects of this invention are that, compared with the prior art, it provides a method and system for identifying medium-voltage distribution network line parameters based on FORL reinforcement learning. This method fully considers the data collected by measurement devices and uses this data to achieve fast and accurate identification of medium-voltage distribution network parameter ranges, improving upon the shortcomings of traditional mathematical optimization methods in terms of computational efficiency and accuracy. It also ensures the accuracy of parameter prediction results while minimizing time consumption, thus improving identification efficiency.
[0121] This invention can be a system, method, and / or computer program product. See also Figure 5 The present invention also discloses a medium-voltage distribution network line parameter identification system based on FORL reinforcement learning, which is based on the aforementioned FORL reinforcement learning-based medium-voltage distribution network line parameter identification method. The system includes a topology construction and sample acquisition module 1, a reinforcement learning model construction module 2, a reinforcement learning model training module 3, and a real-time line parameter identification module 4.
[0122] The topology construction and sample acquisition module 1 is used to construct a topology model of the medium-voltage distribution network using the bus in the medium-voltage distribution network as nodes and the connecting lines as edges, and to collect historical measurement data of the medium-voltage distribution network and perform data preprocessing to generate training samples for identifying line parameters of the medium-voltage distribution network.
[0123] The reinforcement learning model construction module 2 is used to construct a FORL reinforcement learning agent and a FORL reinforcement learning model based on the parameters to be identified in the connection line.
[0124] The reinforcement learning model training module 3 is used to train the FORL reinforcement learning model using the medium-voltage distribution network line parameter identification training samples, taking the parameters to be identified as the current state, iteratively updating the objective function and state through power flow calculation, and obtaining the optimal parameters.
[0125] The real-time line parameter identification module 4 is used to collect real-time measurement data of medium-voltage distribution network, input the real-time measurement data into the trained FORL reinforcement learning model, and obtain the line parameter identification results of medium-voltage distribution network.
[0126] Based on the spirit of this invention, those skilled in the art will readily conceive of a computer program product derived from the aforementioned FORL-based reinforcement learning-based medium-voltage distribution network line parameter identification method. The computer program product may include a computer-readable storage medium having computer-readable program instructions loaded thereon for causing a processor to implement various aspects of this disclosure. That is, this application also includes a terminal comprising a processor and a storage medium; the storage medium is used to store instructions; the processor is used to operate according to the instructions to execute the steps of the aforementioned FORL-based reinforcement learning-based medium-voltage distribution network line parameter identification method.
[0127] Computer-readable storage media can be tangible devices capable of holding and storing instructions for use by an instruction execution device. Computer-readable storage media can be, for example, but not limited to, electrical storage devices, magnetic storage devices, optical storage devices, electromagnetic storage devices, semiconductor storage devices, or any suitable combination of the foregoing. More specific examples (a non-exhaustive list) of computer-readable storage media include: portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), static random access memory (SRAM), portable compact disc read-only memory (CD-ROM), digital multifunction disc (DVD), memory sticks, floppy disks, mechanical encoding devices, such as punch cards or recessed protrusions storing instructions thereon, and any suitable combination of the foregoing. The computer-readable storage media used herein are not to be construed as transient signals themselves, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through waveguides or other transmission media (e.g., light pulses through fiber optic cables), or electrical signals transmitted through wires.
[0128] The computer-readable program instructions described herein can be downloaded from computer-readable storage media to various computing / processing devices, or downloaded via a network, such as the Internet, local area network, wide area network, and / or wireless network, to an external computer or external storage device. The network may include copper transmission cables, fiber optic transmission, wireless transmission, routers, firewalls, switches, gateway computers, and / or edge servers. A network adapter card or network interface in each computing / processing device receives the computer-readable program instructions from the network and forwards them to the computer-readable storage media in the respective computing / processing device.
[0129] Computer program instructions used to perform the operations of this disclosure may be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-dependent instructions, microcode, firmware instructions, status setting data, or source code or object code written in any combination of one or more programming languages, including object-oriented programming languages such as Smalltalk, C++, etc., and conventional procedural programming languages such as the "C" language or similar programming languages. The computer-readable program instructions may execute entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer via any type of network—including a local area network (LAN) or a wide area network (WAN)—or may be connected to an external computer (e.g., via the Internet using an Internet service provider). In some embodiments, electronic circuitry, such as programmable logic circuitry, field-programmable gate arrays (FPGAs), or programmable logic arrays (PLAs), is personalized by utilizing the status information of the computer-readable program instructions to implement various aspects of this disclosure.
[0130] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and not to limit it. Although the present invention has been described in detail with reference to the above embodiments, those skilled in the art should understand that modifications or equivalent substitutions can still be made to the specific implementation of the present invention. Any modifications or equivalent substitutions that do not depart from the spirit and scope of the present invention should be covered within the protection scope of the claims of the present invention.
Claims
1. A method for identifying line parameters in medium-voltage distribution networks based on FORL reinforcement learning, characterized in that, Includes the following steps: Step 1: Using the bus in the medium-voltage distribution network as nodes and the connecting lines as edges, construct a topology model of the medium-voltage distribution network, collect historical measurement data of the medium-voltage distribution network and perform data preprocessing to generate training samples for identifying line parameters of the medium-voltage distribution network. Step 2: Based on the parameters to be identified in the connection lines, construct the FORL reinforcement learning agent and the FORL reinforcement learning model; Step 3: Use the medium-voltage distribution network line parameter identification training samples to train the FORL reinforcement learning model. Take the parameters to be identified as the current state, and iteratively update the objective function and state through power flow calculation to obtain the optimal parameters. The model training is then complete. Step 4: Collect real-time measurement data of medium-voltage distribution network, input the real-time measurement data into the trained FORL reinforcement learning model, and obtain the identification results of line resistance and reactance of medium-voltage distribution network. Step 3 further includes: Step 3.1: Initialize the computing environment, initialize the parameters to be identified, the parameter range, the FORL reinforcement learning model network parameters, and , ; Step 3.2: Calculate the experience value for exploring each cell. ,in For learning rate; Step 3.3: Intelligent Agent Based on experience value Size, select search direction and cell; Step 3.4: According to the path calculation rules, select the path that maximizes the calculated path value, and determine the agent's search probability in the path direction. The calculation formula is as follows: in Represents the discount parameter; For path functions, the update method is as follows: in Representing state The path value below, This represents the weight of the value function when calculating path values. Indicates the search path The above lists the value functions of all behaviors in descending order, the first... The value of a function; In the Among the probabilities of choosing the optimal action among the various agents, the probability of choosing the optimal action is... : Step 3.5: Explore cells based on behavior; after exploring cells, the newly generated first cell... i Dimensional variables Together with the remaining invariant variables, they form a new state space, and k increases by 1, that is... ; Step 3.6: [The sentence is incomplete and requires more context to be translated accurately.] and Substitute the data into the system to perform power flow calculations and obtain the corresponding branches. Voltage amplitude at the first node : in, For the corresponding branch Active power of the end node, For the corresponding branch Reactive power at the end node For the corresponding branch Voltage amplitude at the end node; Step 3.7: [The text appears to be incomplete and contains several grammatical errors. A more accurate translation would require the full context.] With the variables in the optimal state at this time Substitute into the objective function respectively ; in It is the total number of samples participating in the identification. It is the weight of each sample participating in the identification. These are the parameters to be identified. The measured voltage value of the actual system , It is the calculated voltage value; Step 3.8: In the new state space, evaluate the environment by calculating the objective function and reward signal, and then... Re Feedback to the intelligent agent Update optimal parameters : Update value function according to update rules ; Step 3.9: Iteratively execute steps 3.1 to 3.8 until... , The optimal network parameters of the model are obtained by setting a preset threshold, and the training model is saved.
2. The method for identifying medium-voltage distribution network line parameters based on FORL reinforcement learning according to claim 1, characterized in that, Step 1 further includes: Step 1.1: Using the bus in the medium-voltage distribution network as nodes in the topology model, and the connecting lines as edges (including branches and branches where tie switches are located), and setting the starting power node of the medium-voltage distribution network as the reference node, the resulting topology model of the medium-voltage distribution network is denoted as: ;in This represents the set of nodes in a topological graph model. For nodes, This represents the number of nodes in the topological graph model. Representing the topological graph model The set of edges in; where, express Nodes and There are edge connections between the nodes. This represents the total number of branches in the topological graph model; by numbering the edge elements in set B, we obtain the branch set. ; Step 1.2: Calculate the historical initial parameters based on the physical quantities measured by the measuring devices installed at the bus nodes in the medium-voltage distribution network. The historical measurement data comes from the data collected by smart meters, including node voltage, current, active power, and reactive power collected every 15 minutes.
3. The method for identifying medium-voltage distribution network line parameters based on FORL reinforcement learning according to claim 2, characterized in that, Step 2 further includes: Step 2.1: For the parameter to be identified, i.e., the first... Resistance of the connecting line and reactance Generate FORL reinforcement learning quintuples To characterize the FORL problem; where, Indicates the first The state space of each variable Indicates the first The behavioral space of an intelligent agent. This indicates the reward signal obtained from the environment. These represent the probabilities of the search path direction and the behavior selection, respectively. Indicates the first A strategy guides an agent to take action; Step 2.2: Each connection line contains two parameters to be solved, denoted as the first... h The parameter to be determined for this line is reactance. and resistance , , , ; will the first The variables are divided into The cell; the first The first variable Each cell is denoted as in ; will the first The first variable The experience value of exploring each cell is denoted as The value function is as follows: in For learning rate, The increment of the value function is calculated using the following formula: in, Re As a reward signal, This represents the discount rate.
4. The method for identifying medium-voltage distribution network line parameters based on FORL reinforcement learning according to claim 3, characterized in that, The weights of the value function satisfy the following constraints: , , 。 5. The method for identifying medium-voltage distribution network line parameters based on FORL reinforcement learning according to claim 4, characterized in that, Step 4 further includes: Step 4.1: Input the real-time collected node voltage amplitude, node voltage injected active power, and node voltage injected reactive power into the FORL reinforcement learning model to determine the parameter optimization direction and behavior. Then, under the guidance of the strategy, select the behavior and continuously iterate to learn, obtain the real-time parameters of the medium-voltage distribution network line, and output the resistance and reactance identification results.
6. A medium-voltage distribution network line parameter identification system based on FORL reinforcement learning, utilizing the FORL reinforcement learning-based medium-voltage distribution network line parameter identification method according to any one of claims 1-5, comprising a topology construction and sample acquisition module, a reinforcement learning model construction module, a reinforcement learning model training module, and a real-time line parameter identification module, characterized in that: The topology construction and sample acquisition module is used to construct a topology model of the medium-voltage distribution network using the bus in the medium-voltage distribution network as nodes and the connecting lines as edges, and to collect historical measurement data of the medium-voltage distribution network and perform data preprocessing to generate training samples for identifying line parameters of the medium-voltage distribution network. The reinforcement learning model construction module is used to construct a FORL reinforcement learning agent and a FORL reinforcement learning model based on the parameters to be identified in the connection line. The reinforcement learning model training module is used to train the FORL reinforcement learning model using the medium-voltage distribution network line parameter identification training samples, taking the parameters to be identified as the current state, iteratively updating the objective function and state through power flow calculation, and obtaining the optimal parameters. The real-time line parameter identification module is used to collect real-time measurement data of medium-voltage distribution network, input the real-time measurement data into the trained FORL reinforcement learning model, and obtain the line parameter identification results of medium-voltage distribution network. The reinforcement learning model training module is further used for: Initialize the computing environment, initialize the parameters to be identified, the parameter range, the FORL reinforcement learning model network parameters, and k=1. ; Calculate the experience value for each cell exploration ,in For learning rate; intelligent agent Based on experience value Size, select search direction and cell; According to the path calculation rules, the path that maximizes the calculated path value is selected, and the agent's search probability in the path direction is determined. The calculation formula is as follows: in Represents the discount parameter; For path-valued functions, the update method is as follows: in Representing state The path value below, This represents the weight of the value function when calculating path values. Indicates the search path The above lists the value functions of all behaviors in descending order, the first... The value of a function; In the Among the probabilities of choosing the optimal action among the various agents, the probability of choosing the optimal action is... : Explore cells based on behavior; after exploring cells, the newly generated i-th dimension variable... Together with the remaining invariant variables, they form a new state space, and k increases by 1, that is... ; Will and Substitute the data into the system to perform power flow calculations and obtain the corresponding branches. Voltage amplitude at the first node : in, For the corresponding branch Active power of the end node, For the corresponding branch Reactive power at the end node For the corresponding branch Voltage amplitude at the end node; Will With the variables in the optimal state at this time Substitute into the objective function respectively ; in It is the total number of samples participating in the identification. It is the weight of each sample participating in the identification. These are the parameters to be identified. The measured voltage value of the actual system , It is the calculated voltage value; In the new state space, the environment is evaluated by calculating the objective function and the reward signal, and the reward signal is... Re Feedback to the intelligent agent Update optimal parameters : Update value function according to update rules ; Iteratively execute the above steps until... , The optimal network parameters of the model are obtained by setting a preset threshold, and the training model is saved.
7. The medium-voltage distribution network line parameter identification system based on FORL reinforcement learning according to claim 6, characterized in that, The topology construction and sample acquisition module is further used for: Using the busbars in the medium-voltage distribution network as nodes in the topology model, and the connecting lines as edges (including branches and branches containing tie switches), and setting the starting power node of the medium-voltage distribution network as the reference node, the resulting topology model of the medium-voltage distribution network is denoted as […]. ;in This represents the set of nodes in a topological graph model. For nodes, This represents the number of nodes in the topological graph model. Representing the topological graph model The set of edges in; where, express Nodes and There are edge connections between the nodes. This represents the total number of branches in the topological graph model; by numbering the edge elements in set B, we obtain the branch set. ; Historical initial parameters are calculated based on the physical quantities measured by the measuring devices installed at the bus nodes in the medium-voltage distribution network. The historical measurement data comes from the data collected by smart meters, including node voltage, current, active power, and reactive power collected every 15 minutes.
8. The medium-voltage distribution network line parameter identification system based on FORL reinforcement learning according to claim 7, characterized in that, The reinforcement learning model building module is further used for: For the parameter to be identified, i.e. the first Resistance of the connecting line and reactance Generate FORL reinforcement learning quintuples To characterize the FORL problem; where, Indicates the first The state space of each variable Indicates the first The behavioral space of an intelligent agent. This indicates the reward signal obtained from the environment. These represent the probabilities of the search path direction and the behavior selection, respectively. Indicates the first A strategy guides an agent to take action; Each connection line contains two parameters to be solved, denoted as the first... h The parameter to be determined for this line is reactance. and resistance , , , ; will the first The variables are divided into The cell; the first The first dimension of the variable Each cell is denoted as in ; will the first The first dimension of the variable The experience value of exploring each cell is denoted as : in For learning rate, The increment of the value function is calculated using the following formula: Where R is the reward signal. This represents the discount rate.
9. The medium-voltage distribution network line parameter identification system based on FORL reinforcement learning according to claim 8, characterized in that, The weights of the value function satisfy the following constraints: , , 。 10. The medium-voltage distribution network line parameter identification system based on FORL reinforcement learning according to claim 9, characterized in that, The real-time line parameter identification module is further used for: The real-time collected node voltage amplitude, node voltage injected active power, and node voltage injected reactive power of the medium-voltage distribution network are input into the FORL reinforcement learning model to determine the parameter optimization direction and behavior. Then, under the guidance of the strategy, the behavior is selected and iterative learning is continuously performed to obtain the real-time resistance and reactance parameters of the medium-voltage distribution network lines and output the identification results.
11. A terminal, comprising a processor and a storage medium; characterized in that: The storage medium is used to store instructions; The processor is configured to operate according to the instructions to execute the steps of the medium-voltage distribution network line parameter identification method based on FORL reinforcement learning according to any one of claims 1-5.
12. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the program is executed by the processor, it implements the steps of the method for identifying medium-voltage distribution network line parameters based on FORL reinforcement learning as described in any one of claims 1-5.
Citation Information
Patent Citations
Power distribution network topology voltage regulation method based on deep reinforcement learning
CN113036772A
Power distribution network closed-loop current regulation and control method and device, computer equipment and storage medium
CN114069650A
