Multi-agent automatic power generation control method and system based on parameter sharing and medium

Through the multi-agent dual-delay deep deterministic policy gradient algorithm based on parameter sharing, the instability problem of the traditional single agent method in multi-region automatic power generation control is solved, achieving stable control of the power system and the ability to quickly expand into new regions. , improving frequency stability and control performance.

CN118630829APending Publication Date: 2024-09-10SHANGHAI UNIVERSITY OF ELECTRIC POWER
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410652691.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-24
Publication Date
2024-09-10

AI Technical Summary

Technical Problem

The traditional single-agent reinforcement learning method has instability in multi-region automatic power generation control. In particular, it is difficult to achieve effective cooperative frequency control when new regions are expanded, resulting in challenges to the frequency stability of the power system.

Method used

A multi-agent dual-delay deep deterministic policy gradient algorithm based on parameter sharing is used to obtain the operating information of the generating units in each interconnected area, calculate the observation status and output the control signal to achieve automatic power generation control, and utilize multi-agent collaboration and information sharing to quickly Master control strategies.

Benefits of technology

It achieves stable control in each interconnected area of ​​the power system, quickly expands the control performance in new areas, reduces control errors and training speed, and improves the frequency stability of the power system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118630829A
    Figure CN118630829A
Patent Text Reader

Abstract

The invention relates to a multi-agent automatic power generation control method and system based on parameter sharing, and a medium. The method comprises the following steps: obtaining generator set operation information of each interconnection area in a power system; based on the generator set operation information of each interconnection area, calculating an observation state corresponding to each interconnection area; and based on the observation state of each interconnection area, the controller of the corresponding interconnection area adopts a multi-agent double-delay depth deterministic strategy gradient algorithm based on parameter sharing to carry out operation processing, and outputs a control signal of each interconnection area to complete an automatic power generation control process. Compared with the prior art, the method has the advantages that high controllability can be achieved when a new power system area is expanded, control errors are reduced, and control stability is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of automatic power generation control technology, and in particular to a multi-agent automatic power generation control method, system and medium based on parameter sharing. Background Art

[0002] Automatic generation control (AGC) plays a key role in maintaining frequency stability in the power system. It keeps the grid frequency near the rated value by adjusting the output power of the generator and minimizes the power exchange between different areas. However, with the widespread application of renewable energy, the power system is facing increasing uncertainty.

[0003] Traditional AGC methods often rely on accurate system models and require adjustments between different system models, which poses a challenge to the frequency stability of power systems. In recent years, with the development of model-free data-driven algorithms, especially the rise of technologies such as reinforcement learning, people have begun to explore how to adaptively handle complex interconnected system control problems without a system mathematical model.

[0004] However, the traditional single-agent reinforcement learning method has the problem of instability during the training process, especially when it comes to multi-region control. To solve this problem, researchers have begun to try to use multi-agent control algorithms to regulate power systems. Although some progress has been made, current research is mainly focused on existing interconnected areas, while the expansion of new areas faces new challenges such as cooperative frequency control. Therefore, in the context of the widespread application of new energy and the continuous expansion of power systems, the research on scalable AGC has important theoretical and practical significance. Summary of the invention

[0005] The purpose of the present invention is to provide a multi-agent automatic power generation control method, system and medium based on parameter sharing to improve the stability of the control process.

[0006] The purpose of the present invention can be achieved by the following technical solutions:

[0007] A multi-agent automatic power generation control method based on parameter sharing comprises the following steps:

[0008] Obtain operating information of generator sets in each interconnected area of ​​the power system;

[0009] Based on the operating information of the generator sets in each interconnected area, calculating the observation state corresponding to each interconnected area;

[0010] Based on the observed status of each interconnected area, the controller of the corresponding interconnected area adopts a multi-agent dual-delay deep deterministic policy gradient algorithm based on parameter sharing to perform calculations and output control signals of each interconnected area to complete the automatic power generation control process.

[0011] Furthermore, the observed states of each interconnected area include regional control error, regional frequency change, regional control error change rate and interconnection line power change.

