Optimal Scheduling Strategy for Multi-Energy Microgrid Considering Integrated Demand Response

: Research on energy storage plants has gained signiﬁcant interest due to the coupled dispatch of new energy generation, energy storage plants, and demand-side response. While virtual power plant research is prevalent, there is comparatively less focus on integrated energy virtual plant station research. This study aims to contribute to the integrated energy virtual plant station research by exploring the relationship between the integrated energy electro-thermal coupling capacity, various forms of electro-thermal integrated energy response, and electro-thermal integrated energy storage. Analyzing the attributes of an integrated energy microgrid, including energy storage characteristics, time-of-use tariffs, and electric and thermal loads, is crucial. A grid-connected microgrid with cogeneration systems, electric boilers, fuel cells, and energy storage systems is used as an illustrative example. The dispatching method prioritizes multiple complementary energy sources while considering the integrated energy demand response. The study presents different models for the electricity demand and thermal energy demand response and introduces the design of a wholesale power trader involved in building energy storage facilities and participating in the demand response. To verify the feasibility and rationality of the integrated energy demand response scenario, three different schemes are compared, and an economic analysis is conducted.


Introduction
The future new power system will rely on multiple integrated energy sources [1][2][3][4], including hydrogen energy [5], which is clean, efficient, and environmentally friendly.Power traders are becoming involved in constructing energy storage power plants, along with distributed power sources and demand-side responses, to enable the clustering and scheduling control of virtual power plants [6][7][8][9].The smart scheduling and management of microgrids in smart communities is also crucial for future growth.Therefore, studying the demand-side response and energy storage coupling for multi-energy complementary microgrid scheduling is essential.
Integrated energy systems combine electrical and thermal energy storage, enabling long-term dispatch and demand response activation for thermal and electric energy [10].Long-term storage options include compressed air, liquefied hydrogen, liquefied natural gas, and more [11].However, ensuring sufficient energy storage in the day-ahead market becomes challenging due to reserve constraints, risk factors, network congestion, and increased transaction costs [11,12].The complexity introduced by multi-energy coupling and the varying conversion efficiency further affects transaction clearing prices [13].Consequently, determining optimal energy transaction prices requires decision making, such as through multilateral negotiations and peer-to-peer trading models [14].To address these economic constraints, distributed settlement methods are proposed to mitigate spot market risks and improve spot prices for different energy carriers [15].
The main trend in integrated energy systems is shifting towards clean fuels such as hydrogen.Combined heat and power, with natural gas as the dominant clean fuel, is Energies 2023, 16, 4694 2 of 17 currently prevalent in integrated energy setups, but hydrogen energy is emerging as a potential replacement for natural gas.Several key issues require attention: (1) identifying the optimal energy source for hydrogen production, (2) enhancing the hydrogen production efficiency, and (3) effectively storing hydrogen energy.The existing literature [16] addresses some of these challenges by exploring hydrogen production from various renewable energy sources, optimizing current and temperature controls for improved efficiency, and predicting the hydrogen demand based on the spatial and temporal load characteristics to mitigate the volatility of renewable energy sources.While the first two problems have been addressed with similar approaches in the literature, a better approach for the third problem remains a topic of investigation.Research studies [17,18] suggest methanation as a viable solution for the preparation of natural gas, liquid hydrogen, and other gas and liquid forms.Great research prospects lie in modeling the entire industry chain of hydrogen energy generation, handling, storage, and transportation, as well as maximizing revenue through the synergy and complementarity of different forms of hydrogen energy.
As mentioned earlier, the demand response plays a vital role in addressing scheduling flexibility, and the coordinated control of the demand response and energy storage systems is instrumental in managing uncertainties in new energy consumption and maximizing profits in the power market [19].Notably, an intriguing approach involves quantitatively addressing the curtailment of wind and photovoltaic power through load shifting or demand response balancing, followed by the full utilization of the generated power via energy storage [20].Moreover, the inclusion of multiple forms of electric and thermal energy, along with their corresponding electric and thermal demand responses, including the cold demand response, further expands the possibilities for flexible system dispatch [21][22][23][24].Similar to the challenges of modeling the conversion efficiency in multi-energy systems, the accurate modeling and collaborative dispatching of the electric-energy-based demand response and integrated energy demand response are pressing issues that need to be resolved.At the market level, the trading mechanisms of both the electric energy market and the natural gas market [25,26] have paved the way for the introduction of a price-based electric energy demand response and integrated energy demand response.However, to effectively manage the uncertainties stemming from renewable energy, diverse load types, and spot prices in the energy market, the establishment of a smart energy center with accurate modeling and a clear mechanism becomes imperative.The relevant literature [27] contributes significantly to addressing this challenge.
This study aims to address key aspects, such as combined heat and power, clean energy utilization, and an integrated energy demand response.Moreover, it focuses on addressing the core concerns of investors, including the community equipment configuration model, the profitability of electric and thermal decoupling, and the quantification of the microgrid demand response in relation to electricity prices.To tackle these challenges, we investigate the scheduling methods of energy storage power plants within a complementary microgrid, considering the active participation of power trading wholesalers.The objective is to optimize the dispatch costs by minimizing them through the integration of energy storage power plants in a multi-energy complementary dispatch.
The novelties of this paper include (1) a model description of thermal energy storage power construction by wholesale electricity traders to participate in the electricity market; (2) modeling different types of demand-side response load characteristics; and (3) an integrated energy system with clean fuels as a representative of electrical cooling and multiple thermal energy forms complementary to each other as a background.
In Section 2, the definition and operational architecture of the integrated energy system are introduced; Section 3 introduces the integrated energy demand response based on the integrated energy system; in Section 4, the optimal scheduling model of the integrated energy system is introduced; Section 5 conducts a simulation analysis to quantify the economics of the integrated energy demand response; and, finally, a summary is given.

