Voltage control method for power distribution system based on self-organizing mapping neural network deep reinforcement learning

By combining self-organizing mapping neural networks with the MADDPG algorithm, the voltage control of photovoltaic inverters and on-load tap-changing transformers in the power distribution system is optimized, solving the problems of voltage fluctuations caused by distributed renewable energy and calculation errors of traditional algorithms, and realizing efficient voltage management and regulation.

CN117200213BActive Publication Date: 2026-12-04ZHEJIANG UNIV OF TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311181860.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-09-13
Publication Date
2026-12-04
Estimated Expiration
2043-09-13

AI Technical Summary

Technical Problem

In existing power distribution systems, the increased penetration of distributed renewable energy leads to increased voltage fluctuations and uncertainties. Traditional voltage/reactive power control algorithms struggle to effectively coordinate voltage regulators with different response speeds and characteristics, and deep reinforcement learning algorithms suffer from computational errors and high computational costs due to the curse of dimensionality.

Method used

A self-organizing map neural network (SOM) combined with a multi-agent deep deterministic policy gradient (MADDPG) algorithm is used to reduce the dimensionality of the input space, optimize the deep reinforcement learning algorithm, and coordinate the voltage control of equipment such as photovoltaic inverters and on-load tap-changing transformers.

Benefits of technology

It effectively reduces voltage fluctuations and voltage over-limit issues, improves the reactive power regulation efficiency of photovoltaic inverters, and enhances the training efficiency of deep reinforcement learning algorithms and the effectiveness of voltage control.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117200213B_ABST
    Figure CN117200213B_ABST
Patent Text Reader

Abstract

A voltage control method for distribution systems based on deep reinforcement learning using self-organizing mapping neural networks includes: S1: Constructing a real-time voltage control model framework for the distribution network; S2: Mathematically modeling the voltage control problem, clarifying the variables in the optimization model corresponding to the variables in the deep reinforcement learning algorithm, and transforming the mathematical optimization model into a Markov decision process; S3: Considering the dimensionality curse of the deep reinforcement learning algorithm, using a self-organizing neural network mapping algorithm to optimize the reinforcement learning algorithm; S4: Clarifying the training method of the deep reinforcement learning network and its combined application with the self-organizing neural network mapping algorithm; S5: Conducting numerical tests on the IEEE 33 distribution network bus reference system with a 24-hour cycle; constructing an IEEE 33 distribution system network for voltage control testing, and solving the optimized model using PyCharm software with a MADDPG testing environment. This invention improves the training and learning efficiency of the distribution network and optimizes its operational efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to a method for optimizing voltage control in a power distribution system. Background Technology

[0002] As the penetration rate of distributed renewable energy (DER, such as photovoltaic power generation and wind power generation) in distributed systems continues to increase, the volatility and uncertainty of renewable energy output power pose a greater challenge to distribution system operators (DSOs) in maintaining voltage within the specified range. This leads to an urgent need to study more advanced voltage / reactive power control (VVC) algorithms.

[0003] Traditionally, local automatic control models have been widely used only in situations where local voltage measurement methods are employed to mitigate voltage deviations. The most mature of these models is droop control, which can be implemented according to the IEEE 1547-2018 standard. However, droop control can lead to infeasible voltage distributions and underutilization of reactive power resources, especially when voltage or reactive power constraints are relaxed. Furthermore, the increasing sparseness of controllable devices connected to distribution networks makes it more difficult for local voltage regulation methods to achieve the goal of minimizing global voltage deviation. Therefore, it is necessary to propose a global optimization model based on the Optimal Power Flow (OPF) model. Depending on the optimization time scale, voltage / reactive power control (VVC) algorithms based on OPF can be divided into two main categories: single-time-scale control and multi-time-scale control. Single-time-scale models primarily focus on the coordination of power electronic voltage regulating devices with short-time-scale response characteristics, such as photovoltaic inverters and static var compensators (SVCs). To further realize online or real-time control strategies, researchers have designed voltage control algorithms based on local measurement information using gradient mapping, double-rising methods, and generalized fast double-rising methods.

[0004] However, reactive power control in partial inverters can increase the number of tap changes triggered by the on-load tap changer (OLTC) and even adversely affect other voltage regulation devices. Traditional control devices typically have limited lifespans, slow response times, and operate on an hourly basis. Therefore, they cannot effectively handle rapid voltage fluctuations caused by rapid changes in distributed renewable energy (DER) power. Photovoltaic inverters, with their speed and flexibility, are ideal voltage regulation devices that can participate in real-time optimization on a minute-by-minute basis.

[0005] Against this backdrop, there is an urgent need for a rational voltage management method to effectively coordinate voltage regulating devices with different response speeds and characteristics in mechanical and power electronic equipment, thereby tapping the potential of multiple devices jointly controlling voltage at multiple time scales. To effectively coordinate voltage regulating devices with different time-scale response characteristics in a power distribution system, a multi-time-scale voltage model has been proposed. Some literature suggests that a two-stage voltage control model does not change the essence of single-time-scale regulation. Building on this, other literature proposes solving for discrete variables such as on-load tap-changing transformers (OLTCs) and inverter continuous reactive power compensation at both long and short time scales.