[0012] Furthermore, the execution steps of the multi-agent dual-delay deep deterministic policy gradient algorithm based on parameter sharing include:

[0013] S1. Network parameter initialization: Initialize the parameters θ of the actor network and critic network Q ,θ μ , and copy them to their respective target actor network and target critic network weights θ' Q ,θ' μ middle;

[0014] S2. Buffer initialization: Initialize a common experience playback buffer D = (s, a, r, s′) for all agents, where s is the observed state of the environment of all agents, i.e., the observed state of each interconnected area, a is the action of all agents, r is the reward after all agents take the action, and s′ is the new observed state after all agents perform the action;

[0015] S3, random process initialization: Initialize the random process ε~clip(N(0,σ),-c,c) of action exploration, where ε is the value clipped from Gaussian noise, N(0,σ) represents the normally distributed random noise added to the action, and c is the upper and lower limits of random sampling from Gaussian noise;

[0016] S4, reset: reset the observation state and action of the environment, and obtain the initial observation state and action of each agent i;

[0017] S5, time step loop: for each time step t in each iterative training, execute steps S6-S11;

[0018] S6, action selection: For each agent i, according to the current observation state o i Usage strategy Select Action where μ i (o i ) is the actor network output of agent i;

[0019] S7, execute action: All agents select action a ito carry out execution;

[0020] S8, Experience Collection: Each agent i observes the current reward r based on the actions performed i and the next observed state o i ′, and the local experience e i =(o i ,a i ,r i ,o′ i ) is passed to the experience buffer D, where o i is the current observed state of agent i, a i is the current action of agent i, r i is the current reward of agent i, o′ i is the next observed state of agent i;

[0021] S9, state update: Update the observed state o of all agents i =o′ i To the next time step;

[0022] S10, network update: extract batch samples from the experience buffer D and update the actor network and critic network;

[0023] S11, target network update: use soft update strategy to update the target actor network and target critic network;

[0024] S12, iteration: repeat steps S3-S11 until the iteration ends.

[0025] Furthermore, the critic network adopts a dual critic network to evaluate the strategies of individual agents and all agents respectively.

[0026] Furthermore, during the network update process, the loss function of the updated critic network is:

[0027]

[0028]

[0029] ε~clip(N(0,σ),-c,c)

