Power distribution network agent group cooperative regulation and control method and system based on deep reinforcement learning

Through deep reinforcement learning technology, a multi-agent collaborative control model is constructed, which solves the problems of insufficient control accuracy and fault tolerance in the existing technology, and achieves efficient optimization and stability improvement of power grid energy distribution.

CN118611038AActive Publication Date: 2024-09-06DEZHOU POWER SUPPLY COMPANY OF STATE GRID SHANDONG ELECTRIC POWER

Patent Information

Application Number
CN202410640153.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-22
Publication Date
2024-09-06
Estimated Expiration
2044-05-22

AI Technical Summary

Technical Problem

When faced with complex power systems and rapidly changing load demands, existing multi-agent collaborative control technology has insufficient control accuracy and fault tolerance, and relies on a single artificial intelligence algorithm, making it difficult to effectively handle distributed control among multi-agent groups. Learning and communication.

Method used

The distribution network intelligent agent group collaborative control method based on deep reinforcement learning is used to represent the Q-value function through a neural network to construct a Maldives network communication model. The deep deterministic policy gradient algorithm and the deep Q network reinforcement learning model are used to realize multi-agent communication. information exchange and collaborative decision-making between the two to optimize grid energy distribution.

Benefits of technology

It improves the stability and efficiency of the power grid, reduces operating costs, and provides an efficient and feasible solution in the case of load fluctuations and uneven energy distribution.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118611038A
    Figure CN118611038A
Patent Text Reader

Abstract

The invention provides a power distribution network intelligent agent group cooperative regulation and control method and system based on deep reinforcement learning, and the method comprises the steps: enabling a power grid node or a control unit to serve as an intelligent agent in an active power distribution network; acquiring real-time state information of different intelligent agents in the power grid, wherein the real-time state information at least comprises voltage, current and power; based on the real-time state information, evaluating an expected cumulative reward for taking load management action in a given smart grid state by representing a Q value function through a neural network, where a single agent obtains an optimal energy distribution strategy by maximizing the Q value function; the constructed Markov network communication model realizes information exchange among a plurality of agents based on the communication model; and an intelligent agent group consisting of a plurality of intelligent agents decides power grid energy distribution by using a depth deterministic strategy gradient algorithm.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of distribution network control, and in particular to a distribution network intelligent agent group collaborative control method and system based on deep reinforcement learning. Background Art

[0002] The statements in this section merely provide background information related to the present invention and do not necessarily constitute prior art.

[0003] With the increasing complexity of power systems, traditional single-agent control can no longer meet the needs of efficient management and stable operation of the system. Multi-agent collaborative control technology has gradually become a key means of power system management.

[0004] Through the cooperation and collaboration between multiple agents, the intelligent management and optimization control of the power system can be realized. However, such a system mainly relies on manual rule-making and experience accumulation, and has some limitations when facing the increasingly complex power system and rapidly changing load demand. In order to avoid the limitations of traditional methods, artificial intelligence relies on its self-learning and adaptability characteristics and is applied to multi-agent collaborative control.

[0005] Common collaborative control methods include distributed control, game theory methods, swarm intelligence algorithms and other methods. The multi-agent collaborative control method based on distributed control strategy is to decompose the entire system into multiple subsystems or agents, and assign corresponding control tasks to each subsystem or agent. These agents independently control and make decisions according to their respective tasks and roles, and realize the collaborative control of the overall system through communication or cooperation mechanisms. The multi-agent collaborative control method based on game theory method uses the cooperative game model of game theory to describe the collaborative relationship between agents. The cooperative strategy and benefit distribution between agents are analyzed through the game model, so as to realize the collaborative control of the multi-agent system. In the case of high load demand and complex power system, the control effect of the multi-agent group depends largely on the choice of algorithm. Therefore, under such conditions, a multi-agent group collaborative control method is needed to effectively handle the distributed learning and communication between multi-agent groups, so as to build a collaborative control model.

[0006] In addition, most of the current collaborative control schemes for groups of intelligent entities combined with artificial intelligence often only use a single artificial intelligence algorithm or model. The accuracy of their control needs to be improved, and there are limitations such as poor fault tolerance. Summary of the invention

[0007] In order to overcome the shortcomings of the above-mentioned prior art, the present invention provides a distribution network intelligent agent group collaborative control method based on deep reinforcement learning, and uses deep reinforcement learning technology in the smart grid to achieve collaborative scheduling and optimization among multiple intelligent agents to cope with complex situations such as grid load fluctuations and uneven energy distribution.