[0006] The two inherent drawbacks of the voltage / reactive power control (VVC) algorithm based on optimal power flow (OPF) are: (1) non-convexity of power flow constraints. Commonly used methods to characterize power flow constraints include second-order cone relaxation, semi-positive definite relaxation, linearized power flow model ignoring power loss, and linearizing the power flow equations at the point of action using the sensitivity factor matrix. However, these methods inevitably lead to computational errors or even infeasible solutions. (2) Modeling of uncertain variables. By modeling uncertainties using interval numbers or sampling scenarios, the voltage / reactive power control (VVC) model can be transformed into a robust optimization model or a stochastic programming model. This will lead to computational errors or a significant increase in computational load.

[0007] To address the aforementioned limitations, recent research has applied Deep Reinforcement Learning (DRL) to voltage control, and DRL has become an effective alternative to the model-based methods mentioned above. The applications of Deep Reinforcement Learning can be broadly categorized into three types: algorithms applied to discrete action spaces, algorithms applied to continuous action spaces, and algorithms applied to multi-agent systems in real-world environments. For example, Deep Q-Network (DQN) and Dueling-DQN algorithms are used to solve OLTC and CB policies in discrete action spaces. For problems in continuous action spaces, some literature employs the Deep Deterministic Policy Gradient (DDPG) algorithm to solve continuous action problems, effectively avoiding errors introduced by discretization. Furthermore, to handle multi-agent cooperation in practical applications, the Multi-Agent Deep Deterministic Policy Gradient (MADDPG) algorithm can be used, and the Multi-Agent Soft Actor-Critic (MASAC) algorithm can be used to formulate and solve the photovoltaic inverter scheduling situation in multiple sub-networks. Summary of the Invention

[0008] To overcome the dimensionality curse problem in existing deep reinforcement learning (DRL) algorithms, this invention proposes a MADDPG algorithm that combines a self-organizing map neural network for distribution network voltage control.

[0009] This invention employs a self-organizing map neural network (SOM) to represent the state space, preserving the topological structure of the input data. By reducing the dimensionality of the input space through SOM, it approximates a gradually changing space. Combined with the MADDPG algorithm, this enables the agent to efficiently learn the optimal policy while mitigating the effects of the dimensionality curse. The dimensionality reduction through SOM significantly improves the training efficiency of the MADDPG algorithm and optimizes the operation strategy of voltage regulating equipment in the distribution network. While maintaining the effectiveness of the distribution network voltage control algorithm, it also optimizes and enhances existing deep reinforcement learning algorithms.

[0010] To achieve the above objectives, the technical solution of the present invention is as follows:

[0011] A distributed power grid voltage control method based on a model-assisted deep reinforcement learning algorithm includes the following steps:

[0012] S1: Construct a real-time voltage control model framework for the power distribution network;

[0013] S2: To mathematically model the voltage control problem, clarify the variables in the optimization model that correspond to the variables in the deep reinforcement learning algorithm, and transform the mathematical optimization model into a Markov decision process.

[0014] S3: Considering the dimensionality curse of deep reinforcement learning algorithms, the self-organizing neural network mapping algorithm is used to optimize the reinforcement learning algorithm.

[0015] S4: Clarify the training methods for deep reinforcement learning networks and their combined application with self-organizing neural network mapping algorithms.

[0016] S5: Numerical tests are conducted on the IEEE 33 distribution network bus reference system, with a 24-hour cycle. A distribution system network based on IEEE 33 is constructed for voltage control testing, and the optimized model is solved using PyCharm software with the MADDPG testing environment.

[0017] Furthermore, in step S1, the specific process of constructing the real-time voltage control model framework includes:

[0018] S1-1: The MADDPG algorithm is adopted as the main framework of the real-time voltage control model. Based on the optimal gear configuration of OLTC and CBs, the gear status of each hour in a working day is defined and used as part of the state input in the algorithm framework.

[0019] S1-2: Divide the time period into n time intervals within each hour of the operating day. Within the current time interval, combine the optimal range status information of OLTC and CBs in the state space to perform reactive power regulation on the photovoltaic inverter. This controls rapid voltage fluctuations and achieves effective voltage regulation.

[0020] Furthermore, in step S2, the specific definitions of the Markov triples in the voltage control mathematical optimization model and the deep reinforcement learning algorithm are as follows:

[0021] The power flow model of the distribution network is an important component of the algorithm environment. The operating state of the distribution system can be obtained through power flow calculation. Solving the power flow model can generate a large amount of system data for training. This model can be represented as:

[0022]

[0023] P i =P RES,i -P L,i (2)

[0024] Q i =Q RES,i +Q CBs,i -Q L,i (3)

[0025] In the formula, Ω represents the set of all branch institutions in the distribution network; i and j are the input and output nodes of branch ij, respectively; P ij Q ij P represents the active and reactive power of branch ij; i and Q i Z represents the active power and reactive power injected into node i, respectively; ij and B ij These are the resistance and reactance of branch ij, respectively; δ ij P represents the phase angle difference between nodes i and j; RES,i The active power injected into the renewable energy generator at node i; Q RES,i and Q CBs,i P represents the reactive power injected by the renewable energy generator at node i and CB, respectively; L,i and Q L,i These represent the active and reactive power of the load at node i, respectively; v i It is the voltage amplitude at node i.