[0030] Where L(θ) is the loss function of the critic network, y i is the target critic network prediction value for region i, is the critic network Q value of region i, M is the training round, o′ i is the observation of region i at the next moment, a′ iis the action of region i at the next moment, r i is the reward of region i, γ is the discount factor, is the target critic network Q value of region i, s' is the new observed state of the action, μ'1(o'1) is the target critic network output of the agent in region i, ε is the value cut from Gaussian noise, and μ' n (o' n ) is the target critic network output of the agent in region n, N(0,σ) is the normally distributed random noise, and c is the upper and lower limits of random sampling from Gaussian noise.

[0031] Furthermore, during the network update process, the actor network integrates the policy gradient theorem, which is approximately:

[0032]

[0033] In the formula, To minimize the gradient of the loss function, To minimize the gradient of the policy, To find the gradient of the value function to minimize the loss, The value function of executing policy μ for region i, o i ' is the observation of region i at the next moment, μ i ' is the target critic network output of the region n agent, M is the training round, and J is the policy function.

[0034] Furthermore, the expressions for updating the target actor network and the target critic network are:

[0035]

[0036]

[0037] In the formula, θ Q is the critic network parameter, is the learning rate of the critic network, To find the gradient of the loss function, L(θ Q ) is the loss function, is the learning rate of the actor network, θ Q′ is the target critic network parameter, τ is the soft update rate of the target actor network and the target critic network, are the actor network parameters, To find the gradient of the policy, is the policy function, The target actor network parameters.

[0038] Furthermore, the reward is calculated by a reward function, and the calculation expression of the reward function is:

[0039]

[0040] In the formula, r i is the reward, ε is the scaling factor, B i Δf i +ΔP tie,i is the regional control error in the observed state, Δf i is the regional frequency change in the observed state, B i is the frequency deviation coefficient of region i, n is the number of interconnected system regions, ΔP tie,i is the tie line power change in the observation state, P i is the current power generation, P i ' is the previous power generation.

[0041] The present invention also provides a multi-agent automatic power generation control system, including a memory and a processor, wherein the memory stores a computer program, and the processor calls the computer program to execute the multi-agent automatic power generation control method based on parameter sharing as described above, outputs control signals of each interconnected area, and completes the automatic power generation control process.

[0042] The present invention also provides a computer-readable storage medium, comprising one or more programs for execution by one or more processors of an electronic device, wherein the one or more programs include instructions for executing the multi-agent automatic power generation control method based on parameter sharing as described above.

[0043] Compared with the prior art, the present invention has the following beneficial effects:

[0044] (1) The present invention adopts a decentralized control method for each interconnected area of ​​the power system. The controller of each area sends a corresponding control signal according to the operating conditions of each area, and the controller adopts a multi-agent dual-delay deep deterministic policy gradient algorithm based on parameter sharing so that each intelligent controller performs its own task, thereby achieving stable control.

[0045] (2) The present invention designs a shared strategy for the target policy network and the target value network, so that the intelligent agents in the newly expanded area can quickly master the control strategy.

[0046] (3) The present invention adopts a multi-agent dual-delay deep deterministic policy gradient algorithm based on parameter sharing, which enables information sharing and collaboration between agents, thereby achieving higher control performance, faster training speed and reduced control errors when expanding new power system areas. BRIEF DESCRIPTION OF THE DRAWINGS

[0047] Figure 1 It is a schematic diagram of the method flow of the present invention;

[0048] Figure 2 This is a multi-agent automatic power generation control framework diagram of the present invention;

[0049] Figure 3 A structural diagram of a three-region interconnected power system according to an embodiment of the present invention;

[0050] Figure 4 The fluctuation of renewable energy in each region according to the embodiment of the present invention;

[0051] Figure 5 The three-region ACE change curve of the embodiment of the present invention;

[0052] Figure 6 This is a new energy disturbance curve for the fourth region of an embodiment of the present invention;

[0053] Figure 7 This is the fourth area ACE under the random disturbance of renewable energy in an embodiment of the present invention. DETAILED DESCRIPTION

[0054] The present invention is described in detail below in conjunction with the accompanying drawings and specific embodiments. This embodiment is implemented based on the technical solution of the present invention, and provides a detailed implementation method and specific operation process, but the protection scope of the present invention is not limited to the following embodiments.

[0055] Example 1

[0056] This embodiment provides a multi-agent automatic power generation control method based on parameter sharing, such as Figure 1 As shown, the method comprises the following steps:

[0057] S1. Obtain the operating information of the generator sets in each interconnected area of ​​the power system.

[0058] The generator set operation information includes output, frequency, power and other information.

[0059] S2. Calculate the observation status of each interconnected area based on the operating information of the generator sets in each interconnected area.

[0060] Calculation is performed based on the generator set operation information to obtain the observation state required by the control strategy. In this embodiment, the observation state includes regional control error, regional frequency change, regional control error change rate and tie line power change.

[0061] S3. Based on the observed status of each interconnected area, the controller of the corresponding interconnected area adopts a multi-agent double-delay deep deterministic policy gradient algorithm based on parameter sharing to perform calculation processing, output the control signal of each interconnected area, and complete the automatic power generation control process.

[0062] This step mainly generates control signals through the controller trained by the parameter-sharing multi-agent dual-delay deep deterministic policy gradient algorithm (PSMATD3) to control the frequency regulation units in each region, where the controller policy network training is guided by the reward of minimizing the regional control error and the control signal is output. The design of this parameter-sharing multi-agent dual-delay deep deterministic policy gradient controller ensures that the control strategy training process can converge quickly, which is suitable for frequency control of complex interconnected power systems.

[0063] like Figure 2 As shown, an automatic power generation control framework based on multi-agent deep reinforcement learning is first established, which includes two stages: centralized training and decentralized execution.

[0064] The control algorithm used in the training phase is a parameter-sharing multi-agent dual-delayed deep deterministic policy gradient algorithm (PSMATD3) based on the MATD3 (Multi-Agent Delayed Deterministic Policy Gradient) algorithm combined with the parameter sharing (PS) strategy. To apply it in the interconnected power system load frequency controller, it is necessary to implement the PSMATD3 algorithm and build the architecture of PSMATD3 in the interconnected power system load frequency control, select appropriate observation states and actions for training according to the system, and construct a suitable reward function to guide the training in order to realize the cooperative load frequency control of the interconnected power system, and finally train a controller that meets the requirements.

[0065] In the training phase, a shared strategy is designed for the target policy network and the target value network, so that the agents in the newly expanded area can quickly master the control strategy. In the target network update phase, a dual critic network delayed update strategy is introduced to evaluate the strategies of individual agents and all agents respectively, to prevent overestimation during training and improve stability.

[0066] In the decentralized execution phase, the policy network of each agent generates power generation commands by considering the specific information available in its respective region, ultimately achieving load frequency control of the power system. Each region in the system is equipped with an intelligent controller, and the deployed agents generate appropriate power generation commands for the generator sets based on the regional information to achieve frequency stability of the power system. After receiving the power generation signal from the regional agent, the generator sets in each region of the power system respond to the command and output power, and the system transitions to the next state. Feedback of the next state of each region is provided to the agent controller to continue the next control cycle, ultimately achieving control of the entire interconnected power system.

[0067] Specifically:

[0068] 1. Construct a multi-agent double-delay deep deterministic policy gradient algorithm based on parameter sharing.

[0069] In the multi-agent deep reinforcement learning update process, each agent has its own critic network, and the gradient is used to update the parameters by the difference with the target network.

[0070]

[0071] in is the observation of region i at time t, is the power generation instruction of region i at time t, r t is the reward at time t, is the observation of region i at the next moment, The critic network outputs the Q value for region i, y i is the target critic network prediction value for region i.

[0072] Store the experience of all agents as e i =(o i ,r i ,a i ,o′ i ), the error between the critic network and the targetcritic network is:

[0073]

[0074] When updating Q values ​​and TD errors, the dimension is reduced and the iteration speed is accelerated:

[0075]

[0076]

[0077] in Represents the target actor network for a given state o i is the action calculated and γ is the discount factor.

[0078] During PSMATD3 training, small batches are sampled from the common playback buffer D, and the mean squared TD error of the online evaluation network is calculated as:

[0079]

[0080] The Target Q value is:

[0081]

[0082] To increase the exploration, introduce noise:

[0083] ε~clip(N(0,σ),-c,c)(7)

[0084]

[0085] Where L(θ) is the loss function of the critic network, y i is the target critic network prediction value for region i, is the target critic network Q value of region i, M is the training round, o′ i is the observation value of region i at the next moment, a i ' is the action of region i at the next moment, r i is the reward of region i, γ is the discount factor, is the target critic network Q value of region i, s' is the new observed state of the action, μ'1(o'1) is the target critic network output of the agent in region i, ε is the value cut from Gaussian noise, and μ' n (o' n ) is the target critic network output of the agent in region n, N(0,σ) is the normally distributed random noise, and c is the upper and lower limits of random sampling from Gaussian noise.