Integrated Energy System
An integrated energy system (IES) encompasses the coordination and optimization of energy generation, transmission, distribution, conversion, storage, and consumption.It involves various components, such as energy supply networks (e.g., power, gas, cooling/heat), energy exchange links (e.g., combined cooling, heating, and power unit; generator set; boiler; air conditioner; heat pump), energy storage links (e.g., electricity, gas, heat, cooling), terminal integrated energy supply units (e.g., microgrid), and numerous end-users [28,29].The specific operational flow is shown in Figure 1.
Energies 2023, 16, x FOR PEER REVIEW 3 of 18 the economics of the integrated energy demand response; and, finally, a summary is given.

Integrated Energy System
An integrated energy system (IES) encompasses the coordination and optimization of energy generation, transmission, distribution, conversion, storage, and consumption.It involves various components, such as energy supply networks (e.g., power, gas, cooling/heat), energy exchange links (e.g., combined cooling, heating, and power unit; generator set; boiler; air conditioner; heat pump), energy storage links (e.g., electricity, gas, heat, cooling), terminal integrated energy supply units (e.g., microgrid), and numerous endusers [28,29].The specific operational flow is shown in Figure 1.The IES is widely recognized as a means to enhance energy efficiency, promote renewable energy adoption, and improve energy supply security, affordability, and adaptability.However, the optimization of integrated energy operation faces challenges due to the unpredictable nature of distributed energy production and fluctuating energy consumption in IES.Researching the integrated demand response for multi-energy synergy is crucial to establish a favorable interaction between the supply and demand sides of IES.The integrated demand response expands upon the classic paradigm by encouraging consumers to modify their demand for multiple energy sources through incentives or discounts, thereby influencing their demand for additional energy sources [30,31].This approach moves beyond the traditional concept of the demand response, which focuses on modifying the electricity demand through prices or incentives to achieve supply-demand equilibrium.Accordingly, this paper proposes a scheme of electric and thermal integrated energy demand response participation dispatch (as shown in Figure 2) and mainly analyzes the operating benefits under different electricity prices.The IES is widely recognized as a means to enhance energy efficiency, promote renewable energy adoption, and improve energy supply security, affordability, and adaptability.However, the optimization of integrated energy operation faces challenges due to the unpredictable nature of distributed energy production and fluctuating energy consumption in IES.Researching the integrated demand response for multi-energy synergy is crucial to establish a favorable interaction between the supply and demand sides of IES.The integrated demand response expands upon the classic paradigm by encouraging consumers to modify their demand for multiple energy sources through incentives or discounts, thereby influencing their demand for additional energy sources [30,31].This approach moves beyond the traditional concept of the demand response, which focuses on modifying the electricity demand through prices or incentives to achieve supply-demand equilibrium.Accordingly, this paper proposes a scheme of electric and thermal integrated energy demand response participation dispatch (as shown in Figure 2) and mainly analyzes the operating benefits under different electricity prices.

