An energy management method for energy systems based on distributed optimization

By using multi-time-scale optimal scheduling and multi-agent reinforcement learning methods in integrated energy systems to optimize energy management, the problems of system complexity and economic benefits are solved, and the flexibility and reliability of the energy system are improved.

CN118100175BActive Publication Date: 2024-09-10NANJING GUFENG INTELLIGENT TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410496022.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-04-24
Publication Date
2024-09-10
Estimated Expiration
2044-04-24

AI Technical Summary

Technical Problem

Integrated energy systems face uncertainties in an information-physical coupling environment, especially risks brought by changes in distributed power generation output and demand-side loads as well as extreme events, making it difficult to ensure system power supply reliability and recovery strategies, and existing technologies cannot Effectively consider economic benefits and system complexity.

Method used

Using the robot automatic path-finding method, by establishing a multi-time scale optimal dispatch method, a collaborative dispatch strategy based on the market environment is proposed, combining the predicted meteorological parameters and next-day energy price information released by the trading center to perform day-ahead dispatch, and based on real-time renewable The energy prediction data is adjusted in real time, and the multi-agent reinforcement learning method and YALMIP toolbox are used to solve and optimize energy management.

Benefits of technology

It improves the flexibility of energy system operation, reduces system output deviation and wind curtailment level, and improves the economy and reliability of system operation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118100175B
    Figure CN118100175B
Patent Text Reader

Abstract

The present invention provides an energy management method for an energy system based on distributed optimization, which belongs to the technical field of energy system management, including proposing an energy management model of pre-real-time two-level scheduling; the first stage is pre-economic scheduling, with maximizing economic benefits, maximizing efficiency and minimizing carbon emission costs as optimization goals, making pre-global optimal scheduling decisions; the second stage is real-time optimization scheduling, with minimizing interactive power deviation penalty costs, wind abandonment penalty costs and user satisfaction loss costs as optimization goals, balancing the energy supply and demand deviation between planned output and actual output; finally, according to the characteristics of the model, an improved multi-agent reinforcement learning method is used to solve the first stage pre-economic scheduling model, and the YALMIP toolbox is used to solve the real-time optimal scheduling model. The method provided by the present invention can increase the flexibility of energy system operation, reduce system output deviation and wind abandonment level, and improve the economy of system operation.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to an energy system energy management method based on distributed optimization, and belongs to the technical field of energy system management. Background Art

[0002] The increasing prominence of energy and environmental issues has prompted a shift in human energy consumption patterns. How to improve energy efficiency, reduce environmental pollution, and achieve sustainable energy development is a topic of common concern today. In recent years, renewable energy generation technology and Internet technology have developed rapidly, providing technical support for the coupling and interconnection between various energy sources. People have begun to pay attention to the correlation, interactivity, and coupling between various energy sources to achieve the diversified development of energy structure. Under the pressure of tight energy supply and demand and worsening environmental problems, the integrated energy system (IES) has become one of the important strategies to solve the current energy and environmental dilemma.

[0003] IES unifies the dispatch of electricity, natural gas and distributed energy with the combined heating device as the core. It improves the economic and environmental benefits of the energy system while meeting various load requirements. IES coordinates and optimizes all aspects of energy production, transmission, storage and consumption, thus forming a comprehensive energy management and control system. However, it is the complex multi-energy complementarity and energy supply mode of IES that makes the energy management of the system more complicated. An effective energy management method is the key to solving this problem.

[0004] For example, a Chinese patent with publication number CN114676967A discloses a distributed optimization scheduling method for a multi-energy system considering carbon trading, which includes: establishing an autonomous operation model, wherein the autonomous operation model is executed by the energy management system of each MES, and a typical MES is composed of wind power, photovoltaic, CHP units, gas boilers, electric boilers, P2G devices and energy storage elements; establishing a coordinated control model, wherein the coordinated control model is executed by a virtual coordinator and a transformer to ensure the safe and economic operation of the interconnected MES; by introducing a transactional control algorithm, the autonomous operation model is used as the bottom layer, and the coordinated control model is used as the upper layer to form a two-layer optimization scheduling model for a multi-energy system, and the distributed scheduling of the multi-energy system is completed through the two-layer optimization scheduling model for the multi-energy system. It takes into account the distributed optimization scheduling of the multi-energy system, but does not take into account the economic benefits in actual industry.

