Interconnected micro-grid system frequency control method, device, equipment and storage medium
By constructing a Markov decision process model and a reinforcement learning agent of the safety guidance network, the security constraint problem in the frequency stability control of the interconnected microgrid system is solved, the safety optimization of the system frequency and equipment power is achieved, and the stability of the power system is ensured. run.
Patent Information
- Application Number
- CN202410812362.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-21
- Publication Date
- 2024-09-17
AI Technical Summary
Internet microgrid systems face challenges in frequency stability control, especially reinforcement learning methods under model-free knowledge that may violate system safe operation constraints and lead to unacceptable random exploration.
Construct a reinforcement learning agent based on the Markov decision process model, introduce a safety guidance network, define constraints and cost functions, ensure that the agent follows the safety policy, and optimize the control strategy through the safety guidance network to avoid violating system constraints.
It effectively avoids the violation of safety constraints of the interconnected microgrid system, ensures the safety of system frequency limits and equipment output power limits, and provides a new solution for stable operation of the power system.
Smart Images

Figure CN118659404A
Abstract
Description
Technical Field
[0001] The present application relates to the field of power grid load forecasting, and in particular to a method, device, equipment and storage medium for frequency control of an interconnected microgrid system. Background Art
[0002] In the power system, microgrids, with their unique architecture consisting of distributed generators, energy storage systems and flexible loads, have demonstrated high adaptability in coordinating with the main grid or independently responding to main grid failures. However, the power generation capacity and system inertia of a single microgrid under extreme conditions are limited, and their stable operation cannot be guaranteed. In order to improve the overall stability of the system, networked interconnected microgrid systems have emerged. By connecting multiple microgrids, they achieve mutual support during independent operation. However, with the complexity of network structure and interaction between microgrids, the frequency stability control of interconnected microgrid systems faces unprecedented challenges.
[0003] With the rapid development of artificial intelligence technology, data-driven methods, especially reinforcement learning, have received widespread attention in power systems. Reinforcement learning, with its principle of finding the optimal strategy through "trial and error" interaction, has shown great potential in solving practical problems. However, in the absence of model knowledge, the random exploration of reinforcement learning may violate the safe operation constraints of the system, which is unacceptable in frequency control. Summary of the invention
[0004] The purpose of this application is to overcome the problems existing in the above-mentioned prior art and to provide a method, device, equipment and storage medium for frequency control of an interconnected microgrid system.
[0005] The present application provides a method for controlling the frequency of an interconnected microgrid system, comprising:
[0006] Determine the control problem of the frequency of the interconnected microgrid system;
[0007] Defining a Markov decision process model corresponding to the interconnected microgrid according to the control problem;
[0008] constructing a reinforcement learning agent for the interconnected microgrid according to the Markov decision process model;
[0009] Defining constraints followed by the reinforcement learning agent and a cost function generated when the constraints are violated;
[0010] Introducing a safety guidance network into the reinforcement learning agent according to the constraint condition and the cost function;
[0011] Deploy the reinforcement learning agent in a real environment, monitor the dynamic operating frequency of the interconnected microgrid system in real time, and output real-time control instructions for each control device according to the dynamic operating frequency;
[0012] generating the value of the cost according to the execution effect of the control instruction through the secure boot network;
[0013] The reinforcement learning agent adjusts and optimizes the control strategy according to the value of the cost;
[0014] The adjusted and optimized reinforcement learning agent is deployed in the interconnected microgrid system to perform frequency control of the interconnected microgrid system.
[0015] Optionally, defining a Markov decision process model corresponding to the interconnected microgrid according to the control problem includes:
[0016] Defining the system status of each interconnected microgrid, including: historical photovoltaic power generation data, load information and system frequency deviation;
[0017] Determining the control actions that can be performed by all devices in each of the system states;
[0018] A reward function is determined according to the system state and the control action.
[0019] Optionally, the reinforcement learning agent includes: a plurality of intelligent individuals;
[0020] Setting each of the intelligent individuals as an independent historical experience pool;
[0021] A common reward function is set for each of the intelligent entities.
[0022] Optionally, the constraint conditions include:
[0023] The constraints on the maximum power generation of distributed generators are:
[0024] P i,gen is the actual power of the generator, is the maximum generator power;
[0025] Constraints on the maximum power of energy storage equipment charging and discharging:
[0026] P i,ch / dis is the actual power of charge and discharge, is the maximum charge and discharge power;
[0027] Energy Storage SOC i The upper and lower limits of:
[0028] SOC i is the actual value of energy storage, and are the minimum and maximum energy storage values;
[0029] System frequency The upper and lower limits of allowed fluctuations:
[0030] is the actual frequency, ω - ,ω + is the extreme value of the frequency range.
[0031] Optionally, the cost function includes:
[0032] Based on the violation value of each constraint condition, the sum of the violation values is accumulated as a cost function.
[0033] Optionally, the secure boot network is expressed as follows:
[0034]
[0035] in, is the gradient of the policy network, is the gradient of the critical network, is the gradient of the introduced safety network;
[0036] The loss function of the secure boot network is:
[0037] Loss(ψ)=∑(cost i +γC(s′,a′)-C(s i ,a i )) 2
[0038] Among them, cost i represents the cost function under the current state action, E μ is the expected parameter.
[0039] Optionally, the network parameters of the critical network, the policy network and the safety network are dynamically updated online based on each sampling experience; the three target networks corresponding to the critical network, the policy network and the safety network are synchronously updated using a sliding average soft update method.
[0040] The present application also provides an interconnected microgrid system frequency control device, comprising:
[0041] A problem module, used to determine the frequency control problem of the interconnected microgrid system;
[0042] A model module, used for defining a Markov decision process model corresponding to the interconnected microgrid according to the control problem;
[0043] A building module for building a reinforcement learning agent for the interconnected microgrid according to the Markov decision process model;
[0044] A condition module, used to define the constraints followed by the reinforcement learning agent and the cost function generated when the constraints are violated;
[0045] An introduction module, used to introduce a safety boot network into the reinforcement learning agent according to the constraint condition and the cost function;
[0046] A detection module is used to deploy the reinforcement learning agent in a real environment, monitor the dynamic operating frequency of the interconnected microgrid system in real time, and output real-time control instructions for each control device according to the dynamic operating frequency;
[0047] A judgment module, used to generate the value of the cost according to the execution effect of the control instruction through the secure boot network;
[0048] An optimization module, used for the reinforcement learning agent to adjust and optimize the control strategy according to the value of the cost;
[0049] The execution module is used to deploy the adjusted and optimized reinforcement learning agent in the interconnected microgrid system to perform frequency control of the interconnected microgrid system.
[0050] The present application also provides an interconnected microgrid system frequency control device, comprising:
[0051] A memory, used to store a computer executable program of the above-mentioned method for controlling the frequency of an interconnected microgrid system;
[0052] A processor is used to call the computer executable program to execute: determining the frequency control problem of the interconnected microgrid system; defining the Markov decision process model corresponding to the interconnected microgrid according to the control problem; constructing a reinforcement learning agent for the interconnected microgrid according to the Markov decision process model; defining the constraints followed by the reinforcement learning agent and the cost function generated when the constraints are violated; introducing a safety boot network into the reinforcement learning agent according to the constraints and the cost function; deploying the reinforcement learning agent in a real environment, monitoring the dynamic operating frequency of the interconnected microgrid system in real time, and outputting real-time control instructions for each control device according to the dynamic operating frequency; generating the value of the cost according to the execution effect of the control instruction through the safety boot network; the reinforcement learning agent adjusts and optimizes the control strategy according to the value of the cost; and deploying the adjusted and optimized reinforcement learning agent in the interconnected microgrid system to control the frequency of the interconnected microgrid system.
[0053] The present application also provides a storage medium, comprising a computer executable program stored therein, wherein the computer executable program is used to be called by a processor to execute the steps of the above-mentioned method for frequency control of an interconnected microgrid system.
[0054] The beneficial effects of this application are:
[0055] The present application provides a method for controlling the frequency of an interconnected microgrid system, including: determining a control problem of the frequency of an interconnected microgrid system; defining a Markov decision process model corresponding to the interconnected microgrid according to the control problem; constructing a reinforcement learning agent for the interconnected microgrid according to the Markov decision process model; defining the constraints followed by the reinforcement learning agent and the cost function generated when the constraints are violated; introducing a safety boot network into the reinforcement learning agent according to the constraints and the cost function; deploying the reinforcement learning agent in a real environment, monitoring the dynamic operating frequency of the interconnected microgrid system in real time, and outputting real-time control instructions for each control device according to the dynamic operating frequency; generating the value of the cost according to the execution effect of the control instruction through the safety boot network; adjusting and optimizing the control strategy according to the value of the cost; and deploying the adjusted and optimized reinforcement learning agent in the interconnected microgrid system to control the frequency of the interconnected microgrid system. The present application uses data-driven real-time management of the optimal set values of distributed generators and energy storage systems in interconnected microgrid systems, and ensures the satisfaction of safety constraints such as system frequency limits and equipment output power limits by constructing a multi-agent reinforcement learning framework based on a safety boot network. This framework can effectively avoid the violation of the security constraints of the interconnected microgrid system without increasing the penalty term in the reward function, providing a new solution for the stable operation of the power system. BRIEF DESCRIPTION OF THE DRAWINGS
[0056] Figure 1 It is a schematic diagram of the frequency control process of the interconnected microgrid system in this application;
[0057] Figure 2 It is a schematic diagram of the framework of the secure reinforcement learning algorithm in this application;
[0058] Figure 3 It is a schematic diagram of the algorithm flow chart in this application. DETAILED DESCRIPTION
[0059] The present application is further described below in conjunction with the accompanying drawings and specific embodiments so that those skilled in the art can better understand the present application and implement it.
[0060] The following contents are all examples of specific implementation processes provided for describing in detail the technical solutions to be protected by this application. However, this application is also implemented in other ways different from the descriptions herein. Under the guidance of the concept of this application, those skilled in the art may implement this application using different technical means. Therefore, this application is not limited to the specific embodiments below.
[0061] Please refer to Figure 1 to Figure 3 As shown, the present application provides a method for controlling the frequency of an interconnected microgrid system, comprising:
[0062] S101, determining the control problem of the frequency of the interconnected microgrid system;
[0063] S102, defining a Markov decision process model corresponding to the interconnected microgrid according to the control problem;
[0064] S103, constructing a reinforcement learning agent for the interconnected microgrid according to the Markov decision process model;
[0065] S104, defining the constraints followed by the reinforcement learning agent and the cost function generated when the constraints are violated;
[0066] S105. Introducing a secure boot network into the reinforcement learning agent according to the constraint condition and the cost function;
[0067] S106, deploying the reinforcement learning agent in a real environment, monitoring the dynamic operating frequency of the interconnected microgrid system in real time, and outputting real-time control instructions for each control device according to the dynamic operating frequency;
[0068] S107, generating the value of the cost according to the execution effect of the control instruction through the secure boot network;
[0069] S108, the reinforcement learning agent adjusts and optimizes the control strategy according to the value of the cost;
[0070] S109, deploying the adjusted and optimized reinforcement learning agent in the interconnected microgrid system to perform frequency control of the interconnected microgrid system.
[0071] In steps S101 to S102, the steps of defining a Markov decision process mathematical model include:
[0072] According to the frequency control problem of the interconnected microgrid system, the core elements of the Markov decision process model corresponding to each microgrid are defined, including: state space, action space, and reward function, to obtain a sequential decision mathematical model equivalent to the control problem, namely the Markov decision process mathematical model.
[0073] First, a Markov decision process mathematical model is designed to characterize the corresponding control problem, including the design of three core elements:
[0074] a. Define the state space:
[0075] Determine the system state s of each microgrid i∈I i ={Δω i , P i,load , P i,PV}, the state observation variables include historical photovoltaic information P i,PV , load information P i,load And the current system frequency deviation Δω i .
[0076] b. Define the action space:
[0077] Determine the control actions allowed for all devices in each state a i = {ΔP i,gen , ΔP i,ess}, including the power change ΔP of distributed generation equipment i,gen and the power change ΔP of the energy storage device i,ess .
[0078] c. Define the reward function:
[0079] Determine the global reward corresponding to each state space-action space pair. The reward goal is to minimize the frequency deviation and total power generation cost of the interconnected microgrid system r = α ω ·R ω +α DG ·R DG , the α ω , α DG are the weight coefficients of the two reward factors respectively.
[0080] In steps S103 to S104, according to the global and local operation constraints of the interconnected microgrid system, including frequency restrictions and equipment restrictions, a corresponding breach cost function of each state-action pair is defined.
[0081] Specifically, an independent reinforcement learning control agent is constructed for each microgrid i, and the historical experience pool of each agent is also independent.
[0082] However, as an interconnected microgrid system as a whole, the global reward under the multi-agent reinforcement learning framework is shared and used to feedback the size of the global total power generation cost and the system frequency deviation, but the training process of each agent is distributed.
[0083] According to the physical limitations of the control equipment of the interconnected microgrid system and the system frequency limitations, the cost function of constraint violation is defined.
[0084] The constraints include two aspects:
[0085] 1. Constraints on the maximum power generation of distributed generators:
[0086] P i,gen is the actual power of the generator, is the maximum generator power;
[0087] Constraints on the maximum power of energy storage equipment charging and discharging:
[0088] P i,ch / dis is the actual power of charge and discharge, is the maximum charge and discharge power;
[0089] And its energy storage SOC i The upper and lower limits of:
[0090] SOC i is the actual value of energy storage, and are the minimum and maximum energy storage values.
[0091] 2. Upper and lower limits of system frequency fluctuations allowed:
[0092] System frequency The upper and lower limits of allowed fluctuations:
[0093] is the actual frequency, ω - ,ω + is the extreme value of the frequency range.
[0094] The cost function includes:
[0095] Based on the violation value of each constraint, the sum of the accumulated violation values is defined as the cost function.
[0096] In step S105, at each policy iteration step, a secure boot network is introduced to redefine the policy iteration gradient.
[0097] like Figure 2 As shown, the policy update gradient definition expression of the deterministic policy J(μ) is as follows:
[0098]
[0099] in is the gradient of the policy network, is the gradient of the critical network, is the gradient of the introduced security network.
[0100] Considering that the training of the secure boot network is off-policy and requires historical experience to update the network, the loss function of the secure boot network is further defined as:
[0101] Loss(ψ)=∑(cost i +γC(s′,a′)-C(s i ,a i )) 2
[0102] Among them, cost i represents the cost function under the current state action, E μ is the expected parameter.
[0103] In step 105, in the traditional policy update gradient link, the gradient of the security boot network is considered in parallel with the traditional policy network, and a loss function dynamically updated by the security boot network during the interactive training process is defined to strengthen the guarantee of constraint satisfaction.
[0104] At each policy iteration step, a secure boot network is introduced to redefine the policy iteration gradient.
[0105] like Figure 2 As shown, the policy update gradient definition expression of the deterministic policy J(μ) is as follows:
[0106]
[0107] in is the gradient of the policy network, is the gradient of the critical network, is the gradient of the introduced security network.
[0108] Considering that the training of the secure boot network is off-policy and requires historical experience to update the network, the loss function of the secure boot network is further defined as:
[0109] Loss(ψ)=∑(cost i +γC(s′,a′)-C(s i ,a i )) 2
[0110] Among them, cost i Represents the cost function under the current state action.
[0111] In steps 106 to S108, the reinforcement learning framework combined with the safety boot function is trained online in a real interconnected microgrid environment to obtain an effective frequency controller based on environmental feedback.
[0112] Specifically, the above multi-agent control framework is deployed in a real environment, and online agent training is completed through continuous interaction with the real network.
[0113] Based on the interaction data between the reinforcement learning controller and the real interconnected microgrid system, the network parameters of the three online networks, including the critical network, the policy network and the safety network, are dynamically updated online according to each sampling experience.
[0114] At the same time, the three target networks corresponding to the three online networks are synchronously updated using a sliding average soft update method.
[0115] A specific example is as follows:
[0116] The intelligent agents deployed in each microgrid collect real-time data by monitoring the dynamic operating frequency of the interconnected microgrid system in real time. The data includes the real-time deviation of the system frequency, the operating status of each power generation equipment and energy storage equipment, and the changes in user load.
[0117] Based on the collected real-time data, the agent outputs real-time control instructions for each control device according to the current state and reward function. After the control instruction is executed, the system state will change. The agent evaluates the effect of the control instruction by comparing the system state before and after execution.
[0118] Depending on the execution effect of the control instructions, the intelligent agent will receive a corresponding reward or punishment signal (i.e., the return value of the reward function).
[0119] The reward or penalty signal reflects the quality of the current control strategy and is an important basis for the intelligent agent to learn. The intelligent agent adjusts and optimizes its own control strategy based on the feedback signal.
[0120] During the policy update process, the secure boot network adjusts the gradient of the policy network by analyzing the constraint violations that may be caused by the current policy to ensure that the policy update is performed within the security domain.
[0121] At the same time, the intelligent agent will also use historical experience data to continuously optimize the parameters of the policy network, criticism network and security network through deep learning algorithms.
[0122] By continuously monitoring the performance of the agent, we can observe its performance and convergence in different time periods. If we find that the performance of the agent has not improved significantly over a period of time, or there is excessive fluctuation, we need to conduct more in-depth investigation and optimization.
[0123] After meeting the preset performance requirements or reaching the convergence state, the agent is considered to have learned a relatively ideal frequency control strategy.
[0124] According to the above real-time interaction and control results, the frequency control model of each intelligent agent in the interconnected microgrid system is continuously corrected through feedback, and the model's automatic parameter adjustment is used to continuously balance between random exploration training and experience utilization optimization until the intelligent agent converges to the optimal control strategy.
[0125] In step S109, the trained reinforcement learning agent is deployed to each microgrid to monitor in real time and output real-time instructions for each control device based on the dynamic operating frequency of the system to complete frequency control.
[0126] The present application also provides an interconnected microgrid system frequency control device, comprising:
[0127] A problem module, used to determine the frequency control problem of the interconnected microgrid system;
[0128] A model module, used for defining a Markov decision process model corresponding to the interconnected microgrid according to the control problem;
[0129] A building module for building a reinforcement learning agent for the interconnected microgrid according to the Markov decision process model;
[0130] A condition module, used to define the constraints followed by the reinforcement learning agent and the cost function generated when the constraints are violated;
[0131] An introduction module, used to introduce a safety boot network into the reinforcement learning agent according to the constraint condition and the cost function;
[0132] A detection module is used to deploy the reinforcement learning agent in a real environment, monitor the dynamic operating frequency of the interconnected microgrid system in real time, and output real-time control instructions for each control device according to the dynamic operating frequency;
[0133] A judgment module, used to generate the value of the cost according to the execution effect of the control instruction through the secure boot network;
[0134] An optimization module, used for the reinforcement learning agent to adjust and optimize the control strategy according to the value of the cost;
[0135] The execution module is used to deploy the adjusted and optimized reinforcement learning agent in the interconnected microgrid system to perform frequency control of the interconnected microgrid system.
[0136] The present application also provides an interconnected microgrid system frequency control device, comprising:
[0137] A memory, used to store a computer executable program of the above-mentioned method for controlling the frequency of an interconnected microgrid system;
[0138] A processor is used to call the computer executable program to execute: determining the frequency control problem of the interconnected microgrid system; defining the Markov decision process model corresponding to the interconnected microgrid according to the control problem; constructing a reinforcement learning agent for the interconnected microgrid according to the Markov decision process model; defining the constraints followed by the reinforcement learning agent and the cost function generated when the constraints are violated; introducing a safety boot network into the reinforcement learning agent according to the constraints and the cost function; deploying the reinforcement learning agent in a real environment, monitoring the dynamic operating frequency of the interconnected microgrid system in real time, and outputting real-time control instructions for each control device according to the dynamic operating frequency; generating the value of the cost according to the execution effect of the control instruction through the safety boot network; the reinforcement learning agent adjusts and optimizes the control strategy according to the value of the cost; and deploying the adjusted and optimized reinforcement learning agent in the interconnected microgrid system to control the frequency of the interconnected microgrid system.
[0139] The present application also provides a storage medium, comprising a computer executable program stored therein, wherein the computer executable program is used to be called by a processor to execute the steps of the above-mentioned method for frequency control of an interconnected microgrid system.
Claims
1. A frequency control method for an interconnected microgrid system, It is characterized in that include: Determine the control problem of the frequency of the interconnected microgrid system; Defining a Markov decision process model corresponding to the interconnected microgrid according to the control problem; constructing a reinforcement learning agent for the interconnected microgrid according to the Markov decision process model; Defining constraints followed by the reinforcement learning agent and a cost function generated when the constraints are violated; Introducing a safety guidance network into the reinforcement learning agent according to the constraint condition and the cost function; Deploy the reinforcement learning agent in a real environment, monitor the dynamic operating frequency of the interconnected microgrid system in real time, and output real-time control instructions for each control device according to the dynamic operating frequency; generating the value of the cost according to the execution effect of the control instruction through the secure boot network; The reinforcement learning agent adjusts and optimizes the control strategy according to the value of the cost; The adjusted and optimized reinforcement learning agent is deployed in the interconnected microgrid system to perform frequency control of the interconnected microgrid system.
2. According to the frequency control method of the interconnected microgrid system of claim 1, It is characterized in that The Markov decision process model corresponding to the interconnected microgrid is defined according to the control problem, including: Defining the system status of each interconnected microgrid, including: historical photovoltaic power generation data, load information and system frequency deviation; Determining the control actions that can be performed by all devices in each of the system states; A reward function is determined according to the system state and the control action.
3. According to the frequency control method of the interconnected microgrid system of claim 1, It is characterized in that The reinforcement learning agent includes: a plurality of intelligent individuals; Setting each of the intelligent individuals as an independent historical experience pool; A common reward function is set for each of the intelligent entities.
4. According to the frequency control method of the interconnected microgrid system of claim 1, It is characterized in that The constraints include: The constraints on the maximum power generation of distributed generators are: P i,gen is the actual power of the generator, is the maximum generator power; Constraints on the maximum power of energy storage equipment charging and discharging: P i,ch / dis is the actual power of charge and discharge, is the maximum power of charge and discharge; Energy Storage SOC i The upper and lower limits of: SOC i is the actual value of energy storage, and are the minimum and maximum energy storage values; System frequency The upper and lower limits of allowed fluctuations: is the actual frequency, ω - ,ω + is the extreme value of the frequency range.
5. According to the frequency control method of the interconnected microgrid system as claimed in claim 4, It is characterized in that The cost function includes: Based on the violation value of each constraint condition, the sum of the violation values is accumulated as a cost function.
6. The method for controlling the frequency of an interconnected microgrid system according to claim 1, It is characterized in that The secure boot network is expressed as follows: in, is the gradient of the policy network, is the gradient of the critical network, is the gradient of the introduced safety network; The loss function of the secure boot network is: Loss(ψ)=∑(costi+γC(s,a)-C(s;,a)) Among them, cost i represents the cost function under the current state action, E μ is the expected parameter.
7. The method for controlling the frequency of an interconnected microgrid system according to claim 6, It is characterized in that The network parameters of the critical network, the policy network and the safety network are dynamically updated online based on each sampling experience; the three target networks corresponding to the critical network, the policy network and the safety network are synchronously updated using a sliding average soft update method.
8. A frequency control device for an interconnected microgrid system, It is characterized in that include: A problem module, used to determine the frequency control problem of the interconnected microgrid system; A model module, used for defining a Markov decision process model corresponding to the interconnected microgrid according to the control problem; A building module for building a reinforcement learning agent for the interconnected microgrid according to the Markov decision process model; A condition module, used to define the constraints followed by the reinforcement learning agent and the cost function generated when the constraints are violated; An introduction module, used to introduce a safety boot network into the reinforcement learning agent according to the constraint condition and the cost function; A detection module is used to deploy the reinforcement learning agent in a real environment, monitor the dynamic operating frequency of the interconnected microgrid system in real time, and output real-time control instructions for each control device according to the dynamic operating frequency; A judgment module, used to generate the value of the cost according to the execution effect of the control instruction through the secure boot network; An optimization module, used for the reinforcement learning agent to adjust and optimize the control strategy according to the value of the cost; The execution module is used to deploy the adjusted and optimized reinforcement learning agent in the interconnected microgrid system to perform frequency control of the interconnected microgrid system.
9. A frequency control device for an interconnected microgrid system, It is characterized in that include: A memory for storing a computer executable program of a frequency control method for an interconnected microgrid system according to any one of claims 1 to 7; A processor is used to call the computer executable program to execute: determining a frequency control problem of an interconnected microgrid system; defining a Markov decision process model corresponding to the interconnected microgrid according to the control problem; and constructing a reinforcement learning agent for the interconnected microgrid according to the Markov decision process model; Defining constraints followed by the reinforcement learning agent and a cost function generated when the constraints are violated; introducing a safety boot network into the reinforcement learning agent according to the constraints and the cost function; Deploy the reinforcement learning agent in a real environment, monitor the dynamic operating frequency of the interconnected microgrid system in real time, and output real-time control instructions for each control device according to the dynamic operating frequency; generating the value of the cost according to the execution effect of the control instruction through the secure boot network; The reinforcement learning agent adjusts and optimizes the control strategy according to the value of the cost; and the adjusted and optimized reinforcement learning agent is deployed in the interconnected microgrid system to perform frequency control of the interconnected microgrid system.
10. A storage medium, It is characterized in that The invention comprises a computer executable program stored therein, wherein the computer executable program is used to be called by a processor to execute the steps of a frequency control method of an interconnected microgrid system as described in any one of claims 1 to 7.