[0026] The voltage control model, based on the known states of the OLTC and CBs at time t, solves for the optimal output strategy of the photovoltaic inverter in each time interval. For ease of description, the subscript t will be omitted in subsequent modeling. Thus, the voltage control model at the current moment can be described as follows:

[0027]

[0028] subjectto.(1)-(3)

[0029] q g (i,τ)=Q PV,i,τ (5)

[0030]

[0031] In the formula, M is the number of bus nodes in the power distribution system; v0 is the standard voltage; Q represents the upper limit of reactive power generated by the photovoltaic inverter installed on bus i; PV,i,τ It is the reactive power generated by the photovoltaic inverter installed on bus i at time τ;

[0032] The scheduling problem of multiple photovoltaic inverters is described as a Markov Decision Process (MDP). In the MDP, each inverter is modeled as an agent, and voltage control is achieved through the cooperation of multiple agents. The MDP is a quintuple.<S,a,P,R,γ> Its main components include state space, action space, and reward function;

[0033] S2-2: State space: includes the observed states of all photovoltaic agents in the learning environment; therefore, the state o at time τ. τ It can be described by equation (7):

[0034] o τ ={o t,1 ,o τ,2 ,…,o τ,K} (7)

[0035] o τ,k ={P τ,k ,S OLTC ,S CBs ,P L} (8)

[0036] In the formula P τ,k S represents the output of the Kth photovoltaic agent at time τ; OLTC Indicates the gear status of the OLTC during the current time period; S CBs Indicates the gear status of CBS during the current time period; P L The active power of the load;

[0037] S2-3: Action Space: The action in the Markov process is the reactive power of the photovoltaic inverter. This reactive power is a continuous variable, and the action of the Kth photovoltaic agent at time τ is represented as a. τ,k =Qτ,k ;

[0038] S2-4: Reward Function: Taking the Kth photovoltaic agent as an example; the reward R of the Kth photovoltaic agent at time τ. τ,K Includes penalties for voltage deviation violations. τ (i.e., the objective function of the optimization model) and system operating constraints Γ τ , can be represented as:

[0039] R τ =r τ +Γ τ (9)

[0040] Voltage deviation loss r τ The global voltage deviation is represented by equation (10):

[0041]

[0042] In the formula, ζ0 is the penalty coefficient for voltage deviation from the standard voltage;

[0043] The penalties for violations in the voltage management model are divided into inverter reactive power compensation violation penalty Γ1 and voltage violation penalty Γ2; when At that time, Γ1 is a negative number with a large absolute value; the voltage violation penalty Γ2 is expressed as equation (11):

[0044]

[0045] In the formula |*| + ζ1 represents a positive function; ζ1 is the penalty coefficient for the bus voltage exceeding the given upper and lower limits and satisfying |ζ1|>>|ζ0|.

[0046] Furthermore, in step S3, the improvements made by deep reinforcement learning regarding the curse of dimensionality specifically include:

[0047] S3-1: Self-organizing map neural network;

[0048] Self-organizing map neural networks can map high-dimensional or continuous input data into a one-dimensional or two-dimensional space. In their topology, a node represents a cluster. Self-organizing map neural networks perform unsupervised training by making the weights of neurons increasingly closer to the input vector. First, the weights of the neurons in the neural network are initialized. Then, random samples are taken from the dataset as the network's input vectors. The network calculates the Euclidean distance between each neuron and the input vector, using the following formula:

[0049]

[0050] In the formula: n is the number of neurons in the network; the neurons with the smallest distance in the neural network are called the best-matched neurons (BMUs), which can be represented by neural network nodes; self-organizing map neural networks not only need to calculate the distance, but also need to make the neurons as close to the input vector as possible; that is, the weights of the neurons are constantly updated to make the distance smaller; at the same time, the neurons near the BMU are also modified to make them closer to the input vector, so the nodes constantly "pull" the neural network.

[0051] S3-2: Training and updating of self-organizing map neural networks;

[0052] To enable a self-organizing neural network to better fit the input vector, it is necessary to understand the radii of neighboring neurons, i.e., the update pattern of neurons. In a self-organizing map neural network, the radius of a neuron is relatively large at the beginning of training and gradually decreases as training time increases. The formula for calculating the radius is as follows:

[0053]

[0054] λ=k / σ0 (14)

[0055] In the formula: t is the current time, σ0 is the initial radius of the network, and k is the number of iterations; this formula uses the exponential decay method, so that the radius decreases as training increases, thereby achieving the goal; after the radius is determined, the weights of all neurons within the radius are updated; the closer the neuron is to the BMU, the larger the update magnitude, and the update formula is:

[0056] w(t+1)=w(t)=Θ(t)L(t)(i(t)-w(t)) (15)

[0057]

[0058]

[0059] In the formula: L(t) is the learning rate, which is similar to the radius calculation formula and decreases exponentially, gradually decreasing with training iterations; the closer to the BMU, the smaller the distBMU, and the closer this value is to 1, the greater the change in the weight update of the neuron; after multiple training iterations, the neurons on the self-organizing map neural network can represent the topological structure of the input vector.