[0008] To achieve the above objectives, one or more embodiments of the present invention provide the following technical solutions:

[0009] In the first aspect, a method for coordinated control of a distribution network intelligent agent group based on deep reinforcement learning is disclosed, including:

[0010] In active distribution networks, grid nodes or control units in the grid are used as intelligent agents;

[0011] Obtain real-time status information of different intelligent entities in the power grid, including at least voltage, current, and power;

[0012] Based on the real-time state information, the Q-value function is represented by a neural network to evaluate the expected cumulative reward of taking load management actions under a given smart grid state, where a single agent obtains the optimal energy allocation strategy by maximizing the Q-value function.

[0013] The Maldives network communication model constructed, based on which information exchange between multiple intelligent agents is realized;

[0014] A swarm of agents consisting of multiple agents uses a deep deterministic policy gradient algorithm to decide on grid energy allocation.

[0015] As a further technical solution, a deep Q-network reinforcement learning model is used to store the real-time status information in the power grid into an experience memory, and batch samples are randomly selected from the memory to update the model parameters.

[0016] As a further technical solution, the deep Q network reinforcement learning model uses a separate target network to generate a target Q value that reflects the energy stability of the power grid. During the learning process, the model adopts a delayed update method to copy the real-time state value of the current power grid node to the target network every C steps to update the real-time state of the target node;

[0017] The node energy state c is used as the input of the online network to obtain the actual Q value of action a, and the next state is used as the input of the objective function to obtain the maximum Q value of all actions in the target network.

[0018] As a further technical solution, for the deep Q-network reinforcement learning model, a deep convolutional neural network is used to fit the optimal action-value function during the training process, which obeys the Bellman equation;

[0019] The training process adopts the Mini-batch training method. In each round of training, M empirical actions are randomly selected from the empirical memory containing the real-time state information of different intelligent agents in the power grid.

[0020] As a further technical solution, at the beginning of training, a single agent randomly selects a node energy state to explore the effect of unknown actions, thereby obtaining a better strategy;

[0021] During the entire training process, the core intelligent body will gradually increase the probability of choosing the behavior with the highest Q value, that is, the energy allocation value with the highest grid stability, and use the stochastic gradient descent algorithm to update the network parameters to obtain the optimal Q value.

[0022] As a further technical solution, the Maldives network communication model is constructed, including:

[0023] Using formulas to express agents, they can collaborate with each other to solve constrained optimization problems;

[0024] Based on the above expression, the estimated value expression after the change of agent i is obtained;

[0025] Based on the estimated value expression, a distributed multi-agent subgradient algorithm for power grid information exchange between multiple agents is obtained;

[0026] A probabilistic communication model is obtained based on a gradient algorithm.

[0027] As a further technical solution, the deep deterministic policy gradient algorithm includes two deep neural networks, namely the Actor network and the Critic network;

[0028] The Actor network is the current state of the regional smart grid, and its goal is to learn the best deterministic strategy;

[0029] Actor acts as a grid energy strategy function consisting of multiple nodes, generating output energy output actions given the current state;

[0030] The Critic network is a function that evaluates the action taken for a given grid state, and its goal is to learn the optimal energy allocation action-value function;

[0031] The Critic evaluates the energy allocation action-value function of a group of agents based on the output and current state of the Actor. The time difference generated by the Critic drives the learning process in the Actor network and the Critic network, thereby evaluating the quality of the strategy.

[0032] The Critic network and the Actor network are updated by minimizing the loss, thus achieving weight update and coordinated regulation of the group of intelligent agents.

[0033] As a further technical solution, when deciding on the energy allocation of the power grid, both the Actor network and the Critic network adopt a multi-layer perceptron design;

[0034] The Actor takes the state of the agent group as an input and outputs an action in the Actor network, which is fed into the Critic network together with the state of the agent group;

[0035] The state-action value, especially the Q value and the target Q value, is generated by two sets of critic networks with different weights, namely the critic weight and the target critic weight;

[0036] The loss is calculated based on the state-action value and is used to update the critic's weights.

[0037] In a second aspect, a system for coordinated control of an intelligent group of active power distribution networks is disclosed, comprising:

[0038] The single agent optimal energy allocation module is configured to: in an active power distribution network, use a grid node or a control unit as an agent;

[0039] Obtain real-time status information of different intelligent entities in the power grid, including at least voltage, current, and power;

[0040] Based on the real-time state information, the Q-value function is represented by a neural network to evaluate the expected cumulative reward of taking load management actions under a given smart grid state, where a single agent obtains the optimal energy allocation strategy by maximizing the Q-value function.