Integrated Energy Demand Response Model
The integrated demand response relies on supply-side electrothermal coupling technology, which not only encourages power users to decrease and move electrical loads via electricity pricing but also makes it possible to transfer both gas and electric heating loads.

Integrated Energy Demand Response Model
The integrated demand response relies on supply-side electrothermal coupling technology, which not only encourages power users to decrease and move electrical loads via electricity pricing but also makes it possible to transfer both gas and electric heating loads.The model presented in this paper makes some minor improvements on the basis of the literature [32].

Time-Shifted Electricity Load Response
A time-shifted load is one whose power consumption time may alter in response to user demands and whose duration varies depending on the type of load.Controllable loads, such as electric cars, etc., may participate in scheduling more flexibly and meet the power limitations within a certain timeframe.They can be represented by the following model: where P de f ,min i and P de f ,max i,t denote the lower and upper limits of the controllable load; T a i and T b i in the equation denote the lower and upper limits of the controllable load shifting time, and, at the same time, the load sum within the time interval T a i , T b i must be equal to P de f ,ctl i ; and there is no load shifting control outside the time interval.

Reduction Electricity Load Response
The controllable load refers to the power load that the system partly decreases for the user and typically compensates for.Additionally, as demonstrated in the equation, a controlled load's regulated power should be maintained within a certain range when scheduling it.We specify the following expression for load reduction P de f t over the period t: is the controllable load power of the ith user in the period t before IDR adjustment; P cul,ctl i,t is the power consumption of the ith user in the period t that is cut off after being adjusted by IDR; T cul is the total time of users participating in a controlled load response; P cul,min t is the minimum power consumption in the period t.

Thermal Load Response
The peak hours of air conditioners, electric furnaces, and other loads can essentially coincide with the peak hours of the grid power supply.Under IDR regulation, users with certain conditions may eliminate heating strategies such as air conditioners and electric furnaces in favor of centralized heating methods, which can maintain the user's thermal energy demand while reducing the strain on the power grid's supply.
If the replacement response power of the user i adjusted by IDR is q E,ctl i,t in the period t, then the system heating load q E t adjusted by IDR is The system gas heat load q B t after IDR regulation of the gas boiler is where q B,ini i,t is the heat power required for the gas heat load of the user i in the period t before adjustment by IDR; η B is the substitution factor.

IDR Compensation Mechanism
A fee compensation scheme is implemented for customers to encourage more demand response participation; the energy supply system is responsible for covering the associated expenses, which are shown in the following equation: In the formula, c de f t , c ctl t , and c e t are the unit prices for reducing electrical power, transferring electrical power, and adjusting electric heating power in the period t, respectively, and the price is related to the amount of income obtained by the system before and after participating in the response.

Multi-Energy Complementary Combined Heating and Power (CHP)-Based Optimal Operation Model
The thermoelectric connection via the energy storage system (ESS) is decoupled, the multi-energy complementing qualities are taken into account, and the CHP-optimized operation model with IDR creates the best output plan for each piece of cogeneration equipment from both the supply and demand sides.The system model is derived from the literature [33].

Objective Function
The objective function of the CHP day-ahead planning model is to minimize operating expenses: are the purchase power and purchase price of the microgrid to the large grid in the period t, respectively.

2.
Microturbines and fuel cell gas cost where c gas t is the unit price of gas in the period t; η GT t is the gas turbine conversion efficiency; η gas is the low calorific value of natural gas at 9.7 kWh/m 3 .where C FC , p FC t , and η FC t are the fuel cost, power generation, and power generation efficiency of the period t fuel cell, respectively.

Maintenance and equipment loss cost
Equipment operation generates power that causes equipment losses.To simplify the calculation, the maintenance cost and equipment loss cost is expressed as a linear relationship between the power generated by the equipment and the losses.
where C M is the maintenance cost; c m i,t denotes the unit maintenance cost for unit i; and P m i,t is the output of the period t for unit i.

