A power distribution network multi-agent collaborative voltage control method, system, device and medium for a distributed multi-energy system
By configuring intelligent agents for distribution network nodes, assessing the grid-connectable photovoltaic capacity, and utilizing multi-agent collaborative decision-making to adjust reactive and active power, the problem of independent assessment of grid-connectable photovoltaic capacity and voltage control is solved, realizing proactive prevention and closed-loop control of voltage over-limit.
Patent Information
- Application Number
- CN202610976194.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-07-02
- Publication Date
- 2026-11-20
AI Technical Summary
In existing technologies, the assessment of grid-connectable photovoltaic capacity and voltage control are independent of each other. The assessment results of grid-connectable photovoltaic capacity do not incorporate voltage control, which makes it impossible to detect the extent to which a node is approaching its limit before the node voltage exceeds the limit, and thus impossible to proactively prevent voltage overruns.
Each node in the distribution network connected to adjustable resources is configured with an agent. Each agent observes the node's operating status and assesses the photovoltaic capacity that each node can access while meeting voltage safety constraints. Through centralized training and distributed execution, multi-agent collaborative decision-making utilizes safety margin indicators and reinforcement learning output actions to adjust the reactive and active power of the node to prevent voltage exceedance.
It enables the detection of the degree to which a node is approaching its limit before the node voltage exceeds the limit, and takes proactive preventative measures. This overcomes the problem of the independent nature of photovoltaic grid-connectable capacity assessment and voltage control, and forms a closed loop between photovoltaic grid-connectable capacity assessment and node voltage control.
Smart Images