[0041] The collaborative control module is configured to: construct a Maldives network communication model, based on which information exchange is achieved between multiple agents;

[0042] A swarm of intelligent agents consisting of multiple agents uses a deep deterministic policy gradient algorithm to collaboratively control the energy distribution of the power grid.

[0043] One or more of the above technical solutions have the following beneficial effects:

[0044] The technical solution of the present invention uses a deep reinforcement learning algorithm to establish a model. The group of intelligent agents can perceive the state of the power grid in real time and make collaborative decisions through information exchange to determine the energy distribution strategy of the power grid.

[0045] The technical solution of the present invention is based on a deep reinforcement learning algorithm, and sequentially utilizes a deep Q-network algorithm, a distributed projection multi-agent subgradient algorithm, a communication protocol, and a deep deterministic policy gradient algorithm to process the agent state and its behavior. In complex situations such as load fluctuations and uneven energy distribution in smart grids, the agent group can work collaboratively to solve problems by optimizing decisions and adjusting control strategies, thereby improving the stability and efficiency of the power grid, reducing operating costs, and providing efficient and feasible solutions for actual application scenarios of smart grids.

[0046] Advantages of additional aspects of the present invention will be given in part in the following description, and in part will become obvious from the following description, or will be learned through practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0047] The accompanying drawings in the specification, which constitute a part of the present invention, are used to provide a further understanding of the present invention. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute improper limitations on the present invention.

[0048] Figure 1 This is a schematic diagram of the structure of the deep Q network algorithm according to an embodiment of the present invention;

[0049] Figure 2 This is a structural diagram of a multi-agent network communication model according to an embodiment of the present invention;

[0050] Figure 3 This is a structural diagram of collaborative control update of a group of intelligent agents according to an embodiment of the present invention. DETAILED DESCRIPTION

[0051] It should be noted that the following detailed descriptions are exemplary and are intended to provide further explanation of the present invention. Unless otherwise specified, all technical and scientific terms used herein have the same meanings as those commonly understood by those skilled in the art to which the present invention belongs.

[0052] It should be noted that the terms used herein are for describing specific embodiments only and are not intended to be limiting of exemplary embodiments according to the present invention.

[0053] In the absence of conflict, the embodiments of the present invention and the features of the embodiments may be combined with each other.

[0054] Embodiment 1

[0055] This embodiment discloses a method for coordinated control of a distribution network intelligent agent group based on deep reinforcement learning, including:

[0056] First, a deep Q-network algorithm is used to build a model in which each agent is represented by a Q-value function through a neural network, which can evaluate the expected cumulative reward that can be obtained by taking a specific action under a given grid state. The agent is guided to find the optimal energy allocation strategy by maximizing the Q-value;

[0057] Secondly, based on the established model, the projected multi-agent subgradient algorithm is studied and adopted to promote a single agent to exchange information with other agents through randomly changing network topology. In the power grid environment, this ensures that when there is an imbalance in energy supply and demand in a certain area, information can be shared quickly to achieve collaborative perception and decision-making among multiple agents;

[0058] Finally, the present invention also uses a deep deterministic policy gradient algorithm to learn the strategy of the intelligent group in the continuous action space. When the smart grid undergoes continuous changes, the intelligent group learns the policy function through the Actor network to maximize the cumulative reward, and evaluates the action value of the Actor through the Critic network to guide the update of the strategy, so that the intelligent group can adjust the control strategy in real time to maintain the stable operation of the power grid.

[0059] The deep Q network algorithm is a reinforcement learning method. The efficiency of decision-making can be improved by estimating the Q value through a neural network. The detailed establishment process and processing method of the model are shown in formulas (1), (2), and (3), which can also be simply expressed as:

[0060] Where Q(s,a) represents the Q value of executing action a in state s, r is the observed reward, γ is the discount factor, and α is the learning factor

[0061] In one or more implementation examples, the specific steps of implementing the regulation include:

[0062] For intelligent agents, a deep Q network reinforcement learning model is established;

[0063] Obtain the voltage, current and power of different nodes in the power grid based on the model;

[0064] The voltage, current, and power information of different nodes in the power grid obtained above are used for the decision-making of a single intelligent agent. With the support of these data, the performance and efficiency of decision-making can be optimized. The specific functions are as follows:

[0065] Voltage: A single agent can obtain voltage information from different nodes, determine the voltage stability of the nodes, and take corresponding measures, such as adjusting power output or controlling loads, to keep the voltage of the grid within an appropriate range;