[0005] With the development of information and communication technologies such as blockchain and big data, integrated energy systems (IES) have more closely integrated information systems and energy systems in the context of the combination of information and physics. In this coupled environment, the main uncertainties faced by IES include distributed generation output, changes in demand-side loads, and risks associated with natural disasters and extreme events. The ability of the power system to cope with these uncertainties is the key to measuring its reliability. Although many extreme events can be predicted in advance, the specific time and duration of IES turning into an island operation state are difficult to accurately predict. Therefore, it is urgent to study the resilience of IES under the coupling of information and physics to ensure the reliability of system power supply and formulate effective recovery strategies. Summary of the invention

[0006] The present invention aims to provide an energy management method for an energy system based on distributed optimization to obtain the optimal scheduling strategy for each unit.

[0007] To achieve the above object, the present invention is implemented by adopting the following technical solutions.

[0008] In one aspect, the present invention provides a robot automatic path finding method, characterized in that it includes:

[0009] Step S1: Establishing an IES electrothermal architecture, converting primary energy into thermal energy and electrical energy through energy conversion equipment; the energy conversion equipment includes CHP, electrical energy storage, thermal energy storage, photovoltaics, and wind turbines;

[0010] Step S2: Establish a multi-time scale optimal scheduling method, optimize the scheduling of the IES under the market environment, and propose a collaborative scheduling strategy based on the market environment, including a day-ahead scheduling stage and a real-time scheduling stage;

[0011] Step S3: Based on the forecasted meteorological parameters released by the trading center, the energy price information for the next day, and the internal parameter information and network topology of the IES system, an optimal scheduling model is performed for the day-ahead scheduling stage, and a day-ahead market trading strategy is proposed;

[0012] Step S4: Modeling the real-time scheduling stage according to the real-time renewable energy forecast data, and readjusting the energy plan by applying the coordinated control of various energy sources and user-side demand response technology;

[0013] Step S5: According to the day-ahead scheduling model, a multi-agent reinforcement learning method is used to solve and calculate it; according to the real-time scheduling model, the TALMIP toolbox is used to solve it.

[0014] Furthermore, there are various energy production and energy conversion equipment in the IES, which conduct energy transactions with power grids and heat companies under the condition of meeting the system load; users are the main energy consumers in the IES system, and user loads are resources for energy management and system operation optimization and regulation.

[0015] Furthermore, the load type considered by the IES system is an adjustable load; the adjustable loads are interruptible loads and transferable loads.

[0016] Furthermore, there is an interactive relationship between the day-ahead scheduling and the real-time scheduling; the day-ahead scheduling stage includes: formulating an internal unit production plan based on the results of the day-ahead load forecast and the renewable energy output forecast, combined with the installed capacity of the system gas turbines and energy storage equipment and the demand response potential at the user end, and submitting the day-ahead market trading strategy.

[0017] Furthermore, the real-time scheduling stage tracks the day-ahead production plan according to the submitted day-ahead market trading strategy, adjusts the internal unit output and available load in real time to participate in energy scheduling, and reduces the deviation between the system production plan and the actual output.

[0018] Preferably, the day-ahead scheduling model includes two parts: a day-ahead scheduling objective function and a day-ahead scheduling constraint; the indicators considered in the day-ahead scheduling objective function include: economic benefits, environmental indicators and energy efficiency; the day-ahead scheduling constraints include: day-ahead market bidding output constraints, equipment operation constraints, energy storage equipment constraints and energy transmission constraints.

[0019] Furthermore, the real-time optimization model includes two parts: a real-time optimization objective function and a real-time optimization constraint; the real-time optimization constraint includes: a unit start-stop constraint and a load scheduling constraint.

[0020] Preferably, the load scheduling constraints are characterized by including: reducible load constraints, transferable load constraints and interruptible load constraints.