Figure CN123144089A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of voltage control technology for distribution networks, specifically to a method, system, device, and medium for multi-agent collaborative voltage control of distribution networks for distributed multi-energy systems. Background Technology
[0002] With the large-scale integration of distributed photovoltaic, energy storage, and electric vehicle charging loads into the distribution network, voltage rises at nodes and poses a risk of overvoltage during periods of high photovoltaic power generation. Voltage control in the distribution network faces challenges from multiple sources of uncertainty.
[0003] In existing technologies, the photovoltaic (PV) capacity of the distribution network is first assessed to obtain the maximum PV capacity that a node can accommodate. Then, voltage control is triggered based on whether the node voltage exceeds its limit. The assessment result of the PV capacity is used for distribution network planning and is independent of the voltage control during distribution network operation. The voltage control is triggered after the node voltage exceeds its limit, and the upper limit of the node's ability to accommodate PV, represented by the PV capacity, is not utilized by the voltage control before the node voltage exceeds its limit. Summary of the Invention
[0004] In view of the above-mentioned problems, the present invention provides a method, system, device and medium for multi-agent cooperative voltage control of distribution networks for distributed multi-energy systems.
[0005] Therefore, the technical problem solved by the present invention is that in the prior art, the assessment of photovoltaic grid-connectable capacity and voltage control are independent of each other. The assessment results of photovoltaic grid-connectable capacity are not incorporated into voltage control. Voltage control cannot sense the degree to which a node is approaching the limit before the node voltage exceeds the limit, and cannot actively prevent voltage exceedance.
[0006] To solve the above-mentioned technical problems, the present invention provides the following technical solution: a multi-agent cooperative voltage control method for distribution networks in distributed multi-energy systems, comprising, Each node in the distribution network that is connected to adjustable resources is configured with an intelligent agent, and each intelligent agent uses the operating state of the node as an observation. The photovoltaic grid-connectable capacity of each node under voltage safety constraints is assessed, and the ratio of the photovoltaic output of the node to the photovoltaic grid-connectable capacity is used as a safety margin index, which is then incorporated into the observation. A multi-agent collaborative decision-making approach with centralized training and distributed execution is adopted. During training, the collaborative value is evaluated by the joint observations and joint actions of multiple agents. During execution, each agent independently outputs an action based on the observations. At each control moment, the reactive power and active power injected into the distribution network by the node are changed by the action, and the voltage of the node is adjusted; the updated safety margin index is obtained from the photovoltaic output of the changed node, and the agent outputs an action based on the updated safety margin index at the next control moment.
[0007] As a preferred embodiment of the multi-agent cooperative voltage control method for distribution networks in a distributed multi-energy system according to the present invention, wherein: the evaluation of the photovoltaic grid-accessible capacity of each node in satisfying voltage security constraints includes: A voltage proxy model is trained to replace power flow calculation based on historical operating data of nodes in the distribution network; Using the voltage and photovoltaic output of the multiple nodes as states, the photovoltaic access capacity of the multiple nodes is output through reinforcement learning; Using the voltage proxy model, based on the current state and the photovoltaic access capacity, the changed voltages of multiple nodes are output, and the changed voltages are used as the next state. The photovoltaic access capacity is evaluated based on whether the voltage of the node in the next state exceeds the voltage safety constraint. The photovoltaic access capacity is adjusted based on the evaluation by the reinforcement learning. When the voltage of multiple nodes does not exceed the voltage safety constraint and the reinforcement learning converges, the photovoltaic access capacity of each node is taken as the photovoltaic access capacity of each node.
[0008] As a preferred embodiment of the multi-agent cooperative voltage control method for distribution networks in distributed multi-energy systems according to the present invention, the method of incorporating the safety margin index into the observation, and the method of each agent independently outputting an action based on the observation, includes: Based on the relationship between the safety margin index and the margin threshold, the reactive power of the photovoltaic inverter and the charging and discharging power of the energy storage of the intelligent agent are adjusted. At the next control moment, the updated safety margin index is obtained from the photovoltaic output of the changed node. Based on the relationship between the updated safety margin index and the margin threshold, the reactive power and energy storage charging and discharging power adjusted by the agent at the next control moment are determined.
[0009] As a preferred embodiment of the multi-agent cooperative voltage control method for distribution networks in a distributed multi-energy system according to the present invention, wherein: the photovoltaic access capacity of multiple nodes output through reinforcement learning includes: When the reinforcement learning outputs the photovoltaic access capacity of multiple nodes, the association weights between nodes are obtained from the states of multiple nodes using an attention mechanism. The states of multiple nodes are weighted according to the association weights, and the weighted states include the states of other nodes associated with the node, so as to obtain the photovoltaic access capacity of each node.
[0010] As a preferred embodiment of the multi-agent cooperative voltage control method for distribution networks in a distributed multi-energy system according to the present invention, wherein: the step of each agent independently outputting an action based on the observation includes: The actions output by each intelligent agent include reactive power regulated by the photovoltaic inverter of the node and charging and discharging power regulated by the energy storage of the node. After the rated capacity of the photovoltaic inverter is occupied by the photovoltaic active power output of the node, the photovoltaic inverter adjusts the reactive power with the unoccupied rated capacity. The charging and discharging power of the energy storage regulation is less than or equal to the upper limit of the energy storage charging and discharging power; when the state of charge of the energy storage reaches the upper limit of the state of charge, the intelligent agent stops the energy storage charging; when the state of charge of the energy storage reaches the lower limit of the state of charge, the intelligent agent stops the energy storage discharging.
[0011] As a preferred embodiment of the multi-agent cooperative voltage control method for distribution networks in a distributed multi-energy system according to the present invention, wherein: during training, the cooperative value is evaluated by the joint observations and joint actions of multiple agents, and during execution, each agent independently outputs an action based on the observations, including: During training, the collaborative value is evaluated by a centralized value network using the joint observations and joint actions of multiple agents. The effect of each agent's action on the voltage of the nodes to which other agents belong is taken into account during evaluation. During execution, each agent outputs an action based solely on its own observations. When evaluating the collaborative value, penalties are imposed for node voltage exceeding the allowable range, for line active power loss, for energy storage charging and discharging power exceeding a power threshold, and for the change in energy storage state of charge exceeding a change threshold in adjacent control moments. These multiple penalties are used to jointly adjust the centralized value network and the agent's policy network.
[0012] As a preferred embodiment of the multi-agent cooperative voltage control method for distribution networks in distributed multi-energy systems according to the present invention, the step of changing the reactive power and active power injected into the distribution network by the node to adjust the voltage of the node includes: Each intelligent agent changes the voltage of the node by adjusting the reactive power at the same control moment, and changes the state of charge of the energy storage and the voltage of the node by adjusting the energy storage charging and discharging power at multiple control moments. When the electrical distance between any two nodes in the distribution network is less than the distance threshold, the two nodes are assigned to the same control area, and each agent uses the node voltage and node load in the control area to which it belongs as the observation.
[0013] This invention provides a multi-agent collaborative voltage control system for distribution networks in distributed multi-energy systems.
[0014] To solve the above technical problems, the present invention provides the following technical solution: a multi-agent cooperative voltage control system for a distribution network oriented towards a distributed multi-energy system, comprising: an agent configuration module, used to configure an agent for each node in the distribution network connected to adjustable resources, wherein each agent uses the operating state of the node as an observation; The safety margin assessment module is used to assess the photovoltaic grid-connectable capacity of each node under the voltage safety constraint, and uses the ratio of the photovoltaic output of the node to the photovoltaic grid-connectable capacity as the safety margin index, and incorporates the safety margin index into the observation. The collaborative decision-making module is used for multi-agent collaborative decision-making using centralized training and distributed execution. During training, the collaborative value is evaluated by the joint observations and joint actions of multiple agents. During execution, each agent independently outputs an action based on the observations. The voltage regulation module is used to change the reactive power and active power injected into the distribution network by the node at each control moment, thereby regulating the voltage of the node; the updated safety margin index is obtained from the changed photovoltaic output of the node, and the agent outputs an action based on the updated safety margin index at the next control moment.
[0015] The present invention provides a computer device, including a memory and a processor. The memory stores a computer program, and the processor executes the computer program to implement the steps of the multi-agent cooperative voltage control method for a distribution network oriented towards a distributed multi-energy system.
[0016] The present invention provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the steps of the aforementioned multi-agent cooperative voltage control method for a distribution network oriented towards a distributed multi-energy system.
[0017] The beneficial effects of this invention are as follows: This invention uses the ratio of the photovoltaic output of the node to the photovoltaic grid-connectable capacity as a safety margin indicator, and incorporates the evaluation result of the photovoltaic grid-connectable capacity into the observation of the intelligent agent. This allows the intelligent agent to know the distance between the current photovoltaic output of the node and the safety boundary before outputting an action, and to sense the degree to which the node is approaching the limit before the node voltage exceeds the limit and make adjustments accordingly. This achieves proactive prevention of voltage exceedance and overcomes the problems in the prior art where the evaluation of photovoltaic grid-connectable capacity and voltage control are independent and voltage control cannot proactively prevent voltage exceedance.
[0018] In this invention, the safety margin index is updated by the changed photovoltaic output at each control moment, and the updated safety margin index governs the action of the agent at the next control moment, so that the assessment of the photovoltaic access capacity and the voltage control of the node form a closed loop.
[0019] This invention employs a centralized training-distributed execution multi-agent collaborative decision-making approach. During training, the collaborative value is evaluated through joint observations and joint actions, allowing each agent's actions to account for their impact on the voltage of other nodes. During execution, each agent independently outputs actions based on its local observations, achieving collaborative voltage control of multiple nodes without relying on a precise physical model of the power distribution network. Attached Figure Description
[0020] To more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0021] Figure 1 The above is a flowchart of a multi-agent cooperative voltage control method for a distribution network in a distributed multi-energy system, provided as an embodiment of the present invention.
[0022] Figure 2 This is a schematic diagram of the structure and equivalent circuit of a distributed multi-energy system distribution network, which is a method for multi-agent cooperative voltage control of a distributed multi-energy system distribution network according to an embodiment of the present invention.
[0023] Figure 3 The present invention provides a 33-node system diagram of a multi-agent cooperative voltage control method for a distribution network in a distributed multi-energy system.
[0024] Figure 4 The voltage diagram of IEEE 33-node uncontrolled operation is provided as an embodiment of the present invention for a multi-agent cooperative voltage control method for a distributed multi-energy system distribution network.
[0025] Figure 5 The IEEE 33-node photovoltaic total active power output curve is provided as an embodiment of the present invention for a multi-agent cooperative voltage control method for distribution networks in distributed multi-energy systems.
[0026] Figure 6 This invention provides a voltage diagram of an IEEE 33-node MADDPG-based multi-agent cooperative voltage control method for a distributed multi-energy system distribution network, as an embodiment of the present invention.
[0027] Figure 7 This invention provides a method for multi-agent cooperative voltage control of a distribution network for a distributed multi-energy system, which includes the removal of the safety margin index voltage diagram.
[0028] Figure 8 This is a typical node voltage curve based on MADDPG control, which is provided as an embodiment of the present invention for a multi-agent cooperative voltage control method for a distribution network in a distributed multi-energy system.
[0029] Figure 9 Line loss diagram of the IEEE 33-node MADDPG algorithm for a multi-agent cooperative voltage control method for a distributed multi-energy system distribution network, provided as an embodiment of the present invention.
[0030] Figure 10 The energy storage charge state diagram is provided in an embodiment of the present invention for a multi-agent cooperative voltage control method for a distribution network in a distributed multi-energy system. Detailed Implementation
[0031] To make the present invention more apparent and understandable, the specific embodiments of the present invention will be described in detail below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of the present invention, not all of them. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the protection scope of the present invention.
[0032] Example 1, referring to Figure 1 This is one embodiment of the present invention, which provides a multi-agent cooperative voltage control method for distribution networks in distributed multi-energy systems, comprising: S1 configures an agent for each node in the distribution network that is connected to adjustable resources, and each agent uses the operating status of the node as an observation.
[0033] It is understandable that the distribution network is connected to distributed photovoltaic, energy storage and electric vehicle charging loads, and the adjustable resources are the photovoltaic and energy storage at the access nodes.
[0034] It should be noted that an intelligent agent is a decision-making unit that independently observes and makes decisions regarding a node connected to photovoltaic and energy storage. An intelligent agent is configured for each node connected to photovoltaic and energy storage in the distribution network, and the voltage regulation of each node is independently handled by the intelligent agent corresponding to that node.
[0035] Furthermore, the power distribution network is divided into multiple control areas, with each smart agent's corresponding node located within one control area. The method of dividing the control areas is explained in step S42.
[0036] It is understandable that the operating state refers to the amount of operation of the control area where the node corresponding to the agent is located at the current control moment. The operating state is divided into two parts: the local operating state within the control area and the photovoltaic output safety boundary information.
[0037] For example, the operating status includes the node voltage amplitude vector, node voltage phase angle vector, node active load vector, node reactive load vector, photovoltaic active power output, photovoltaic reactive power output, energy storage state of charge of the node corresponding to the intelligent agent, and the node's safety margin index.
[0038] It should be noted that the node voltage amplitude vector and the node voltage phase angle vector represent the voltage of the node in the control area at the current control time, the node active load vector and the node reactive load vector represent the load of the node in the control area at the current control time, the photovoltaic active power output and the photovoltaic reactive power output represent the photovoltaic power output of the node corresponding to the intelligent agent at the current control time, the energy storage state of charge represents the remaining energy storage capacity of the node corresponding to the intelligent agent at the current control time, and the meaning of the safety margin index is explained in step S2.
[0039] Furthermore, each agent uses its operational state as an observation, and adjusts the node's voltage based on the observation in subsequent steps.
[0040] Through step S1, each node in the distribution network that is connected to photovoltaic and energy storage is configured with an independent intelligent agent that can make independent observations and decisions. The voltage regulation of each node is completed independently by the corresponding intelligent agent based on local observations, without relying on unified modeling and centralized calculations. This reduces the communication overhead of voltage regulation and eliminates the single point of failure caused by centralized calculations.
[0041] S2, assess the photovoltaic grid-connectable capacity of each node while satisfying voltage safety constraints, and use the ratio of the node's photovoltaic output to its photovoltaic grid-connectable capacity as a safety margin indicator, incorporating the safety margin indicator into the observation.
[0042] It is understandable that the grid-connectable photovoltaic capacity is the maximum photovoltaic installed capacity that a node can accept under the premise of meeting voltage safety constraints. The grid-connectable photovoltaic capacity represents the upper limit of a node's ability to accept photovoltaics.
[0043] It should be noted that the specific method for assessing the photovoltaic grid-connectable capacity of each node in compliance with voltage safety constraints is explained in steps S21 to S24.
[0044] Furthermore, after obtaining the grid-connectable photovoltaic capacity, the ratio of the photovoltaic output of the node to the grid-connectable photovoltaic capacity is used as a safety margin index. The safety margin index is the observation variable that connects the grid-connectable photovoltaic capacity and the voltage control of the node in this method.
[0045] For example, the safety margin index is obtained as follows: in, Let be the safety margin index of node i at time t. Let the real-time photovoltaic active power output of node i at time t be denoted as . Let be the photovoltaic grid capacity available for node i.
[0046] Furthermore, the real-time photovoltaic active power output of node i at time t The photovoltaic capacity that can be connected to the grid at node i is obtained from the photovoltaic measurement at node i. The evaluation results obtained from steps S21 to S24 are based on the real-time active power output of photovoltaic power. Divide by the gridable photovoltaic capacity The safety margin index of node i at time t is obtained. .
[0047] Understandably, the safety margin index The value range is greater than or equal to 0, and the safety margin index is... It characterizes the distance between the current photovoltaic output of a node and the safety boundary.
[0048] Furthermore, regarding safety margin indicators When the value is less than 1, the voltage safety redundancy of the node is sufficient, and the risk of voltage over-limit at the node is low; in terms of safety margin index When the value is greater than or equal to 1 and is closer to 1, the photovoltaic output of the node approaches the safety threshold, and the risk of the node's voltage exceeding the limit is high; in terms of safety margin indicators... When the value is greater than 1, the photovoltaic output of the node exceeds the voltage safety threshold, and the voltage of the node exceeds the limit.
[0049] Furthermore, the safety margin index The observation is incorporated, so that the observation, in addition to the operational status in step S1, also includes a safety margin index. The intelligent agent, in subsequent steps, bases its actions on indicators including safety margin. The observation output action.
[0050] Through step S2, the safety margin index incorporates the assessment results of the gridable photovoltaic capacity of the node into the observation, enabling the agent to know the distance between the current photovoltaic output of the node and the safety boundary before outputting actions. This allows the agent to perceive the risk of exceeding the limit before the node's voltage exceeds the limit, providing a basis for subsequent early adjustment and avoiding voltage exceedance.
[0051] Further, the photovoltaic grid-connectable capacity of each node under voltage safety constraints is assessed, including steps S21 to S24: S21 uses historical operating data of nodes in the distribution network to train a voltage proxy model to replace power flow calculation.
[0052] It is understandable that historical operating data refers to the operating data collected from nodes in the distribution network during historical periods.
[0053] For example, historical operating data is obtained by collecting historical power and voltage data from low-voltage distribution network nodes in the distribution network using smart meters. Historical operating data includes active power output. Active power load reactive power load Node voltage and solar irradiance data .
[0054] in, This refers to the active power output of the node. The active power load of the node. For the reactive power load of the node, For the node voltage of the critical control point (CCP), This is solar irradiance data.
[0055] It should be noted that the voltage proxy model is a model built using deep neural networks to approximate the voltage response of distribution network nodes, replacing power flow calculations.
[0056] Furthermore, the voltage proxy model consists of an input layer, a hidden layer, and an output layer. The input layer contains historical power and voltage data for all nodes; the hidden layer employs a five-layer structure with 256, 512, 1024, 512, and 256 nodes respectively, and the activation function for the hidden layer is a linear rectified activation function; the output layer represents the node voltage distribution. .
[0057] Furthermore, a single neuron in a deep neural network is computed in the following way: Where y is the output of the neuron. This is the i-th input to the neuron. Let be the weight corresponding to the i-th input, b be the bias term, f be the activation function (linear rectified activation function), and n be the number of inputs to the neuron. The sum of the products of each neuron's input and its corresponding weight is the activation function. The linear rectified activation function introduces nonlinearity into the deep neural network.
[0058] Understandably, the voltage proxy model is trained using supervised learning, with the goal of minimizing the mean square error between the actual and predicted voltage values of the nodes.
[0059] Furthermore, the voltage surrogate model calculates the training loss as follows: in, The training loss for the voltage surrogate model, Here, B represents the parameters of the voltage surrogate model, and B represents a batch of samples. This represents the sample size in the batch. An example of critical control point voltage. The voltage estimated by the voltage proxy model. This is the sum of squares of the differences between the actual voltage and the estimated voltage for each sample within the batch.
[0060] Furthermore, using historical operational data as training samples, the training loss is... The minimum value is obtained, resulting in the trained voltage proxy model. After training, the voltage proxy model replaces the power flow calculation and approximates the voltage response of the node using the power and voltage data of the node, which is used in steps S22 to S24 when evaluating the grid-connectable photovoltaic capacity.
[0061] S22 uses the voltage of multiple nodes and the photovoltaic output of multiple nodes as states, and outputs the photovoltaic access capacity of multiple nodes through reinforcement learning.
[0062] Understandably, reinforcement learning, based on the soft actor-critic algorithm and combined with an attention mechanism, assesses the grid-connectable capacity of photovoltaic power generation by observing solar irradiance and voltage data. The soft actor-critic algorithm comprises five neural networks, forming a single policy network. Two commentator networks as well as Two target commentator networks as well as .
[0063] It should be noted that reinforcement learning models the assessment of grid-connectable photovoltaic capacity as a Markov decision process, and models the output of the grid-connectable photovoltaic capacity of multiple nodes as the actions of a Markov decision process.
[0064] Furthermore, at each time step, the state space S consists of the voltages of each node. With the current solar radiation intensity The state space S is represented as follows: Where S is the state space. Let be the voltage of node i at time step t. Let N be the solar radiation intensity of node i at time step t, and N be the total number of nodes.
[0065] Furthermore, action space A represents the photovoltaic (PV) access capacity control decision for each node. The actions in action space A are the PV access capacities of multiple nodes. Action space A is represented as a set of continuous values, as follows: in, For the action space of time step t, Let N be the photovoltaic access capacity control decision for node i at time step t, and N be the total number of nodes.
[0066] It is understandable that the photovoltaic access capacity is the candidate photovoltaic access capacity output by the reinforcement learning during the iteration and applied to the node. After the reinforcement learning converges, the photovoltaic access capacity becomes the photovoltaic access capacity of the node.
[0067] It should be noted that reinforcement learning is set with a reward function R(s,a), which is used to incentivize the agent to meet the voltage constraint and connect as much photovoltaic capacity as possible.
[0068] Furthermore, the reward function is calculated as follows: in, The reward for time step t, This is a penalty coefficient, used to control the severity of penalties when photovoltaic grid connection is insufficient. The maximum photovoltaic capacity that can be connected to each node, where n is the total number of nodes. Let be the photovoltaic access capacity of the i-th node. This represents the sum of the photovoltaic access capacity of each node.
[0069] Furthermore, reinforcement learning outputs the photovoltaic access capacity of multiple nodes based on the state space S. The photovoltaic access capacity is applied to the voltage proxy model through step S23 to obtain the next state.
[0070] S23 uses a voltage proxy model to output the changed voltages of multiple nodes based on the current state and the photovoltaic access capacity, and uses the changed voltages as the next state.
[0071] Understandably, state transitions are achieved through a voltage proxy model.
[0072] Furthermore, using a voltage proxy model, based on the current photovoltaic output, load, and photovoltaic grid connection capacity, the model simulates node voltage changes and outputs the changed voltages at multiple nodes, thereby obtaining the next state. .
[0073] Furthermore, the changed voltage is used as the next state. Next state Step S24 is used to evaluate the photovoltaic grid connection capacity.
[0074] S24. In the next state, evaluate the photovoltaic access capacity by checking whether the voltage of the node exceeds the voltage safety constraint. Adjust the photovoltaic access capacity based on the evaluation through reinforcement learning. When the voltage of multiple nodes does not exceed the voltage safety constraint and the reinforcement learning converges, use the photovoltaic access capacity of each node as the photovoltaic access capacity of each node.
[0075] It is understandable to set a discount factor. The critic network of the soft actor-critic algorithm is updated by minimizing the Q-value error.
[0076] Furthermore, the target Q-value is calculated by first generating the next action through the policy network. : in, and The policy network in the next state The mean and standard deviation of the output actions. The next action is obtained based on sampling from the mean and standard deviation. It is a normal distribution consisting of the mean and standard deviation.
[0077] Furthermore, the target Q value is calculated based on the entropy-regularized Bellman equation: in, Let Q be the target value and r be the reward. d is the discount factor, and d is the termination indicator. For the i-th target critic network in the next state With the next action The output below, To obtain the minimum value of the network outputs of the two target critics, Here is the entropy regularization coefficient. This represents the logarithmic probability of the next action.
[0078] Furthermore, the loss of the critic network is optimized in the following ways: in, For the loss of the i-th commentator network, For the parameters of the i-th critic network, Let be the output of the i-th critic network in state s and action a. Let D be the expected value of the samples in the experience replay data D, where D is the experience replay data.
[0079] Furthermore, the critic network parameters , Update via the following methods: in, For the learning rate of the critic network, The gradient of the loss with respect to the network parameters of the i-th commentator.
[0080] Furthermore, the policy network of the soft actor-critic algorithm is updated by first calculating the policy gradient and then generating actions. Then calculate the logarithmic probability and take the minimum Q value: in, For action The logarithmic probability in state s and , respectively, represent the mean and standard deviation of the actions output by the policy network in state s. The minimum Q-value is the output of the two commentator networks.
[0081] Furthermore, the loss of the policy network is optimized in the following way: in, For the loss of the policy network, Here is the entropy regularization coefficient. For action The logarithmic probability in state s The minimum Q-value is the output of the two commentator networks.
[0082] Furthermore, policy network parameters Update via the following methods: in, The learning rate of the policy network. This represents the gradient of the policy network loss with respect to the policy network parameters.
[0083] Furthermore, the target network parameters are updated via soft updates: in, Let be the parameters of the i-th target critic network. This is the soft update coefficient. Let be the parameters of the i-th commentator network.
[0084] Understandably, after training with the soft actor-critic algorithm, when the voltage of multiple nodes does not exceed the voltage safety constraint and the reinforcement learning converges, the photovoltaic access capacity of each node is taken as the photovoltaic access capacity of each node.
[0085] Through steps S21 to S24, a voltage proxy model is used to replace power flow calculation. By combining observed irradiance and voltage data with the soft actor-commentator algorithm, the photovoltaic grid-connectable capacity of each node is dynamically evaluated without relying on the precise physical model of the distribution network. The photovoltaic grid-connectable capacity serves as the benchmark for the safety margin index in step S2, so that the evaluation of the safety margin index does not depend on the precise physical model of the distribution network and adapts to the random fluctuations of photovoltaic output.
[0086] Furthermore, the photovoltaic access capacity of multiple nodes is output through reinforcement learning, including steps S221 to S222: S221, when outputting the photovoltaic access capacity of multiple nodes using reinforcement learning, uses an attention mechanism to obtain the association weights between nodes from the states of multiple nodes.
[0087] Understandably, the self-attention mechanism calculates weights based on the relationships between queries, keys, and values, and then weights the input features accordingly.
[0088] Furthermore, in the policy network, the input state s is a vector containing features from multiple nodes, and the input state s is represented as follows: Where s is the input state, , to Let be the features of each node, n be the number of nodes, and d be the dimension of the node features. Let be the real matrix space to which the input state belongs.
[0089] Furthermore, through learnable weights , , Map the input to the query vector Q of the current node, the key vector K of each node, and the value vector V of each node. The query vector Q, the key vector K, and the value vector V are obtained as follows: Where Q is the query vector, representing the current node's interest in other nodes; K is the key vector, representing the state characteristics of each node; V is the value vector, containing the actual information of the node; and s is the input state. , , Learnable weights, learnable weights , , .
[0090] Furthermore, feature importance is calculated using a scaled dot product attention mechanism, and the association weights are obtained as follows: Where A is the association weight, Q is the query vector, and K is the key vector. This is the transpose of the key vector. This represents the dot product of the query matrix and the key matrix. Let be the dimension of the key vector. is the scaling factor, which is used to stabilize the weight calculation. softmax is a function that makes the weights satisfy the requirements of non-negativity and normalization.
[0091] S222: Weight the states of multiple nodes according to their association weights. The weighted states include the states of other nodes associated with the node. The photovoltaic access capacity of each node is obtained from the weighted states.
[0092] It is understandable that the value matrix V is weighted and summed according to the association weight A to obtain the dynamically weighted state representation.
[0093] Furthermore, the dynamically weighted state representation Z is obtained as follows: Where Z is the dynamically weighted state representation, A is the association weight, and V is the value vector. This is a weighted summation of value vectors with associated weights.
[0094] Furthermore, to stabilize the training process, the original input s is added to the dynamically weighted state Z, and the final output is obtained through layer normalization. The final output S is obtained as follows: Where S is the final output, s is the original input, Z is the dynamically weighted state representation, and LayerNorm is the layer normalization.
[0095] Furthermore, the dynamic representation S is input into the subsequent policy network to generate the action distribution. Obtained in the following manner: in, For action distribution, and These are the mean and standard deviation of the actions, respectively. It is a normal distribution consisting of the mean and standard deviation.
[0096] Through steps S221 to S222, a self-attention mechanism is used to calculate the association weight between nodes based on the relationship between queries, keys, and values. The state of each node is weighted according to the association weight, so that the photovoltaic accessibility capacity assessment of each node can know the state of other nodes associated with the node, thereby improving the accuracy of photovoltaic accessibility capacity assessment.
[0097] In some embodiments, the critic network employs a state-action attention mechanism. Input state and actions First, the state and action features of each node are extracted independently through a separate fully connected network, as follows: in, As state characteristics, Here, S represents the action feature, and A represents the input state. A fully connected network in a stateful manner. It is a fully connected network for actions.
[0098] Furthermore, the features of the state and action are concatenated and input into the state-action attention layer, as follows: in, The spliced state-action characteristics, As state characteristics, As a characteristic of action, Let be the real matrix space to which the state-action features belong.
[0099] Furthermore, by learning the weight matrix and mapping it to the query, key, and value matrices respectively, we obtain the following: Where Q is the query matrix, K is the key matrix, and V is the value matrix. The spliced state-action characteristics, , , To learn the weight matrix.
[0100] Furthermore, the correlation between state-action pairs is calculated using a scaled dot product attention mechanism, as follows: Where A represents the correlation between state-action pairs, and Q represents the query matrix. This is the transpose of the key matrix. Let be the dimension of the key matrix. Z is the scaling factor, Z is the weighted state-action representation, and V is the value matrix.
[0101] Furthermore, the context vector is residually concatenated with the original input, and the training process is stabilized through layer normalization, resulting in the following: Output represents the output of the residual connections and the normalized output of the layers. Z represents the concatenated state-action features, Z represents the weighted state-action representation, and LayerNorm represents layer normalization.
[0102] Furthermore, the output of the attention layer is fed into the joint processing layer, ultimately outputting the Q-value, which represents the value assessment for a given state-action combination, and is obtained as follows: in, Features of the joint processing layer and For a fully connected network of the joint processing layer, Let Q be the value of Q under state s and action a. Output is the network that outputs the Q-value, and Output is the output after residual connections and layer normalization.
[0103] Understandably, the hidden layers in the critic network's structure utilize a linear rectified activation function.
[0104] Furthermore, after reinforcement learning training, the model outputs the grid-connectable photovoltaic (PV) capacity value for each node. In the PV grid-connectable capacity assessment, the learning rates for the policy network and the commentator network are 0.001 and 0.002, respectively. All policy networks and commentator networks use five hidden layers with the following node numbers: 256, 512, 1024, 512, and 256. The soft actor-commentator algorithm uses a fixed entropy coefficient. And samples with a batch size of 1000.
[0105] S3 employs a multi-agent collaborative decision-making approach with centralized training and distributed execution. During training, the collaborative value is evaluated based on the joint observations and actions of multiple agents. During execution, each agent independently outputs an action based on its observations.
[0106] It is understandable that centralized training-distributed execution is a way of multi-agent collaborative decision-making, where collaborative strategies are learned through centralized value evaluation during training, and each agent makes independent decisions during execution.
[0107] Furthermore, during training, the collaborative value is evaluated by the joint observations and joint actions of multiple agents. The joint observation is the set of observations made by each agent individually, and the joint action is the set of actions taken by each agent individually. The collaborative value represents the overall benefit obtained by multiple agents by taking joint actions under the joint observation.
[0108] Furthermore, during execution, each agent independently outputs an action based on its observations. Each agent uses only its own observations as input and independently outputs the action corresponding to the node. The agents do not rely on centralized evaluation during execution.
[0109] It should be noted that the multi-agent collaborative decision-making is trained using a multi-agent deep deterministic policy gradient algorithm, and the evaluation method of collaborative value and the adjustment method of policy based on collaborative value are explained in steps S37 to S38.
[0110] Furthermore, based on the relationship between the safety margin index and the margin threshold, the reactive power of the photovoltaic inverter and the charging and discharging power of the energy storage are adjusted, including steps S31 to S33: S31, when the safety margin index is less than the margin threshold, the intelligent agent reduces the reactive power of the photovoltaic inverter and the charging and discharging power of the energy storage.
[0111] Understandably, the margin threshold is the threshold for determining whether a node is approaching a voltage limit.
[0112] For example, in some embodiments, the margin threshold is 1. When the margin threshold is 1, a safety margin index of less than 1 indicates that the current photovoltaic output of the node is less than the photovoltaic grid-connectable capacity, the voltage safety redundancy of the node is sufficient, and the risk of the node exceeding the voltage limit is low.
[0113] Furthermore, when the safety margin index is less than the margin threshold, the intelligent agent reduces the reactive power of the photovoltaic inverter and the charging and discharging power of the energy storage, reserving energy storage regulation redundancy.
[0114] S32, when the safety margin index is greater than or equal to the margin threshold, the intelligent agent increases the inductive reactive power output of the photovoltaic inverter and the charging power of the energy storage.
[0115] It is understandable that when the safety margin index is greater than or equal to the margin threshold, the current photovoltaic output of the node is greater than or equal to the photovoltaic grid-connectable capacity, and the photovoltaic output of the node is approaching the safety threshold or exceeding the voltage safety threshold.
[0116] Furthermore, the intelligent agent increases the inductive reactive power output of the photovoltaic inverter and the charging power of the energy storage, thereby coordinating and offsetting the voltage rise effect through the photovoltaic inverter or energy storage.
[0117] S33, at the next control moment, the updated safety margin index is obtained from the photovoltaic output of the changed node. Based on the relationship between the updated safety margin index and the margin threshold, the reactive power and energy storage charging and discharging power adjusted by the agent at the next control moment are determined.
[0118] It is understandable that the photovoltaic output of the node changes after the intelligent agent outputs an action in step S31 or step S32.
[0119] Furthermore, at the next control moment, the updated safety margin index is obtained from the changed photovoltaic output and photovoltaic grid-connected capacity of the node, following step S2.
[0120] Furthermore, based on the relationship between the updated safety margin index and the margin threshold, the reactive power and energy storage charging / discharging power adjusted by the agent at the next control moment are determined. When the updated safety margin index is less than the margin threshold, the agent adjusts according to step S31 at the next control moment; when the updated safety margin index is greater than or equal to the margin threshold, the agent adjusts according to step S32 at the next control moment.
[0121] Through steps S31 to S33, the agent reserves adjustment redundancy when the safety margin index is less than the margin threshold, and increases inductive reactive power and energy storage charging to offset voltage rise when the safety margin index is greater than or equal to the margin threshold. Furthermore, the adjustment for the next control time is determined by the updated safety margin index at each control time, enabling the agent to perceive the risk of voltage exceeding the limit in advance and make adjustments in advance before the voltage exceeds the limit at the node, thereby achieving early prevention of voltage exceeding the limit.
[0122] Furthermore, each agent independently outputs an action based on its observations, including steps S34 to S36: S34, the actions output by each intelligent agent include reactive power regulated by the photovoltaic inverter of the node and charging and discharging power regulated by the energy storage of the node.
[0123] It is understandable that the action space of an intelligent agent is its locally controllable reactive and active resources, specifically including the reactive power regulation output of photovoltaic inverters and the charging and discharging power of energy storage.
[0124] Furthermore, the action is defined as follows: in, Let t be the action of the agent at time t. Let be the photovoltaic reactive power at node i at time t. Let be the active power of energy storage at node i at time t.
[0125] S35, after the rated capacity of the photovoltaic inverter is occupied by the active power output of the photovoltaic node, the photovoltaic inverter adjusts the reactive power with the unoccupied rated capacity.
[0126] It is understandable that the rated capacity of a photovoltaic inverter is the upper limit of its rated apparent power, and the active power and reactive power output by the photovoltaic inverter both occupy the rated capacity.
[0127] Furthermore, the output of the photovoltaic inverter satisfies the following photovoltaic inverter capacity constraints: in, Let t be the photovoltaic active power output of node i. Let be the photovoltaic reactive power at node i at time t. This refers to the upper limit of the rated apparent power of the photovoltaic inverter. The apparent power output of the photovoltaic inverter is constrained to ensure that the total apparent power output of the inverter does not exceed the hardware rating throughout the entire process.
[0128] Furthermore, the reactive power regulated by the photovoltaic inverter satisfies the following photovoltaic reactive power output constraints: in, Let be the photovoltaic reactive power at node i at time t. This represents the absolute value of photovoltaic reactive power. This refers to the upper limit of the rated apparent power of the photovoltaic inverter. Let t be the photovoltaic active power output of node i. The capacity that remains unoccupied after the rated apparent capacity has been occupied by real-time active power output.
[0129] Understandably, the constraints are the upper and lower limits of the reactive power output of the photovoltaic inverter, which are jointly determined by the inverter's rated apparent capacity and real-time active power output. Under the premise of not exceeding the rated apparent capacity, the inverter uses the remaining capacity when the active power output is not at full capacity to perform reactive power regulation and participate in the voltage coordination control of the distribution network nodes.
[0130] S36, the charging and discharging power of energy storage regulation is less than or equal to the upper limit of energy storage charging and discharging power; when the state of charge of energy storage reaches the upper limit of state of charge, the intelligent agent stops charging energy storage; when the state of charge of energy storage reaches the lower limit of state of charge, the intelligent agent stops discharging energy storage.
[0131] It is understandable that the charging and discharging power of energy storage regulation satisfies the following energy storage charging and discharging power constraints: in, Let be the charging and discharging power of the stored energy at time t. The charging and discharging power is positive during charging and negative during discharging. This represents the absolute value of the charging and discharging power. This represents the maximum charging and discharging power of the energy storage.
[0132] Furthermore, the state of charge of the energy storage satisfies the following energy storage state of charge constraints: in, Let be the energy storage charge state of node i at time t. This is the limit of the state of charge. This represents the upper limit of the state of charge.
[0133] Furthermore, when the energy storage reaches its upper limit of state of charge... When the energy storage charge reaches its limit, the intelligent agent stops charging; when the energy storage charge reaches its limit... At that time, the intelligent agent stops storing and discharging energy.
[0134] Through steps S34 to S36, each intelligent agent uses photovoltaic reactive power and energy storage charging and discharging power as actions, and outputs actions under the constraints of photovoltaic inverter capacity, energy storage charging and discharging power, and energy storage state of charge, so that the actions of the intelligent agent do not exceed the adjustable range of photovoltaic inverter and energy storage. Photovoltaic reactive power and energy storage charging and discharging power participate in the reactive power regulation and active power regulation of the node, respectively, and work together to achieve the voltage regulation of the node.
[0135] Furthermore, during training, the collaborative value is evaluated based on joint observations and joint actions of multiple agents, and during execution, each agent independently outputs an action based on the observations, including steps S37 to S38: S37. During training, the collaborative value is evaluated by a centralized value network based on the joint observations and joint actions of multiple agents. The action of each agent is evaluated in terms of its impact on the voltage of the nodes to which other agents belong. During execution, each agent outputs an action based only on its own observations.
[0136] It is understandable that multi-agent collaborative decision-making uses a multi-agent deep deterministic policy gradient algorithm for training, adopts a centralized training-distributed execution mode, and achieves collaborative operation of distributed multi-energy systems through collaborative learning via the multi-agent deep deterministic policy gradient algorithm.
[0137] It should be noted that the reward function of the multi-agent deep deterministic policy gradient algorithm is defined as: in, For strategy The goal, E, is the expectation. Let r(t) be the discount factor, r(t) be the reward at time t, and T be the total number of time steps. Accumulated rewards for discounts.
[0138] Furthermore, in the centralized training phase, the value function takes the joint observations and joint actions of all agents as input to learn the globally optimal cooperative policy. The value function of an agent is defined as follows: in, Let i be the value function of agent i. For the observation of all intelligent agents, For the actions of all intelligent agents, The reward for agent i, Let E be the discount factor and E be the expected value.
[0139] Furthermore, in the distributed execution phase, each agent's policy network takes only its own local observations as input and independently outputs control actions, with action selection employing a deterministic policy: in, For the action of agent i, For deterministic policy functions, For the local observation of agent i, To explore noise.
[0140] Furthermore, the policy network adopts a multi-layer perceptron architecture: in, The policy network output for agent i. For the local observation of agent i, , , For each layer, Let l be the activation function of the l-th layer. It is a linear rectified activation function. The weights of the l-th layer are... This is the bias of the l-th layer.
[0141] Furthermore, the value network adopts a centralized architecture, where each agent has an independent value function network. The value network takes the observation vectors and action values of all agents as input: in, For the value network of agent i, Let m be the observation vector of the m-th agent. Let be the action value of the m-th agent.
[0142] S38, when evaluating collaborative value, imposes penalties for node voltage exceeding the allowable range, penalties for line active power loss, penalties for energy storage charging and discharging power exceeding the power threshold, and penalties for changes in energy storage state of charge exceeding the change threshold in adjacent control moments. Multiple penalties are used to jointly adjust the centralized value network and the agent's policy network.
[0143] It is understandable that the reward function adopts the form that the reward equals the comprehensive operating loss plus the SOC shaping term. The comprehensive operating loss consists of three parts: voltage deviation loss, line active power loss, and energy storage coordination loss.
[0144] Furthermore, the voltage deviation loss is calculated as follows: in, This represents the voltage out-of-bounds penalty at time t. Here, N represents the voltage penalty weighting coefficient, and N represents the set of nodes. The number of nodes in the set. Let be the voltage amplitude of bus i at time t. , These are the lower and upper limits of the permissible voltage, respectively. This refers to the amount exceeding the limit when the voltage is below the lower limit. This represents the amount exceeding the limit when the voltage exceeds the upper limit. In some embodiments, the voltage penalty weighting factor... It is 1.0.
[0145] Furthermore, the active power loss of the line is calculated as follows: in, This represents the penalty for exceeding the line loss limit at time t. This represents the line loss penalty weighting coefficient, where L is the set of lines. The number of lines in the set. Let be the active power loss of line l at time t. In some embodiments, the line loss penalty weighting coefficient is... It is 0.1.
[0146] Furthermore, the energy storage coordination loss is calculated as follows: in, This represents the energy loss at time t. Here, NESS represents the energy storage penalty weighting coefficient. The number of energy storage units, Let be the absolute value of the active power control quantity of energy storage k at time t. Power threshold This refers to the amount by which the active power control quantity for energy storage exceeds the power threshold. In some embodiments, this is the energy storage penalty weighting coefficient. The power threshold is 0.05. The threshold is 0.3, and the energy storage coordination loss is penalized by exceeding the threshold only. Exceeding the threshold Punishment will be imposed at that time.
[0147] Furthermore, the overall operating loss is calculated as follows: Where L(t) represents the total operational loss at time t. For voltage deviation loss, For line active power loss, To coordinate losses in energy storage.
[0148] Furthermore, to enhance energy storage availability and multi-energy storage synergistic regulation capabilities, a SOC shaping reward is introduced, which is calculated as follows: in, The SOC reshaping reward at time t. As a penalty weighting coefficient, Indicates the number of energy storage units. and Let represent the state of charge of the k-th energy storage unit at the current time and the previous time, respectively. The permissible threshold for natural fluctuations in single-step SOC. This refers to the amount by which the change in state of charge exceeds the fluctuation threshold. In some embodiments, the penalty weighting coefficient... The threshold value for single-step SOC natural fluctuation is 2.0. It is 0.05.
[0149] Understandably, SOC shaping rewards only penalize SOC changes that exceed a threshold, while not penalizing normal adjustments within the threshold, thus achieving a balance between control effectiveness and action smoothness.
[0150] Furthermore, the final single-step reward is calculated as follows: Where r(t) is the final single-step reward, and L(t) is the total operating loss. SOC Plastic Surgery Rewards That is, the aforementioned SOC plastic surgery reward .
[0151] Understandably, at each time step, reactive power control is first set according to the action, and steady-state power flow is solved to obtain a new voltage distribution. When the power flow is unsolvable, it is considered a physical default and a penalty or early termination is triggered. The modeling satisfies the engineering hierarchical characteristics of fast reactive power and slow active power. Reactive power is regulated in real time, and active power stored in energy is indirectly improved in voltage quality and coordinated in energy over time through objectives and constraints.
[0152] Furthermore, the multi-agent deep deterministic policy gradient algorithm employs an experience replay mechanism, where the experience replay buffer stores transition samples. The experience replay buffer is represented as follows: Where B is the experience replay buffer. Let the state at time t be... For the action at time t, The reward at time t, The state at time t+1, This refers to the size of the experience playback buffer. In some embodiments, the size of the experience playback buffer... for .
[0153] Furthermore, during training, batches of data are randomly sampled from the experience replay buffer: in, , , , For the sampled batch data, Uniform(B) is the uniform sampling of the experience playback buffer.
[0154] Furthermore, the target network employs a soft update mechanism: in, For the target network parameters, For behavioral network parameters, This refers to the soft update coefficient. In some embodiments, the soft update coefficient... It is 0.1.
[0155] Furthermore, gradient clipping is used to prevent gradient explosion: in, The gradient of the loss with respect to the parameters, Let be the norm of the gradient. This is the gradient clipping threshold. In some embodiments, the gradient clipping threshold... It is 1.0.
[0156] Furthermore, entropy regularization is introduced to encourage exploration: in, To introduce policy loss after entropy regularization, For the original strategy loss, Here is the entropy regularization coefficient. For policy entropy. In some embodiments, the entropy regularization coefficient is... for .
[0157] Through steps S37 to S38, the centralized value network incorporates the impact of each agent's actions on the voltage of other agents' nodes during training, enabling multiple agents to learn the globally optimal cooperative strategy during training. During execution, each agent independently outputs actions based solely on its own local observations, ensuring that cooperative decision-making is independent of the central node and eliminates single-point failures. The network is adjusted by voltage deviation loss, line active power loss, energy storage coordination loss, and SOC shaping reward, enabling multiple agents to coordinate and reduce line active power loss and maintain stable energy storage operation while suppressing node voltage exceedances.
[0158] S4, at each control moment, changes the reactive and active power injected into the distribution network by the node and adjusts the voltage of the node; the updated safety margin index is obtained from the photovoltaic output of the changed node, and the agent outputs an action based on the updated safety margin index at the next control moment.
[0159] It is understandable that at each control moment, the reactive and active power injected into the distribution network by the node is changed by action, thereby regulating the voltage of the node.
[0160] Furthermore, based on the changed photovoltaic output and grid-connected photovoltaic capacity of the nodes, the updated safety margin index is obtained according to step S2. .
[0161] Furthermore, the agent, in the next control time step, bases its actions on the updated safety margin index. Output actions to adjust safety margin indicators It is updated at each control moment and governs the agent's actions at the next control moment.
[0162] Furthermore, by altering the reactive and active power injected into the distribution network by the node, the voltage of the node is regulated, including steps S41 to S42: S41, each agent changes the node voltage by adjusting reactive power within the same control moment, and changes the energy storage state of charge and node voltage by adjusting energy storage charging and discharging power within multiple control moments.
[0163] It is understandable that the modeling satisfies the hierarchical characteristics of engineering, which is fast reactive power and slow reactive power.
[0164] Furthermore, each agent changes the node voltage by adjusting reactive power at the same control moment, with reactive power being adjusted in real time.
[0165] Furthermore, each intelligent agent adjusts the energy storage state of charge and node voltage by regulating the energy storage charging and discharging power at multiple control moments. The active power of energy storage indirectly improves voltage quality and coordinates energy through objectives and constraints on a time scale.
[0166] S42: When the electrical distance between any two nodes in the distribution network is less than the distance threshold, the two nodes are assigned to the same control area. Each agent uses the node voltage and node load in the control area to which it belongs as observations.
[0167] It is understandable that the distribution network is divided into control areas based on electrical distance. Each control area is an independent basic unit for voltage regulation, which includes basic load nodes, photovoltaic-energy storage integrated smart body nodes, and electric vehicle charging load nodes.
[0168] For example, the electrical distance is determined by the voltage-reactive power sensitivity between nodes; the higher the voltage-reactive power sensitivity between two nodes, the smaller the electrical distance between them. In some embodiments, the distance threshold is a value that makes the number of nodes in each control area comparable.
[0169] Furthermore, when the electrical distance between any two nodes in the distribution network is less than the distance threshold, the two nodes are classified into the same control area.
[0170] Furthermore, each agent observes the node voltage and node load within its assigned control region, and the control region serves as an independent basic unit for voltage regulation, with the agent regulating the voltage within the control region.
[0171] Through steps S4 and S41 to S42, the voltage of the node is adjusted by action at each control moment, and the action at the next control moment is governed by the updated safety margin index, so as to realize the early prevention of voltage over-limit; the reactive power is adjusted in real time and the energy storage active power is adjusted indirectly on the time scale, so that fast reactive power and slow active power can coordinately adjust the node voltage on different time scales; the distribution network is divided into control areas by electrical distance, so that each control area is an independent basic unit for voltage regulation, which is adapted to the distributed collaborative control requirements of distributed multi-energy system.
[0172] Example 2, refer to Figures 2-10 This invention provides a method for multi-agent cooperative voltage control of distribution networks for distributed multi-energy systems. To verify the beneficial effects of this invention, scientific demonstration is carried out through experiments.
[0173] An IEEE 33-node distribution network was constructed using distribution network power flow calculation tools as the research object. The structure and equivalent circuit of the IEEE 33-node distribution network are as follows: Figure 2 As shown, the node distribution of the IEEE 33-node distribution network is as follows: Figure 3 As shown, distributed photovoltaic (PV) power, energy storage, and electric vehicle (EV) charging loads are added to the baseline load to construct an operating scenario with multi-source uncertainties. A PV-energy storage integrated device is connected to each of nodes 14, 18, 22, 25, 29, and 33, for a total of 6 sets; an EV charging load is connected to each of nodes 6, 10, and 31, for a total of 3 sets, where node 6 is a residential charging node, and nodes 10 and 31 are public charging nodes. An intelligent agent is configured at each of the 6 nodes connected to the PV-energy storage integrated device.
[0174] Each agent, according to step S1, observes the node voltage, node load, and the corresponding node's photovoltaic active power output, photovoltaic reactive power output, energy storage state of charge, and safety margin index within the control area to which the corresponding node belongs. According to steps S21 to S24, a voltage proxy model is trained using the node's historical operating data, and the photovoltaic grid-connectable capacity of the corresponding node is evaluated using a soft actor-commentator algorithm. According to step S2, the safety margin index of the corresponding node is obtained. According to steps S31 to S33, the relationship between the safety margin index and the margin threshold governs the reactive power and energy storage charging of the corresponding node. Adjustment of discharge power; according to steps S34 to S36, output actions under the constraints of photovoltaic inverter capacity, energy storage charging and discharging power, and energy storage state of charge; according to steps S37 and S38, evaluate the collaborative value through the joint observation and joint actions of multiple agents using the multi-agent deep deterministic strategy gradient algorithm; according to steps S4 and S41 to S42, adjust the voltage of the corresponding node in real time with reactive power at each control moment, adjust the state of charge and node voltage with energy storage charging and discharging power at multiple control moments, and let the updated safety margin index govern the actions at the next control moment.
[0175] The mean absolute error and root mean square error were used as the accuracy evaluation indicators for the voltage surrogate model trained in step S21. The accuracy evaluation results are shown in Table 1.
[0176] Table 1 Comparison of Evaluation Accuracy Indicators
[0177] As shown in Table 1, the average absolute error of the voltage surrogate model is 4.72 kVA and the root mean square error is 5.86 kVA. The voltage surrogate model has a low error level when replacing power flow calculation.
[0178] Without applying control, the voltage distribution across all nodes and throughout the entire simulation period of the IEEE 33-node distribution network is as follows: Figure 4 As shown in the figure. Due to the combined effects of the randomness of distributed photovoltaic power output, the disorderly charging of electric vehicles, and the fluctuations of traditional loads, the voltage of the entire network exhibits an uneven spatial and temporal distribution: during the midday peak of photovoltaic power generation and the off-peak period of system load, the voltage of multiple nodes exceeds the upper limit of 1.05 per unit for the distribution network, and the system is in a critical voltage safety state, posing a risk of overvoltage tripping; during the evening peak of residential load and the concentrated charging of electric vehicles, the voltage of the nodes is lower than the lower limit of 0.95 per unit, resulting in low voltage problems. The active power output variation curves of multiple photovoltaic units in a typical intraday distribution network of the IEEE 33-node distribution network are shown in the figure. Figure 5 As shown, photovoltaic output peaks around noon as solar radiation intensifies, and then gradually declines.
[0179] Under the control of the multi-agent deep deterministic policy gradient algorithm of this embodiment, the intraday evolution of each bus voltage is as follows: Figure 6 As shown, the voltage curve of the node remains near the allowable range. Under the method of this embodiment, the system average voltage is 0.9917 per unit. The global minimum voltage and maximum voltage across the entire node range over the entire time period are 0.9674 per unit and 1.0124 per unit, respectively, both within the allowable range of 0.95 to 1.05 per unit. The voltage compliance rate is 100%, and the low-voltage over-limit rate and high-voltage over-limit rate are both 0.
[0180] Table 2 shows a comparison of the core indicators under the control of the method in this embodiment and without the application of control.
[0181] Table 2 Comparison of core indicators in controlled / uncontrolled scenarios
[0182] As shown in Table 2, after the method of this embodiment is used for control, the voltage fluctuation range of the entire distribution network is reduced from 0.9397~1.0670 per unit value to 0.9674~1.0124 per unit value, the fluctuation amplitude is reduced by 64.64%, the maximum voltage deviation of the node is reduced by 51.36%, the mean absolute error and root mean square error are reduced by 59.46% and 58.07% respectively, and all core indicators are optimized.
[0183] To verify the role of the safety margin index, it is removed in this embodiment. After removing the safety margin index, the agent's observations do not include it, and the agent is unaware of the distance between the photovoltaic output of the corresponding node and the safety boundary before outputting an action. The voltage distribution of the distribution network throughout the entire time period after removing the safety margin index is as follows: Figure 7 As shown in Table 3, compared to the control scheme that retains the safety margin indicator, removing the safety margin indicator relaxes the voltage constraint boundary of the control strategy, increases the overall voltage fluctuation amplitude, reduces the smoothness of the voltage distribution throughout the time period, and increases the voltage deviation between nodes. A comparison of the core indicators of removing and retaining the safety margin indicator is shown in Table 3.
[0184] Table 3 Comparison of core indicators in scenarios where safety margin indicators are removed versus those where they are retained.
[0185] As shown in Table 3, compared to the scenario where the safety margin indicator is removed, the voltage fluctuation range of the entire network converges from 0.9537~1.0227 per unit value to 0.9674~1.0124 per unit value in the scenario where the safety margin indicator is retained. The maximum voltage deviation, mean absolute error, and root mean square error of nodes are reduced by 29.56%, 4.62%, and 13.03%, respectively. The voltage compliance rate is 100% in both scenarios. The method in this embodiment sacrifices a slight change in the average voltage value to improve voltage quality, and the safety margin indicator plays a role in improving voltage control performance.
[0186] The 24-hour voltage variation curves of typical nodes in the IEEE 33-node distribution network under the control of the method in this embodiment are shown below. Figure 8 As shown. The first-end residential household charging node 6, the middle photovoltaic-energy storage integrated device node 22, and the last-end centralized electric vehicle charging station node 31 were selected as the verification objects. Under the control of the method in this embodiment, the voltages of nodes 6, 22, and 31 converged within the operating range of 0.98 per unit value to 1.02 per unit value throughout the entire process.
[0187] The time series of active power loss of each line under the control of the method in this embodiment is as follows: Figure 9 As shown. The system average bus loss is 0.0844 MW, the average line loss is 0.00264 MW, and the bus loss varies in timing from 0.0321 MW to 0.1311 MW.
[0188] The time-series evolution of the state of charge of multiple energy storage units during a typical day is as follows: Figure 10 As shown, the state of charge (SPC) of energy storage at each node exhibits a differentiated distribution depending on photovoltaic output, voltage level, and spatial location. The temporal and spatial distributions of the SPC match the physical characteristics of the distribution network.
[0189] Example 3 is an embodiment of the present invention, which provides a multi-agent cooperative voltage control system for distribution networks in distributed multi-energy systems, comprising: The agent configuration module is used to configure an agent for each node in the distribution network that is connected to adjustable resources. Each agent uses the operating status of the node as an observation. The safety margin assessment module is used to assess the photovoltaic grid-connectable capacity of each node while meeting voltage safety constraints. The ratio of the photovoltaic output of the node to the photovoltaic grid-connectable capacity is used as the safety margin index, and the safety margin index is incorporated into the observation. The collaborative decision-making module is used for multi-agent collaborative decision-making using centralized training and distributed execution. During training, the collaborative value is evaluated by the joint observations and joint actions of multiple agents. During execution, each agent outputs an action independently based on the observations. The voltage regulation module is used to adjust the voltage of the node by changing the reactive power and active power injected into the distribution network at each control moment. The updated safety margin index is obtained from the photovoltaic output of the node after the change. The agent outputs an action based on the updated safety margin index at the next control moment.
[0190] This embodiment also provides an electronic device applicable to a multi-agent cooperative voltage control method for a distribution network in a distributed multi-energy system, comprising: a memory and a processor; the memory is used to store computer-executable instructions, and the processor is used to execute the computer-executable instructions to implement the multi-agent cooperative voltage control method for a distribution network in a distributed multi-energy system as proposed in the above embodiment.
[0191] This embodiment also provides a storage medium storing a computer program that, when executed by a processor, implements a multi-agent cooperative voltage control method for a distribution network oriented towards a distributed multi-energy system, as proposed in the above embodiment.
[0192] The storage medium proposed in this embodiment and the method for multi-agent cooperative voltage control of a distribution network for a distributed multi-energy system proposed in the above embodiments belong to the same inventive concept. Technical details not described in detail in this embodiment can be found in the above embodiments, and this embodiment has the same beneficial effects as the above embodiments.
[0193] Based on the above description of the implementation methods, those skilled in the art can clearly understand that the present invention can be implemented using software and necessary general-purpose hardware, and of course, it can also be implemented using hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product can be stored in a computer-readable storage medium, such as a computer floppy disk, read-only memory (ROM), random access memory (RAM), flash memory, hard disk, or optical disk, etc., including several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute the methods of the various embodiments of the present invention.
[0194] 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 preferred embodiments, those skilled in the art should understand that modifications or equivalent substitutions can be made to the technical solutions of the present invention without departing from the spirit and scope of the technical solutions of the present invention, and all such modifications or substitutions should be covered within the scope of the claims of the present invention.
Claims
1. A multi-agent cooperative voltage control method for distribution networks in distributed multi-energy systems, characterized in that, include: Each node in the distribution network that is connected to adjustable resources is configured with an intelligent agent, and each intelligent agent uses the operating state of the node as an observation. The photovoltaic grid-connectable capacity of each node under voltage safety constraints is assessed, and the ratio of the photovoltaic output of the node to the photovoltaic grid-connectable capacity is used as a safety margin index, which is then incorporated into the observation. A multi-agent collaborative decision-making approach with centralized training and distributed execution is adopted. During training, the collaborative value is evaluated by the joint observations and joint actions of multiple agents. During execution, each agent independently outputs an action based on the observations. At each control moment, the reactive power and active power injected into the distribution network by the node are changed by the action, and the voltage of the node is adjusted; the updated safety margin index is obtained from the photovoltaic output of the changed node, and the agent outputs an action based on the updated safety margin index at the next control moment.
2. The method for multi-agent cooperative voltage control of a distribution network for a distributed multi-energy system as described in claim 1, characterized in that, The assessment yields the photovoltaic grid-connectable capacity of each node while satisfying voltage safety constraints, including: A voltage proxy model is trained to replace power flow calculation based on historical operating data of nodes in the distribution network; Using the voltage and photovoltaic output of the multiple nodes as states, the photovoltaic access capacity of the multiple nodes is output through reinforcement learning; Using the voltage proxy model, based on the current state and the photovoltaic access capacity, the changed voltages of multiple nodes are output, and the changed voltages are used as the next state. The photovoltaic access capacity is evaluated based on whether the voltage of the node in the next state exceeds the voltage safety constraint. The photovoltaic access capacity is adjusted based on the evaluation by the reinforcement learning. When the voltage of multiple nodes does not exceed the voltage safety constraint and the reinforcement learning converges, the photovoltaic access capacity of each node is taken as the photovoltaic access capacity of each node.
3. The method for multi-agent cooperative voltage control of a distribution network for a distributed multi-energy system as described in claim 2, characterized in that, The incorporation of the safety margin index into the observation, and the independent output of an action by each agent based on the observation, include: Based on the relationship between the safety margin index and the margin threshold, the reactive power of the photovoltaic inverter and the charging and discharging power of the energy storage of the intelligent agent are adjusted. At the next control moment, the updated safety margin index is obtained from the photovoltaic output of the changed node. Based on the relationship between the updated safety margin index and the margin threshold, the reactive power and energy storage charging and discharging power adjusted by the agent at the next control moment are determined.
4. The multi-agent cooperative voltage control method for distribution networks in distributed multi-energy systems as described in claim 3, characterized in that, The photovoltaic access capacity of the multiple nodes output through reinforcement learning includes: When the reinforcement learning outputs the photovoltaic access capacity of multiple nodes, the association weights between nodes are obtained from the states of multiple nodes using an attention mechanism. The states of multiple nodes are weighted according to the association weights, and the weighted states include the states of other nodes associated with the node, so as to obtain the photovoltaic access capacity of each node.
5. The multi-agent cooperative voltage control method for distribution networks in a distributed multi-energy system as described in claim 4, characterized in that, The action independently output by each agent based on the observation includes: The actions output by each intelligent agent include reactive power regulated by the photovoltaic inverter of the node and charging and discharging power regulated by the energy storage of the node. After the rated capacity of the photovoltaic inverter is occupied by the photovoltaic active power output of the node, the photovoltaic inverter adjusts the reactive power with the unoccupied rated capacity. The charging and discharging power of the energy storage regulation is less than or equal to the upper limit of the energy storage charging and discharging power; when the state of charge of the energy storage reaches the upper limit of the state of charge, the intelligent agent stops the energy storage charging; when the state of charge of the energy storage reaches the lower limit of the state of charge, the intelligent agent stops the energy storage discharging.
6. The method for multi-agent cooperative voltage control of a distribution network for a distributed multi-energy system as described in claim 5, characterized in that, The training process evaluates collaborative value through joint observations and actions of multiple agents, and the execution process involves each agent independently outputting an action based on the observations, including: During training, the collaborative value is evaluated by a centralized value network based on the joint observations and joint actions of multiple agents. The effect of each agent's action on the voltage of the nodes to which other agents belong is taken into account during evaluation. During execution, each agent outputs an action based only on its own observations. When evaluating the collaborative value, penalties are imposed for node voltage exceeding the allowable range, for line active power loss, for energy storage charging and discharging power exceeding a power threshold, and for the change in energy storage state of charge exceeding a change threshold in adjacent control moments. These multiple penalties are used to jointly adjust the centralized value network and the agent's policy network.
7. The method for multi-agent cooperative voltage control of a distribution network for a distributed multi-energy system as described in claim 6, characterized in that, The action of changing the reactive and active power injected into the distribution network by the node to regulate the voltage of the node includes: Each intelligent agent changes the voltage of the node by adjusting the reactive power at the same control moment, and changes the state of charge of the energy storage and the voltage of the node by adjusting the energy storage charging and discharging power at multiple control moments. When the electrical distance between any two nodes in the distribution network is less than the distance threshold, the two nodes are assigned to the same control area, and each agent uses the node voltage and node load in the control area to which it belongs as the observation.
8. A multi-agent cooperative voltage control system for distribution networks in distributed multi-energy systems, employing the multi-agent cooperative voltage control method for distribution networks in distributed multi-energy systems as described in any one of claims 1 to 7, characterized in that, include: The agent configuration module is used to configure an agent for each node in the distribution network that is connected to adjustable resources, and each agent uses the operating state of the node as an observation. The safety margin assessment module is used to assess the photovoltaic grid-connectable capacity of each node under the voltage safety constraint, and uses the ratio of the photovoltaic output of the node to the photovoltaic grid-connectable capacity as the safety margin index, and incorporates the safety margin index into the observation. The collaborative decision-making module is used for multi-agent collaborative decision-making using centralized training and distributed execution. During training, the collaborative value is evaluated by the joint observations and joint actions of multiple agents. During execution, each agent independently outputs an action based on the observations. The voltage regulation module is used to change the reactive power and active power injected into the distribution network by the node at each control moment, thereby regulating the voltage of the node; the updated safety margin index is obtained from the changed photovoltaic output of the node, and the agent outputs an action based on the updated safety margin index at the next control moment.
9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that, When the processor executes the computer program, it implements the steps of the multi-agent cooperative voltage control method for a distribution network oriented towards a distributed multi-energy system, as described in any one of claims 1 to 7.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the steps of the multi-agent cooperative voltage control method for a distribution network oriented towards a distributed multi-energy system, as described in any one of claims 1 to 7.