[0060] Furthermore, in step S4, the deep reinforcement learning algorithm training process combining self-organizing map neural networks specifically includes:

[0061] S4-1: Combined use of SOM-MADDPG;

[0062] By combining the MADDPG algorithm with a self-organizing map neural network, existing state space data is input into the self-organizing map neural network for offline training. This determines the weight vector of each neuron in the self-organizing map neural network, and then the neuron weights are used as new state input data for subsequent MADDPG training. Regardless of the number of input parameters, the agent can learn states with the same number of neurons as in the self-organizing map neural network. Therefore, it can significantly reduce state complexity in high-dimensional state definitions.

[0063] S4-2: The training process of SOM-MADDPG;

[0064] In the SOM-MADDPG training model, the Reply Buffer traverses all possible states in the environment and uses these data as samples for offline training of the self-organizing map neural network; the self-organizing map neural network trains and finds the neuron with the smallest Euclidean distance to the sample data as the best matching unit (BMU); each BMU can represent a class of data, so the weight vector of the BMU can be used as the input state for MADDPG training, which greatly reduces the state size.

[0065] Furthermore, the neural network training process of the MADDPG algorithm is the same as that of the DDPG algorithm; each agent consists of four neural networks: an actor network, a critic network, a target actor network, and a target critic network, each represented by θ. μ θ Q θ μ′ and θ Q′ This means that each agent uses the DDPG algorithm to learn the optimal policy.

[0066] S4-3: Update method of SOM-MADDPG algorithm;

[0067] The specific method for updating the critic network parameters is as follows:

[0068] The parameters of the actor's home network need to be obtained using a control strategy derived from the actor's home network and the detected noise. The gradient is constantly updated;

[0069] a t,τ,k =μ(w t,τ,k |θμ)+Θ t (18)