[0086] The actor network integrates the policy gradient theorem, which is approximated as follows:

[0087]

[0088] in and represents the learning rate of the critic and actor networks, and τ represents the soft update rate of the target network. The parameters of the actor, critic network, and respective target networks are updated as follows:

[0089]

[0090] To minimize the gradient of the loss function, To minimize the gradient of the policy, To find the gradient of the value function to minimize the loss, The value function of executing policy μ for region i, o i ' is the observation of region i at the next moment, μ′ i is the target critic network output of the region n agent, and M is the training round. Q is the critic network parameter, is the learning rate of the critic network, To find the gradient of the loss function, L(θ Q ) is the loss function, is the learning rate of the actor network, θ Q′ is the target critic network parameter, τ is the soft update rate of the target actor network and the target critic network, θ μ are the actor network parameters, To find the gradient of the strategy, J(θ μ ) is the policy function, θ μ′ The target actor network parameters.

[0091] The proposed PSMATD3 control algorithm flow chart is shown in Table 1.

[0092] Table 1 PSMATD3 algorithm

[0093]

[0094] 2. Build the control architecture of PSMATD3 in load frequency control of interconnected power systems

[0095] The framework of the algorithm for application in interconnected power systems is as follows Figure 2 As shown, the interconnected power system first calculates the state o i , i∈[1,n], at each time step t, the intelligent experience in each region will take action a according to its own observations and strategies i , acting on the interconnected system to cause the system state to change O = [o1,...,o n ] and calculate the rewards of each agent When storing experience, a common experience pool is used to unify the experience dimension D = (o, a, r, o'). In the decentralized execution phase, the policy network of each agent generates power generation commands by considering the specific information available in its respective area.

[0096] The state of each interconnected power system area should take into account its regional control error ACE, the frequency change value Δf of the area i i , ACE change rate of this region i And the transmission power P of the regional interconnection line tie,i Therefore, the system observation state of region i is:

[0097]

[0098] The action output of the actor network is the total frequency modulation instructions of each region of the interconnected system, which constitute a discrete action set. The action set contains a total of 101 actions, and the step size of each action is 0.0003pu.

[0099] The reward function is defined as a combination of system frequency deviation, tie line power deviation and unit regulation cost, where the regulation cost is represented by the output change.

[0100]

[0101] The above expression represents the reward of intelligent agent i, where ε is a scaling factor that determines the proportion of the impact of ACE and power generation changes on the reward. Here, ε is set to 0.5. i represents the current power generation, and P i ' represents the previous power generation. B i Δf i +ΔP tie,i Represents the ACE regional control error. This reward function uses negative rewards, that is, when the value of the system's regional control error is larger, the reward of the corresponding action is smaller. Conversely, when the value of the system's regional control error is smaller, the reward of the corresponding action is larger.

[0102] 3. Training and implementation of control strategies

[0103] like Figure 2 As shown, the observed state (11) is input into the actor and critic networks of the agent, and the update process is shown in the above formulas (1) to (10). The trained control strategy can be used for decentralized execution process such as Figure 2 shown.

[0104] This embodiment establishes a Figure 3 The three-region interconnected power system shown in the figure is simulated to verify the superiority of the proposed algorithm in multi-region frequency regulation. Figure 3 A typical linear interconnected power system AGC model in the form of transfer function is shown. Each part of the power system contains different components, including speed regulators, prime movers, generators, renewable energy sources, and loads. The system dynamics in the i-th region of the multi-regional grid can be represented by a set of differential equations:

[0105]

[0106]

[0107]

[0108]

[0109] Among them B i is the frequency deviation coefficient of region i, R is the adjustment coefficient, ΔP tie,i is the tie line power deviation in region ij, ACE i is the regional control error of region i, P ci is the controller output signal of region i, GDB is the power generation dead zone, GRC is the power generation rate constraint, T giis the speed regulator time constant of region i, T ti is the turbine time constant of region i, ΔP mi is the change in steam turbine output power in region i, ΔP gi is the output power change of the speed regulator in area i, ΔP Li is the load change in area i, ΔP RESi is the new energy disturbance in region i, D i is the load damping coefficient of area i, H i is the inertia coefficient of the system in region i, T ij is the synchronization coefficient of the tie line between regions i and j, Δf i is the frequency change of region i.

[0110] The performance of DQN (Deep Q-Network), MADDPG (Multi-Agent Deep Deterministic PolicyGradient), MATD3 and PSMATD3 in terms of convergence time and area control error are compared. For the DQN algorithm, the reward discount factor, sampling period, learning rate and number of learning iterations are set to 0.99, 4 seconds, 0.0005 and 30,000 episodes, respectively. MADDPG uses a learning rate of 0.001 for the actor and critic network, a reward discount factor of 0.99, and a soft update rate of 0.01. The number of training iterations is set to 30,000. In MATD3, the action noise and policy noise are set to 0.1, and the time interval of the double delay is set to 2. In order to compare the performance of different algorithms, DQN, MADDPG, MATD3 and PSMATD3 all use discrete actions. The simulation used the deep learning framework PaddlePaddle, and the hardware configuration was as follows: AMD Ryzen72700 eight-core processor 3.20GHz, NVIDIA Geforce RTX 2060GPU, and a total of 32GB memory. Multi-region step load disturbances and new energy disturbances were used to simulate the impact of system downtime or connection. During the simulation, the sampling period of the controller was 4 seconds, the total duration of the disturbance was 1500 seconds, and the baseline capacity of the system was set to 5000MVA.

[0111] Figure 4 is the renewable energy generation data of the three-region system within 1500 seconds. At this time, the regional control error (ACE) of DQN, MADDPG, MATD3 and PSMATD3 control algorithms is as follows: Figure 5 As shown in Table 2, the rewards, average absolute ACE and maximum ACE changes of each control algorithm are compared, which shows that the proposed control strategy can quickly adjust the regional frequency deviation.

[0112] Table 2 Performance comparison of various algorithms

[0113]

[0114] Figure 6 The new energy disturbance in the fourth region is newly added. At this time, the regional control error (ACE) of DQN, MADDPG, MATD3 and PSMATD3 control algorithms is as follows: Figure 7 As shown in Table 3, the rewards, average absolute ACE and convergence rounds of each control algorithm are compared, which shows that the proposed control strategy can converge quickly in complex interconnected power systems.

[0115] Table 3 Performance comparison of various algorithms

[0116]

[0117] Example 2

[0118] This embodiment provides a multi-agent automatic power generation control system, including a memory and a processor, wherein the memory stores a computer program, and the processor calls the computer program to execute the multi-agent automatic power generation control method based on parameter sharing as described in Example 1, outputs control signals of each interconnected area, and completes the automatic power generation control process.

[0119] If the above functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc., which can store program code.

[0120] It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes. The schemes in the embodiments of the present invention may be implemented in various computer languages, for example, object-oriented programming language Java and literal scripting language JavaScript, etc.

[0121] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0122] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0123] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0124] Although the preferred embodiments of the present invention have been described, those skilled in the art may make other changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the present invention.