4.
Heat sales revenue where C HE denotes the heat sales revenue; c he t is the unit price of heat sales; Q he t is the heat load in the network during the period t.

Constraints
In addition to taking into consideration the operating limits for the equipment, the system constraints must satisfy the electrical and thermal power balance as well as switching power restrictions.

Micro gas turbine model
In this paper, a mathematical model of the thermoelectric relationship is established, ignoring the influence of the external environment and combustion efficiency, and the exhaust waste heat power q MT t is expressed as an equation: where p MT t and η MT t are the electrical power and power generation efficiency of micro gas turbines in the period t; η L is the heat dissipation loss coefficient.
Micro gas turbines satisfy the output power and climb rate constraints below: where p MT,min and p MT,max are the lower and upper limits of the output power of gas turbines; p MT,d and p MT,u are the lower and upper climbing rate limits for gas turbines, respectively.

Electric heating model
Electric heating equipment obtains heat energy through electrical energy, such as electric air conditioners, electric boilers, etc., and this paper uses the mathematical model presented in the literature: where q EH t and p EH t are the heating power and electricity consumption of the electric heating equipment in the period t, respectively; and η EH is the conversion factor.

3.
Power and thermal energy storage model Consider the battery or thermal charge state model represented as follows: E ES,the t+1 = E ES,the t + P ch,the t η ch,the − P dis,the t /η dis,the (20) where the equation represents the battery and thermal dynamic model of the charge state; η ch,bat and η dis,bat denote the battery charge and discharge efficiency; P ch,bat t and P dis,bat t denote the battery or thermal charge and discharge power; E bat,min and E bat,max denote the lower and upper charge state constraints to prevent the battery from deep discharge and overshoot.η ch,the and η dis,the denote the thermal charge and discharge efficiency, and P ch,the t and P dis,the t denote the thermal charge and discharge power; E the,min and E the,max denote the lower and upper charge state constraints to prevent the thermal device from deep discharge and overshoot.
The charging and discharging power constraints and charge state constraints of the battery or thermal device are as follows: 0 ≤ P ch,the t ≤ P ch,the,max 0 ≤ P dis,the t ≤ P dis,the,max where P dis,bat,max denote the maximum battery charge and discharge power.P dis,the,max denote the maximum thermal charge and discharge power.

4.
Exchange power constraint P grid,min ≤ P grid t P grid,d ≤ P grid t where P grid,max and P grid,min indicate the upper and lower limits of the grid exchange power; P grid,u and P grid,d indicate the upper and lower limits of the climbing rate of the grid exchange power.

Electrical and thermal power balance
The sum of power purchased from the grid, distributed generation, and energy storage charging and discharging are equal to the sum of electrical load and heating load: The sum of thermal output power is equal to the sum of electric heating q E t and gas heating load q B t ; the terms q MT t , q EH t , q ES,dis t − q ES,ch t indicate the thermal output power of the micro gas turbine, electric heating, and thermal energy storage system:

Solving Algorithms
The objective function contains nonlinear terms and the standard form of its solution is In Equation ( 31), the optimization variable x includes the output of various micropower sources, energy storage, and interactive power; the equation constraint includes the energy balance and the energy relation equation of the energy storage device; the inequality constraint includes the operation constraint of each unit, etc.The sub-objective functions in the objective function ( 8) are linear expressions of the variables multiplied by the individual cost coefficients.The integrated energy demand response includes equation constraints ( 1), (3), ( 5)-( 6) and inequality constraints (2), (4); equation constraints ( 15), ( 18)-( 19), ( 25)-( 26) and inequality constraints ( 16)-( 17), ( 20)-( 24) are linear terms in the constraints.A commercial optimization solver can tackle the problem described above.In addition, it should be noted that the robust method is an important approach to dealing with uncertainty problems such as scenery [34,35]; however, this paper focuses on intuitively analyzing the benefits of different community scenarios from an economic perspective, assuming that the scenery is all deterministic output.The specific solution steps are shown in Figure 3.

Experimental Settings
In this research, a grid-connected microgrid is chosen, which consists of electric boilers, fuel cells, solar cells, cogeneration systems, wind turbines, and electric and thermal energy storage units.The interactive tariff follows the time-of-use tariff; the length of the