[0070] μ(w t,τ,k |θ μ ) = arg max μ J π (μ|w t,τ,k ,θ μ (19)

[0071] Where w t,τ,k For the new current state, Θ t To detect noise and enter the current state, the photovoltaic agent selects an action based on the actor's network and the noise detection. During the training process, the photovoltaic agent's neural network needs action information from other agents as an aid to achieve interaction and cooperation among multiple agents. Therefore, the input action of the photovoltaic agent's commentator network is a set of actions of the photovoltaic agent and actions of other agents.

[0072]

[0073] In the formula, N is the sample size;

[0074] The MADDPG algorithm employs a soft update method; it assigns the same weights to the target network and the original network, and updates the parameters of both the target actor / critic network at each step; the update method is as follows:

[0075]

[0076] Where α is the update factor;

[0077] The algorithm's overall workflow involves simulating a power distribution network model as the algorithm's environment, inputting the optimal tap positions of OLTC and CBs as part of the algorithm's state space, and combining this with a self-organizing mapping neural network for learning and optimization.

[0078] Furthermore, in step S5, numerical calculations are performed on the IEEE 33 bus reference system, and optimization solutions are obtained using Python. The effectiveness and reliability of the proposed method are then analyzed.

[0079] S5-1: Constructing the solution tool;

[0080] The algorithm environment is configured using Anaconda3. The configured virtual environment needs to have tensorflow, pytorch, and MADDPG environment packages installed. Programming is performed in the PyCharm software platform with the virtual environment configured. The optimization calculations are performed on a PC with an Intel(R) Core(TM) i5-7200U CPU@2.50GHz processor and 8GB RAM. The software environment is Windows 10 operating system.

[0081] S5-2: Set optimization plans and indicators;

[0082] To clearly compare the effectiveness of the algorithm model built in this paper on voltage fluctuations in the distribution network, two schemes were set up for comparison and observation: (1) MADDPG algorithm without any optimization (2) Distributed MADDPG algorithm combined with SOM.

[0083] Based on the quantitative analysis indicators considered, the reward convergence of the algorithm and the voltage fluctuation of the distribution network under the two schemes are analyzed: (1) the reward convergence of the deep reinforcement learning algorithm; (2) the voltage fluctuation of each node in the distribution network.

[0084] The working principle of this invention is:

[0085] 1. Taking into account the conditions of the distribution network equipment, establish a voltage control model framework for the distribution network.

[0086] 2. Establish a mathematical optimization model for voltage control of the power distribution system, transform the optimization model into a triplet of a Markov decision process, and clarify the definitions of state, action, and reward in deep reinforcement learning.

[0087] 3. Analyze the shortcomings of existing deep reinforcement learning algorithms and optimize and improve them using the self-organizing map neural network method.

[0088] 4. The self-organizing map neural network model is combined with the deep reinforcement learning algorithm to construct an optimized and improved algorithm training model.

[0089] 5. The proposed deep reinforcement learning algorithm can be combined with the OLTC and CBs settings to effectively regulate the reactive power output of photovoltaic inverters, thereby alleviating problems such as voltage fluctuations and voltage over-limits in the power distribution system. Furthermore, the training efficiency of the deep reinforcement learning algorithm can be improved and optimized through a self-organizing mapping neural network.

[0090] The advantages of this invention are:

[0091] 1. It can effectively alleviate problems such as voltage over-limit and voltage fluctuation that frequently occur in power distribution systems with high penetration of new energy sources.

[0092] 2. The photovoltaic inverter is optimized as a Markov game process, solved using the MADDPG algorithm, fully considering the cooperative control behavior of the intelligent inverter on a fast time scale. Furthermore, the reward signal calculated by the data-driven agent model guides the training direction of deep reinforcement learning, effectively regulating the reactive power output of the photovoltaic inverter and achieving online voltage management.

[0093] 3. Using a self-organizing map neural network to represent the state space preserves the topological structure of the input data. Simultaneously, the self-organizing map neural network reduces the dimensionality of the input space, approximating a gradually changing space. The MADDPG algorithm enables the agent to efficiently learn the optimal policy and mitigates the impact of the dimensionality explosion problem.

[0094] 4. By combining self-organizing map neural networks with deep reinforcement learning algorithms, the training efficiency of the algorithm is improved while ensuring its effectiveness, which can effectively alleviate problems such as voltage over-limit. Attached Figure Description

[0095] Figure 1 This is a schematic diagram of the self-organizing mapping neural network structure of the present invention.

[0096] Figure 2 This is a schematic diagram of the training process of the self-organizing mapping neural network of the present invention.

[0097] Figure 3 This is a schematic diagram of the SOM-MADDPG training model structure of the present invention.

[0098] Figure 4 This is a schematic diagram of the overall workflow of the distribution network voltage control optimization model.

[0099] Figure 5 This is a schematic diagram of the power distribution system structure of the present invention.

[0100] Figure 6 This is a schematic diagram of the load demand and photovoltaic output of the power distribution network.

[0101] Figure 7 This is the voltage status of each node in the IEEE 33 distribution network.

[0102] Figure 8 This is a schematic diagram illustrating the reward convergence of the optimized model using only the MADDPG algorithm.

[0103] Figure 9 This is a schematic diagram illustrating the reward convergence of the optimized model using the SOM-MADDPG algorithm.

[0104] Figure 10(a) and Figure 10(b) are schematic diagrams of the voltage distribution of each node before optimization and after optimization using the algorithm of this invention. Figure 10(a) shows the voltage amplitude of each node at 7:00, and Figure 10(b) shows the voltage amplitude of each node at 20:00. Specific implementation methods

[0105] The invention will now be further described with reference to the accompanying drawings.

[0106] Reference Figures 1-9 A voltage control method for power distribution systems based on deep reinforcement learning using self-organizing map neural networks includes the following steps:

[0107] S1: Construct a real-time voltage control model framework for the power distribution network;

[0108] S2: To mathematically model the voltage control problem, clarify the variables in the optimization model that correspond to the variables in the deep reinforcement learning algorithm, and transform the mathematical optimization model into a Markov decision process.

[0109] S3: Considering the dimensionality curse of deep reinforcement learning algorithms, the self-organizing neural network mapping algorithm is used to optimize the reinforcement learning algorithm.

[0110] S4: Clarify the training methods for deep reinforcement learning networks and their combined application with self-organizing neural network mapping algorithms.

[0111] S5: Numerical tests are conducted on the IEEE 33 distribution network bus reference system, with a 24-hour cycle. A distribution system network based on IEEE 33 is constructed for voltage control testing, and the optimized model is solved using PyCharm software with the MADDPG testing environment.

[0112] Furthermore, in step S1, the specific process of constructing the real-time voltage control model framework includes:

[0113] S1-1: The MADDPG algorithm is adopted as the main framework of the real-time voltage control model. Based on the optimal gear configuration of OLTC and CBs, the gear status of each hour in a working day is defined and used as part of the state input in the algorithm framework.

[0114] S1-2: Divide the time period into n time intervals within each hour of the operating day. Within the current time interval, combine the optimal range status information of OLTC and CBs in the state space to perform reactive power regulation on the photovoltaic inverter. This controls rapid voltage fluctuations and achieves effective voltage regulation.

[0115] Furthermore, in step S2, the specific definitions of the Markov triples in the voltage control mathematical optimization model and the deep reinforcement learning algorithm are as follows:

[0116] S2-1: Voltage Control Optimization Model

[0117] The power flow model of the distribution network is an important component of the algorithm environment. The operating state of the distribution system can be obtained through power flow calculation. Solving the power flow model can generate a large amount of system data for training. This model can be represented as:

[0118]

[0119] P i =P RES,i -P L,i (2)

[0120] Q i =QRES,i +Q CBs,i -Q L,i (3)

[0121] In the formula, Ω represents the set of all branch institutions in the distribution network; i and j are the input and output nodes of branch ij, respectively; P ij Q ij P represents the active and reactive power of branch ij; i and Q i Z represents the active power and reactive power injected into node i, respectively; ij and B ij These are the resistance and reactance of branch ij, respectively; δ ij P represents the phase angle difference between nodes i and j; RES,i The active power injected into the renewable energy generator at node i; Q RES,i and Q CBs,i P represents the reactive power injected by the renewable energy generator at node i and CB, respectively; L,i and Q L,i These represent the active and reactive power of the load at node i, respectively; v i It is the voltage amplitude at node i.

[0122] The voltage control model, based on the known states of the OLTC and CBs at time t, solves for the optimal output strategy of the photovoltaic inverter in each time interval. For ease of description, the subscript t will be omitted in subsequent modeling. Thus, the voltage control model at the current moment can be described as follows:

[0123]

[0124] subjectto.(1)-(3)

[0125] q g (i,τ)=Q PV,i,τ (5)

[0126]

[0127] In the formula, M is the number of bus nodes in the power distribution system; v0 is the standard voltage; Q represents the upper limit of reactive power generated by the photovoltaic inverter installed on bus i; PV,i,τ It is the reactive power generated by the photovoltaic inverter installed on bus i at time τ;

[0128] The scheduling problem of multiple photovoltaic inverters is described as a Markov Decision Process (MDP). In the MDP, each inverter is modeled as an agent, and voltage control is achieved through the cooperation of multiple agents. The MDP is a quintuple.<S,a,P,R,γ> Its main components include state space, action space, and reward function;

[0129] S2-2: State space: includes the observed states of all photovoltaic agents in the learning environment; therefore, the state o at time τ. τ It can be described by equation (7):

[0130] o τ ={o τ,1 ,o τ,2 ,…,o τ,K} (7)

[0131] o τ,k ={P τ,k ,S OLTC ,S CBs ,P L} (8)

[0132] In the formula P τ,k S represents the output of the Kth photovoltaic agent at time τ; OLTC Indicates the gear status of the OLTC during the current time period; S CBs Indicates the gear status of CBS during the current time period; P L The active power of the load;

[0133] S2-3: Action Space: The action in the Markov process is the reactive power of the photovoltaic inverter. This reactive power is a continuous variable, and the action of the Kth photovoltaic agent at time τ is represented as a. τ,k =Q τ,k ;

[0134] S2-4: Reward Function: Taking the Kth photovoltaic agent as an example; the reward R of the Kth photovoltaic agent at time τ. τ,K Includes penalties for voltage deviation violations. τ (i.e., the objective function of the optimization model) and system operating constraints Γ τ , can be represented as:

[0135] R τ =r τ +Γ τ (9)

[0136] Voltage deviation loss r τ The global voltage deviation is represented by equation (10):

[0137]

[0138] In the formula, ζ0 is the penalty coefficient for voltage deviation from the standard voltage;

[0139] The penalties for violations in the voltage management model are divided into inverter reactive power compensation violation penalty Γ1 and voltage violation penalty Γ2; when At that time, Γ1 is a negative number with a large absolute value; the voltage violation penalty Γ2 is expressed as equation (11):

[0140]

[0141] In the formula |*| + ζ1 represents a positive function; ζ1 is the penalty coefficient for the bus voltage exceeding the given upper and lower limits and satisfying |ζ1|>>|ζ0|.

[0142] Furthermore, in step S3, the improvements made by deep reinforcement learning regarding the curse of dimensionality specifically include:

[0143] S3-1: Self-organizing map neural network;

[0144] Self-organizing map neural networks can map high-dimensional or continuous input data into a one-dimensional or two-dimensional space. In their topology, a node represents a cluster. Self-organizing map neural networks perform unsupervised training by making the weights of neurons increasingly closer to the input vector. First, the weights of the neurons in the neural network are initialized. Then, random samples are taken from the dataset as the network's input vectors. The network calculates the Euclidean distance between each neuron and the input vector, using the following formula:

[0145]

[0146] In the formula: n is the number of neurons in the network; the neurons with the smallest distance in the neural network are called the best-matched neurons (BMUs), which can be represented by neural network nodes; self-organizing map neural networks not only need to calculate the distance, but also need to make the neurons as close to the input vector as possible; that is, the weights of the neurons are constantly updated to make the distance smaller; at the same time, the neurons near the BMU are also modified to make them closer to the input vector, so the nodes constantly "pull" the neural network.

[0147] S3-2: Training and updating of self-organizing map neural networks;

[0148] To enable a self-organizing neural network to better fit the input vector, it is necessary to understand the radii of neighboring neurons, i.e., the update pattern of neurons. In a self-organizing map neural network, the radius of a neuron is relatively large at the beginning of training and gradually decreases as training time increases. The formula for calculating the radius is as follows:

[0149]

[0150] λ=k / σ0 (14)

[0151] In the formula: t is the current time, σ0 is the initial radius of the network, and k is the number of iterations; this formula uses the exponential decay method, so that the radius decreases as training increases, thereby achieving the goal; after the radius is determined, the weights of all neurons within the radius are updated; the closer the neuron is to the BMU, the larger the update magnitude, and the update formula is:

[0152] w(t+1)=w(t)=Θ(t)L(t)(i(t)-w(t)) (15)

[0153]

[0154]

[0155] In the formula: L(t) is the learning rate, which is similar to the radius calculation formula and decreases exponentially, gradually decreasing with training iterations; the closer to the BMU, the smaller the distBMU, and the closer this value is to 1, the greater the change in the weight update of the neuron; after multiple training iterations, the neurons on the self-organizing map neural network can represent the topological structure of the input vector.

[0156] Furthermore, in step S4, the deep reinforcement learning algorithm training process combining self-organizing map neural networks specifically includes:

[0157] S4-1: Combined use of SOM-MADDPG;

[0158] Combining the MADDPG algorithm with a self-organizing map neural network (SOM-MADDPG) allows existing state space data to be input into the SOM-MADDPG for offline training. This determines the weight vector of each neuron in the SOM-MADDPG, and these neuron weights are then used as new state input data for subsequent MADDPG training. Regardless of the number of input parameters, the agent can learn states with the same number of neurons as the SOM-MADDPG network. Therefore, it significantly reduces state complexity in high-dimensional state definitions. The SOM-MADDPG training model is as follows: Figure 3 As shown.

[0159] S4-2: The training process of SOM-MADDPG;

[0160] In the SOM-MADDPG training model, the Reply Buffer traverses all possible states in the environment and uses these data as samples for offline training of the self-organizing map neural network; the self-organizing map neural network trains and finds the neuron with the smallest Euclidean distance to the sample data as the best matching unit (BMU); each BMU can represent a class of data, so the weight vector of the BMU can be used as the input state for MADDPG training, which greatly reduces the state size.

[0161] Furthermore, the neural network training process of the MADDPG algorithm is the same as that of the DDPG algorithm; each agent consists of four neural networks: an actor network, a critic network, a target actor network, and a target critic network, each represented by θ. μ θ Q θ μ′ and θ Q′ This means that each agent uses the DDPG algorithm to learn the optimal policy.

[0162] S4-3: Update method of SOM-MADDPG algorithm;

[0163] The specific method for updating the critic network parameters is as follows:

[0164] The parameters of the actor's home network need to be obtained using a control strategy derived from the actor's home network and the detected noise. The gradient is constantly updated;

[0165] a t,τ,k =μ(w t,τ,k |θ μ )+Θ t (18)

[0166] μ(w t,τ,k |θ μ ) = arg max μ J π (μ|w t,τ,k ,θ μ (19)

[0167] Where w t,τ,k For the new current state, Θ t To detect noise and enter the current state, the photovoltaic agent selects an action based on the actor's network and the noise detection. During the training process, the photovoltaic agent's neural network needs action information from other agents as an aid to achieve interaction and cooperation among multiple agents. Therefore, the input action of the photovoltaic agent's commentator network is a set of actions of the photovoltaic agent and actions of other agents.

[0168]

[0169] In the formula, N is the sample size;

[0170] The MADDPG algorithm employs a soft update method; it assigns the same weights to the target network and the original network, and updates the parameters of both the target actor / critic network at each step; the update method is as follows:

[0171]

[0172] Where α is the update factor;

[0173] The algorithm is simulated using a distribution network model as the environment. The optimal tap position strategies of OLTC and CBs are input into the algorithm's state space, and a self-organizing map neural network is used for learning and optimization. The overall workflow of this algorithm is as follows: Figure 4 As shown.

[0174] Furthermore, in step S5, numerical calculations are performed on the IEEE 33 bus reference system, and optimization solutions are obtained using Python. The effectiveness and reliability of the proposed method are then analyzed.

[0175] Furthermore, in step S5, a specific example is as follows:

[0176] (1) Parameter settings: Photovoltaic modules are installed on buses 7, 13, 24, and 27 of the IEEE 33-busline; 5 sets of capacitors are installed on bus 25; and the OLTC is installed between buses 1 and 2. Figure 5 As shown. The capacity and load of the four photovoltaic units are as follows. Figure 6 As shown. Each tap changer (CB) has a daily maximum of 5 actions, with 5 levels, each level being 0.06 MVar, for a total capacity of 0.3 MVar. The adjustable ratio of the OLTC is 0.95 pu-1.05 pu, with 11 adjustment levels for the tap changer. The daily maximum number of OLTC actions is set to 4. In our tests, to match the availability of real-world data, each time period t is one hour, and each interval τ is set to one minute. Power flow calculations in the distribution network environment were performed using PyPower, and the framework of the proposed algorithm model was built and trained using Python in PyCharm.

[0177] (2) Due to the increase in the number of agents, the dimensionality of environmental information and state input data also increases significantly, leading to a decrease in the training speed and an increase in the training difficulty of the MADDPG algorithm. Without a self-organizing map neural network for training, MADDPG needs to traverse every possible scenario. All possible scenarios include the output of the photovoltaic inverter in each time interval over T time intervals. There are many possible scenarios, and the convergence speed of the agent's reward is slow in each possible scenario. Because global information needs to be considered during training, the amount of information is large, which slows down the training speed of the MADDPG algorithm, and may even make training difficult. Therefore, we combine the MADDPG algorithm with a self-organizing map neural network to significantly reduce the amount of state space, thereby alleviating the dimensionality curse and improving training efficiency.

[0178] To enable those skilled in the art to better understand the present invention, two cases are provided for comparative analysis:

[0179] Case 1: Using only the MADDPG algorithm for voltage control optimization scheduling in a distribution network environment;

[0180] Case 2: Optimizing the scheduling of photovoltaic inverters using the SOM-MADDPG algorithm;

[0181] To enable those skilled in the art to better understand the present invention, the following description is provided for the setup of the two examples:

[0182] Considering the long training time required using only the MADDPG algorithm, this case study compares the training time from 9:00 to 10:00 AM. Both cases are conducted in a distribution network environment (the load demand and photovoltaic output in the distribution network are as follows). Figure 6 Training was conducted under the same conditions (as shown), time, OLTC, and CBs configuration. Based on the distribution network over-limit situation before optimization, it was found that the over-limit situations were mainly concentrated between 5:00-8:00 and 18:00-23:00, with the most severe over-limit situations occurring at 7:00 and 20:00. Therefore, the optimization effect of the proposed algorithm was observed at 7:00 and 20:00. By comparing the voltage situation of each node before optimization, the effectiveness of the proposed algorithm was verified.

[0183] The convergence of rewards during the training process of reinforcement learning algorithms was compared in different cases. The results show that: 1) In the case using only the MADDPG algorithm, since no boosting method was used, each training round lasted about 3 hours. Therefore, iterating through all possible scenarios was time-consuming. Considering the accumulation of memory during the algorithm training process, if the computing device's memory is insufficient, training may be interrupted or incomplete; 2) In the case using the SOM+MADDPG algorithm, due to the dimensionality reduction effect of SOM, the training speed of the improved algorithm is faster than that of case 1, and the convergence speed is also faster; 3) After optimization using the algorithm of this invention, the voltage of each node in the IEEE 33 power distribution system was effectively reduced, keeping the voltage of each node within the effective voltage range of 0.95 pu-1.05 pu.

[0184] Case analysis will be conducted based on two different cases (Case 1 is shown below). Figure 8 See Case 2 Figure 9 Figures 10(a) and 10(b)).