[0125] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.

Claims

1. A multi-agent automatic power generation control method based on parameter sharing, characterized in that: The following steps are involved: Obtain operating information of generator sets in each interconnected area of ​​the power system; Based on the operating information of the generator sets in each interconnected area, calculating the observation state corresponding to each interconnected area; Based on the observed status of each interconnected area, the controller of the corresponding interconnected area adopts a multi-agent dual-delay deep deterministic policy gradient algorithm based on parameter sharing to perform calculations and output control signals of each interconnected area to complete the automatic power generation control process.

2. According to the multi-agent automatic power generation control method based on parameter sharing according to claim 1, it is characterized in that: The observed states of the interconnected areas include regional control errors, regional frequency changes, regional control error change rates and tie line power changes.

3. The multi-agent automatic power generation control method based on parameter sharing according to claim 1 is characterized in that: The execution steps of the multi-agent double-delay deep deterministic policy gradient algorithm based on parameter sharing include: S1. Network parameter initialization: Initialize the parameters θ of the actor network and critic network Q ,θ μ , and copy them to their respective target actor network and target critic network weights θ' Q ,θ' μ middle; S2. Buffer initialization: Initialize a common experience playback buffer D = (s, a, r, s′) for all agents, where s is the observed state of the environment of all agents, i.e., the observed state of each interconnected area, a is the action of all agents, r is the reward after all agents take the action, and s′ is the new observed state after all agents perform the action; S3, random process initialization: Initialize the random process ε~clip(N(0,σ),-c,c) of action exploration, where ε is the value clipped from Gaussian noise, N(0,σ) represents the normally distributed random noise added to the action, and c is the upper and lower limits of random sampling from Gaussian noise; S4, reset: reset the observation state and action of the environment, and obtain the initial observation state and action of each agent i; S5, time step loop: for each time step t in each iterative training, execute steps S6-S11; S6, action selection: For each agent i, according to the current observation state o i Usage strategy Select Action where μ i (o i ) is the actor network output of agent i; S7, execute action: All agents select action a i to carry out execution; S8, Experience Collection: Each agent i observes the current reward r based on the actions performed i and the next observed state o i ′, and the local experience e i =(o i ,a i ,r i ,o′ i ) is passed to the experience buffer D, where o i is the current observed state of agent i, a i is the current action of agent i, r i is the current reward of agent i, o′ i is the next observed state of agent i; S9, state update: Update the observed state o of all agents i =o′ i To the next time step; S10, network update: extract batch samples from the experience buffer D and update the actor network and critic network; S11, target network update: use soft update strategy to update the target actor network and target critic network; S12, iteration: repeat steps S3-S11 until the iteration ends.