Experimental Settings
In this research, a grid-connected microgrid is chosen, which consists of electric boilers, fuel cells, solar cells, cogeneration systems, wind turbines, and electric and thermal energy storage units.The interactive tariff follows the time-of-use tariff; the length of the dispatching period is 24 h, the unit dispatching time is 1 h, and the power output and interactive power of each unit are constant.In this paper, a day's worth of photovoltaic and wind power data are simulated using the MATLAB simulation software, as shown in Figures 4 and 5.   Table 1 shows the exact characteristics of the energy storage system, assuming that the starting capacity of the energy storage is the smallest number.EES and TES indicate the battery energy storage and thermal energy storage systems;  ℎ/ indicates the charging and discharging efficiency of electrical or thermal energy;   and   indicate the lower and upper limits of charging and discharging energy or thermal energy;   indicates the initial test state of charging and discharging energy or thermal energy, respectively.Table 1 shows the exact characteristics of the energy storage system, assuming that the starting capacity of the energy storage is the smallest number.EES and TES indicate the battery energy storage and thermal energy storage systems;  ℎ/ indicates the charging and discharging efficiency of electrical or thermal energy;   and   indicate the lower and upper limits of charging and discharging energy or thermal energy;   indicates the initial test state of charging and discharging energy or thermal energy, respectively.Table 1 shows the exact characteristics of the energy storage system, assuming that the starting capacity of the energy storage is the smallest number.EES and TES indicate the battery energy storage and thermal energy storage systems; η ch/dis indicates the charging and discharging efficiency of electrical or thermal energy; η min and η max indicate the lower and upper limits of charging and discharging energy or thermal energy; E ini indicates the initial test state of charging and discharging energy or thermal energy, respectively.Storage batteries are utilized for electric energy storage, and thermal storage tanks are used for thermal energy storage because of the lengthy dispatch times per unit, and partial parameter references.The tariff periods in this paper are divided as follows: peak hours are 10:00-15:00 and 18:00-21:00; flat hours are 07:00-10:00, 15:00-18:00, and 21:00-23:00; valley hours are 00:00-07:00 and 23:00-24:00.The time-of-day tariffs are shown in Table 2.

Scheme 1 Results
The objective function of Scheme 1 is as follows: 14)-( 19), ( 22)-( 23), ( 26)-( 29) Scenario 1's heat load is provided by the CHP system, the CHP system works in the "heat to power" mode during the dispatch cycle, and the remaining heat load is met by the electric boiler, while the electric output determined by both is used to meet the grid electric load together with the output of fuel cells, electric storage, and interactive power.
In Scheme 1, the heat load is provided by the cogeneration system, and the cogeneration system works in the "heat to power" mode during the dispatch cycle, and the remaining heat load is met by the electric boiler, while the electric output determined by both is used to meet the grid electric load together with the output of fuel cells, electric energy storage, and interactive power.
The specific thermal energy dispatch results are shown in Figure 6 (named Scheme 1), while the specific electrical energy dispatch results are shown in Figure 7 (named Scheme 1).

Scheme 2 Results
The objective function of Scheme 2 is as follows: In mode 2, the cogeneration load is satisfied by the cogeneration system, fuel cells, energy storage, electric boilers, and interactive power based on the generation costs and operational constraints.With the introduction of thermal energy storage, the "heat-determined power" approach of the cogeneration system is decoupled, and the electric power output of micro-combustion engines and electric boilers is lifted.By optimizing both the power supply and heat supply costs through a unified objective function, the optimal power output of each unit can be obtained to meet the operating constraints of the microgrid, i.e., the joint dispatch of electricity and heat is realized.
the electric boiler, while the electric output determined by both is used to meet the grid electric load together with the output of fuel cells, electric storage, and interactive power.
In Scheme 1, the heat load is provided by the cogeneration system, and the cogeneration system works in the "heat to power" mode during the dispatch cycle, and the remaining heat load is met by the electric boiler, while the electric output determined by both is used to meet the grid electric load together with the output of fuel cells, electric energy storage, and interactive power.
The specific thermal energy dispatch results are shown in Figure 6 (named Scheme 1), while the specific electrical energy dispatch results are shown in Figure 7 (named Scheme 1).

