Microgrid group optimization scheduling method and system based on MADDPG and Pareto frontier
The microgrid cluster optimization scheduling method that combines MADDPG and Pareto frontier solves the dynamic scheduling problem in the complex environment of microgrid clusters, achieves efficient utilization of energy resources and optimizes environmental performance, and improves the adaptability and robustness of the system. sex.
Patent Information
- Application Number
- CN202410922305.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-10
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2044-07-10
AI Technical Summary
The management and optimal dispatch of microgrid groups face complex dynamic relationships and external environmental uncertainties. It is difficult to respond to energy demand fluctuations in real time, optimize renewable energy utilization, coordinate energy exchange between nodes and prevent system failures. Traditional control methods are difficult to find economic benefits. , the best balance between environmental impact and power supply reliability.
The microgrid group optimization scheduling method based on MADDPG and Pareto frontier is adopted, the Markov decision-making process is framed through the multi-agent deep reinforcement learning model, the state space, action space and multi-objective reward function are defined, and the Ornstein-Uhlenbeck process is used to increase The exploratory nature of the training phase calculates the Pareto front to select a strategy with a higher reward value, ensuring the best performance under multi-objective optimization conditions.
It achieves strategy optimality and robustness under changing conditions, adapts to the volatility of renewable energy, integrates energy resources and equipment operation strategies, maximizes cost-effectiveness, minimizes environmental impact and system operation safety, and improves microgrid clusters overall operating efficiency and reliability.
Smart Images