4. The multi-agent automatic power generation control method based on parameter sharing according to claim 3 is characterized in that: The critic network adopts a dual critic network to evaluate the strategies of individual agents and all agents respectively.

5. The multi-agent automatic power generation control method based on parameter sharing according to claim 3 is characterized in that: During the network update process, the loss function of the updated critic network is: ε~clip(N(0,σ),-c,c) Where L(θ) is the loss function of the critic network, y i is the target critic network prediction value for region i, is the critic network Q value of region i, M is the training round, o' i is the observation of region i at the next moment, a' i is the action of region i at the next moment, r i is the reward of region i, γ is the discount factor, is the target critic network Q value of region i, s' is the new observed state of the action, μ'1(o'1) is the target critic network output of the agent in region i, ε is the value cut from Gaussian noise, μ' n (o' n ) is the target critic network output of the agent in region n, N(0,σ) is the normally distributed random noise, and c is the upper and lower limits of random sampling from Gaussian noise.

6. The multi-agent automatic power generation control method based on parameter sharing according to claim 3 is characterized in that: During the network update process, the actor network integrates the policy gradient theorem, which is approximately: In the formula, To minimize the gradient of the loss function, To minimize the gradient of the policy, To find the gradient of the value function to minimize the loss, The value function for executing policy μ for region i, o' i is the observation of region i at the next moment, μ' i is the target critic network output of the agent in region n, M is the training round, and J is the policy function.

7. The multi-agent automatic power generation control method based on parameter sharing according to claim 3 is characterized in that: The expressions for updating the target actor network and the target critic network are: In the formula, θ Q is the critic network parameter, is the learning rate of the critic network, To find the gradient of the loss function, L(θ Q ) is the loss function, is the learning rate of the actor network, θ Q′ is the target critic network parameter, τ is the soft update rate of the target actor network and the target critic network, are the actor network parameters, To find the gradient of the policy, is the policy function, The target actor network parameters.

8. The multi-agent automatic power generation control method based on parameter sharing according to claim 3 is characterized in that: The reward is calculated by a reward function, and the calculation expression of the reward function is: In the formula, r i is the reward, ε is the scaling factor, B i Δf i +ΔP tie,i is the regional control error in the observed state, Δf i is the regional frequency change in the observed state, B i is the frequency deviation coefficient of region i, n is the number of interconnected system regions, ΔP tie,i is the tie line power change in the observation state, P i is the current power generation, P i ' is the previous power generation.

9. A multi-agent automatic power generation control system, characterized in that: It includes a memory and a processor, the memory stores a computer program, the processor calls the computer program to execute the multi-agent automatic power generation control method based on parameter sharing as described in any one of claims 1 to 8, outputs the control signal of each interconnected area, and completes the automatic power generation control process.

10. A computer-readable storage medium, characterized in that: It includes one or more programs for execution by one or more processors of an electronic device, wherein the one or more programs include instructions for executing a multi-agent automatic power generation control method based on parameter sharing as described in any one of claims 1-8.