Scheme 2 Results
The objective function of Scheme 2 is as follows: ( ) ) ) -9 In mode 2, the cogeneration load is satisfied by the cogeneration system, fuel cells, energy storage, electric boilers, and interactive power based on the generation costs and operational constraints.With the introduction of thermal energy storage, the "heat-determined power" approach of the cogeneration system is decoupled, and the electric power

Scheme 3 Results
The objective function of Scheme 3 is as follows: ( ) grid min . .( 1)-( 6), 14)-(2 () 9 In Scheme 3, the cogeneration load is met by the cogeneration system, fuel cells, energy storage, electric boilers, and interactive power generation cost and operating constraints, with the addition of the integrated energy demand response.The thermal load

Scheme 3 Results
The objective function of Scheme 3 is as follows: ( ) grid min . .( 1)-( 6), 14)-(2 () 9 In Scheme 3, the cogeneration load is met by the cogeneration system, fuel cells, energy storage, electric boilers, and interactive power generation cost and operating constraints, with the addition of the integrated energy demand response.The thermal load

Scheme 3 Results
The objective function of Scheme 3 is as follows: (1)-( 6), ( 14)-( 29) In Scheme 3, the cogeneration load is met by the cogeneration system, fuel cells, energy storage, electric boilers, and interactive power generation cost and operating constraints, with the addition of the integrated energy demand response.The thermal load dispatch results are consistent with the above strategy; the dispatch results from the electric load dispatch show that the electric power of the gas turbine and fuel cell is still relatively smooth; the excess power is stored in the battery, used for electric heat production, and sold to the grid.Through the demand response, the load curve is relatively smooth, less power is bought from the grid, and the battery releases relatively less power.
Figure 10 (named Scheme 3) depicts the particular thermal energy dispatch results, whereas Figure 11 (named Scheme 3) depicts the specific electrical energy dispatch results.The specific simulation results of this model are shown in Table 3  dispatch results are consistent with the above strategy; the dispatch results from the electric load dispatch show that the electric power of the gas turbine and fuel cell is still relatively smooth; the excess power is stored in the battery, used for electric heat production, and sold to the grid.Through the demand response, the load curve is relatively smooth, less power is bought from the grid, and the battery releases relatively less power.Figure 10 (named Scheme 3) depicts the particular thermal energy dispatch results, whereas Figure 11 (named Scheme 3) depicts the specific electrical energy dispatch results.The specific simulation results of this model are shown in Table 3 for six items.dispatch are consistent with the above strategy; the dispatch results from the electric load dispatch show that the electric power of the gas and fuel cell is still relatively smooth; the excess power is stored in the battery, used for electric heat production, and sold to the grid.Through the demand response, the load curve is relatively smooth, less power is bought from the grid, and the battery releases relatively less power.Figure 10 (named Scheme 3) depicts the particular thermal energy dispatch results, whereas Figure 11 (named Scheme 3) depicts the specific electrical energy dispatch results.The specific simulation results of this model are shown in Table 3 for six items.The results of demand response dispatch for integrated energy, compared with the original load, are shown in Figure 12.
Energies 2023, 16, x FOR PEER REVIEW 15 of 18 The results of demand response dispatch for integrated energy, compared with the original load, are shown in Figure 12.

Similarity of Three Schemes
Due to the low cost of fuel cell generation in power dispatch, the fuel cell is given priority to generate power when the electricity price is in the valley.When the purchased or sold power price is in normal or peak hours, the fuel cell takes the initiative to produce power, and the fuel cell generates full power to reduce the purchased power.
When micro-combustion engines are involved in power dispatch, they are only active when they meet the thermal operating constraints of the microgrid or when the cost of generation is lower than the price of electricity.Moreover, the electric and thermal power of the gas turbine maintains the same trend, and the generation power is influenced by the thermal power.
The SOC curve shows that the energy storage is charged and discharged under the guidance of the electricity price, charging during the valley hours and discharging during the peak hours, thus effectively reducing the peak-to-valley difference to a low level.

Comparison of Three Schemes
Compared to Scheme 3, Schemes 1 and 2 require the purchase of large amounts of electricity, while the addition of the integrated energy demand response makes the electricity supply fully self-sufficient and profitable.The integrated energy demand response smooths out the heat load somewhat, and cogeneration can be supported by lower-cost fuel cells and gas turbines, which in turn can lead to profitable electricity scenarios.
Compared with Schemes 1 and 2, without the thermal storage system, the fuel cell produces a large amount of power only at high electricity prices; it produces less power at low electricity and fuel cells generate little electricity and are used for electric heating.With fuel cells' low-cost power generation for heat production, the efficiency is very low; with thermal energy storage, the fuel cell can also maintain high-efficiency power generation in the valley hours.

Similarity of Three Schemes
Due to the low cost of fuel cell generation in power dispatch, the fuel cell is given priority to generate power when the electricity price is in the valley.When the purchased or sold power price is in normal or peak hours, the fuel cell takes the initiative to produce power, and the fuel cell generates full power to reduce the purchased power.
micro-combustion engines are involved in power dispatch, they are only active when they meet the thermal operating constraints of the microgrid or when the cost of generation is lower than the price of electricity.Moreover, the electric and thermal power of the gas turbine maintains the same trend, and the generation power is influenced by the thermal power.
The SOC curve shows that the energy storage is charged and discharged under the guidance of the electricity price, charging during the valley hours and discharging during the peak hours, thus effectively reducing the peak-to-valley difference to a low level.

Comparison of Three Schemes
Compared to Scheme 3, Schemes 1 and 2 require the purchase of large amounts of electricity, while the addition of the integrated energy demand response makes the electricity supply fully self-sufficient and profitable.The integrated energy demand response smooths out the heat load somewhat, and cogeneration can be supported by lower-cost fuel cells and gas turbines, which in turn can lead to profitable electricity scenarios.
Compared with Schemes 1 and 2, without the thermal storage system, the fuel cell produces a large amount of power only at high electricity prices; it produces less power at low electricity prices, and fuel cells generate little electricity and are used for electric heating.With fuel cells' low-cost power generation for heat production, the efficiency is very low; with thermal energy storage, the fuel cell can also maintain high-efficiency power generation in the valley hours.

Quantitative Comparison of Scheme 2 and Scheme 3
A comparison of the results of the integrated energy demand response without participation in dispatch and with participation in dispatch is shown in Table 3.Here, the "No IDR Scheme" is Scheme 2, and the "IDR Scheme" is Scheme 3. Compared to Scheme 2, Scheme 3 achieves a 290.6 reduction in pass-through costs; a 12.2 reduction in gas costs; a 6.8 profit on electricity, equivalent to a 275.9 reduction in costs; a 1.3 reduction in maintenance costs; and the same revenue from the sales of thermal energy, for a combined energy demand response benefit of 346.1.The data validate the integrated energy demand response, which demonstrates excellent economic performance in all metrics.

Conclusions
The optimal operation model of CHP based on multi-energy complementarity is established in this paper for CHP with renewable distributed generation by decoupling thermoelectric connections through ESS so that the supply side can increase the energy supply capacity through conversion equipment; thus, users can change their energy consumption choices to improve the demand side's ability to respond, and to provide optimization space for the thermal and electricity products.The following conclusions may be drawn from the analysis of the findings.

1.
Without thermal energy storage equipment and electric and thermal coupling, the system operates inefficiently and the power generation is affected by the heat generation efficiency constraint.

2.
Configuring thermal energy storage equipment decouples electric and thermal cogeneration to a certain extent.The electric energy storage and thermal energy storage can realize the free power generation of different power generation units and the free heat generation of different heat generation units, respectively.

3.
The objective of this paper was to quantify and analyze the economics of a good integrated energy demand response.Through the results, it was found that via integrated energy control, all cost indicators were reduced, and the grid achieved a transformation from loss to profit; the reduction in each cost is also an indication of the reduction in equipment losses and the improvement in synergistic operation.

Figure 4 .
Figure 4. Photovoltaic and wind power output.

Figure 4 .
Figure 4. Photovoltaic and wind power output.

Figure 4 .
Figure 4. Photovoltaic and wind power output.

Figure 8 (
Figure 8 (named Scheme 2) displays the precise thermal energy dispatch results, whereas Figure 9 (named Scheme 2) displays the precise electrical energy dispatch outcomes.The specific simulation results of this model are shown in Table3for five items.

Figure 12 .
Figure 12.Integrated energy demand response dispatch results.

Figure 12 .
Figure 12.Integrated energy demand response dispatch results.

Table 3 .
Comparison of two schemes.
for six items.