[0021] Furthermore, the multi-agent reinforcement learning method is a model-free reinforcement learning algorithm, which introduces DDQN to approximate the Q value, and the two parameterized deep Q networks are respectively an online network and a target network; it also includes the introduction of the PER method, and the importance of each experience is evaluated by the time difference error.

[0022] Preferably, the online network and the target network are used for decision-making action selection and Q-value evaluation, respectively; the parameters of the target network are updated to the parameters of the online network at every step; the PER method is used to solve the problems of correlation and data utilization; and the online network parameters are updated by combining the calculation of the loss function value and gradient descent.

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

[0024] In view of the deficiencies of the prior art, the present invention proposes an energy management model of pre- and real-time two-level scheduling; the first stage is pre-economic scheduling, with maximizing economic benefits, maximizing efficiency and minimizing carbon emission costs as optimization goals, making pre-global optimal scheduling decisions; the second stage is real-time optimization scheduling, with the interactive power deviation penalty cost, wind abandonment penalty cost and user satisfaction loss cost as the optimization goals, balancing the energy supply and demand deviation between the planned output and the actual output; finally, according to the characteristics of the model, an improved multi-agent reinforcement learning method is used to solve the first stage pre-economic scheduling model, and the YALMIP toolbox is used to solve the real-time optimal scheduling model. The method provided by the present invention can increase the flexibility of energy system operation, reduce system output deviation and wind abandonment level, and improve the economy of system operation. BRIEF DESCRIPTION OF THE DRAWINGS

[0025] Figure 1 Shown is a schematic diagram of an energy management method for an energy system based on distributed optimization;

[0026] Figure 2 Shown is a schematic diagram of a typical structure of an integrated electric and thermal energy system;

[0027] Figure 3 Schematic diagram of a two-stage energy management framework considering multiple flexible resources is shown;

[0028] Figure 4 The schematic diagram of the second stage of real-time optimization model solving process is shown. DETAILED DESCRIPTION

[0029] It should be noted that:

[0030] The technical solution of the present invention is described in detail below through the accompanying drawings and specific embodiments. It should be understood that the embodiments of the present invention and the specific features in the embodiments are detailed descriptions of the technical solution of the present invention, rather than limitations on the technical solution of the present invention. The embodiments of the present invention and the technical features in the embodiments may be combined with each other unless there is a conflict.

[0031] The term "and / or" is only a description of the association relationship between related objects, indicating that there can be three relationships. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " generally indicates that the related objects are in an "or" relationship.

[0032] Example 1

[0033] This embodiment introduces an energy management method for an energy system based on distributed optimization. Figure 1 , the specific steps include:

[0034] Step S1: Establish the system structure, such as Figure 2 The electric thermal IES structure constructed in this embodiment is shown in FIG. The system uses natural gas and electricity as primary energy sources, and converts the primary energy into electric thermal energy through energy conversion equipment such as CHP, electric energy storage, thermal energy storage, photovoltaics and wind turbines. Figure 2 The configuration of various energy production and conversion equipment in IES is shown. While ensuring that the system load demand is met, these devices can also trade energy with public energy systems such as power grids and heat companies. In IES, users are the main energy consumers, and their load demand becomes a key flexible resource in energy management and system operation optimization and regulation.

[0035] Step S2: The IES discussed in this embodiment includes electricity, thermal energy, natural gas coupling equipment, WT (wind power) equipment, EES (electric energy storage) equipment, HES (hybrid energy system) equipment and multiple load types. The IES system in this embodiment is connected to the external energy dispatch center to ensure energy balance and improve energy efficiency. One of the main challenges faced in system operation is the uncertainty of renewable energy, such as wind energy and photovoltaic energy, whose output leads to errors in power forecasting. In addition, the diversity of user-side demand and energy consumption characteristics at different time scales bring additional difficulties to demand-side load forecasting. Experience shows that the shorter the time interval of the forecast result, the higher its accuracy. The fluctuation of renewable energy generation and the inaccuracy of load forecasting mean that there may be a power deviation between actual operation and the power generation plan of the previous day. Therefore, continuing to adopt the traditional day-ahead dispatch mode - determining the next day's power generation unit commitment and economic load distribution based on the forecast results of the previous day, may lead to an imbalance between plan and actual output.