[0185] Comparing the convergence performance of the two algorithms reveals that, under identical conditions regarding distribution system structure, time, OLTC, and CBS configuration, the MADDPG algorithm in Case 1 exhibits more significant reward fluctuations and only achieves convergence after more than 4000 training steps. In contrast, the SOM+MADDPG algorithm in Case 2 shows weaker reward fluctuations and achieves convergence around 3500 training steps, indicating a faster convergence speed. Furthermore, comparing the final convergence of rewards in the two cases reveals that the reward in Case 1 stabilizes at approximately -1.05, while the reward in Case 2 stabilizes at approximately -0.75, demonstrating the superior convergence performance of the SOM+MADDPG algorithm.

[0186] Comparing the voltage conditions of each node before and after optimization using the algorithm of this invention reveals that, before optimization, nearly half of the nodes in the IEEE 33 power distribution system exhibited voltage exceedance issues (e.g., Figure 7As shown in Figures 10(a) and 10(b), the overall voltage fluctuation range is between 0.85 and 1.00 pu, with significant deviations from the lower limit. After adopting the algorithm of this invention, the overall voltage of the distribution system is within the standard range of 0.95-1.05 pu (as shown in Figures 10(a) and 10(b)), and as training progresses, the voltage of each node approaches the standard voltage of 1.0 pu. Comparing the voltage situation at 7:00 and 20:00, it can be found that the voltage deviation at 20:00 is more severe. Although there is some improvement after 2000 training cycles, it is still relatively close to the lower limit of 0.95 pu. As training progresses, the voltage gradually tends towards the standard voltage of 1.0 pu. This indicates that the algorithm proposed in this invention can effectively alleviate the voltage deviation problem that easily occurs in the distribution network, enabling the distribution system to maintain good stability even with the continuous increase in the penetration rate of new energy sources.

[0187] Therefore, based on the Multi-Agent Deep Deterministic Policy Gradient (MADDPG) algorithm and combined with the Self-Organizing Map Neural Network (SOM) algorithm, the voltage control model of the power distribution system can be optimized and solved. Under the optimal configuration of existing OLTC and CBs, the reactive power output of the photovoltaic inverter in the power distribution system can be optimized and adjusted, which can effectively alleviate the voltage over-limit situation in the power distribution system and improve the stability of the power distribution system.

[0188] In summary, this paper studies voltage control optimization scheduling in distribution networks by combining self-organizing map neural networks (SOMs) and deep reinforcement learning algorithms. SOMs are used to reduce the dimensionality of the state space in the deep reinforcement learning algorithm, resulting in a dimensionality-reduced state space. Finally, a distribution network voltage optimization model based on SOMs and deep reinforcement learning is proposed. The proposed model simultaneously considers the dimensionality curse and low training efficiency of deep reinforcement learning. The effectiveness of the proposed model is verified through case demonstrations and parameter setting analysis.

[0189] In this specification, the illustrative descriptions of the invention are not necessarily directed at the same embodiments or examples. Those skilled in the art can combine and integrate the different embodiments or examples described in this specification. Furthermore, the content described in the embodiments of this specification is merely an enumeration of implementation forms of the inventive concept, and the scope of protection of the invention should not be regarded as limited to the specific forms stated in the embodiments. The scope of protection of the invention also includes equivalent technical means that can be conceived by those skilled in the art based on the inventive concept.