Figure CN118572795B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of microgrid group optimization scheduling, and in particular to a microgrid group optimization scheduling method and system based on the combination of MADDPG and Pareto front. Background Art
[0002] With the growth of global energy demand and the improvement of environmental protection standards, microgrids, as a key platform for integrating renewable energy, are gaining increasing attention. Microgrids can not only improve energy utilization efficiency, but also achieve flexibility and optimization of energy supply by integrating multiple energy forms such as wind power, photovoltaic power, thermal power generation and energy storage equipment. When these systems are connected to the main power grid, they can enhance the stability and load response capabilities of the power system; when the main power grid fails, they can also operate independently to ensure power supply in key areas, greatly improving the safety and reliability of power supply.
[0003] The high degree of autonomy and flexibility of energy management of microgrids provide independent or auxiliary power support in specific areas or communities. However, with the advancement of technology and the expansion of application scenarios, the functions and benefits of a single microgrid are often limited by its scale and geographical location. In this context, the concept of microgrid clusters came into being. Microgrid clusters are composed of multiple microgrid nodes. While maintaining their independent operations, these nodes can also share energy and information through interconnection, thereby greatly improving overall energy efficiency and economic benefits.
[0004] The management and optimal scheduling of microgrid clusters face more complex challenges than a single microgrid. Each microgrid node has a certain degree of autonomy and needs to handle its own energy production and consumption, while also exchanging energy with other nodes. This requires not only an efficient system to coordinate and optimize the operation of the entire microgrid cluster, but also the system to be able to adapt to rapidly changing environments and complex multi-objective decision-making needs. The main technical challenges include how to respond to fluctuations in energy demand in real time, how to optimize the use of renewable energy, how to coordinate energy exchanges between nodes, and how to prevent and respond to potential system failures or external interference.
[0005] Traditional control methods often have difficulty effectively handling the complex dynamic relationships within microgrids and the uncertainty of the external environment. The optimal scheduling of microgrids needs to consider how to find the best balance between reducing carbon emissions, reducing energy costs, and improving power supply reliability. In addition, the high volatility and unpredictability of renewable energy further increase the complexity of scheduling strategies. Summary of the invention
[0006] The purpose of the present invention is to provide a microgrid group optimization scheduling method, device and equipment based on the combination of MADDPG and Pareto front, aiming to effectively deal with the continuous action space problem in a dynamic and complex environment, and to support decision makers in seeking the best balance between economic benefits, environmental impact and power supply reliability by integrating multi-objective optimization tools, so as to achieve efficient utilization of resources and optimize environmental performance.
[0007] The present invention provides a microgrid group optimization scheduling method based on the combination of MADDPG and Pareto front, comprising:
[0008] According to the multiple objectives of the microgrid group and the key factors related to the optimization of the microgrid group scheduling, a microgrid group optimization scheduling model is established, wherein the multiple objectives at least include economic costs, environmental impacts and safe operation objectives, and the key factors related to the optimization of the microgrid group scheduling include the optimal operation of the energy storage system and the operating constraints of the diesel engine and equipment;
[0009] Establish a model based on multi-agent deep reinforcement learning, frame the microgrid group scheduling problem as a Markov decision process, define the corresponding state space, action space and reward function, and generate a multi-agent reinforcement learning model;
[0010] Performing initial optimization operations on a multi-agent reinforcement learning model in an initial training stage based on the MADDPG algorithm and training the model, wherein the initial optimization operations include introducing an OU process based on the MADDPG algorithm to add noise to the strategy in the reinforcement learning;
[0011] Historical data is collected and analyzed to obtain the fluctuation curves of key energy output and load demand, and the Pareto frontier of the optimal strategy of the microgrid group under different behavior modes is calculated, and the strategy with a higher reward value is selected as the final output result.
[0012] Preferably, the microgrid group optimization scheduling model includes multiple microgrid nodes, each of which includes wind power generation, photovoltaic power generation, diesel power generation, load and energy storage facilities.
[0013] The output power of wind power generation, photovoltaic power generation and load at time t is configured as , and ;
[0014] Determine and configure the relationship between the remaining power of the energy storage battery at the current moment and the remaining power at the previous moment, the power of the energy storage battery, and the charging and discharging efficiency. The calculation of the energy storage status update is as follows:
[0015] ,
[0016] Charge and discharge constraints: and ,
[0017] Energy storage capacity constraints: ,
[0018] in, and represents the energy storage state at time t and time t+1, Δt represents the time interval, , and They represent the energy storage attenuation coefficient, charging efficiency and discharging efficiency respectively. and Indicates charging and discharging power;
[0019] Diesel generators are configured as backup power sources for the microgrid group. The fuel cost of the diesel generator is calculated as follows:
[0020] ;
[0021] The output power of the diesel generator at time t The following climbing constraints must be met:
[0022] ;
[0023] in, is the total fuel cost of the diesel generator at time t, is the output power of the diesel generator, a and b are the coefficients of the equation, which are used to calculate the fuel consumption. The cost per unit of fuel consumed by a diesel generator.
[0024] Preferably, the establishment of a microgrid group optimization scheduling model further includes:
[0025] When the configuration is running, a single microgrid node needs to maintain power balance at any time t, and the following formula must be satisfied:
[0026] ,
[0027] Constraints for power exchange: ,
[0028] The power balance of the entire microgrid group at time t is expressed as the following formula:
[0029] ,
[0030] In the formula, The amount of electricity traded between the microgrid node and the main grid. , are the input power from node j to node i and the output power from node i to node j, j∈N, , is a 0 / 1 variable. When node i outputs power to node j, the variable The value is 1, otherwise it is 0; when node j inputs power to node i, the variable The value is 1, otherwise the value is 0.
[0031] Preferably, the establishment of a microgrid group optimization scheduling model further includes:
[0032] With the goal of maximizing the total revenue of the entire microgrid group in T time intervals, the first objective function is established:
[0033] ,
[0034] in, The cost of the energy storage system, including power loss and maintenance management costs , expressed as:
[0035] ,
[0036] The maintenance cost for a diesel generator is expressed as:
[0037] ,
[0038] For electricity trading income, For positive time, For electricity sales, the corresponding electricity sales price is ;when When it is negative, To buy electricity, the corresponding electricity price is , the calculation formula is as follows:
[0039] ,
[0040] With the goal of minimizing the carbon emissions of the entire system, the second objective function is established:
[0041] ,
[0042] Taking minimizing the sum of all costs and carbon emissions as the overall objective function, the overall objective function is established:
[0043] ,
[0044] in, is the total fuel cost of the diesel engine at time t, is the unit power operating cost, is the maintenance cost per unit power, EF is the carbon emission factor, Put a price on carbon emissions.
[0045] Preferably, the establishment of a model based on multi-agent deep reinforcement learning includes:
[0046] Define a state space, which includes wind power generation, photovoltaic power generation, diesel power generation, energy storage status, current load demand, power transaction prices and historical transaction data with neighboring nodes and the main grid, and related information about the status of each microgrid node at any time t. The state space It is expressed as:
[0047] ,
[0048] Define an action space, which includes adjusting the output power of various power generation equipment, charging and discharging decisions of energy storage equipment, deciding the amount of electricity to buy or sell to neighboring microgrids, and buying and selling electricity with the main grid, as well as possible actions that each node agent can take. It is expressed as:
[0049] ,
[0050] Define the reward function and construct a multi-objective reward function that includes economic benefit influencing factors, environmental influencing factors, and power supply reliability influencing factors:
[0051] ,
[0052] in, represents the diesel generator maintenance cost, represents the priority coefficient of each sub-goal in the scalar reward function, Indicates the penalty for actions that go beyond the bounds / do not comply with the constraints;
[0053] The multi-agent deep reinforcement learning model is trained according to the state, action and reward function of the agent to obtain a trained multi-agent deep reinforcement learning model.
[0054] Preferably, the initial optimization operation of the multi-agent reinforcement learning model in the initial training stage based on the MADDPG algorithm includes:
[0055] The OU process is used to add noise to the output action of the Actor network. The OU process is described by a stochastic differential equation:
[0056] ,
[0057] in, is the state of the process at time t, μ is the long-term mean, θ is the rate constant indicating how quickly the process regresses to the mean, σ is the volatility of the process, that is, the intensity of the noise, is a standard Wiener process or Brownian motion, representing random perturbations.
[0058] Preferably, the collecting of historical data for analysis to obtain fluctuation curves of key energy output and load demand, and calculating the Pareto frontier of the optimal strategy of the microgrid group under different behavior modes, and selecting the strategy with a higher reward value as the final output result further includes:
[0059] Get the current state from the microgrid environment and input it into the Actor network in MADDPG;
[0060] In the initial stage of training, the OU process is used to add noise to the action output of the Actor;
[0061] Obtain the historical data and average fluctuation curve of each node, calculate the Pareto frontier of the optimal strategy of the microgrid group under different behavior modes, and obtain the Pareto optimal solution set that meets all the considered factors;
[0062] In the strategy selection process, the reward value of the strategy output by the trained multi-agent reinforcement learning model is compared with the reward value of the closest strategy on the Pareto frontier, and the strategy with a higher reward value is selected as the output to ensure the best performance while meeting multiple optimization objectives;
[0063] The reward function is used to score the obtained actions, and the state at the next moment is obtained through the interaction between the agent and the environment. The current state, action, reward, and state at the next moment are stored in the experience pool;
[0064] Collect experience data from the experience pool and continue to input the model, iteratively train the Actor network and Critic network until the strategy converges.
[0065] Preferably, the Pareto frontier of the optimal strategy of the microgrid group under different behavior modes is calculated, and the strategy with a higher reward value is selected as the final output result, including:
[0066] When there are first nodes, second nodes and third nodes with different power supply capabilities on the microgrid group, the Pareto frontiers under different behavior modes are determined;
[0067] If the current behavior mode is an economic benefit maximization behavior mode, and the Pareto front includes various strategy combinations that strike a balance between maximizing benefits and minimizing costs, then the goal is to maximize the total benefits of the system, which include power generation benefits and power trading income, minimize power generation costs and energy storage costs, and execute the corresponding first strategy, which includes giving priority to wind power generation for the first node and selling the remaining power to the main grid when the electricity price is greater than the threshold; giving priority to photovoltaic power generation for the second node; purchasing and storing electricity from the main grid for the third node when the electricity price is less than the threshold, and using energy storage equipment to supply power when the electricity price is greater than the threshold;
[0068] If the current behavior mode is an environmental impact minimization behavior mode, and the Pareto front includes various strategy combinations that strike a balance between carbon emission minimization and power supply stability, then the corresponding second strategy is executed with the goal of minimizing the carbon emissions of the system, and the second strategy includes balancing supply and demand through energy storage devices for both the first node and the second node; and giving priority to using the power of the energy storage device for the third node;
[0069] If the current behavior mode is a power supply reliability maximization behavior mode, the Pareto front includes various strategy combinations that strike a balance between power supply reliability and economic costs, and the goal is to ensure stable power supply under load fluctuations and unstable energy supply. The total benefit includes power generation income and power trading income, minimizes power generation costs and energy storage costs, and executes the corresponding third strategy, which includes switching to energy storage equipment for power supply when wind power generation is insufficient for the first node; using diesel generators to ensure power supply for the second node when photovoltaic power generation is insufficient; and keeping the charging level of the energy storage equipment at the third node in a saturated state for use in emergency situations;
[0070] Select the optimal strategy operation from the Pareto frontier of different behavior patterns according to actual operational needs and strategy priorities;
[0071] The first node has wind power generation and energy storage equipment, the second node has photovoltaic power generation and a diesel generator, and the third node has a load and energy storage equipment.
[0072] The present invention also provides a microgrid group optimization dispatching system based on the combination of MADDPG and Pareto frontier, comprising:
[0073] A microgrid group optimization dispatch model construction module is used to establish a microgrid group optimization dispatch model according to the multiple objectives of the microgrid group and key factors related to the microgrid group dispatch optimization, wherein the multiple objectives at least include economic costs, environmental impacts and safe operation objectives, and the key factors related to the microgrid group dispatch optimization include the optimal operation of the energy storage system and the operating constraints of the diesel engine and equipment;
[0074] The multi-agent reinforcement learning model building module is used to build a model based on multi-agent deep reinforcement learning, frame the microgrid group scheduling problem as a Markov decision process, define the corresponding state space, action space and reward function, and generate a multi-agent reinforcement learning model;
[0075] An initial optimization module, used to perform initial optimization operations on a multi-agent reinforcement learning model in the initial training stage based on the MADDPG algorithm and to train the model, wherein the initial optimization operations include introducing an OU process based on the MADDPG algorithm to add noise to the strategy in the reinforcement learning;
[0076] The comparative decision module is used to collect historical data for analysis to obtain the fluctuation curves of key energy output and load demand, and calculate the Pareto frontier of the optimal strategy of the microgrid group under different behavior modes, and select the strategy with a higher reward value as the final output result.
[0077] The present invention also provides an electronic device, comprising:
[0078] A memory, the memory being used to store a processing program;
[0079] A processor, wherein when executing the processing program, the processor implements the microgrid group optimization scheduling method based on the combination of MADDPG and Pareto front as described in an embodiment of the present invention.
[0080] With respect to the prior art, the present invention has the following beneficial effects:
[0081] The present invention proposes a microgrid group optimization scheduling method based on the combination of MADDPG and Pareto front. First, a model based on multi-agent deep reinforcement learning is established to frame the microgrid group scheduling problem as a Markov decision process, and the corresponding state space, action space and reward function are defined. The exploratory nature of the initial training stage is increased through the Ornstein-Uhlenbeck process to avoid the algorithm from converging to the local optimal solution in the early stage. The fluctuation curves of key energy output and load demand are obtained by historical data analysis, and the Pareto frontier of the strategy is calculated, so as to select the strategy with a higher reward value as the final output in the later stage of training. This method ensures the optimality of the strategy and the robustness of the system under changing conditions by iterative training until the strategy converges, especially showing excellent adaptability in dealing with the volatility of renewable energy.
[0082] The present invention effectively achieves the maximization of cost-effectiveness, the minimization of environmental impact and the highest safety of system operation by integrating the operation strategies of various energy resources and equipment; the model achieves an effective balance between multiple objectives by setting a diversified reward function and flexibly adjusting the reward weight; the model uses the OU process to add noise to the action in the early stage of training, which increases the exploratory nature and avoids the algorithm from converging to the local optimal solution too early; and by comparing the reward value of the strategy output by the intelligent agent with the strategy on the Pareto frontier, the strategy with a higher reward value is selected as the final output, ensuring the best performance under the condition of satisfying multi-objective optimization. This series of measures not only optimizes the decision-making process, but also improves the adaptability and robustness of the system in dealing with fluctuations in renewable energy, and enhances the overall operating efficiency and reliability of the microgrid group. BRIEF DESCRIPTION OF THE DRAWINGS
[0083] Figure 1 A schematic diagram of the steps of a microgrid group optimization scheduling method based on the combination of MADDPG and Pareto front in one embodiment of the present invention;
[0084] Figure 2 A microgrid group structure diagram in one embodiment of the present invention;
[0085] Figure 3 The present invention is a flowchart of the operation of the microgrid group optimization scheduling method based on the combination of MADDPG and Pareto front in one embodiment of the present invention. DETAILED DESCRIPTION
[0086] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0087] The term "including" and its variations used herein are open inclusions, i.e., "including but not limited to". The term "based on" means "based at least in part on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". The relevant definitions of other terms will be given in the following description.
[0088] It should be noted that the concepts such as "once" and "second" mentioned in the present application are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.
[0089] It should be noted that the modifications of "one" and "plurality" mentioned in the disclosure of this application are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, it should be understood as "one or more".
[0090] Embodiment 1
[0091] like Figure 1 As shown, the present invention provides a microgrid group optimization scheduling method based on the combination of MADDPG and Pareto frontier, comprising the following steps:
[0092] S1: Establish a microgrid group optimization scheduling model based on the multiple objectives of the microgrid group and the key factors related to the microgrid group scheduling optimization, wherein the multiple objectives include at least economic cost, environmental impact and safe operation objectives, and the key factors related to the microgrid group scheduling optimization include the optimized operation of the energy storage system, the operation constraints of the diesel engine and the equipment; it can be understood that the step 1 of the optimization scheduling method adopted in this embodiment is to consider the multiple objectives such as the economic cost, environmental impact and safe operation of the microgrid group, and also incorporate the key factors such as the optimized operation of the energy storage system, the efficient management of the diesel engine, and the operation constraints of the equipment to construct the microgrid group optimization scheduling model: Figure 2 As shown, there are multiple microgrid nodes in the microgrid group, each of which will include wind power generation, photovoltaic power generation, diesel power generation, load and energy storage facilities, which can predict and plan the operation of the microgrid group under different environmental conditions.
[0093] The mathematical model of each unit in the microgrid system is established as follows:
[0094] 1.1) Wind power generation:
[0095] The wind turbine output power per hour is , i∈N represents the i-th node among N nodes, and t∈T represents the t-th moment.
[0096] 1.2) Photovoltaic power generation:
[0097] Photovoltaic power generation is the process of directly converting sunlight into electrical energy using solar panels. Its power generation is affected by weather conditions and sunshine hours. The hourly output power of photovoltaic power generation is .
[0098] 1.3) Energy storage facilities:
[0099] The relationship between the remaining power of the energy storage battery at the current moment and the remaining power at the previous moment, the power of the energy storage battery and the charging and discharging efficiency is calculated as follows:
[0100] ,
[0101] Charge and discharge constraints: and ,
[0102] Energy storage capacity constraints: ,
[0103] in, and represents the energy storage state at time t and time t+1, Δt represents the time interval and is subject to the above energy storage capacity constraints. , and They represent the energy storage attenuation coefficient, charging efficiency and discharging efficiency respectively. and Indicates charging and discharging power.
[0104] 1.4) Diesel power generation:
[0105] Diesel engines are a very common controllable distributed dispatchable power source in microgrids. Their output is almost unaffected by environmental factors, and they are small in size, easy to control, and the relevant technology is relatively mature. They can better compensate for the volatility and intermittency of renewable energy output. However, they consume fuel when generating electricity and cause serious environmental pollution.
[0106] Therefore, the comprehensive power generation cost is high, so it is often used as a backup power source for microgrids to ensure their power supply reliability.
[0107] Its fuel cost is as follows: Using the diesel generator as the backup power source of the microgrid, the fuel cost of the diesel generator is calculated as follows:
[0108] ;
[0109] The output power of the diesel generator at time t The following climbing constraints must be met:
[0110] ;
[0111] in, is the total fuel cost of the diesel generator at time t, is the output power of the diesel generator, a and b are the coefficients of the equation, which are used to calculate the fuel consumption. The cost of diesel generators per unit of fuel consumption is calculated, and the stability and controllability of the diesel generator output power are ensured through the above ramp constraints. By optimizing the operation of diesel generators, reducing their fuel consumption and related environmental pollution, and increasing the use of renewable energy such as wind and solar energy, it helps reduce greenhouse gas emissions.
[0112] 1.5) Load:
[0113] In the power system, load refers to the equipment or facilities connected to the power grid and consuming electrical energy. The total load power at time t is defined as .
[0114] 1.6) Power balance:
[0115] At time t, the power balance within a single node of the microgrid needs to be maintained, satisfying the following formula:
[0116] ;
[0117] Constraints for power exchange: ;
[0118] In the formula, The amount of electricity traded between the microgrid node and the main grid. , are the input power from node j to node i and the output power from node i to node j, j∈N, , is a 0 / 1 variable. When node i outputs power to node j, the variable The value is 1, otherwise it is 0; when node j inputs power to node i, the variable The value is 1, otherwise the value is 0.
[0119] The power balance of the microgrid group is expressed as follows:
[0120] .
[0121] The above process can significantly improve the energy efficiency of the entire microgrid group by precisely controlling the output power of wind power generation, photovoltaic power generation and diesel power generation, and optimizing the charging and discharging strategy of energy storage facilities, which not only helps to reduce energy waste, but also reduces operating costs; the model takes into account load demand and power balance to ensure that the power supply and demand within each node and the entire microgrid group match. This balancing mechanism helps to improve the reliability of power supply and reduce power outages caused by insufficient or excessive power; comprehensive management of power generation costs, especially by optimizing the use of diesel generators and power trading strategies, can reduce overall operating costs. At the same time, through effective power trading, additional income can be obtained in the market; the model allows power trading between multiple nodes, which not only improves the system's adaptability to local supply and demand changes, but also enhances the entire microgrid group's responsiveness to external changes such as market demand fluctuations and policy changes. By clearly defining the models and operating constraints of each component such as wind power generation, photovoltaic power generation, and energy storage facilities, the decision-making process is made more transparent and easy to understand, which helps to enhance the trust and satisfaction of all parties in the system operation.
[0122] 1.7) Multi-objective function:
[0123] In power dispatching, it is usually necessary to consider not only economic benefits, but also multiple goals such as environmental impact and grid stability. Among them, economic benefits are to maximize the total benefits of the entire microgrid group in one day, including power generation costs, power trading income and costs, etc., as shown in the following formula:
[0124] With the goal of maximizing the total revenue of the entire microgrid group in T time intervals, the first objective function is established:
[0125] ,
[0126] in, The cost of the energy storage system, including power loss and maintenance management costs , expressed as:
[0127] ,
[0128] The maintenance cost for a diesel generator is expressed as:
[0129] ,
[0130] For electricity trading income, For positive time, For electricity sales, the corresponding electricity sales price is ;when When it is negative, To buy electricity, the corresponding electricity price is The specific calculation formula is as follows:
[0131] ,
[0132] Environmental impact is specifically manifested in minimizing the carbon emissions of the entire system, especially reducing thermal power generation that relies on fossil fuels. With the goal of minimizing the carbon emissions of the entire system, the second objective function is established, that is, the carbon emission function is defined:
[0133] ,
[0134] Taking minimizing the sum of all costs and carbon emissions as the overall objective function, the overall objective function is established:
[0135] ,
[0136] in, is the total fuel cost of the diesel engine at time t, is the unit power operating cost, is the maintenance cost per unit power, EF is the carbon emission factor, The pricing of carbon emissions is determined by the carbon trading market price.
[0137] In this embodiment, it is crucial to consider multiple objective functions in power system dispatch, especially in the management of microgrid groups. This approach not only helps to optimize economic benefits, but also takes into account key factors such as environmental impact and grid stability. By considering factors such as power generation costs, power trading income and costs, the multi-objective function aims to maximize the total revenue of the entire microgrid group in one day, which includes the maintenance cost of diesel generators, the power loss and maintenance management costs of the energy storage system, and the price of electricity purchase and sale with the main power grid. Such comprehensive considerations help achieve economic sustainability and efficiency; the multi-objective function also pays special attention to minimizing the carbon emissions of the entire system, especially reducing thermal power generation that relies on fossil fuels. By introducing carbon emission factors and carbon trading market prices, the function encourages the adoption of cleaner energy solutions such as wind and solar energy, thereby reducing negative impacts on the environment; in the multi-objective function, although the direct goal may not explicitly mention grid stability, it indirectly affects electricity by optimizing economic benefits and environmental impacts. The operation stability of the grid, for example, reducing dependence on fossil fuels can reduce the risk of power outages and improve the system's adaptability to fluctuations in renewable energy; the multi-objective function allows decision makers to find the optimal balance between multiple objectives. This balance is not only a trade-off between economic benefits and environmental impacts, but also includes considerations of grid stability. Through methods such as the Pareto frontier, the best compromise solution between different objectives can be found; the multi-objective function provides decision makers with a clear framework to evaluate the performance of different strategies in multiple dimensions. This transparency helps stakeholders understand the reasons behind the decision and provides the flexibility to adjust the strategy to meet specific needs; by considering both economic benefits and environmental impacts, the multi-objective function encourages the adoption of more sustainable operating strategies, which helps reduce greenhouse gas emissions. In summary, the multi-objective function provides a decision-making tool that comprehensively considers economic, environmental and social stability goals in the optimal dispatch of microgrid groups, ensuring the economic efficiency and environmental responsibility of grid operation.
[0138] S2: Establish a model based on multi-agent deep reinforcement learning, frame the microgrid group scheduling problem as a Markov decision process, define the corresponding state space, action space and reward function, and generate a multi-agent reinforcement learning model;
[0139] In this embodiment, the optimization scheduling problem of the microgrid group is transformed into a multi-agent reinforcement learning model. The corresponding state space, action space and reward function are defined. The reward function includes aspects such as economic benefits, environmental impact and power supply reliability, and corresponding weights are set for these diversified goals so that they can be adjusted according to actual operation goals and policy priorities. The specific multi-agent reinforcement learning model is defined as follows:
[0140] 2.1) Define the state space:
[0141] The state of each microgrid node includes wind power generation, photovoltaic power generation, diesel power generation, energy storage status, current load demand, and power transaction prices and historical transaction data with neighboring nodes and the main grid, that is, the relevant information of the state of each microgrid node at any time t. The state space It is expressed as:
[0142] ,
[0143] 2.2) Define the action space:
[0144] The actions of each node include adjusting the output power of various power generation equipment, charging and discharging decisions of energy storage equipment, deciding the amount of electricity to buy or sell to neighboring microgrids, and buying and selling electricity with the main grid. In other words, each node agent can take possible actions. The action space consists of It is expressed as:
[0145] ,
[0146] 2.3) Define the reward function:
[0147] Construct a multi-objective reward function that includes economic benefit factors, environmental factors, and power supply reliability factors:
[0148] ,
[0149] in, represents the diesel power generation maintenance cost, and the scalar reward function can define the priority of the sub-goals according to the specific actual situation, thus affecting the final strategy. represents the priority coefficient of each sub-goal in the scalar reward function, Indicates the penalty for actions that go beyond the bounds / do not comply with the constraints.
[0150] After the above is completed, the multi-agent deep reinforcement learning model is trained according to the state, action and reward function of the agent to obtain a trained multi-agent deep reinforcement learning model, which is described in detail below. In the optimal scheduling problem of the microgrid group, the problem is converted into a multi-agent reinforcement learning model and the corresponding state space, action space and reward function are defined. By defining a specific state space and action space for each microgrid node, the operation strategy of each node can be accurately controlled and adjusted. This refined control can better adapt to the specific needs and conditions of each node, thereby optimizing the operating efficiency of the entire system. The design of the multi-objective reward function allows for the simultaneous consideration of multiple aspects such as economic benefits, environmental impact and power supply reliability. This approach not only improves the overall performance of the system, but also ensures the comprehensiveness and balance of the operation strategy, avoiding the negative consequences that may be caused by single-objective optimization. By setting weights for different objectives in the reward function, adjustments can be made according to actual operating objectives and policy priorities. This dynamic adjustment capability enables the system to adapt to changing external conditions and internal needs. Considering power supply reliability as part of the reward function and reinforcing this through penalties for out-of-bounds actions helps ensure the stability and reliability of power supply. Incorporating environmental impacts into the reward function encourages low-carbon, environmentally friendly power generation and operation strategies. This not only helps reduce greenhouse gas emissions, but also promotes the adoption and innovation of renewable energy technologies. By clearly defining the state space, action space, and reward function, decision makers can more clearly understand the operating logic and decision basis of the system. In summary, the optimization scheduling problem of the microgrid group is transformed into a multi-agent reinforcement learning model, and by accurately defining the state space, action space, and multi-objective reward function, more efficient, reliable, and environmentally friendly power system management can be achieved. This approach provides a powerful tool for addressing complex modern energy challenges.
[0151] S3: Performing initial optimization operations on a multi-agent reinforcement learning model in the initial training stage based on the MADDPG algorithm and training the model, wherein the initial optimization operations include introducing an OU process based on the MADDPG algorithm to add noise to the strategy in the reinforcement learning;
[0152] 3) The MADDPG method uses the Actor-Critic network structure to process continuous action space, but due to the large state space and action space of the microgrid group, the AC network is often prone to fall into local optimality. The Ornstein-Uhlenbeck (OU) process is used to add noise to the action output of the Actor. This helps the algorithm explore new and potentially better action strategies and avoids converging to suboptimal strategies prematurely. In this way, it can help the learning algorithm explore areas of the state space that may not have been considered due to initial conditions or environmental changes.
[0153] The key property of the Ornstein-Uhlenbeck (OU) process is that the noise it generates is correlated, unlike independent and identically distributed random variables. This temporal correlation makes the generated noise have a certain smoothness between consecutive time steps, rather than drastic changes at each time step, which is very useful for simulating the dynamics of natural or physical phenomena. Its stochastic differential equation can be expressed as:
[0154] ,
[0155] in, is the state of the process at time t, μ is the long-term mean, the process will regress to this value, θ is the rate constant, indicating how fast the process regresses to the mean, σ is the volatility of the process, that is, the intensity of the noise, is a standard Wiener process or Brownian motion, representing random perturbations.
[0156] In the microgrid group optimization scheduling model, the MADDPG (Multi-Agent Deep Deterministic Policy Gradient) method is combined with the Ornstein-Uhlenbeck (OU) process. Due to the large state space and action space of the microgrid group, traditional reinforcement learning algorithms are prone to fall into local optimal solutions, that is, the algorithm may stop exploring prematurely and converge to a strategy that is not globally optimal. By using the OU process to add noise to the action output of the Actor, the algorithm can be more exploratory in the early stages of training, helping the algorithm to explore the state space more comprehensively, thereby potentially discovering better strategies. The noise generated by the OU process is time-dependent, which means that the noise has a certain smoothness between consecutive time steps, rather than drastically changing at every step. The addition of this noise can help the algorithm jump out of the local optimum and explore a wider strategy space, thereby improving learning efficiency and the performance of the final strategy. The key feature of the OU process is that the noise it generates is time-dependent, which is very useful in simulating dynamics in natural or physical phenomena. In the scenario of microgrids, the changes in power demand and supply are often smooth and do not change drastically at every time step. Therefore, the use of the OU process can better simulate these actual conditions. Through iterative training and continuous adjustment of strategies, combined with the addition of noise in the OU process, the adaptability and robustness of the algorithm under different conditions can be improved. This means that the algorithm can maintain good performance even when the environment changes or encounters unseen situations; the MADDPG method allows multiple objectives such as economic benefits, environmental impact, and power supply reliability to be considered simultaneously, and the optimal balance between these objectives is found through the Pareto frontier. This method can provide an optimal strategy that comprehensively considers multiple factors, rather than just the optimal solution for a single objective. In summary, the use of MADDPG combined with the OU process method in the optimal scheduling of microgrid groups can provide a more comprehensive strategy exploration, avoid local optimality, better simulate actual conditions, and find a balance between multiple objectives, thereby improving the performance and reliability of the overall system.
[0157] S4: Collect historical data for analysis to obtain the fluctuation curves of key energy output and load demand, and calculate the Pareto frontier of the optimal strategy for the microgrid group under different behavior modes, and select the strategy with a higher reward value as the final output result.
[0158] 4) Due to the large volatility of renewable energy sources such as wind and photovoltaic power in microgrids, in order to optimize strategy decisions, a large amount of historical data is collected to obtain the average fluctuation curves of wind, photovoltaic and load of each microgrid node in a day. Based on these data, the solver is used to handle multi-objective optimization problems, aiming to find the Pareto optimal solution set that meets all considerations, that is, the Pareto frontier of the microgrid group. These solutions not only take into account cost-effectiveness, but also balance environmental impact and power supply reliability, thereby ensuring that the performance of each solution on certain objectives cannot be surpassed by other solutions at the same time, achieving comprehensive optimization and sustainable operation. And provide visualization of the Pareto frontier to help decision makers choose the most suitable operation strategy according to different scenarios and preferences.
[0159] like Figure 3As shown, this embodiment provides a microgrid group optimization scheduling method combining multi-agent deep reinforcement learning with Pareto frontier, including the following steps: defining a microgrid group optimization scheduling model, considering multiple objectives such as economic cost, environmental impact and safe operation of the microgrid group; incorporating key factors such as optimized operation of the energy storage system, efficient management of the diesel engine and operational constraints of the equipment; constructing a microgrid group optimization scheduling model based on multi-agent deep reinforcement learning, aiming to integrate the operation strategies of various energy resources and equipment, and define the state space definition, action space, and reward function. Among them, the reward function reflects economic benefits, environmental impact and power supply reliability, and sets corresponding weights for these goals to adapt to different operational goals and policy priorities; Analyze the historical data of wind power, photovoltaic power generation and load demand to obtain the average fluctuation curve; Use the above data and analysis results to calculate the Pareto frontier of the optimal strategy of the microgrid group under different behavior modes. The implementation process of calculating the Pareto frontier of the optimal strategy of the microgrid group under different behavior modes specifically includes the following steps: ① Define state space and action space: The state space includes various power generation equipment of the microgrid, such as wind power generation, photovoltaic power generation, diesel power generation output power, energy storage status, current load demand, power transaction price with the main grid and historical transaction data. The action space includes adjusting the output power of power generation equipment, charging and discharging decisions of energy storage equipment, deciding the amount of electricity to buy or sell to neighboring microgrids, and buying and selling electricity with the main grid. ② Construct reward function: Economic benefits: maximize power generation income and transaction income, minimize power generation cost and energy storage cost. Environmental impact: minimize carbon emissions and reduce dependence on fossil fuels. Power supply reliability: ensure stable power supply under load fluctuations and unstable energy supply. ③Data collection and analysis: Collect historical data of the microgrid group, including wind and photovoltaic power generation, load demand, etc. in various time periods. Analyze these data to obtain the average fluctuation curve of each node in one day. ④Establish an optimization model: Based on the multi-agent deep reinforcement learning (MADDPG) algorithm, establish a microgrid group optimization scheduling model to transform the optimization problem into a multi-objective optimization problem. Use the Ornstein-Uhlenbeck process to increase the exploratory nature of the initial training stage and avoid the algorithm from converging to the local optimal solution in the early stage. ⑤Training model: In the early stage of training, add noise to the action output of the actor to increase the exploratory nature. During the training process, use historical data and average fluctuation curves to guide the adjustment of the strategy. ⑥Calculate the Pareto frontier: In the later stage of training, the multi-objective optimization problem is processed by the solver to find the Pareto optimal solution set that meets all considerations. For each strategy, calculate its performance in terms of economic benefits, environmental impact, and power supply reliability, and obtain the balance point between the various objectives. ⑦Strategy selection: Compare the reward value of the strategy output by the agent with the nearest strategy on the Pareto frontier. The strategy with higher reward value is selected as the final output to ensure the best performance while satisfying multiple optimization objectives.⑧Iterative optimization: Iteratively train the Actor-Critic network until the strategy converges to ensure the optimality of the strategy and the robustness of the system under changing conditions.
[0160] In this embodiment, the model training process is as follows:
[0161] Get the current state from the microgrid environment and input it into the Actor network in MADDPG;
[0162] In the initial stage of training, the OU (Ornstein-Uhlenbeck) process is used to add noise to the Actor's action output to increase exploration;
[0163] Obtain the historical data and average fluctuation curve of each node, calculate the Pareto frontier of the optimal strategy of the microgrid group under different behavior modes, and obtain the Pareto optimal solution set that meets all the considered factors;
[0164] In the later stage of training, during the strategy selection process, the reward value of the strategy output by the trained multi-agent reinforcement learning model is compared with the reward value of the closest strategy on the Pareto frontier, and the strategy with the higher reward value is selected as the output to ensure the best performance under the condition of meeting multiple optimization objectives;
[0165] The reward function is used to score the obtained actions, and the next state is obtained through the interaction between the agent and the environment. The current state, action, reward, and next state are stored in the experience pool. After a period of time, soft updates are performed;
[0166] Collect experience data from the experience pool and continue to input the model, iteratively train the Actor network and Critic network until the strategy converges.
[0167] In this embodiment, different behavior modes correspond to different Pareto frontiers. Each behavior mode will generate a set of different optimal strategies according to its optimization goals, such as maximizing economic benefits, minimizing environmental impact, maximizing power supply reliability, etc. The following example scenarios are as follows:
[0168] When there are a first node A, a second node B and a third node C with different power supply capabilities on the microgrid group, the Pareto frontier under different behavior modes is determined, the first node has wind power generation and energy storage equipment, the second node has photovoltaic power generation and a diesel generator, and the third node has a load and an energy storage device;
[0169] If the current behavior mode is an economic benefit maximization behavior mode, the Pareto front includes various strategy combinations that strike a balance between maximizing benefits and minimizing costs. The goal is to maximize the total benefits of the system, which include power generation benefits and power trading income, minimize power generation costs and energy storage costs, and execute the corresponding first strategy. The first strategy includes giving priority to wind power generation for the first node A, and selling the remaining power to the main grid when the electricity price is greater than the threshold; giving priority to photovoltaic power generation for the second node B; purchasing and storing electricity from the main grid for the third node C when the electricity price is less than the threshold, and using energy storage equipment to supply power when the electricity price is greater than the threshold;
[0170] If the current behavior mode is the environmental impact minimization behavior mode, and the Pareto front includes various strategy combinations that strike a balance between carbon emission minimization and power supply stability, then the corresponding second strategy is executed with the goal of minimizing the carbon emission of the system, and the second strategy includes balancing supply and demand for both the first node A and the second node B through energy storage devices; and giving priority to using the power of the energy storage device for the third node C;
[0171] If the current behavior mode is a power supply reliability maximization behavior mode, the Pareto front includes various strategy combinations that strike a balance between power supply reliability and economic costs, and the goal is to ensure stable power supply under load fluctuations and unstable energy supply. The total benefit includes power generation income and power trading income, minimizes power generation costs and energy storage costs, and executes the corresponding third strategy, which includes quickly switching to energy storage equipment to supply power for the first node A when wind power generation is insufficient; using diesel generators to ensure power supply for the second node B when photovoltaic power generation is insufficient; and keeping the charging level of the energy storage device at the third node C in a saturated state for use in emergency situations;
[0172] The above process can be understood as follows: assuming that in a microgrid group, there are three nodes A, B and C: the first node A: has wind power generation and energy storage equipment; the second node B: has photovoltaic power generation and diesel generators; the third node C: has loads and energy storage equipment.
[0173] Pareto frontier under different behavior modes:
[0174] ① Economic benefit maximization behavior mode:
[0175] Objective: Maximize the total benefits of the system, including power generation revenue and power trading revenue, and minimize power generation cost and energy storage cost.
[0176] Strategy: First, node A gives priority to wind power generation and sells excess power to the main grid when the electricity price is high.
[0177] The second node B gives priority to the use of photovoltaic power generation and minimizes the use of diesel power generation.
[0178] The third node C purchases electricity from the main grid and stores it when the electricity price is low, and uses energy storage equipment to supply electricity when the electricity price is high.
[0179] Pareto front: In this model, the Pareto front may include various combinations of strategies that strike a balance between maximizing benefits and minimizing costs.
[0180] ②Behavior pattern to minimize environmental impact:
[0181] Goal: Minimize the system’s carbon footprint and reduce reliance on fossil fuels.
[0182] Strategy: The first node A and the second node B minimize the use of diesel power generation and balance supply and demand through energy storage equipment.
[0183] The third node C gives priority to using the electricity of the energy storage device to reduce dependence on the main power grid, especially during high carbon emission periods.
[0184] Pareto front: In this model, the Pareto front may include various combinations of strategies that strike a balance between minimizing carbon emissions and power supply stability.
[0185] ③Power supply reliability maximization behavior mode:
[0186] Goal: Ensure a stable power supply despite load fluctuations and unstable energy supply.
[0187] Strategy: The first node A quickly switches to energy storage equipment for power supply when wind power generation is insufficient.
[0188] The second node B uses a diesel generator to ensure power supply when photovoltaic power generation is insufficient.
[0189] The third node C maintains a high charge level of the energy storage device for use in emergency situations.
[0190] Pareto front: In this model, the Pareto front may include various strategy combinations that balance power supply reliability and economic costs.
[0191] When deciding on the above strategies, it is determined by the weights in the reward function. For example, if environment + safety * 0.5, the strategy will tend to favor environmental influences; conversely, if environment * 0.5 + safety, the strategy will tend to favor safety influences. These are two different behavior modes. Decision makers can choose the most appropriate operation strategy from the Pareto frontiers of different behavior modes based on actual operational needs and strategy priorities.
[0192] Embodiment 2
[0193] Based on the same concept, the present invention provides a microgrid group optimization dispatching system based on the combination of MADDPG and Pareto frontier, including:
[0194] A microgrid group optimization dispatch model construction module is used to establish a microgrid group optimization dispatch model according to the multiple objectives of the microgrid group and key factors related to the microgrid group dispatch optimization, wherein the multiple objectives at least include economic costs, environmental impacts and safe operation objectives, and the key factors related to the microgrid group dispatch optimization include the optimal operation of the energy storage system and the operating constraints of the diesel engine and equipment;
[0195] The multi-agent reinforcement learning model building module is used to build a model based on multi-agent deep reinforcement learning, frame the microgrid group scheduling problem as a Markov decision process, define the corresponding state space, action space and reward function, and generate a multi-agent reinforcement learning model;
[0196] An initial optimization module, used to perform initial optimization operations on a multi-agent reinforcement learning model in the initial training stage based on the MADDPG algorithm and to train the model, wherein the initial optimization operations include introducing an OU process based on the MADDPG algorithm to add noise to the strategy in the reinforcement learning;
[0197] The comparative decision module is used to collect historical data for analysis to obtain the fluctuation curves of key energy output and load demand, and calculate the Pareto frontier of the optimal strategy of the microgrid group under different behavior modes, and select the strategy with a higher reward value as the final output result.
[0198] It should be noted that the division of the modules in the embodiment of the device / system is only a division of logical functions. In actual implementation, they can be fully or partially integrated into one physical entity, or physically separated. Moreover, these modules can be implemented in the form of software calling through processing elements; or in the form of hardware; or some units can be implemented in the form of software calling through processing elements, and some units can be implemented in the form of hardware.
[0199] The implementation principle of the above modules has been described in the above embodiments, so it will not be repeated here.
[0200] Embodiment 3
[0201] Based on the same concept, in some embodiments of the present application, an electronic device is also provided. The electronic device includes a memory and a processor, wherein the memory is used to store a processing program, and the processor executes the processing program according to instructions. When the processor executes the processing program, the microgrid group optimization scheduling method based on the combination of MADDPG and Pareto front in the aforementioned embodiment is implemented.
[0202] In some embodiments of the present application, a readable storage medium is also provided, which can be a non-volatile readable storage medium or a volatile readable storage medium. The readable storage medium stores instructions, and when the instructions are executed on a computer, an electronic device containing the readable storage medium executes the aforementioned microgrid group optimization scheduling method based on the combination of MADDPG and Pareto frontier.
[0203] It can be understood that, for the aforementioned microgrid group optimization scheduling method based on the combination of MADDPG and Pareto frontier, if it is implemented in the form of software function modules and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention is essentially or part of the contribution to the prior art or all or part of the technical solution can be embodied in the form of a software product, and 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 various embodiments of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk and other media that can store program code.
[0204] Computer readable storage media may include data signals propagated in baseband or as part of a carrier wave, wherein readable program codes are carried. Such propagated data signals may take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. The readable storage medium may also be any readable medium other than a readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, device, or device. The program codes contained on the readable storage medium may be transmitted using any suitable medium, including but not limited to wireless, wired, optical cable, RF, etc., or any suitable combination thereof.
[0205] The program code involved in executing the technical solution disclosed in this application can be written in any combination of one or more programming languages, including object-oriented programming languages such as Python, C++, etc., and also conventional procedural programming languages such as C language or similar programming languages. The program code can be executed entirely on the user computing device, partially on the user device, as an independent software package, partially on the user computing device and partially on the remote computing device, or entirely on the remote computing device or server. In the case of a remote computing device, the remote computing device can be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computing device (for example, using an Internet service provider to connect through the Internet).
[0206] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A microgrid group optimization scheduling method based on MADDPG and Pareto frontier, characterized in that: include: According to the multiple objectives of the microgrid group and the key factors related to the optimization of the microgrid group scheduling, a microgrid group optimization scheduling model is established, wherein the multiple objectives at least include economic costs, environmental impacts and safe operation objectives, and the key factors related to the optimization of the microgrid group scheduling include the optimal operation of the energy storage system and the operating constraints of the diesel engine and equipment; Establish a model based on multi-agent deep reinforcement learning, frame the microgrid group scheduling problem as a Markov decision process, define the corresponding state space, action space and reward function, and generate a multi-agent reinforcement learning model; Performing initial optimization operations on a multi-agent reinforcement learning model in an initial training stage based on the MADDPG algorithm and training the model, wherein the initial optimization operations include introducing an OU process based on the MADDPG algorithm to add noise to the strategy in the reinforcement learning; Collect historical data for analysis to obtain the fluctuation curves of key energy output and load demand, and calculate the Pareto frontier of the optimal strategy of the microgrid group under different behavior modes, and select the strategy with higher reward value as the final output result; The microgrid group optimization dispatching model established includes multiple microgrid nodes, each of which includes wind power generation, photovoltaic power generation, diesel power generation, load and energy storage facilities. The output power of wind power generation, photovoltaic power generation and load at time t is configured as , and ; Determine and configure the relationship between the remaining power of the energy storage battery at the current moment and the remaining power at the previous moment, the power of the energy storage battery, and the charging and discharging efficiency. The calculation of the energy storage status update is as follows: , Charge and discharge constraints: and , Energy storage capacity constraints: , in, and represents the energy storage state at time t and time t+1, ∆ t represents the time interval, , and They represent the energy storage attenuation coefficient, charging efficiency and discharging efficiency respectively. and Indicates charging and discharging power; Diesel generators are configured as backup power sources for the microgrid group. The fuel cost of the diesel generator is calculated as follows: ; The output power of the diesel generator at time t The following climbing constraints must be met: ; in, is the total fuel cost of the diesel generator at time t, is the output power of the diesel generator, a and b are the coefficients of the equation, which are used to calculate the fuel consumption. Cost per unit of fuel consumed by diesel generators; The establishment of the microgrid group optimization dispatch model also includes: When the configuration is running, a single microgrid node needs to maintain power balance at any time t, and the following formula must be satisfied: , Constraints for power exchange: , The power balance of the entire microgrid group at time t is expressed as the following formula: , In the formula, The amount of electricity traded between the microgrid node and the main grid. , are the input power from node j to node i and the output power from node i to node j, j∈N, , is a 0 / 1 variable. When node i outputs power to node j, the variable The value is 1, otherwise it is 0; when node j inputs power to node i, the variable The value is 1, otherwise the value is 0; The establishment of a model based on multi-agent deep reinforcement learning includes: Define a state space, which includes wind power generation, photovoltaic power generation, diesel power generation, energy storage status, current load demand, power transaction prices and historical transaction data with neighboring nodes and the main grid, and related information about the status of each microgrid node at any time t. The state space It is expressed as: , Define an action space, which includes adjusting the output power of various power generation equipment, charging and discharging decisions of energy storage equipment, deciding the amount of electricity to buy or sell to neighboring microgrids, and buying and selling electricity with the main grid, as well as possible actions that each node agent can take. It is expressed as: , Define the reward function and construct a multi-objective reward function that includes economic benefit influencing factors, environmental influencing factors, and power supply reliability influencing factors: , in, represents the diesel generator maintenance cost, represents the priority coefficient of each sub-goal in the scalar reward function, Indicates the penalty for actions that go beyond the bounds / do not comply with the constraints; The multi-agent deep reinforcement learning model is trained according to the state, action and reward function of the agent to obtain a trained multi-agent deep reinforcement learning model.
2. The microgrid group optimization scheduling method based on the combination of MADDPG and Pareto front according to claim 1 is characterized in that: The establishment of the microgrid group optimization dispatch model also includes: With the goal of maximizing the total revenue of the entire microgrid group in T time intervals, the first objective function is established: , in, The cost of the energy storage system, including power loss and maintenance management costs , expressed as: , The maintenance cost for a diesel generator is expressed as: , For electricity trading income, For positive time, For electricity sales, the corresponding electricity sales price is ;when When it is negative, To buy electricity, the corresponding electricity price is , the calculation formula is as follows: , With the goal of minimizing the carbon emissions of the entire system, the second objective function is established: , Taking minimizing the sum of all costs and carbon emissions as the overall objective function, the overall objective function is established: , in, is the total fuel cost of the diesel engine at time t, is the unit power operating cost, is the maintenance cost per unit power, EF is the carbon emission factor, Put a price on carbon emissions.
3. The microgrid group optimization scheduling method based on the combination of MADDPG and Pareto front according to claim 1 is characterized in that: The initial optimization operation of the multi-agent reinforcement learning model in the initial training stage based on the MADDPG algorithm includes: The OU process is used to add noise to the output action of the Actor network. The OU process is described by a stochastic differential equation: , in, is the state of the process at time t, μ is the long-term mean, θ is the rate constant indicating how quickly the process regresses to the mean, σ is the volatility of the process, that is, the intensity of the noise, is a standard Wiener process or Brownian motion, representing random perturbations.
4. The microgrid group optimization scheduling method based on the combination of MADDPG and Pareto front according to claim 1 is characterized in that: The collecting of historical data for analysis to obtain fluctuation curves of key energy output and load demand, and calculating the Pareto frontier of the optimal strategy of the microgrid group under different behavior modes, and selecting the strategy with a higher reward value as the final output result further include: Get the current state from the microgrid environment and input it into the Actor network in MADDPG; In the initial stage of training, the OU process is used to add noise to the action output of the Actor; Obtain the historical data and average fluctuation curve of each node, calculate the Pareto frontier of the optimal strategy of the microgrid group under different behavior modes, and obtain the Pareto optimal solution set that meets all the considered factors; In the strategy selection process, the reward value of the strategy output by the trained multi-agent reinforcement learning model is compared with the reward value of the closest strategy on the Pareto frontier, and the strategy with a higher reward value is selected as the output to ensure the best performance while meeting multiple optimization objectives; The reward function is used to score the obtained actions, and the state at the next moment is obtained through the interaction between the agent and the environment. The current state, action, reward, and state at the next moment are stored in the experience pool; Collect experience data from the experience pool and continue to input the model, iteratively train the Actor network and Critic network until the strategy converges.
5. The microgrid group optimization scheduling method based on the combination of MADDPG and Pareto front according to claim 1 is characterized in that: The Pareto frontier of the optimal strategy of the microgrid group under different behavior modes is obtained by calculation, and the strategy with a higher reward value is selected as the final output result, including: When there are first nodes, second nodes and third nodes with different power supply capabilities on the microgrid group, the Pareto frontiers under different behavior modes are determined; If the current behavior mode is an economic benefit maximization behavior mode, and the Pareto front includes various strategy combinations that strike a balance between maximizing benefits and minimizing costs, then the goal is to maximize the total benefits of the system, which include power generation benefits and power trading income, minimize power generation costs and energy storage costs, and execute the corresponding first strategy, which includes giving priority to wind power generation for the first node and selling the remaining power to the main grid when the electricity price is greater than the threshold; giving priority to photovoltaic power generation for the second node; purchasing and storing electricity from the main grid for the third node when the electricity price is less than the threshold, and using energy storage equipment to supply power when the electricity price is greater than the threshold; If the current behavior mode is an environmental impact minimization behavior mode, and the Pareto front includes various strategy combinations that strike a balance between carbon emission minimization and power supply stability, then the corresponding second strategy is executed with the goal of minimizing the carbon emissions of the system, and the second strategy includes balancing supply and demand through energy storage devices for both the first node and the second node; and giving priority to using the power of the energy storage device for the third node; If the current behavior mode is a power supply reliability maximization behavior mode, the Pareto front includes various strategy combinations that strike a balance between power supply reliability and economic costs, and the goal is to ensure stable power supply under load fluctuations and unstable energy supply. The total benefit includes power generation income and power trading income, minimizes power generation costs and energy storage costs, and executes the corresponding third strategy, which includes switching to energy storage equipment for power supply when wind power generation is insufficient for the first node; using diesel generators to ensure power supply for the second node when photovoltaic power generation is insufficient; and keeping the charging level of the energy storage equipment at the third node in a saturated state for use in emergency situations; Select the optimal strategy operation from the Pareto frontier of different behavior patterns according to actual operational needs and strategy priorities; The first node has wind power generation and energy storage equipment, the second node has photovoltaic power generation and a diesel generator, and the third node has a load and energy storage equipment.
6. A microgrid group optimization dispatching system based on the combination of MADDPG and Pareto frontier, characterized in that: include: A microgrid group optimization dispatch model construction module is used to establish a microgrid group optimization dispatch model according to the multiple objectives of the microgrid group and key factors related to the microgrid group dispatch optimization, wherein the multiple objectives at least include economic costs, environmental impacts and safe operation objectives, and the key factors related to the microgrid group dispatch optimization include the optimal operation of the energy storage system and the operating constraints of the diesel engine and equipment; The multi-agent reinforcement learning model building module is used to build a model based on multi-agent deep reinforcement learning, frame the microgrid group scheduling problem as a Markov decision process, define the corresponding state space, action space and reward function, and generate a multi-agent reinforcement learning model; An initial optimization module, used to perform initial optimization operations on a multi-agent reinforcement learning model in the initial training stage based on the MADDPG algorithm and to train the model, wherein the initial optimization operations include introducing an OU process based on the MADDPG algorithm to add noise to the strategy in the reinforcement learning; The comparison decision module is used to collect historical data for analysis to obtain the fluctuation curves of key energy output and load demand, and calculate the Pareto frontier of the optimal strategy of the microgrid group under different behavior modes, and select the strategy with a higher reward value as the final output result; The microgrid group optimization dispatching model established includes multiple microgrid nodes, each of which includes wind power generation, photovoltaic power generation, diesel power generation, load and energy storage facilities. The output power of wind power generation, photovoltaic power generation and load at time t is configured as , and ; Determine and configure the relationship between the remaining power of the energy storage battery at the current moment and the remaining power at the previous moment, the power of the energy storage battery, and the charging and discharging efficiency. The calculation of the energy storage status update is as follows: , Charge and discharge constraints: and , Energy storage capacity constraints: , in, and represents the energy storage state at time t and time t+1, ∆ t represents the time interval, , and They represent the energy storage attenuation coefficient, charging efficiency and discharging efficiency respectively. and Indicates charging and discharging power; Diesel generators are configured as backup power sources for the microgrid group. The fuel cost of the diesel generator is calculated as follows: ; The output power of the diesel generator at time t The following climbing constraints must be met: ; in, is the total fuel cost of the diesel generator at time t, is the output power of the diesel generator, a and b are the coefficients of the equation, which are used to calculate the fuel consumption. Cost per unit of fuel consumed by diesel generators; When the configuration is running, a single microgrid node needs to maintain power balance at any time t, and the following formula must be satisfied: , Constraints for power exchange: , The power balance of the entire microgrid group at time t is expressed as the following formula: , In the formula, The amount of electricity traded between the microgrid node and the main grid. , are the input power from node j to node i and the output power from node i to node j, j∈N, , is a 0 / 1 variable. When node i outputs power to node j, the variable The value is 1, otherwise it is 0; when node j inputs power to node i, the variable The value is 1, otherwise the value is 0; The establishment of a model based on multi-agent deep reinforcement learning includes: Define a state space, which includes wind power generation, photovoltaic power generation, diesel power generation, energy storage status, current load demand, power transaction prices and historical transaction data with neighboring nodes and the main grid, and related information about the status of each microgrid node at any time t. The state space It is expressed as: , Define an action space, which includes adjusting the output power of various power generation equipment, charging and discharging decisions of energy storage equipment, deciding the amount of electricity to buy or sell to neighboring microgrids, and buying and selling electricity with the main grid, as well as possible actions that each node agent can take. It is expressed as: , Define the reward function and construct a multi-objective reward function that includes economic benefit influencing factors, environmental influencing factors, and power supply reliability influencing factors: , in, represents the diesel generator maintenance cost, represents the priority coefficient of each sub-goal in the scalar reward function, Indicates the penalty for actions that go beyond the bounds / do not comply with the constraints; The multi-agent deep reinforcement learning model is trained according to the state, action and reward function of the agent to obtain a trained multi-agent deep reinforcement learning model.
7. An electronic device, characterized in that: include: A memory, the memory being used to store a processing program; A processor, wherein when executing the processing program, the processor implements the microgrid group optimization scheduling method based on the combination of MADDPG and Pareto front as described in any one of claims 1 to 5.