[0036] In order to reduce the deviation between power generation plan and actual output, this paper proposes a method in which the system needs to update load and wind / solar energy forecasts in real time and make instant power adjustments to the day-ahead scheduling plan. This paper focuses on the multi-time scale optimal scheduling operation of IES in the market environment. In order to improve the accuracy of energy scheduling in the IES market environment, a collaborative scheduling strategy based on the spot market is introduced. At the same time, this paper also discusses Figure 3 A two-stage energy management framework considering diverse flexible resources is shown.

[0037] Day-ahead dispatch provides the basis for real-time dispatch, while real-time dispatch effectively supplements day-ahead dispatch. The two stages interact with each other to accurately match energy supply and demand, achieve a balance between system power generation plan and actual output, and ensure the economy and reliability of the system.

[0038] In the day-ahead dispatch stage, the main task is to formulate the output plan of the internal units and submit the day-ahead market trading strategy. This stage is based on the forecast results of the day-ahead load and renewable energy output, combined with the installed capacity of gas turbines, energy storage and other equipment in the system and the demand response potential of the user end, to formulate the output plan of the internal units and submit the day-ahead market trading strategy accordingly.

[0039] In the real-time operation stage, the day-ahead dispatch plan is revised based on the real-time load and renewable energy output forecast results. This stage tracks the implementation of the day-ahead power generation plan based on the submitted day-ahead market trading strategy, and adjusts the internal unit output and energy dispatch involving available load in real time to reduce the gap between the system power generation plan and the actual output, and improve the system's energy management accuracy in the market environment.

[0040] Step S3: Establish the optimal day-ahead dispatch model. In the day-ahead dispatch stage, the day-ahead market trading strategy is formulated and the output plan of the internal units is compiled in combination with the forecasted meteorological parameters and the next day's energy prices released by the trading center, as well as the system component parameters and network topology. The day-ahead dispatch model is divided into two parts: one is the objective function of the day-ahead dispatch; the other is the relevant constraints of the day-ahead dispatch. Specifically, the following steps are included:

[0041] S3.1: Establish the multi-objective function of day-ahead scheduling, which is maximum economic benefit, maximum energy efficiency and minimum carbon emission cost. Specifically, it includes the following steps:

[0042] S3.1.1: The main factors affecting the economic benefits of IES are operating income and system costs, so:

[0043]

[0044] in, It is the economic benefit of IES; is the operating income of IES; is the operating cost of IES; Max{} is the maximization function.

[0045] The IES in this embodiment is always connected to the external energy dispatch center. When the system has redundant energy, it sells energy to the external energy dispatch center to obtain income. The integrated energy participates in the demand response of the power grid dispatch as a whole. The demand response income includes two parts: compensation for demand response load and reduction of electricity expenditure before and after demand response. Therefore, the operating income of the system mainly includes the income from selling energy to residents, the income from selling energy to the external energy dispatch center, and the compensation income from the system's participation in demand response, which are expressed as follows:

[0046]

[0047]

[0048]

[0049]

[0050] in, It is the income from selling energy to residents; is the scheduling time scale in hours; It is the income from selling energy to external energy dispatch centers; is the compensation for systems participating in demand response; is the price of energy sold to residents; is the amount of energy sold to residents; is the demand response coefficient, Indicates that the system participates in a demand response program, The opposite is true; and are the energy prices sold to the external energy dispatch center before and after the system participates in demand response, respectively; is the amount of energy sold to external energy dispatch centers; , and are the dispatching proportional factors of load that can be reduced, load that can be interrupted and load that can be transferred, respectively, and there are , Indicates that these loads are not involved in scheduling. Indicates that all these loads participate in scheduling; , and They represent the compensation cost coefficients of the unit's load reduction, interruptible load and transferable load respectively; , and They represent the initial demands of load reduction, load interruption and load transfer, respectively, and T represents the set unit time.

[0051] IES operating costs mainly include electricity costs, energy storage costs, energy costs purchased from external energy dispatch centers, and machine start-up and stop costs, which are expressed as follows:

[0052]

[0053]

[0054]

[0055]

[0056]

[0057] in, is the cost of electricity; is the energy storage cost; is the exchange electricity cost; is the machine start-up and shutdown cost; n represents the equipment type; is the unit electricity cost of device n; is the output power of device n; is the purchase cost of the energy storage equipment; X is the number of times the energy storage equipment is used during its life cycle; is the charging and discharging power of the energy storage device; is the rated capacity of the energy storage device; and are the energy prices purchased from the external energy dispatch center before and after the system participates in demand response; It is the amount of electricity purchased from an external energy dispatch center; is the operating state of the energy supply device n at time t, Indicates that the device is running. Indicates that the device is turned off; is the startup cost of energy supply equipment n.

[0058] S3.1.2: The environmental impact index of the system operation is evaluated based on the degree of harm caused by pollutant gas emissions to the environment. Generally, the pollutant gas emissions of the system are proportional to its output power. The main pollution sources of the system include cogeneration units and gas boiler units. Therefore, the total pollutant gas emissions of the system can be calculated as follows:

[0059]

[0060] Among them, E2 is the total pollutant gas emissions; j represents the type of pollutant gas, including carbon monoxide ,carbon dioxide , sulfur dioxide and nitrogen oxides ; Indicates the degree of environmental harm of pollutant gas j; is the emission coefficient of pollutant gas j; and is the output power of CHP and GB; and is the utilization rate of CHP and GB; Min{} is the minimization function.

[0061] S3.1.3: Exergy efficiency refers to the unified efficiency evaluation of different energy types. This paper adopts the exergy concept to measure the energy efficiency of IES (Integrated Energy System). Based on this concept, we use the fuel consumption analysis theory to conduct a comprehensive comprehensive exergy efficiency analysis as shown below:

[0062]

[0063]

[0064]

[0065]

[0066]

[0067]

[0068] in, is exergy efficiency; and is the exergy value of energy output and input; is the exergy efficiency of the distributed system; is the output of PV; is the exergy value of electricity; is the output of WT; is the exergy value of solar energy; is the exergy value of wind energy; is the surface temperature of the PV array; is the temperature of the standard test environment; It is solar radiation; is the total area of ​​the PV panels; is the angle of incidence; is the correction factor; is the air density; It represents the ratio of the peak speed of the blade to the wind speed; Indicates wind speed; is the exergy efficiency of CHP; is the output of CHP; is the exergy value of hot water in the heating system; is the exergy value of the air conditioner used for cooling the system; is the exergy value of the gas; is the net calorific value of natural gas; are the mass fractions of carbon, hydrogen, nitrogen and oxygen in the gas respectively.

[0069] S3.2: In order to ensure the safe and efficient operation of the system, its operating boundary conditions must be strictly restricted. In the day-ahead dispatch phase, it is necessary to ensure compliance with the constraints of market bidding output, the constraints of maintaining power balance, and the constraints of equipment operation. Specifically, it is divided into the following steps:

[0070] S3.2.1: The formulation of market transaction output is based on the premise of meeting the internal load requirements of the system. Specific market transaction output constraints include:

[0071]

[0072]

[0073] in, and are the upper and lower limits of the virtual power load, respectively; and is the charging and discharging power of the electrical energy storage; is the distributed generation output power; is the gas boiler output power; is the electrical output of the CHP system; is the internal power load demand of the system; and are the upper and lower limits of the virtual heat load, respectively; and They are the charging and discharging power of thermal energy storage; is the heat output of the CHP system; is the internal heat load requirement of the system, is the external electrical load demand of the system.

[0074] S3.2.2: The operation of the equipment is subject to a variety of constraints, mainly including: First, the maximum output constraint of the equipment, that is, the maximum output level that the equipment can achieve during operation. Second, the output ramp rate constraint of the CHP equipment, which involves the adjustment speed and stability of this type of equipment when the output power changes. Third, the output ramp rate constraint of the boiler GB equipment, which also concerns the performance and efficiency of the equipment during the power adjustment process. Specifically, it is expressed as follows:

[0075]

[0076]

[0077]