[0066] Current: A single agent can use the current information of different nodes to identify the load conditions and potential congestion points in the power grid, and take corresponding measures, such as adjusting energy distribution or optimizing line configuration to ensure that the current load is within an acceptable range and prevent the power grid from overloading or short circuiting.

[0067] Power: A single agent can use the power information of different nodes to evaluate the energy usage and energy flow path of the power grid to decide the best energy allocation strategy. For example, when the load is high, the agent can adjust the power output of distributed power sources or start the energy storage system to balance the load of the power grid.

[0068] About the projected multi-agent subgradient algorithm: The input of this algorithm is: grid topology information, including the connection relationship of each node in the grid, line parameters and other information, as well as the location and parameters of possible controllable devices (such as generators, energy storage systems) (i.e., obtaining voltage, current, and power data of different nodes in the grid based on the model). Energy supply and demand information: including the energy supply and demand of each node, such as load demand, distributed energy production capacity, etc. System constraints: such as voltage stability, line transmission restrictions, equipment capacity, etc.

[0069] Calculation process: Use formulas (4)-(8).

[0070] The output of the algorithm is: Agent decision: Each agent makes corresponding decisions based on the received information and the global sub-gradient direction calculated by the projected multi-agent sub-gradient algorithm, including adjusting the generator output, starting or stopping the energy storage system, adjusting the load, etc. Communication information: The agent generates communication information based on its own decision results through the global sub-gradient direction calculated by the projected multi-agent sub-gradient algorithm, so as to exchange information with other agents.

[0071] The above output information obtained by the algorithm is used for subsequent sharing among intelligent agents to achieve coordination among intelligent agents.

[0072] About the Deep Deterministic Policy Gradient Algorithm: Input: State space, including grid state information exchanged between multiple agents; Action space: the range of actions that agents can perform. Reward function: a reward function formulated according to the goal of grid operation, used to evaluate the behavior of the group of agents. Initial parameters of the Actor network and the Critic network.

[0073] The calculation process of the algorithm is as shown in formulas (10)-(16), and the output is: updated Actor network and Critic network parameters. The updated Actor network and Critic network parameters output by the algorithm are used to adjust the collaborative control strategy of the intelligent agent group in real time to maintain the stable operation of the power grid.

[0074] About single agent decision:

[0075] In the field of machine learning, deep neural networks are very good at capturing features and patterns in complex environments. At the same time, reinforcement learning maps the current state to the corresponding action, evaluates the action value based on the expected reward, and learns the decision action sequence corresponding to the scene characteristics to solve complex decision-making problems. Deep reinforcement learning algorithms combine these two technologies to provide effective solutions to complex system problems involving perception and decision-making.

[0076] In an active distribution network, each agent represents a grid node or control unit. A deep Q-network algorithm is used to build a model to sense and obtain real-time status information such as voltage, current, and power of different nodes in the grid, and a neural network is used to represent the Q-value function to evaluate the expected cumulative reward of taking actions such as load management under a given smart grid state. A single agent finds the optimal energy allocation strategy by maximizing the Q-value function.

[0077] About experience storage:

[0078] The deep Q network reinforcement learning model stores the real-time node energy information in the smart grid into the experience memory, and then uses the Mini-batch training method (randomly selecting batch samples from the memory) to update the model parameters. During the training process, the model uses a deep convolutional neural network to fit the optimal action value function, which obeys the Bellman equation and is defined as follows:

[0079]

[0080] Where, the symbols s and s′ represent the real-time energy state and the next energy state of the nodes in the smart grid, respectively. a and a′ represent the real-time action and the next action of the agent to regulate the energy of the grid nodes, respectively. The core agent behavior strategy π=P(s|a) represents the probability that the core agent selects action a in state s.

[0081] The training process adopts the Mini-batch training method. In each round of training, M experience actions D are randomly selected from the experience memory containing real-time information of the smart grid. i ={e1, e2, ..., e i}.

[0082] Fixed Q function

[0083] The deep Q network reinforcement learning model uses a separate target network to generate a target Q value that reflects the energy stability of the power grid, and its structure is the same as the evaluation network. During the learning process, the model uses a delayed update method to copy the real-time state value of the current power grid node to the target network every C steps to update the real-time state of the target node. The model uses the node energy state c as the input of the online network to obtain the actual Q value of action a, and uses the next state s′ as the input of the objective function to obtain the maximum Q value of all actions in the target network. This embodiment uses the mean square error definition function, and the formula is as follows:

[0084]

[0085] The discount coefficient γ∈[0,1], θ i represents the node state parameters in the online network at the i-th iteration, Represents the node state parameters of the target network at the i-th iteration.

[0086] At the beginning of training, a single agent randomly selects a node energy state to explore the effect of unknown actions to obtain a better strategy. Throughout the training process, the core agent will gradually increase the probability of selecting the behavior with the highest Q value (that is, the energy allocation value with the highest grid stability) in order to use known effective strategies to obtain high returns more frequently. Therefore, the stochastic gradient descent algorithm can be used to update the network parameter θ to obtain the maximum Q value. The optimal Q value is the maximum Q value. The gradient calculation formula is as follows:

[0087]

[0088] The value of can be calculated by the neural network algorithm. The network parameters are updated by delay method, and the node energy parameter value of the current online network is copied to the target network every C steps to update the target network parameters.

[0089] The schematic diagram of the deep Q network algorithm structure is as follows: Figure 1 Information exchange between agents

[0090] The single agent deep Q network reinforcement learning model constructed above obtains real-time status information of each node in the smart grid, allowing the single agent to find the optimal energy allocation strategy. This section exchanges information with other agents through randomly changing network topologies to update the information status between different agents. In the power grid environment, this means that when there is an energy shortage or surplus in a certain area, relevant information can be quickly transmitted to multiple agents.

[0091] In order to better understand the technical solution of this embodiment, the concept of Q-value function is explained as follows: Q-value function defines the expected cumulative reward that can be obtained after taking an action a in a certain state s, that is, Q(s,a). The higher the Q-value, the more cumulative rewards can be obtained by taking the action in the current state, that is, the more likely this action is to bring better results.

[0092] In reinforcement learning, the core agent learns the expected long-term rewards of choosing different actions in each state by constantly interacting with the environment. These expected rewards are Q values. Q values ​​guide the decision-making process, and the optimal Q value (maximum Q value) corresponds to a strategy with the most expected rewards in the above process, that is, the optimal energy allocation strategy.

[0093] It is assumed that there is a state-dependent communication model on this topology: the communication is Markovian in terms of the state of a single agent, and the probability of a connection being available depends on the state of the agent. On this basis, a projected multi-agent subgradient algorithm under state-dependent communication is proposed, which combines the energy information exchange of different nodes with the subgradient step and projection error analysis to achieve information exchange and collaboration between multiple agents, thereby achieving common perception and decision-making of the power grid system state.

[0094] Distributed Multi-Agent Subgradient Method

[0095] In the network, each agent i maintains the processing state of the optimal solution for node energy regulation, and updates it based on the local energy flow information between its grid nodes and exchanges information with surrounding agents. Each agent i has an initial energy estimate x i (0)∈X i Every k periods, agent i will change its estimate as follows:

[0096]

[0097] in Represents the energy operation constraint set X of agent i at node i The projection on the vector [a ij (k) j∈M is the weight vector of agent i, the scalar α(k)>0 is the step size at time k, and the vector d i (k) is the target energy operation function f of agent i i (x) at its estimated

[0098] sub-gradient.

[0099] Therefore, to generate a new estimate, each agent i combines the node state energy information received from other agents with the steps along the sub-gradient of its objective function and projects the resulting vector onto its constraint set to maintain feasibility. We call this algorithm the projected multi-agent sub-gradient algorithm.

[0100] In the analysis of the algorithm, in order to make it convenient to separate the different operations used to generate new estimates in the update formula (5), formula (5) is equivalently rewritten as:

[0101]

[0102] x i (k+1)=v i (k)-α(k)d i (k)+e i (k) (7)

[0103]

[0104] The above decomposition can be based on the estimates of other agents, subgradient steps and projection error e i , using a linear update rule to generate new estimates. Therefore, the nonlinear effects of the projection operation are represented by the projection error vector e i , which means that this error vector can be viewed as a perturbation to the sub-gradient step of the algorithm.

[0105] Network communication model

[0106] Based on the distributed multi-agent subgradient algorithm given above to realize the power grid information exchange between multiple agents, the communication matrix of the network at time k is defined as A(k)=[a ij (k)] i,j∈M ,Based on the defined network communication matrix, the present ,invention builds a probabilistic communication model.

[0107] The sequence of the communication matrix A(k) is in the state variable x(k) = [x i (k)] i∈M ∈R n×m has the Markov property. Let [n(k)} k∈N It is defined in the probability space independent sequence of random variables in , where {(Ω′, F′, P′) k} k∈N This Markov communication model allows us to capture the collection of communications when the ability of agents to communicate with each other depends on their current estimates.

[0108] The Markov communication model mainly consists of two parts: the state transfer of the Markov chain and the observation model. Assume that the Markov chain has N states (S1, S2, S3, ... S N ), the state transition probability matrix is ​​(PP), where P ij ) indicates the slave state (S i )Transfer to state (S j ). Then the state transition probability formula can be expressed as:

[0109] P ij =P(X t+1 =S j |X t =S i ) (9)

[0110] Among them, X t Represents the state at time t.

[0111] Assume that the observation space has M possible observations (O1, O2, O3, ..., O M ), the observation probability matrix is ​​O, where O ij Indicates that in state S i Observation from Observation O j The probability of. Then the observation model formula can be expressed as:

[0112] O ij =P(Y t =O j |X t =S i ) (10)

[0113] Among them, Y t represents the observation at time t.

[0114] If the estimates of two agents differ greatly, then the probability of communication between them may be small. The concept can be modeled as follows: for all (j, i) ∈ ε, k ≥ 0 and

[0115]

[0116] K and C in the formula are positive real constants, and 0<δ, γ≤1. The parameter δ is added to the model so that When is relatively small, the probability of communication is determined.

[0117] The model states that for any two nodes i and j there is a boundary if x i (k) and x jIf the estimates of (k) are close to each other, then the probability that they communicate at time k is at least δ. However, if the two agents are far apart, the probability that they communicate can only be a polynomial of the distance between their estimates ||x i (k)-x j (k) is bounded by the reciprocal of ||.

[0118] The structure diagram of the multi-agent network communication model is as follows: Figure 2 shown.

[0119] Coordinated control of groups of intelligent agents

[0120] The Markov network communication model constructed above is a probabilistic communication model, and information exchange is achieved between multiple agents. In this section, the present invention proposes to use a deep deterministic policy gradient algorithm to guide a group of agents composed of multiple agents to decide on the energy distribution of the power grid. In this way, when energy is unevenly distributed in the power grid, the group of agents can adjust the collaborative control strategy in real time, such as reallocating power grid energy and adjusting strategies, to maintain the stable operation of the power grid.

[0121] Deep Deterministic Policy Gradient Algorithm

[0122] The deep deterministic policy gradient algorithm is an extension of the deterministic policy gradient algorithm. It combines the ideas of deep neural networks and experience replay buffers. It is an intelligent group reinforcement learning algorithm used to solve continuous action space problems.

[0123] The core idea of ​​the deep deterministic policy gradient algorithm is to use two deep neural networks, namely the Actor network and the Critic network. The Actor network is the current state of the regional smart grid, and its goal is to learn the best deterministic policy. The Actor is the energy policy function μ(s|θ) of the grid composed of multiple nodes. μ ), generates an output energy output action given the current state; and the Critic network is a function that evaluates the action taken given the grid state, and its goal is to learn the optimal energy allocation action value function. Critic evaluates the energy allocation action value function Q(s, a|θ) of a group of intelligent agents based on the output and current state of the Actor. Q ), the time difference generated by the Critic drives the learning process in the Actor network and the Critic network, thereby evaluating the quality of the strategy.

[0124] By training these two networks simultaneously, the group of agents can gradually improve their strategies and improve their ability to make better decisions in the continuous action space, which also means that the group of agents will be able to explore the environment more effectively and obtain higher rewards. The core of this algorithm is to use random methods to explore the good behavior of the group of agents and estimate a deterministic behavior strategy. By doing so, it only needs to integrate in the state space, making it easier to learn strategies. The formula is as follows:

[0125] a t =μ(s t |θ μ ) (12)

[0126] However, it also has limitations. The algorithm may not be able to explore the complete state and operation space of the intelligent group. In order to overcome this limitation, we introduce a truncated normal interference N in the study of random exploration, as follows:

[0127]

[0128] Both Actor and Critic are designed with neural networks. The deterministic policy gradient theorem provides update rules for the Actor network, while the Critic network is updated from the gradient in the time difference, which can be expressed as:

[0129]

[0130] As shown in the above formula, in order to get the expectation of the agent group, we only need to get the gradient of the Actor network to its parameters and the gradient of the Critic network to the action.

[0131] Coordinated update control

[0132] The above algorithm updates the Critic network and the Actor network by minimizing the loss, thus achieving weight update and coordinated regulation of the intelligent group. In the complex situation of uneven energy distribution in the power grid, the formula for the intelligent group to update the Critic network in real time is as follows:

[0133]

[0134] in

[0135] The algorithm uses sampling policy gradient to update the Actor network. The formula is as follows:

[0136]

[0137] Based on the above steps, the target updates of the Actor network and the Critic network are as follows:

[0138] θQ′ ←τ θ Q+(1-τ)θ Q′ (17)

[0139] θ μ′ ←τθ μ +(1-τ)θ μ′ (18)

[0140] Among them, τ is an update parameter, and its value is much smaller than 1.

[0141] The group of intelligent agents notices changes in actions and environment, relies on the outputs of the Actor network and the Critic network to update the objective function, and ultimately achieves collaborative regulation.

[0142] The structure diagram of the collaborative control update of the intelligent group:

[0143] In the present invention, both the Actor network and the Critic network are designed using a multi-layer perceptron (MLP). Figure 3 As shown in Figure 1, the Actor takes the state of the group of agents as an input and outputs an action in the Actor network, which is fed into the Critic network together with the state of the group of agents. The state-action value, in particular the Q value Q(s, a|θ Q ) and the target Q value Q(s, a|θ Q′ ), is generated by two sets of critic networks with different weights, namely critic weights and target critic weights. The loss is calculated based on the state-action value and is used to update the critic weights.

[0144] Embodiment 2

[0145] The purpose of this embodiment is to provide a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the above method when executing the program.

[0146] Embodiment 3

[0147] The purpose of this embodiment is to provide a computer-readable storage medium.

[0148] A computer-readable storage medium stores a computer program, which executes the steps of the above method when executed by a processor.

[0149] Embodiment 4

[0150] The purpose of this embodiment is to provide an intelligent group coordinated control system for an active power distribution network, including:

[0151] The single agent optimal energy allocation module is configured to: in an active power distribution network, use a grid node or a control unit as an agent;

[0152] Obtain real-time status information of different intelligent entities in the power grid, including at least voltage, current, and power;

[0153] Based on the real-time state information, the Q-value function is represented by a neural network to evaluate the expected cumulative reward of taking load management actions under a given smart grid state, where a single agent obtains the optimal energy allocation strategy by maximizing the Q-value function.

[0154] The collaborative control module is configured to: construct a Maldives network communication model, based on which information exchange is achieved between multiple agents;

[0155] A swarm of intelligent agents consisting of multiple agents uses a deep deterministic policy gradient algorithm to collaboratively control the energy distribution of the power grid.

[0156] The steps involved in the apparatuses of the above embodiments 2, 3 and 4 correspond to the method embodiment 1, and the specific implementation methods can refer to the relevant description part of embodiment 1. The term "computer-readable storage medium" should be understood as a single medium or multiple media including one or more instruction sets; it should also be understood to include any medium that can store, encode or carry an instruction set for execution by a processor and enable the processor to execute any method in the present invention.

[0157] Those skilled in the art should understand that the modules or steps of the present invention described above can be implemented by a general-purpose computer device, or alternatively, they can be implemented by a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. The present invention is not limited to any specific combination of hardware and software.

[0158] Although the above describes the specific implementation mode of the present invention in conjunction with the accompanying drawings, it is not intended to limit the scope of protection of the present invention. Those skilled in the art should understand that various modifications or variations that can be made by those skilled in the art on the basis of the technical solution of the present invention without creative work are still within the scope of protection of the present invention.

Claims

1. A collaborative control method for intelligent agents in distribution networks based on deep reinforcement learning. Its characteristics are: include: In active distribution networks, grid nodes or control units are used as intelligent agents; Obtain real-time status information of different intelligent entities in the power grid, including at least voltage, current, and power; Based on the real-time state information, the Q-value function is represented by a neural network to evaluate the expected cumulative reward of taking load management actions under a given smart grid state, where a single agent obtains the optimal energy allocation strategy by maximizing the Q-value function. The Maldives network communication model constructed, based on which information exchange between multiple intelligent agents is realized; A swarm of agents consisting of multiple agents uses a deep deterministic policy gradient algorithm to decide on grid energy allocation.

2. The method for coordinated control of distribution network intelligent agents based on deep reinforcement learning according to claim 1, Its characteristics are: A deep Q-network reinforcement learning model is used to store the real-time status information of the power grid in the experience memory, and batch samples are randomly selected from the memory to update the model parameters.