[0078] in, and are the maximum and minimum outputs of device n, respectively; and They are the up and down slopes of the CHP equipment; and They are the up and down slopes of GB equipment respectively.

[0079] S3.2.3: Energy storage equipment must comply with multiple constraints during operation, including: First, the balance constraint of electrical and thermal energy storage, ensuring a proper balance between stored electrical and thermal energy. Second, the charge and discharge power constraint, which involves the power limit of the energy storage device during the charging and discharging process. Third, the equivalence constraint at the beginning and end of the cycle, which ensures that the energy storage device maintains a consistent state at the beginning and end of a charge and discharge cycle. Finally, there is the residual capacity constraint, that is, the energy storage device must maintain a certain residual energy storage capacity during operation. Specifically, it is expressed as follows:

[0080]

[0081]

[0082]

[0083] Where y is energy storage; is the storage state at time t; and They are charge and discharge state variables, which take values ​​between 0 and 1; and They are energy storage charging and discharging power; and They are the efficiency of energy storage charging and discharging; and are the maximum and minimum values ​​of charge / discharge power, respectively; and is the storage energy at the start and end time of the schedule; and are the maximum and minimum remaining capacity allowed respectively.

[0084] S3.2.4: In order to ensure the operational safety of the energy network, the transmission power between the system and the external energy supply system must be limited to a specific safety range.

[0085] Step S4: Establish a real-time dispatch model. In the real-time dispatch process, taking into account the real-time renewable energy forecast data, the original power generation plan can be adjusted by coordinating various power sources and using user-side demand response technology. The purpose of this is to narrow the gap between the planned power generation and the actual power generation. The real-time optimization model mainly includes two core parts: one is the objective function of real-time optimization, and the other is the constraints of real-time optimization. Specifically, it includes the following steps:

[0086] S4.1: In the process of real-time dispatch, due to the difference between the pre-established dispatch strategy and the actual operating conditions, it is necessary to coordinate and optimize all adjustable resources in the system in order to reduce the penalty costs caused by power deviation. This adjustment may cause a certain amount of wind power abandonment and load adjustment. Therefore, in this study, the wind abandonment cost and customer satisfaction cost are only considered in the real-time dispatch stage. The goal of optimization is to minimize the penalty cost. At the same time, the pre-planned output needs to be adjusted according to the trading strategy of the day-ahead market:

[0087]

[0088] in, It is the penalty cost caused by the deviation between planned output and actual output when the system participates in the energy dispatch market; It is the penalty for system wind abandonment; is the loss cost of user satisfaction with energy consumption, is the energy penalty cost, is the minimization function.

[0089] The deviation between planned output and actual output will not be penalized within the allowed range. Penalty costs will only be incurred when the output deviation exceeds this range. The specific expression is as follows:

[0090] when hour, ;

[0091] when Time, 0;

[0092] when hour, ,

[0093] in, is the calibrated output; is the actual output; is the penalty coefficient; is the allowable deviation.

[0094] In order to fully improve the efficiency of renewable energy use, the wind abandonment cost in the dispatch process is set as the optimization target. The specific model settings are as follows:

[0095]

[0096] in, is the unit wind abandonment default cost; is the predicted wind output at time t; is the actual wind output at time t, It is a wind curtailment cost optimization model.

[0097] When participating in the demand response mechanism of the external energy dispatch center, the system will guide internal users to adjust their energy consumption patterns. Studies have found that there is an inverse relationship between the user's energy consumption comfort and load dispatch, that is, when the magnitude of load reduction, transfer or interruption increases, the user's energy consumption comfort decreases accordingly, which reflects the cost loss of user satisfaction. From an economic perspective, the cost of load dispatch is often expressed by a quadratic function. Therefore, the loss cost of user satisfaction is measured by quantifying load dispatch:

[0098]

[0099] in, , and are the comfort factors of restorable load, transferable load and interruptible load respectively; , and They are load reduction, load transfer and load interruption respectively. It is the cost of loss of user satisfaction.

[0100] S4.2: In addition to the constraints that must be observed in day-ahead dispatch, the real-time dispatch optimization of the system must also comply with the constraints on unit start-up and shutdown and the restrictions on load call. Specifically, it includes the following steps:

[0101] S4.2.1: Unit start and stop constraints include unit start and stop time and frequency constraints:

[0102]

[0103]

[0104] in and is the continuous start-up time and continuous shutdown time of unit n; and is the minimum continuous operation time and minimum continuous shutdown time of unit n; is the maximum number of starts and stops allowed for unit n during the scheduling period, is the number of starts and stops of unit n at time t, is the number of starts and stops of unit n at time t-1.

[0105] S4.2.2: In the real-time dispatch stage, adjusting loads to optimize system power and reduce penalty costs caused by power deviations is a key means. At the same time, demand-side loads participating in demand response need to follow specific operating constraints.

[0106] First, in the process of real-time dispatch, adjusting the load to optimize the power of the system and reduce the penalty cost caused by power deviation is a crucial strategy. In addition, the demand-side load participating in demand response must comply with the established operating constraints. Specifically, it is expressed as follows:

[0107]

[0108] in, It can reduce the load in time Energy consumed on is the set of time intervals for which a given load can be reduced; and are the upper and lower bounds of load reduction.

[0109] Secondly, the so-called transferable load refers to those loads that have no strict restrictions on power consumption and can be transferred within a specified time range according to the scheduling strategy. In the scheduling operation, such loads can be arranged to be transferred in a more relaxed time period and must be moved within this limited time window. Specifically, it is expressed as follows:

[0110]

[0111] in, is the transferable load in time Energy consumed on It is a constant that represents the energy consumed by the device to complete the work.

[0112] Furthermore, under the demand response program, interruptible loads can be interrupted at any time and there is no specific limit on the total power consumption of interruptible loads.

[0113]

[0114] in, is interruptible load at time Energy consumed on is the maximum permissible interruptible load.

[0115] Step S5: Next, the day-ahead optimization model and the real-time optimization model need to be solved separately. Due to the differences between the two models, the mathematical problems abstracted from them are different, and the data generation methods are also different, so the two models need to be solved separately in different ways. Specifically, it is divided into the following steps:

[0116] S5.1: The day-ahead optimization model belongs to the category of typical multi-objective optimization mathematical models. Traditional multi-objective optimization methods, such as the objective weight method and the distance function method, usually deal with the problem by converting the multi-objective optimization problem into a single-objective problem, which not only requires rich prior knowledge, but also has low computational efficiency and unsatisfactory practical application results. In contrast, multi-agent reinforcement learning (MARL) has significant advantages over traditional multi-objective optimization methods, including its strong adaptability to dynamic environments, the autonomous learning and adaptation capabilities of agents, the ability to handle complex collaborative and competitive relationships, and excellent scalability. In addition, MARL supports online learning and real-time decision-making, which is suitable for coping with real-time changing environments, while being able to explore a variety of solutions. It is also particularly good at handling complex interactions between agents, which makes it perform well in solving optimization problems involving multiple objectives and dynamically changing conditions, surpassing the limitations of traditional multi-objective optimization methods.

[0117] Therefore, considering the characteristics of the model and its solution, MARL is selected to solve the Pareto solution set under the multi-objective function. Then, the compromise optimal solution is solved by constructing an ideal solution and the evidence reasoning decision method.

[0118] To overcome computational limitations, a reinforcement learning algorithm called Q-learning is applied. In the Q-learning algorithm, the following equation is used to iteratively update the multi-objective function of steps 1-4: :

[0119] ,

[0120] in, is the learning rate; is the target value.

[0121] S5.2: The day-ahead scheduling model is a classic mixed integer linear programming problem in actual operation and can be solved using the YALMIP toolbox. Figure 4 The solution process of the optimization model in the real-time scheduling stage is demonstrated.

[0122] It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Furthermore, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

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

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

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

[0126] The embodiments of the present invention are described above in conjunction with the accompanying drawings, but the present invention is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the enlightenment of the present invention, ordinary technicians in this field can also make many forms without departing from the scope of protection of the purpose of the present invention and the claims, which all fall within the protection of the present invention.

Claims

1. An energy management method for energy systems based on distributed optimization, It is characterized in that include: Step S1: Establishing the IES electrothermal architecture, converting the primary energy into thermal energy and electrical energy through energy conversion equipment; The energy conversion equipment includes CHP, electrical energy storage, thermal energy storage, photovoltaic, and wind turbines; Step S2: Establish a multi-time scale optimal scheduling method, optimize the scheduling of the IES under the market environment, and propose a collaborative scheduling strategy based on the market environment, including a day-ahead scheduling stage and a real-time scheduling stage; Step S3: Based on the forecasted meteorological parameters released by the trading center, the energy price information for the next day, and the internal parameter information and network topology of the IES system, an optimal scheduling model is performed for the day-ahead scheduling stage, and a day-ahead market trading strategy is proposed; Step S4: Modeling the real-time scheduling stage according to the real-time renewable energy forecast data, and readjusting the energy plan by applying the coordinated control of various energy sources and user-side demand response technology; Step S5: According to the day-ahead scheduling model, a multi-agent reinforcement learning method is used to solve and calculate it; according to the real-time scheduling model, a YALMIP toolbox is used to solve it; The step S3 further comprises: The day-ahead scheduling model includes two parts: a day-ahead scheduling objective function and a day-ahead scheduling constraint; the indicators considered in the day-ahead scheduling objective function include: economic benefits, environmental indicators and energy efficiency; The day-ahead scheduling constraints include: day-ahead market bidding output constraints, equipment operation constraints, energy storage equipment constraints and energy transmission constraints.

2. According to the energy management method of energy system based on distributed optimization according to claim 1, It is characterized in that The step S1 further comprises: The IES contains a variety of energy production and energy conversion equipment, which can trade energy with power grids and heat companies under the condition that the system load is met; Users are the main energy consumers in the IES system, and user loads are resources for energy management and system operation optimization and regulation.

3. According to the energy management method of energy system based on distributed optimization according to claim 1, It is characterized in that The step S1 further comprises: The load type considered by the IES system is an adjustable load; The adjustable loads are interruptible loads and transferable loads.

4. According to the energy management method of energy system based on distributed optimization according to claim 1, It is characterized in that The step S2 further comprises: The day-ahead scheduling and the real-time scheduling are in an interactive relationship; The day-ahead scheduling stage includes: formulating an internal unit production plan based on the results of the day-ahead load forecast and renewable energy output forecast, combined with the installed capacity of the system gas turbines and energy storage equipment and the demand response potential at the user end, and submitting the day-ahead market trading strategy.

5. According to the energy management method of energy system based on distributed optimization according to claim 1, It is characterized in that The step S2 also includes: in the real-time scheduling stage, according to the submitted day-ahead market trading strategy, tracking the day-ahead production plan, adjusting the internal unit output and available load in real time to participate in energy scheduling, and reducing the deviation between the system production plan and the actual output.

6. According to the energy management method of energy system based on distributed optimization according to claim 1, It is characterized in that The step S4 further comprises: The real-time optimization model consists of two parts: real-time optimization objective function and real-time optimization constraints; The real-time optimization constraints include: unit start-stop constraints and load scheduling constraints.

7. According to the energy management method of energy system based on distributed optimization according to claim 6, It is characterized in that The load scheduling constraints include: reducible load constraints, transferable load constraints and interruptible load constraints.

8. According to the energy management method of energy system based on distributed optimization as claimed in claim 1, It is characterized in that The step S5 further comprises: The multi-agent reinforcement learning method is a model-free reinforcement learning algorithm, which introduces DDQN to approximate the Q value, and the two parameterized deep Q networks are an online network and a target network respectively; It also includes the introduction of the PER method and the evaluation of the importance of each experience through time difference errors.

9. According to the energy management method of energy system based on distributed optimization as claimed in claim 8, It is characterized in that The online network and the target network are used for decision-making action selection and Q-value evaluation, respectively; The parameters of the target network are updated to the parameters of the online network at every step; The PER method is used to solve the problems of relevance and data utilization; The online network parameters are updated by combining the calculated loss function values ​​and gradient descent.