3. The method for coordinated control of distribution network intelligent agents based on deep reinforcement learning according to claim 1, Its characteristics are: The deep Q network reinforcement learning model uses a separate target network to generate a target Q value that reflects the energy stability of the power grid. During the learning process, the model uses a delayed update method to copy the real-time state value of the current power grid node to the target network every C steps to update the real-time state of the target node; The node energy state c is used as the input of the online network to obtain the actual Q value of action a, and the next state is used as the input of the objective function to obtain the maximum Q value of all actions in the target network.

4. The method for coordinated control of distribution network intelligent agents based on deep reinforcement learning according to claim 1, Its characteristics are: For the deep Q-network reinforcement learning model, a deep convolutional neural network is used to fit the optimal action-value function during the training process, which obeys the Bellman equation; The training process adopts the Mini-batch training method. In each round of training, M empirical actions are randomly selected from the empirical memory containing the real-time state information of different intelligent agents in the power grid.

5. The method for coordinated control of distribution network intelligent agents based on deep reinforcement learning according to claim 1, Its characteristic is that At the beginning of training, a single agent randomly selects a node energy state to explore the effect of unknown actions to obtain a better strategy; During the entire training process, the core intelligent body will gradually increase the probability of choosing the behavior with the highest Q value, that is, the energy allocation value with the highest grid stability, and use the stochastic gradient descent algorithm to update the network parameters to obtain the optimal Q value.

6. The method for coordinated control of distribution network intelligent agents based on deep reinforcement learning according to claim 1, Its characteristics are: When constructing the Maldives network communication model, it includes: Expressive agents can collaborate with each other to jointly solve constrained optimization problems; Based on the above expression, the estimated value expression after the change of agent i is obtained; Based on the estimated value expression, a distributed multi-agent subgradient algorithm for power grid information exchange between multiple agents is obtained; A probabilistic communication model is obtained based on a gradient algorithm.

7. The method for coordinated control of distribution network intelligent agents based on deep reinforcement learning according to claim 1, Its characteristics are: The deep deterministic policy gradient algorithm consists of two deep neural networks, the Actor network and the Critic network; The Actor network is the current state of the regional smart grid, and its goal is to learn the best deterministic strategy; Actor acts as a grid energy strategy function consisting of multiple nodes, generating output energy output actions given the current state; The Critic network is a function that evaluates the action taken for a given grid state, and its goal is to learn the optimal energy allocation action-value function; The Critic evaluates the energy allocation action-value function of a group of agents based on the output and current state of the Actor. The time difference generated by the Critic drives the learning process in the Actor network and the Critic network, thereby evaluating the quality of the strategy. The Critic network and the Actor network are updated by minimizing the loss, thus achieving weight update and coordinated regulation of the group of intelligent agents.

8. A collaborative control system for intelligent groups of active distribution networks. Its characteristics are: include: The single agent optimal energy allocation module is configured to: in an active power distribution network, use a grid node or a control unit as an agent; Obtain real-time status information of different intelligent entities in the power grid, including at least voltage, current, and power; Based on the real-time state information, the Q-value function is represented by a neural network to evaluate the expected cumulative reward of taking load management actions under a given smart grid state, where a single agent obtains the optimal energy allocation strategy by maximizing the Q-value function. The collaborative control module is configured to: construct a Maldives network communication model, based on which information exchange is achieved between multiple agents; A swarm of intelligent agents consisting of multiple agents uses a deep deterministic policy gradient algorithm to collaboratively control the energy distribution of the power grid.

9. A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, It is characterized in that When the processor executes the program, the steps of the method described in any one of claims 1 to 7 are implemented.

10. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the program is executed by a processor, the steps of the method described in any one of claims 1 to 7 are performed.

Citation Information

Patent Citations

  • Virtual power plant primary frequency control method based on distributed projection subgradient method

    CN110311388A

  • Multi-domain intelligent communication model and communication method based on channel-bandwidth joint decision

    CN111917509A

  • Deep learning multi-agent micro-grid cooperative control method based on double neural networks

    CN115333143A

  • Multi-agent cluster consistency cooperative control method based on behavior prediction

    CN117319232A

  • Comprehensive energy microgrid group multi-agent hierarchical game cooperation method and device

    CN117833255A

Cited By

  • Post-disaster reparability maintenance decision-making method based on deep reinforcement learning

    CN118798601A

  • Voltage source matrix control method based on optical chip

    CN119440155A

  • An optical chip-based voltage source matrix control method

    CN119440155B

  • Construction method of digital power system and related device

    CN119670307A

  • Construction site monitoring arrangement method based on deep reinforcement learning

    CN119849888A