Next Article in Journal / Special Issue
Cost Prediction for Power Transmission and Transformation Projects in High-Altitude Regions Based on a Hybrid Deep-Learning Algorithm
Previous Article in Journal
Food Waste Anaerobic Digestion Under High Organic Loading Rate: Inhibiting Factors, Mechanisms, and Mitigation Strategies
Previous Article in Special Issue
Uncertainty-Based System Flexibility Evaluation and Multi-Objective Collaborative Optimization of Integrated Energy System
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Optimal Operation of a Two-Level Game for Community Integrated Energy Systems Considering Integrated Demand Response and Carbon Trading

1
China Energy Engineering Group Guangxi Electric Power Design Institute Co., Ltd., Nanning 530007, China
2
Department of Economic Management, North China Electric Power University, Baoding 071003, China
*
Author to whom correspondence should be addressed.
Processes 2025, 13(7), 2091; https://doi.org/10.3390/pr13072091
Submission received: 23 May 2025 / Revised: 28 June 2025 / Accepted: 29 June 2025 / Published: 1 July 2025

Abstract

In light of the current challenges posed by complex multi-agent interactions and competing interests in integrated energy systems, an economic optimization operation model is proposed. This model is based on a two-layer game comprising a one-master–many-slave structure consisting of an energy retailer, energy suppliers, and a user aggregator. Additionally, it considers energy suppliers to be engaged in a non-cooperative game. The model also incorporates a carbon trading mechanism between the energy retailer and energy suppliers, considers integrated demand response at the user level, and categorizes users in the community according to their energy use characteristics. Finally, the improved differential evolutionary algorithm combined with the CPLEX solver (v12.6) is used to solve the proposed model. The effectiveness of the proposed model in enhancing the benefits of each agent as well as reducing carbon emissions is verified through example analyses. The results demonstrate that the implementation of non-cooperative game strategies among ESs can enhance the profitability of ES1 and ES2 by 27.83% and 18.67%, respectively. Furthermore, the implementation of user classification can enhance user-level benefits by up to 39.51%.

1. Introduction

The considerable rise in greenhouse gas emissions has had a profound impact on the economic development of countries across the globe, with climate change emerging as a significant challenge to global economic growth [1]. The introduction of carbon peaking and carbon neutrality goals has precipitated an urgent need in China to implement an energy transition and construct a new-generation system that is environmentally friendly, low-carbon, secure, and efficient [2]. In this context, integrated energy systems (IESs) that are capable of multi-energy coupling have become the primary means of achieving efficient and clean energy utilization [3,4]. These systems have the potential to dismantle the silos between disparate energy sources, improve energy efficiency, and enhance renewable energy absorption, thereby playing a pivotal role in attaining carbon neutrality and peak carbon goals [5,6].
In the current optimal scheduling of IES, it is recommended that demand response (DR) [7] and the carbon trading mechanism (CTM) [8] be taken into consideration. The implementation of incentive compensation or price changes has the potential to impact energy consumption behavior, optimize the match between supply and demand, and improve system stability through the use of DR mechanisms. As IES is capable of coupling multiple energy sources, integrated demand response (IDR), which encompasses electric, gas, heat, and cold loads, is gradually replacing the conventional approach of DR for electric loads [9,10]. In a community-integrated energy system (CIES) model, Wang et al. [11] investigated the potential use of DR with electric–thermal synergy to reduce costs and carbon emissions. Their findings suggest that DR with electric–thermal synergy may be an effective strategy for achieving these environmental and economic goals. Liang et al. [12] introduced the idea of IDR in the optimal allocation of energy storage in IES. They then proceeded to verify the effectiveness of IDR in optimizing energy storage allocation as well as cost reduction. Wang et al. [13] developed a multi-objective optimization model of IES that considers IDR, thereby further exploiting the energy consumption potential on the demand side. On the other hand, the CTM represents an efficacious method for regulating carbon emissions through the utilization of market mechanisms. A substantial corpus of research has been undertaken with the objective of integrating the CTM into the economic optimization of IES. So as to achieve a further reduction in the level of carbon emissions within the system, Zhou et al. [14,15] proposed the establishment of a carbon trading market in IES. Chen et al. [16] introduced a price-based CTM model in IES, and the results demonstrate that power scheduling tends to result in a lower level of carbonization compared to scheduling in traditional IES. Ma et al. [5] developed an optimal scheduling model for IES with coupled electric, heat, gas, and carbon considerations and incorporated the CTM into the model. The simulation verification concluded that the CTM improved the utilization of renewable energy. In a multi-objective optimization model for IES, Pan et al. [17] introduced a stepped CTM, and the results demonstrate that the proposed strategy can decrease carbon emissions effectively. Nevertheless, the above literature on the optimal scheduling of IES only considers IDR or the CTM in isolation, without examining the impact of IDR and CTM co-modeling.
In addition, some studies have introduced both IDR and the CTM into IES. Li et al. [18,19] demonstrated that integrating the synergies between IDR and the CTM in an electrothermal IES can effectively reduce carbon emissions and costs. Chen et al. [20] established a CTM with load-side DR in IES, which proved to be an effective method of reducing carbon emissions and improving economic efficiency. Zeng et al. [21] developed a two-level IES model in which the load-side flexibility of whole-process carbon emissions was considered at a lower level. The incorporation of whole-process carbon emissions and IDR was verified to enhance the economic and low-carbon performance of the system.
Currently, the literature on IES optimal scheduling primarily focuses on the centralized optimization approach. This approach, however, does not fully address the issue of competing interests among the agents within the system. Instead, it primarily considers the maximization of the overall interests of the system. This does not align with the prevailing concept of the regional autonomy of IES [22]. It is recommended that future research concentrate on the distributed optimization of IES in order to satisfy the interests of a variety of agents. In addressing the competing interests of agents in IES distributed optimization, Stackelberg game theory offers an appropriate means of analysis [22,23]. In this context, Zhang et al. [24] established a master–slave game model between the integrated energy system operator (IESO) and each IES. This was performed in order to investigate the pricing strategy of the IESO and the optimization strategy of the IES. Wang et al. [25] constructed a Stackelberg game model to describe the competitive dynamics at play between the three key parties involved in the energy sector: energy suppliers, energy storage operators, and energy users. In order to solve the problem of renewable energy consumption in distributed integrated energy systems (DIES), Wang et al. [26] established a single-master–multiple-slave (SMMS) model based on the Stackelberg game. Wang et al. [27] employed a Stackelberg game to optimize the pricing of energy service providers and the energy use strategies of users, with the objective of achieving the low-carbon and economic goals of the system. Yuan et al. [28] conducted an analysis of the relationship between IES and users, wherein IES, functioning as a leader, employs time-of-use pricing strategies with the objective of enhancing profits and market competitiveness. Li et al. [29] constructed an SMMS model as part of the two-level optimization of IES, with the objective of achieving regional autonomy in IES and balancing the interests of leaders and followers.
Furthermore, research has been conducted that considers IDR and the CTM in the context of competition between agents in the IES. In order to address the discrepancy between the output of renewable energy sources and the demand from users, IDR was considered in the Stackelberg game, as discussed in [30]. Latifi et al. [31] considered DR in the game model of followers to maximize consumer satisfaction. Shen et al. [32] incorporated both IDR and the CTM into a Stackelberg game low-carbon economic dispatch model, with the objective of reducing the system’s carbon emissions and enhancing the user benefits. In a Stackelberg game, Yan et al. [33] introduced an IDR model that considered the psychological aspects of consumers. Their findings demonstrate that an IDR that incorporates consumer psychology can markedly enhance consumer surplus. Qin et al. [34] introduced both IDR and the CTM into the game model of a CIES, considering IDR and the CTM on the user level and the CTM on the supply level. Hou et al. [35] proposed the use of the CTM in IES as a means of achieving low-carbon operation in the system. Meanwhile, a game is undertaken between the IESO and the users, who participate in the IDR based on the energy price set by the IESO to enhance their own benefits.
Most studies have focused on vertical supply–demand multi-agent master–slave games, with limited research into multi-agent games at the same level. This paper constructs a non-cooperative game model for energy suppliers on the supply side, which facilitates multi-agent collaborative optimization and development. The existing studies generally categorize demand-side users into a single group, assuming that users have identical energy consumption preferences. However, in reality, users exhibit significant differences in their energy consumption preferences, and these variations can influence the equilibrium outcomes of demand-side games within integrated energy systems. This paper categorizes demand-side users into four groups based on their energy consumption characteristics. Each category of users participates in a demand response based on their own energy consumption preferences, achieving load reduction and transfer within the system while enhancing their own energy consumption satisfaction.
Although some studies have used the Stackelberg game to address the internal supply and demand relationships, there is still room for improvement. Firstly, in the contemporary energy market, where competition from numerous ESs is a prominent feature, the traditional approach of focusing solely on the game between supply and demand is no longer sufficient to meet the optimization requirements of modern DIES. Secondly, there are few studies that have introduced both IDR and the CTM into the Stackelberg game, and considering either IDR or the CTM in isolation is insufficient to meet the low carbon needs of today’s IES. Finally, there is considerable variation in the energy use preferences of users. However, the aforementioned studies tend to assume that these preferences are homogeneous, which is not realistic.
In light of the aforementioned analyses, the objective of this paper is to put forth a two-level game model for CIES that considers IDR and the CTM. The energy retailer (ER) is introduced as the manager of the CIES, while energy suppliers (ESs) and user aggregators are introduced as the followers, forming an SMMS game relationship. In addition, a non-cooperative game relationship is established among the ESs. Moreover, the model incorporates considerations of user-side diversity through the classification of community users according to their energy-use characteristics. This paper introduces an improved differential evolution algorithm, which is designed to enhance the speed and accuracy of model optimization in high-dimensional and nonlinear two-level master–slave game models. The proposed algorithm incorporates the double mutation strategy and adaptive crossover strategy into the traditional differential evolution algorithm to achieve this objective. Subsequently, the efficacy of the aforementioned model and algorithm is validated through the utilization of illustrative simulations. The principal contributions of this paper are as follows:
(1)
A segmentation of users on the basis of their energy-use characteristics is conducted, and the results demonstrate that this segmentation allows user aggregators to more effectively participate in the demand–response market and improve user-side benefits.
(2)
A two-level game optimization model is proposed, wherein the ER, acting as a leader, forms an SMMS model with the ESs and a user aggregator, who are designated as followers. Non-cooperative games are established among the follower ESs, coordinating the interests of each ES. Additionally, to increase user benefits and reduce system carbon emissions, IDR and the CTM are introduced into the two-level game optimization model.
(3)
To assess the formulated model, an improved differential evolutionary algorithm is employed in collaboration with the CPLEX solver (v12.6). The case study verifies the convergence of the algorithm and the efficacy of the strategy proposed in this paper in considering the benefits of the various agents while reducing carbon emissions.
The rest of this paper is organized as follows: Section 2 outlines the structure of the CIES. Section 3 provides a detailed description of the CIES optimization model, which accounts for both IDR and the CTM. Section 4 proposes a two-level game model for analyzing the operational strategies of each agent. Section 5 describes the process of solving the model. Section 6 discusses and analyzes the results through a case study. Finally, Section 7 offers a conclusion to the paper.

2. CIES Structure

The CIES proposed in this paper is composed of an ER, two ESs, and a user aggregator. An ER is a bridge between supply and demand, navigating the competing interests of the system’s primary stakeholders and facilitating the rational scheduling of energy to achieve equilibrium between supply and demand. The CIES structure is illustrated in Figure 1.
The use of big data and forecasting technology by ER enables the initial load of the customer to be predicted. Subsequently, the price at which energy is sold to the users and the energy purchasing power of ESs are set based on the ESs’ historical energy prices and the electricity and heat prices of the power grid and heat company. This approach allows the ER to optimize its own benefits. The objective of the user aggregator is to optimize the benefits derived by the user community by optimizing load purchase volumes. The ES provides energy for the CIES, comprising combined cooling heating and power (CCHP) units that primarily achieve this objective by optimizing their own energy sales prices and unit output.
The energy trading process, as previously outlined, comprises two distinct phases: the initial decision-making phase, occurring at the highest levels of the organizational structure, and the subsequent response phase, occurring at the lowest levels. The initial phase involves the upper-layer ER in the formulation of an energy sales price and purchase power strategy, which is based on the load demand and historical selling price information of the ESs. In the initial phase, the ER establishes the energy sales price and energy power purchase strategy, basing these decisions on load demand and historical selling price information derived from the ESs. In the subsequent phase, the lower-layer ESs and user aggregator determine the energy sales price and load demand response quantity, respectively, based on the ER’s decision. Concurrently, the ER initiates a new round of decision-making based on the lower layer’s strategy.

3. The CIES Optimization Model Considering Both IDR and CTM

3.1. Modeling of New Energy CCHP

The variables and abbreviations introduced in this paper are shown in Table 1. The structure of the CCHP in this paper is illustrated in Figure 2. The main devices included in the system are photovoltaics (PV), a wind turbine (WT), storage batteries (BAT), a micro gas turbine (MT), a waste heat boiler (WHB), an absorption refrigerator (AR), a gas boiler (GB), and heat storage (HS).
The MT will generate excess heat while generating electricity, which can be recovered and processed by the WHB. This heat can then be used for cooling by absorption chillers or directly for heating. The recovery process can be expressed as follows:
H M T , i t = 1 η M T , i γ M T , i η M T , i P M T , i t
H W H B , i t = H M T , i t η W H B , i
H A R , i t = H W H B , i t + H G B , i t η A R , i
where H M T , i t denotes the residual heat generated by the MT of ESi in period t; P M T , i t represents the output power of the MT of ESi in period t; η M T , i and γ M T , i represent the generating efficiency and heat loss factor of the MT in ESi, respectively; H W H B , i t denotes the output thermal power of the WHB of ESi in period t; η W H B , i represents the heat recovery efficiency of the WHB of ESi; H A R , i t represents the refrigeration power of the AR of ESi in period t; and η AR , i represents the refrigeration efficiency of the AR of ESi.
During the operation of the equipment, the maximum and minimum bounds of the output power and climb rate must be satisfied.
P ϖ , i , min P ϖ , i t P ϖ , i , max
r ϖ , i d P ϖ , i t P ϖ , i t 1 r ϖ , i u
where ϖ P V , W T , B A T , M T , W H B , G B , H S ; P ϖ , i t denotes the output power of equipment ϖ of ESi in period t; P ϖ , i , max and P ϖ , i , min represent the maximum and minimum bounds of output power of equipment ϖ of ESi, respectively; and r ϖ , i u and r ϖ , i d represent the up and down ramping limits of equipment ϖ of ESi, respectively.
In this paper, the models of power and heat storage equipment are similar, so the power storage and heat storage devices are modeled uniformly, i.e.,
Q i x t = Q i x t 1 1 v i x + P c h a r , i x t η c h a r , i x P d i s , i x t η d i s , i x t
Q i , min x Q i x t Q i , max x
Q i x 1 = Q i x 24
0 P c h a r , i x t P c h a r , i , max x S c h a r , i x t
0 P d i s , i x t P d i s , i , max x S d i s , i x t
S c h a r , i x t + S d i s , i x t 1
where x denotes the index of the energy storage device, with x = 1 ~ 2 for BAT and HS, respectively; Q i x t denotes the energy stored in the energy storage equipment of ESi in period t; Q i , max x and Q i , min x represent the maximum and minimum stored energy bounds of the energy storage device of ESi, respectively; Q i x 1 and Q i x 24 represent the stored energy in energy storage device of ESi at the start and finish of the day, respectively; P c h a r , i x t and P d i s , i x t represent the charging and discharging power of the energy storage device of ESi in period t, respectively; P c h a r , i , max x and P d i s , i , max x represent the upper power limits of ESi’s energy storage device during charging and discharging processes, respectively; v i x represents the energy dissipation coefficient of ESi; η c h a r , i x and η d i s , i x t represent the efficiency of the charging and discharging processes of ESi, respectively; and S c h a r , i x t and S d i s , i x t are 0–1 variables, the values of which are 1 when the device is running and 0 when the equipment stops, to ensure that the energy storage equipment is not engaged in the charging and discharging of energy simultaneously.

3.2. Modeling of CTM

The fundamental premise of the CTM is to regulate carbon emissions by establishing legally binding carbon emission rights, which are then traded as commodities [36]. If the actual carbon emissions are less than the carbon allowances, excess allowances can be traded for revenue on carbon trading markets; conversely, carbon allowances must be purchased from the carbon market.
This paper adopts the method of unpaid carbon allowance allocation, in which the system receives unpaid carbon allowances for electricity and thermal power purchased from the upper level, MT, and GB. The formula for calculating carbon allowances for the system is expressed as
D E R = θ e t = 1 T P b u y t + θ h t = 1 T H b u y t
D E S , i = θ h t = 1 T φ P M T , i t + H M T , i t + H G B , i t
where T denotes a dispatch cycle; D E R and D E S , i represent the carbon allowances of ER and ESi, respectively; P b u y t and H b u y t denote the purchasing of the electricity and heat of ER from the higher level in period t, respectively; θ e and θ h represent the carbon emission allowances per unit of electricity and heat, respectively; and φ is the electricity transfer efficiency, which is 1.9.
The formula for the calculation of the actual carbon emissions for each agent is expressed as
E E R = t = 1 T a 1 P b u y 2 t + H b u y 2 t + b 1 P b u y t + H b u y t + 2 c 1
P g t r , i t = P M T , i t + H M T , i t + H G B , i t
E E S , i = t = 1 T a 2 P g t r , i 2 t + b 2 P g t r , i t + c 2
where E E R and E E S , i represent the actual carbon emissions of ER and ESi, respectively; P g t r , i t represents the sum of power output from the MT and GB of ESi in period t; a 1 , b 1 , c 1 and a 2 , b 2 , c 2 represent the carbon emission factors used in calculations pertaining to coal and natural gas-fired energy plants, respectively.
The present paper considers a laddered CTM, which entails the establishment of a laddered carbon price that rises in accordance with the magnitude of carbon emissions. The equation for calculating the carbon trading cost is expressed as
E t r = E D
F c o 2 = ψ E t r E l ψ 1 + ε E t r l + λ l 2 l E 2 l ψ 1 + 2 ε E t r 2 l + λ 2 + ε l 2 l E 3 l ψ 1 + 3 ε E t r 3 l + λ 3 + 3 ε l 3 l E 4 l ψ 1 + 4 ε E t r 4 l + λ 4 + 6 ε l 4 l E
where F C O 2 denotes the carbon trading cost; ψ represents the carbon trading price [37]; l represents the length of the carbon emission interval; ε represents the growth factor; E t r represents the carbon emissions trading volume; and D represents the carbon allowances; and E represents the actual carbon emissions.

3.3. Modeling the Benefits of Each Agent

3.3.1. Energy Retailer

The objective of the ER is to maximize revenue by optimizing the price at which energy is purchased and sold. The costs incurred by the ER include the cost of purchasing energy from the ES side, the cost of purchasing electricity from the power grid, and the cost of purchasing heat from the heat company. The process by which the ER maximizes its benefits can be described as follows:
max F E R = t = 1 T f s e l l t C E S t C g r i d t C h t F C O 2 E R t
where F E R denotes the overall revenue of the ER in a single day; f s e l l t represents the revenue of supplying energy to users; C E S t represents the cost of purchasing energy from ESs; and C g r i d t and C h t represent the cost of purchasing electricity and heat from the upper level, respectively. The equations for I s e l l t , C E S t , C g r i d t , and C h t are expressed as
f s e l l t = k = 1 4 P u e , k t ρ e s t + P u h , k t ρ h s t
C E S t = i = 1 n P e . i t ρ e b , i t + P h . i t ρ h b , i t
C g r i d t = k = 1 4 P u e , k t i = 1 n P e , i t ρ e t
C h t = k = 1 4 P u h , k t i = 1 n P h , i t ρ h t
where P u e , k t and P u h , k t denote the demand for electricity and the heat load of the kth class of users in period t, respectively; ρ e s t and ρ h s t denote the prices of electricity and heat sold by the ER to users in period t, respectively; P e . i t and P h . i t represent the ER’s electricity and heat power purchased from ESi in period t, respectively; ρ e b , i t and ρ h b , i t represent the prices at which electricity and heat are sold by ESi in period t, respectively; and ρ e t and ρ h t represent the prices of electricity and heat purchased from the higher level by the ER in period t, respectively.
In order to avoid the ER setting the maximum prices for an extended period of time, it is vital to ensure that the ER’s electricity and heat selling prices are met.
ρ g t < ρ es t < ρ e t
ρ h , min t < ρ h s t < ρ h , max t
where ρ g t represents the feed-in tariff in period t; and ρ h , min t and ρ h , max t represent the maximum and minimum heat prices in period t, respectively.
Concurrently, the ER is precluded from establishing the maximum price for an extended period, and the ER’s electricity and heat selling prices must be fulfilled.
t = 1 T ρ e s t T ρ e max ¯
t = 1 T ρ h s t T ρ h max ¯
where ρ e max ¯ and ρ h max ¯ denote the highest average price of electricity and heat, respectively.
Concurrently, to guarantee the uninterrupted and secure fulfillment of the user’s energy requirements, the ER procures electric heating power in accordance with the following constraints:
i = 1 n P e , i t + P b u y t = k = 1 4 P u e , k t
i = 1 n P h , i t + H b u y t = k = 1 4 P u h , k t

3.3.2. Energy Suppliers

Each ES maximizes its own revenue by optimizing its own energy sales price and equipment output, with each ES’s benefit being the difference between the profit derived from selling energy to the ER and the operating costs. The process by which each ES maximizes its benefits is expressed as
max F E S , i = t = 1 T P e , i t c e b , i t + P h , i t c h b , i t C g a s , i t C o m , i t C e s , i t F C O 2 E S , i t
where F E S , i denotes the overall revenue of ESi; C g a s , i t represents the fuel cost incurred by the MT and GB of ESi in period t; C o m , i t represents the operation and maintenance costs of the equipment of ESi in period t; and C e s , i t represents the energy storage unit operation and maintenance costs of ESi in period t.
The relationship between fuel cost and output power for MT and GB can be described in quadratic form as follows [38]:
C g a s , i t = a M T , i P M T , i 2 t + b M T , i P M T , i 2 t + c M T , i + a G B , i H G B , i 2 t + b G B , i H G B , i 2 t + c G B , i
where a M T , i , b M T , i , c M T , i and a G B , i , b G B , i , c G B , i represent the MT and GB fuel factors for ESi, respectively.
C o m , i t = m = 1 4 P m , i t λ m , i
C e s , i t = x = 1 2 P c h a r , i x t + P d i s , i x t σ i x
where m denotes the device index and m = 1 ~ 4 stands for PV, WT, GB, and MT, respectively; P m , i t represents the output power of the m-type device of ESi in period t; and λ m , i and σ i x denote the operation and maintenance coefficients of ESi’s m-type device and x-type energy storage units, respectively.
In order for each ES to output electrical and thermal power at a given moment, the following expressions must be satisfied:
P e , i t = P W T , i t + P P V , i t + P M T , i t + P d i s , i 1 t P c h a r , i 1 t
P h , i t = H W H B , i t + H G B , i t + P d i s , i 2 t P c h a r , i 2 t
Given that the operating cost of the ES increases in a quadratic fashion in line with the unit’s equipment capacity, it follows that the price set for the sale of energy by the ES should be based on a price curve correlated with its output power as follows:
ρ e b , i t = a b e , i t + b f e , i P e , i t
ρ e b , i t = a b e , i t + b f e , i P e , i t
Here, a b e , i t and a b h , i t represent the base electricity and heat prices of ESi in period t, respectively; b f e , i and b f h , i represent the coefficients of fluctuation of electricity and heat prices for ESi, where b f e , 1 , b f e , 2 , b f h , 1 , and b f h , 2 are set as 0.00055, 0.0005, 0.00025, and 0.0003, respectively.
Furthermore, the pricing of energy by the ES should be established considering not only operating costs but also the need to prevent competitive over-quoting by other ESs. Further, the ES’s energy sales price needs to be met:
t = 1 T ρ e b , i t T ρ ¯ e b , max
t = 1 T ρ h b , i t T ρ ¯ h b , max
where ρ ¯ e b , max and ρ ¯ h b , max represent the highest average prices of electricity and heat sold by the ES, respectively, and are set to CNY 0.58 and 0.26/(kWh).

3.3.3. User Aggregator

The user aggregator in this paper is a group of users with different energy usage characteristics and is categorized into four distinct groups: users who prefer both electricity and heat, users who prefer electricity, users who prefer heat, and general users. The sizes of the preferences for electricity and heat are taken into account in each of these categories.
The CIES is distinguished by multi-energy coupled flows, which facilitate simultaneous IDR for electricity and heat. The user aggregator seeks to optimize its own benefits by optimizing the amount of its own load response. The user aggregator’s objective is to maximize its own benefits as follows:
max F U s e r _ A g g = t = 1 T U u s e r t I s e l l t
where U u s e r t denotes the user’s energy utility in period t. In this paper, the user’s energy utility is expressed via the commonly used quadratic form [30],
U u s e r = k = 1 4 α e , k P u e , k t β e , k 2 P u e , k 2 t + α h , k P u h , k t β h , k 2 P u h , k 2 t
where α e , k , β e , k , α h , k , and β h , k represent the preference coefficients for electricity and heat in the k category of users.
This paper considers demand response in relation to both transferable electric load and reducible heat load. In order for the transfer of electric load and the reduction in heat load to be effective, it is necessary to ensure that the corresponding constraints are satisfied. In particular, the electric load must be balanced within a dispatch cycle, with the amount of outward transfer equal to the amount of inward transfer. Furthermore, the reduction in thermal load must not exceed the upper limit, and this must be achieved while satisfying the following constraints:
t = 1 T Δ P t l , e , k t = 0
0 Δ P t l , e , k t Δ P t l , e max t
0 Δ P r l , h , k t Δ P r l , h max t
P u e , k t = P u e , k 0 t + Δ P t l , e , k t
P u h , k t = P u h , k 0 t Δ P r l , h , k t
where P u e , k 0 t and P u h , k 0 t represent the electric and heat loads before the DR of users in category k in period t, respectively; Δ P t l , e , k t and Δ P r l , h , k t represent the transferable electrical load and reducible heat load of users in category k in period t, respectively; and Δ P t l , e max t and Δ P r l , h max t denote the maximum limit of transferable electrical load and reducible thermal load in period t.

4. Two-Level Game Model

4.1. The Model of Master–Slave Game

From the aforementioned description, it can be inferred that the ES and user aggregator are optimized in accordance with the decision of the ER. Furthermore, the optimized result exerts an influence on the subsequent decision of the ER; the three decisions are thus situated in a sequential order and interact with one another, thereby forming a one-master–multiple-slave two-layer game model. This model can be expressed as follows:
G = E R ( E S 1 , E S 2 , E S i , , E S n ) ( U s e r _ A g g ) ; ρ E R ; ( δ E S 1 , δ E S 2 , δ E S i , , δ E S n ) ; δ U s e r _ A g g ; F E R ; ( F E S 1 , F E S 2 , F E S i , , F E S n ) ; F U s e r _ A g g ;
(1)
Participants: The ER, ES, and user aggregator.
(2)
Strategies: The ER’s strategy comprises two elements. The first is the aggregator of the prices of electricity and heat sold to the user, and the second is the purchasing power of electricity and heat from ESi, which is expressed as ρ E R = c e s , c h s , P e , i , P h , i . The strategy for each ES refers to the price of energy sold, which is expressed as δ E S i = c e b i , c h b i . Finally, the user aggregation strategy employs the quantity of load response at each moment in time, which is expressed as δ U s e r _ A g g = Δ P t l , e , Δ P r l , h .
(3)
Benefits: As previously outlined, the benefits for each agent are calculated according to Equations (19), (30), and (40).
The leader is responsible for establishing the strategic approach to be employed, which is then adopted by the followers in a manner that is optimized with respect to the leader’s strategy. In the event that both parties unilaterally alter their strategies, neither side will be able to enhance their respective benefits. Consequently, the master–slave game reaches Stackelberg equilibrium [25]. The attaining of this equilibrious solution is the focus of the study presented in this paper.
F E R ρ E R * , δ E S i * , δ U s e r _ A g g * F E R ρ E R , δ E S i * , δ U s e r _ A g g * F E S i ρ E R * , δ E S i * , δ U s e r _ A g g * F E S i ρ E R * , δ E S i , δ U s e r _ A g g * F u s e r ρ E R * , δ E S i * , δ U s e r _ A g g * F u s e r ρ E R * , δ E S i * , δ U s e r _ A g g

4.2. The Model of the Non-Cooperative Game

In follower optimization, ESs compete with each other to develop different pricing strategies to maximize revenue. These strategies are subject to adjustment in accordance with the ER’s purchasing strategy. Consequently, the competitive pricing relationship between ESs assumes the form of a non-cooperative game, which is expressed as
G Κ = E S 1 , , E S i , E S n ; ρ E S 1 , , ρ E S i , , ρ E S n ; F E S 1 , , F E S i , ; F E S n ;
(1)
Participants: n ESs.
(2)
Strategy: The strategy for each ES is the price of electricity and heating, denoted as ρ E S i = a b e . i , a b h , i .
(3)
Benefits: The value of the ES objective function, as described earlier, is calculated using Equation (30).
A Nash equilibrium is reached in a non-cooperative game when any participant is unable to alter their existing strategy in order to obtain a greater gain.
F E S i ρ E S i * , ρ E S - i * F E S i ρ E S i , ρ E S - i *

4.3. Game Equilibrium Solution

4.3.1. Stackelberg Equilibrium Solution

In the event that a Stackelberg equilibrium solution occurs and is unique, the following conditions must be satisfied:
(1)
The utility functions of the game participants are non-empty, continuous functions on the set of game strategies.
(2)
In accordance with the strategy adopted by the ER, a unique optimal solution exists for each ES and user aggregator.
(3)
In accordance with the strategies adopted by each ES and user aggregator, a unique optimal solution exists for the ER.
Proof. 
As the proof is valid for any time period, the subscripts for the time periods are omitted from the formula.
(1)
In accordance with the aforementioned description, the strategies of the leader ER must satisfy the conditions set forth in Equations (24)–(29), while the strategies of each ES must satisfy the conditions outlined in Equations (34)–(39). Additionally, the strategies of the user aggregator must satisfy the criteria specified in Equations (42)–(46). This ensures that the set of strategies for each participant is non-empty and tightly convex.
(2)
Once the purchased energy powers P e . i and P h . i of ER are defined, it can be observed that the return of each ES varies linearly with the decision according to Equation (30), so a unique solution is possible for each ES, which can be expressed as
ρ e b , i = a b e , i + b f e , i P e , i
ρ h b , i = a b h , i t + b f h , i P h , i
Once the energy selling prices ρ e s and ρ h s of the leader ER have been established, the first-order partial derivatives for P u e , k and P u h , k , respectively, are obtained using Equation (40).
F U s e r _ A g g P u e , k = α e , k 2 β e , k P u e , k ρ e s F U s e r _ A g g P u h , k = α h , k 2 β h , k P u h , k ρ h s
Let the first-order partial derivative of both be 0. This yields
P u e , k = α e , k ρ e s 2 β e , k P u h , k = α h , k ρ h s 2 β h , k
The second-order partial derivatives of Equation (40) are then obtained for P u e , k and P u h , k .
2 F U s e r _ A g g P u e , k 2 = 2 β e , k 2 F U s e r _ A g g P u h , k 2 = 2 β h , k
Given that both β e , k and β h , k are positive, the second-order partial derivatives are both less than zero, indicating that the function reaches a maximum point. Consequently, there are unique optimal solutions, P u e , k and P u h , k , for the user aggregator.
(3)
We assume that the ER must purchase electricity and heat from the higher level in order to satisfy user demand. Then, the optimal solutions of the ES and user aggregator obtained from the above proof are incorporated into Equation (19), and the second-order partial derivatives of P e , i , P h , i , ρ e s , and ρ h s are calculated.
2 F E R P e , i 2 = 2 b f e , i 2 F E R P h , i 2 = 2 b f h , i 2 F E R ρ e s 2 = 2 β e , k 2 F E R ρ h s 2 = 2 β h , k
Given that the variables b f e , i , b f h , i , β e , k , and β h , k are positive, it follows that all second-order partial derivatives are less than zero. Consequently, there is a unique optimal solution for the ER that adheres to the aforementioned constraints. □

4.3.2. Nash Equilibrium for Non-Cooperative Game

Theorem 1.
A Nash equilibrium exists for a non-cooperative game (49) when the set of strategies of all participants is non-empty tightly convex, and the utility function is continuously concave with respect to the decision variables.
Proof. 
From Equations (34) to (39), it can be seen that the set of strategies employed by ES is non-empty and tightly convex. The first-order partial derivatives of the ESi’s benefit with respect to P e , i t , P h , i t , P M T , i t , H G B , i t , P P V , i t , P W T , i t , P G B , i t , P d i s , i x t , and P c h a r , i x t are as follows:
F E S , i P e , i ( t ) = c e b , i ( t ) F E S , i P h , i ( t ) = c h b , i ( t ) F E S , i P M T , i ( t ) = 2 a M T , i P M T , i ( t ) b M T , i λ M T , i F E S , i H G B , i ( t ) = 2 a G B , i H G B , i ( t ) b G B , i λ G B , i F E S , i P e , i ( t ) = c e b , i ( t ) F E S , i P P V , i ( t ) = λ P V , i F E S , i P W T , i ( t ) = λ W T , i F E S , i P G B , i ( t ) = λ G B , i F E S , i P c h r , i x ( t ) = σ i x F E S , i P d i s , i x ( t ) = σ i x
For P e , i t , P h , i t , P P V , i t , P W T , i t , P G B , i t , P d i s , i x t , and P c h a r , i x t , their first-order partial derivatives are all constants, indicating they are linear in the objective function (30). Further, the second-order partial derivatives with respect to P M T , i t and H G B , i t are as follows:
2 F E S , i P M T , i t 2 = 2 a M T , i 2 F E S , i H G B , i t 2 = 2 a G B , i
Because a M T , i and a G B , i are positive constants, the second-order partial derivatives are strictly less than zero. That is, the objective function (30) is strictly concave, and a unique optimal solution exists. Therefore, it can be concluded that there is a Nash equilibrium in the non-cooperative game between ESs. □

5. Model Solving

The model in this paper exhibits characteristics of high dimensionality and nonlinearity and involves a multitude of optimization variables. In order to enhance its optimization capabilities and mitigate solution complexity while maintaining a balance between processing speed and accuracy, a differential evolutionary algorithm that incorporates bi-variance and adaptive crossover is employed in collaboration with the CPLEX solver (v12.6) to address the formulated model.
The model’s solution flowchart is shown in Figure 3. The solution flow is as follows:
Step 1: Input device parameters and load information. Input the parameters of the differential evolutionary algorithm: the population size is 50, F = 0.3 and is used for the double mutation strategy, and w = 0.6 and is used for the adaptive crossover strategy.
Step 2: Initial population. Under the energy price cap, randomly generate the initial energy sales price for the user aggregator, and simultaneously, under the maximum energy output power limit of the ES, randomly generate the initial energy purchase power for ES.
Step 3: The ES and user aggregator utilize CPLEX (v12.6) to ascertain the optimal energy sale price and demand response volume based on Formulas (30) and (40), respectively. Subsequently, we convey these findings to the upper layer and calculate and redeem the ER’s profit at this time.
Step 4: Calculate individual fitness values using Equation (19), determine the current central solution, and calculate the similarity of the population and the individual superiority index according to Formulas (58) and (60). Then, use Formula (57) to implement mutation operations using the double mutation strategy. Compared with ordinary mutation strategies, the double mutation strategy can strengthen the global search capability of the algorithm. The double mutation strategy is
v i g = x r 0 g + λ × x c e n t e r g x r 0 g + F × x r 1 g x r 2 g , i f μ g < r a n d x b e s t g + F × x r 1 g x r 2 g , o t h e r w i s e
where r 0 , r 1 , and r 2 represent random integers on 1 , N P that are not equal to i and not identical to each other; λ represents a local parameter, such as 0.1; F represents a random factor, with a value set at random between 0 and 1; x b e s t g denotes the optimal individual of the population in the gth generation; and μ g represents the similarity of the population and can be expressed as
μ g = f a v e r g f x b e s t g f x w o r s t g f x b e s t g
where f a v e r g denotes the average fitness value of the population in the gth generation; and f x b e s t g and f x w o r s t g represent the optimal and worst fitness values of the population in the gth generation, respectively.
Step 5: Implement the crossover operation, generate the offspring population to send to the ES and user aggregator, implement the selection operation, store the successful crossover probabilities, and calculate and save the updated ER profit according to Formula (19). Conventional crossover strategies are characterized by fixed crossover probabilities and do not involve the global search process inherent to algorithms. In the context of adaptive crossover strategies, the crossover probabilities of all successfully updated individuals are employed to determine the crossover probabilities of each individual in the subsequent generation. This approach is conducive to updating the population. The adaptive crossover strategy is as follows:
C R i g + 1 = w × C R i g + ( 1 w ) × C R S C R C R N S C R , i f φ i g < r a n d 1 w × C R i g + w × C R S C R C R N S C R , o t h e r w i s e
where C R i g denotes the crossover probability of the ith individual in the gth generation population; S C R represents the set of probabilities for all successful crossovers; N S C R represents the number of S C R ; w represents the weight coefficient, which is 0.6 in this paper; and φ i g represents the individual superiority index, which is expressed as
φ i g = f x i g f x b e s t g f x b e s t g f x w o r s t g
Step 6: If the maximum number of iterations have been reached, terminate the procedure and output the best solution. Otherwise, adaptively adjust the crossover probability according to Formula (59), and return to step (3).

6. Case Study

6.1. Basic Data

A community in northern China was selected as a case study to simulate and analyze the proposed CIES two-layer game model, with consideration given to IDR and the CTM. Through rigorous statistical sampling methods and standardized data processing procedures, 800 users in the community were selected for case studies. By analyzing the energy consumption habits of community users, users in the community were divided into four groups: users who prefer electricity and heat, users who prefer electricity, users who prefer heat, and users who have no preference. Given the similarity in energy output and trading between winter and summer, in this study, we conducted a simulation based on a representative day in the winter season. The proposed algorithm has been implemented in PlatEMO (v3.0), an open-source, user-friendly, and easily extendable MATLAB platform (v2018). It was run on a PC with an i7 CPU, 8 GB of RAM, and a Windows 10 operating system.
Figure 4 illustrates the electricity and heat load curves for four representative users’ profiles, with each curve representing 200 users. RU1 represents users who prefer electricity and heat, RU2 represents users who prefer electricity, RU3 represents users who prefer heat, and RU4 represents users who have no preference. Table 2 presents the energy preference coefficients for each user profile. Two ESs were selected for simulation. The prediction curves of PV and WT power generation of the two ESs on a typical day in winter are illustrated in Figure 5. The operating parameters of each piece of equipment in each ES are illustrated in Table 3. The feed-in tariff of the grid company is CNY 0.35/(kWh). In the purchasing of electricity from the grid company, we have adopted time-of-use price, and the prices in the peak, flat, and valley periods are CNY 1.25, 0.4, and 0.8/(kWh), respectively. The price of heat purchased from the heat company is CNY 0.62/(kWh). The maximum and minimum limits of the ER’s heat sales price are CNY 0.6 and 0.1/(kWh), respectively.

6.2. Analysis of Game Equilibrium Results

The optimization iteration curves for each agent in the system under Mode 5 are presented in Figure 6. When the optimization iteration curve converges, the game reaches equilibrium, the model’s optimization results reach the optimal state, and all entities make the optimal decisions. Figure 6 shows a convergence trend around the 70th iteration, while the convergence trend of each agent in the system was distinct. Prior to the 20th iteration, there was a notable increase in ER revenue as the number of iterations increased. The revenues of ES1 and ES2 fluctuated irregularly, a consequence of the competitive pricing interaction between the two agents. The revenue of the user aggregator demonstrated volatility and a downward trend, which is attributable to the ER incrementally increasing the energy sales prices with a view to maximizing profits. Specifically, In the iterative process of the game, ER will gradually increase the energy sales price to improve its profits. This will cause the energy purchase costs of user aggregators to rise, thereby reducing their profits. Volatility is caused by changes in energy prices during the iterative process, which cause users to change their demand response volume and energy consumption. Following the 20th iteration, the ER’s revenue exhibited a gradual increase, while the user aggregator’s revenue demonstrated a corresponding decrease. Additionally, the revenues of ES1 and ES2 reached a state of equilibrium. Until approximately the 70th iteration, the revenues of each agent remained constant, and the game reached equilibrium. At this moment, the revenues of the ER, the user aggregator, ES1, and ES2 were stable at CNY 7810, 10794, 2283, and 2295, respectively.
The energy sales price strategy of energy suppliers for when the game reaches equilibrium is shown in Figure 7. The analysis demonstrates that the electricity and heat selling prices of ES1 and ES2 manifested a distinct pattern of high and low values with notable regularity. This was due to the fact that there was a non-cooperative game being played between ESs, with both parties expecting to purchase more energy from the ER. Consequently, they were compelled to engage in competitive pricing strategies to secure lower energy prices. As evidenced by Equations (36) and (37), there was a discernible linear correlation between the energy selling price set by the ES and the energy purchases made by the ER. In other words, as the energy purchases of the ER increased, so did the energy selling price set by the ES.

6.3. Optimal Scheduling Analysis

Figure 8 and Figure 9 illustrate the optimal energy pricing strategy for the ER following the establishment of game equilibrium and the electric heat load profile after IDR, respectively. In Figure 9a, the blue columns represent the electrical load transfer, with the top and bottom of the horizontal axis representing inward and outward electrical load transfer, respectively. Comparing Figure 8 and Figure 9a, we see that, between 0:00 and 9:00 and 14:00 and 17:00, users’ electricity loads shift, corresponding to the lower ER electricity prices during these periods. To reduce their electricity costs, users will shift some of their transferable electricity demand to these time slots. Conversely, between 10:00 and 12:00 and 18:00 and 23:00, users shift their electricity load outwards, as the ER electricity prices are higher during these periods. Users will reduce their electricity demand during these time slots. Therefore, influenced by electricity prices, some of the adjustable electricity load demand of users will shift, increasing electricity demand during off-peak periods and reducing electricity demand during peak periods. These changes in user electricity load reflect the “peak-shaving and valley-filling” effect of demand response. Comparing Figure 8 and Figure 9b, we see that the price of selling heat set by the ER remains relatively consistent across most time periods, and the reduction in heat load following user demand response also remains relatively consistent during these periods. However, between 14:00 and 16:00, the ER’s heat sales price is relatively low, resulting in a smaller reduction in user heat load. Therefore, the reduction in user heat load is correlated with the ER’s heat sales price; when the heat price is high, the reduction in heat load is higher, and when the heat price is low, the reduction in user heat load is lower, with users tending to consume more heat energy.
Figure 8 and Figure 9 show that IDR is effective and important for scheduling CIES operations. Designing reasonable time-of-use electricity pricing strategies can successfully stimulate load shifting behavior among electricity users, achieve significant peak shaving and valley filling effects, and optimize CIES operations. Moreover, IDR for heat is primarily achieved by adjusting energy consumption intensity based on real-time or time-of-use heat prices. The degree of IDR is directly and positively correlated with the level of heat prices.
The equilibrium in the system’s electricity and heat supply and demand is illustrated in Figure 10. An analysis of Figure 10a reveals that, with regard to the scheduling of electric energy, both ES1 and ES2 assigned priority to the supply of wind and PV power based on considerations related to economics and reduced carbon emissions. In the event of insufficient renewable energy output, it was supplemented with gas turbine power generation. Concurrently, comparing Figure 7 and Figure 10a demonstrates that the electric storage equipment of ES1 and ES2 was charged when the electricity price was low and the output of renewable energy was high and discharged when the electricity price was high and there was a shortage of renewable energy. Figure 10b shows that for heat scheduling, ES1 and ES2 gave priority to the WHB for heat supply based on economic factors, and when the waste heat recovered from the WHB was insufficient, it was supplemented with heat produced by the GB. Figure 7 and Figure 10b together illustrate that the heat storage apparatus of both ES1 and ES2 chose to accumulate heat when the heat price was low and released it when the price was high.
The above results indicate that, through optimization of the proposed algorithm, CIES achieves multi-energy complementarity and synergy. The system organically integrates elements such as electricity, heat, renewable energy, energy storage, and IDR. Waste heat generated during electricity production is effectively recovered for heating purposes, enabling hierarchical energy utilization. Through their respective supply-side, energy storage-side, and demand-side strategies, as well as the coordination of price signals, the electricity and heat subsystems achieve overall economic, low-carbon, efficient, and reliable operation.

6.4. Analysis of Different Operational Modes

In an attempt to gain further insight into the economic and carbon-reduction effects of the proposed model, five distinct operational modes were devised for analysis. The operation modes are outlined in Table 4, where a “√” indicates that the strategy is implemented and an “×” indicates that the strategy is not implemented. Mode 5 is the mode recommended in this paper, which considers user classification, IDR, the CTM, and the non-cooperative game among ESs. In Mode 1, the preference parameters displayed by the users take the average values of the preference parameters of the four types of typical users employed in Mode 5. In Mode 4, energy is sold at a fixed price, which is the average of the price set by the bidding process amongst energy suppliers under Mode 5.
Table 5 reveals the revenue generated by each agent under the five modes, as well as the carbon emissions and carbon costs associated with the ER and each ES. A comparative analysis of the five modes indicates that the consideration of both IDR and the CTM can effectively reduce carbon emissions, aligning with the objective of a low-carbon system. Furthermore, the implementation of user classification and a non-cooperative game among ESs can enhance the revenue of the user aggregator and each ES. The results substantiate the efficacy of the proposed model in enhancing the revenues for each agent and reducing carbon emissions.
A comparison of Mode 1 with Mode 5 reveals a 39.51% increase in user aggregator revenue when user classification is considered. Simultaneously, the revenue generated per kWh increased by 39.10%. This is due to the fact that, following user classification and as influenced by the energy price set by the ER, different users are able to determine the optimal load response based on their own energy preference factors. Consequently, the user aggregator is able to participate in IDR more effectively. It can therefore be concluded that the consideration of user classification significantly improves the revenue generated on the user side. Furthermore, following the introduction of user categorization, the benefits of ES1 decrease, while those of ES2 increase, indicating that user categorization influences the ER’s decision-making processes. As a result, the ER’s purchasing of energy from each ES undergoes a corresponding alteration, leading to a change in the benefits for the ES.
A comparison of Mode 2 with Mode 5 reveals that, after considering IDR, there was an increase of 25.79% in user aggregator revenue and a 17.79% decrease in the total carbon emissions of the system. Simultaneously, the revenue generated per kWh increased by 33.02%, while the carbon emissions generated per kWh decreased by 15.04%. This is attributable to the fact that, following the consideration of IDR on the user side, users are able to respond in a manner that is beneficial to their own interests, guided by the price. The user’s heat load is reduced at the peak of the heat price, the electricity load is leveled off at the peak of the electricity price, the load demand of the system is lowered, and accordingly, the user energy costs are reduced. Furthermore, the reduction in the heat load on the user side results in a decrease in the heat load purchased by the ER from the ES, a reduction in the output of the ES’s equipment, and a subsequent reduction in carbon emissions.
A comparison of Mode 3 with Mode 5 reveals that the total carbon emissions of the system were reduced by 32.01% following the introduction of the CTM. Simultaneously, the carbon emissions generated per kWh decreased by 27.89%. However, this reduction in carbon emission was accompanied by a decrease in revenue for ES1 and ES2, with reductions of 31.97% and 43.09%, respectively. The introduction of carbon trading costs caused ES1 and ES2 to adopt more economical power generation strategies, which increased the costs of ES1 and ES2 but reduced their carbon emissions. At the same time, the introduction of carbon trading costs also increased the costs to the ER, prompting the ER to reduce its electricity and heat purchases from the power grid and heating companies, thereby reducing carbon emissions. In addition, the carbon emissions of the ER in Mode 3 increased by 200% compared to Mode 5, suggesting that the lack of a cost constraint on carbon emissions leads the ER to buy more electricity and heat from the upper level.
A comparison of Model 4 with Model 5 reveals that ES1 and ES2 exhibited improvements of 27.83% and 18.67%, respectively, when the non-cooperative game between ESs was taken into account. Simultaneously, the revenue generated per kWh by ES1 and ES2 increased by 23.56% and 13.16%, respectively. This is due to the fact that when ESs engage in a non-cooperative game with one another, they compete via price to achieve greater ER energy purchases in comparison to a fixed-price strategy. This allows them to better engage in the energy market and improve their own financial returns.

7. Conclusions

This paper addresses optimal operation in the context of the interests of multiple agents in a CIES. It introduces an ER as the manager of the CIES and multiple ESs and user aggregators as followers. Furthermore, it proposes a two-level game optimization operation strategy that considers IDR and the CTM. The findings of the simulation analysis can be summarized as follows:
(1)
The introduction of non-cooperative games between ESs has been demonstrated to be an effective strategy for increasing profits. The implementation of non-cooperative game strategies among ESs can enhance the profitability of ES1 and ES2 by 27.83% and 18.67%, respectively. In comparison to a fixed energy sales price strategy, a non-cooperative game allows ESs to participate more effectively in market competition, which is conducive to the synergistic and optimal development of multiple agents.
(2)
The introduction of IDR can increase user revenue while reducing the system’s carbon emissions. The incorporation of IDR into the optimization model has been demonstrated to enhance user-side benefits by 25.79% while simultaneously curtailing the system’s carbon emissions by 22.42%. Concurrently, the introduction of the CTM can significantly reduce the carbon emissions of the system. The incorporation of the CTM results reduces the benefits associated with ES1 and ES2 by 31.97% and 43.09%, respectively. However, this is accompanied by a 32.01% decrease in the system’s carbon emissions, which aligns with the present requirements for achieving low-carbon IES.
(3)
Classifying users enables those on the demand side to participate more effectively in the demand–response market, thereby increasing revenue. The implementation of user classification can enhance user-level benefits by up to 39.51%. Once users have been categorized according to their energy-use characteristics, they are better positioned to engage with IDR and derive the greatest benefit from it.
This paper does not address the effects of uncertainty regarding the WT and PV on optimization. In future research, the uncertainty of renewable energy outputs will be considered, along with an in-depth study of the issue of incomplete information in the game amongst IES agents.

Author Contributions

Conceptualization, J.F. and L.G.; methodology, X.Z.; software, Q.Z. and Y.W.; validation, J.F., L.G., and Y.W.; formal analysis, J.F.; investigation, X.Z.; resources, Y.W.; data curation, Q.Z.; writing—original draft preparation, J.F.; writing—review and editing, Q.Z. and X.Z.; visualization, L.G.; supervision, Y.W.; project administration, X.Z.; funding acquisition, X.Z. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by Management Consulting Project of China Energy Engineering Group Guangxi Electric Power Design Institute Co., Ltd., grant number EM-20240-QT006.

Data Availability Statement

The original contributions presented in this study are included in the article. Further inquiries can be directed to the corresponding author.

Conflicts of Interest

Jing Fu, Li Gong and Yuchen Wei were employed by the China Energy Engineering Group Guangxi Electric Power Design Institute Co., Ltd. The remaining authors declare that the research was conducted in the absence of any commercial or financial relationships that could be construed as a potential conflict of interest. The China Energy Engineering Group Guangxi Electric Power Design Institute Co., Ltd., had no role in the design of the study; in the collection, analyses, or interpretation of data; in the writing of the manuscript, or in the decision to publish the results.

References

  1. Firouzi, M.; Samimi, A.; Salami, A. Reliability evaluation of a composite power system in the presence of renewable generations. Reliab. Eng. Syst. Saf. 2022, 222, 108396. [Google Scholar] [CrossRef]
  2. Zhang, G.M.; Wang, W.; Chen, Z.Y.; Li, R.L.; Niu, Y.G. Modeling and optimal dispatch of a carbon-cycle integrated energy system for low-carbon and economic operation. Energy 2022, 240, 122795. [Google Scholar] [CrossRef]
  3. Fan, W.; Liu, Q.; Wang, M.Y. Bi-Level Multi-Objective Optimization Scheduling for Regional Integrated Energy Systems Based on Quantum Evolutionary Algorithm. Energies 2021, 14, 4740. [Google Scholar] [CrossRef]
  4. Wang, Y.L.; Wang, Y.D.; Huang, Y.J.; Yu, H.Y.; Du, R.T.; Zhang, F.L.; Zhang, F.; Zhu, J. Optimal Scheduling of the Regional Integrated Energy System Considering Economy and Environment. IEEE Trans. Sustain. Energy 2019, 10, 1939–1949. [Google Scholar] [CrossRef]
  5. Ma, Y.; Wang, H.; Hong, F.; Yang, J.; Chen, Z.; Cui, H.; Feng, J. Modeling and optimization of combined heat and power with power-to-gas and carbon capture system in integrated energy system. Energy 2021, 236, 121392. [Google Scholar] [CrossRef]
  6. Qiu, S.; Chen, J.; Mao, C.; Duan, Q.; Ma, C.; Liu, Z.; Wang, D. Day-ahead optimal scheduling of power–gas–heating integrated energy system considering energy routing. Energy Rep. 2022, 8, 1113–1122. [Google Scholar] [CrossRef]
  7. Parrish, B.; Heptonstall, P.; Gross, R.; Sovacool, B.K. A systematic review of motivations, enablers and barriers for consumer engagement with residential demand response. Energy Policy 2020, 138, 111221. [Google Scholar] [CrossRef]
  8. Wang, Y.Y.; Guo, T.T.; Cheng, T.C.E.; Wang, N. Evolution of blue carbon trading of China’s marine ranching under the blue carbon special subsidy mechanism. Ocean Coast. Manag. 2022, 222, 106123. [Google Scholar] [CrossRef]
  9. Li, P.; Wang, Z.X.; Wang, N.; Yang, W.H.; Li, M.Z.; Zhou, X.C.; Yin, Y.; Wang, J.; Guo, T. Stochastic robust optimal operation of community integrated energy system based on integrated demand response. Int. J. Electr. Power Energy Syst. 2021, 128, 106735. [Google Scholar] [CrossRef]
  10. Zheng, S.L.; Sun, Y.; Li, B.; Qi, B.; Zhang, X.D.; Li, F. Incentive-based integrated demand response for multiple energy carriers under complex uncertainties and double coupling effects. Appl. Energy 2021, 283, 116254. [Google Scholar] [CrossRef]
  11. Wang, Y.L.; Li, Y.W.; Zhang, Y.F.; Xu, M.M.; Li, D.X. Optimized operation of integrated energy systems accounting for synergistic electricity and heat demand response under heat load flexibility. Appl. Therm. Eng. 2024, 243, 122640. [Google Scholar] [CrossRef]
  12. Liang, Z.; Liang, C.; Zhu, W.W.; Ling, L.Y.; Cai, G.W.; Hai, K.L. Research on the optimal allocation method of source and storage capacity of integrated energy system considering integrated demand response. Energy Rep. 2022, 8, 10434–10448. [Google Scholar]
  13. Wang, J.; Xing, H.J.; Wang, H.X.; Xie, B.J.; Luo, Y.F. Optimal Operation of Regional Integrated Energy System Considering Integrated Demand Response and Exergy Efficiency. J. Electr. Eng. Technol. 2022, 17, 2591–2603. [Google Scholar] [CrossRef]
  14. Zhou, W.; Sun, Y.H.; Zong, X.J.; Zhou, H.W.; Zou, S. Low-carbon economic dispatch of integrated energy system considering carbon trading mechanism and LAES-ORC-CHP system. Front. Energy Res. 2023, 11. [Google Scholar] [CrossRef]
  15. Liu, X.O. Research on optimal placement of low-carbon equipment capacity in integrated energy system considering carbon emission and carbon trading. Int. J. Energy Res. 2022, 46, 20535–20555. [Google Scholar] [CrossRef]
  16. Cheng, X.; Zheng, Y.; Lin, Y.; Chen, L.; Wang, Y.Q.; Qiu, J. Hierarchical operation planning based on carbon-constrained locational marginal price for integrated energy system. Int. J. Electr. Power Energy Syst. 2021, 128, 106714. [Google Scholar] [CrossRef]
  17. Pan, D.; Zhang, L.; Wang, B.; Jia, J.X.; Song, Z.M.; Zhang, X. Multi-objective planning of integrated energy system based on CVaR under carbon trading mechanism. Front. Energy Res. 2024, 12. [Google Scholar] [CrossRef]
  18. Li, L.L.; Miao, Y.; Lin, C.J.; Qu, L.N.; Liu, G.C.; Yuan, J.P. Low-carbon Economic Operation Optimization of Integrated Energy System Considering Carbon Emission Sensing Measurement System and Demand Response: An Improved Northern Goshawk Optimization Algorithm. Sens. Mater. 2023, 35, 4417–4437. [Google Scholar] [CrossRef]
  19. Sun, H.B.; Sun, X.M.; Kou, L.; Ke, W.D. Low-Carbon Economic Operation Optimization of Park-Level Integrated Energy Systems with Flexible Loads and P2G under the Carbon Trading Mechanism. Sustainability 2023, 15, 15203. [Google Scholar] [CrossRef]
  20. Chen, M.; Lu, H.; Chang, X.; Liao, H. An optimization on an integrated energy system of combined heat and power, carbon capture system and power to gas by considering flexible load. Energy 2023, 273, 127203. [Google Scholar] [CrossRef]
  21. Zeng, X.Q.; Wang, J.; Zhou, Y.; Li, H.J. Optimal configuration and operation of the regional integrated energy system considering carbon emission and integrated demand response. Front. Energy Res. 2023, 11. [Google Scholar] [CrossRef]
  22. Huang, Y.J.; Wang, Y.D.; Liu, N. A two-stage energy management for heat-electricity integrated energy system considering dynamic pricing of Stackelberg game and operation strategy optimization. Energy 2022, 244, 122576. [Google Scholar] [CrossRef]
  23. Yarar, N.; Yoldas, Y.; Bahceci, S.; Onen, A.; Jung, J. A Comprehensive Review Based on the Game Theory with Energy Management and Trading. Energies 2024, 17, 3749. [Google Scholar] [CrossRef]
  24. Zhang, Y.Y.; Zhao, H.R.; Li, B.K.; Wang, X.J. Research on dynamic pricing and operation optimization strategy of integrated energy system based on Stackelberg game. Int. J. Electr. Power Energy Syst. 2022, 143, 108446. [Google Scholar] [CrossRef]
  25. Wang, R.; Cheng, S.; Zuo, X.W.; Liu, Y. Optimal management of multi stakeholder integrated energy system considering dual incentive demand response and carbon trading mechanism. Int. J. Energy Res. 2022, 46, 6246–6263. [Google Scholar] [CrossRef]
  26. Wang, Y.L.; Liu, Z.; Wang, J.Y.; Du, B.X.; Qin, Y.M.; Liu, X.L.; Lin, L. A Stackelberg game-based approach to transaction optimization for distributed integrated energy system. Energy 2023, 283, 128475. [Google Scholar] [CrossRef]
  27. Wang, Y.D.; Hu, J.J.; Liu, N. Energy Management in Integrated Energy System Using Energy–Carbon Integrated Pricing Method. IEEE Trans. Sustain. Energy 2023, 14, 1992–2005. [Google Scholar] [CrossRef]
  28. Yuan, X.L.; Guo, Y.; Cui, C.; Cao, H. Time-of-Use Pricing Strategy of Integrated Energy System Based on Game Theory. Processes 2022, 10, 2033. [Google Scholar] [CrossRef]
  29. Li, P.; Wang, Z.X.; Yang, W.H.; Liu, H.T.; Yin, Y.X.; Wang, J.H.; Guo, T. Hierarchically partitioned coordinated operation of distributed integrated energy system based on a master-slave game. Energy 2021, 214, 119006. [Google Scholar] [CrossRef]
  30. Li, S.R.; Zhang, L.H.; Nie, L.; Wang, J.N. Trading strategy and benefit optimization of load aggregators in integrated energy systems considering integrated demand response: A hierarchical Stackelberg game. Energy 2022, 249, 123678. [Google Scholar] [CrossRef]
  31. Latifi, M.; Rastegarnia, A.; Khalili, A.; Vahidpour, V.; Sanei, S. A distributed game-theoretic demand response with multi-class appliance control in smart grid. Electr. Power Syst. Res. 2019, 176, 105946. [Google Scholar] [CrossRef]
  32. Shen, J.R. Low-carbon optimal dispatch of campus integrated energy system considering flexible interactions between supply and demand. Int. J. Electr. Power Energy Syst. 2024, 156, 109776. [Google Scholar] [CrossRef]
  33. Yan, H.R.; Hou, H.J.; Deng, M.; Si, L.G.; Wang, X.; Hu, E.; Zhou, R. Stackelberg game theory based model to guide users’ energy use behavior, with the consideration of flexible resources and consumer psychology, for an integrated energy system. Energy 2024, 288, 129806. [Google Scholar] [CrossRef]
  34. Lu, Q.; Guo, Q.S.; Zeng, W. Optimal dispatch of community integrated energy system based on Stackelberg game and integrated demand response under carbon trading mechanism. Appl. Therm. Eng. 2023, 219, 119508. [Google Scholar] [CrossRef]
  35. Hou, H.; Ge, X.D.; Yan, Y.L.; Lu, Y.C.; Zhang, J.; Dong, Z.Y. An integrated energy system “green-carbon” offset mechanism and optimization method with Stackelberg game. Energy 2024, 294, 130617. [Google Scholar] [CrossRef]
  36. Zhang, Y.J.; Peng, Y.L.; Ma, C.Q.; Shen, B. Can environmental innovation facilitate carbon emissions reduction? Evidence from China. Energy Policy 2017, 100, 18–28. [Google Scholar] [CrossRef]
  37. Yu, S.M.; Fan, Y.; Zhu, L.; Eichhammer, W. Modeling the emission trading scheme from an agent-based perspective: System dynamics emerging from firms’ coordination among abatement options. Eur. J. Oper. Res. 2020, 286, 1113–1128. [Google Scholar] [CrossRef]
  38. Li, Y.; Wang, C.L.; Li, G.Q.; Chen, C. Optimal scheduling of integrated demand response-enabled integrated energy systems with uncertain renewable generations: A Stackelberg game approach. Energy Convers. Manag. 2021, 235, 113996. [Google Scholar] [CrossRef]
Figure 1. Architecture of CIES.
Figure 1. Architecture of CIES.
Processes 13 02091 g001
Figure 2. CCHP system diagram.
Figure 2. CCHP system diagram.
Processes 13 02091 g002
Figure 3. Model solving flow.
Figure 3. Model solving flow.
Processes 13 02091 g003
Figure 4. Typical users’ load curves; (a) typical users electricity load curves; (b) typical users heat load curves.
Figure 4. Typical users’ load curves; (a) typical users electricity load curves; (b) typical users heat load curves.
Processes 13 02091 g004
Figure 5. Wind and PV curves for each ES.
Figure 5. Wind and PV curves for each ES.
Processes 13 02091 g005
Figure 6. Energy sales prices of ES1 and ES2.
Figure 6. Energy sales prices of ES1 and ES2.
Processes 13 02091 g006
Figure 7. Optimization iteration curves for each agent.
Figure 7. Optimization iteration curves for each agent.
Processes 13 02091 g007
Figure 8. Energy sales prices set by the ER. (a) electricity sales price of ER; (b) heat sales price of ER.
Figure 8. Energy sales prices set by the ER. (a) electricity sales price of ER; (b) heat sales price of ER.
Processes 13 02091 g008
Figure 9. Electricity and heat load curves before and after DR. (a) electricity load curves before and after demand response; (b) heat load curves before and after demand response.
Figure 9. Electricity and heat load curves before and after DR. (a) electricity load curves before and after demand response; (b) heat load curves before and after demand response.
Processes 13 02091 g009
Figure 10. Electricity and thermal power supply and demand balance diagrams. (a) electricity power supply and demand balance diagrams; (b) thermal power supply and demand balance diagrams.
Figure 10. Electricity and thermal power supply and demand balance diagrams. (a) electricity power supply and demand balance diagrams; (b) thermal power supply and demand balance diagrams.
Processes 13 02091 g010
Table 1. Variables and abbreviations.
Table 1. Variables and abbreviations.
Variables and AbbreviationsSpecific MeaningVariables and AbbreviationsSpecific Meaning
IESintegrated energy systems D E R , D E S , i the carbon allowances of ER and ESi
DRdemand response P b u y t , H b u y t the purchasing of electricity and heat by ER
CTMcarbon trading mechanisms θ e , θ h the carbon emission allowances per unit of electricity and heat
IESOintegrated energy system operator E E R , E E S , i the actual carbon emissions of ER and ESi
SMMSsingle-master–multiple-slave P g t r , i t the sum of MT and GB output power of ESi
ERenergy retailer a 1 , b 1 , c 1 , a 2 , b 2 , c 2 the carbon emission calculation factors for coal and natural gas-fired energy plants
ESsenergy suppliers F C O 2 the carbon trading cost
CIEScommunity integrated energy system F E R the overall revenue of ER in a single day
CCHPcooling, heating, and power f s e l l t the revenue of supplying energy to users
PVphotovoltaics C E S t the cost of purchasing energy from ESs
WTwind turbine C g r i d t , C h t the cost of purchasing electricity and heat
BATstorage batteries P u e , k t , P u h , k t the demand for electricity and heat load of the kth class of users
MTmicro gas turbine ρ e s t , ρ h s t ER’s electricity and heat prices
WHBwaste heat boiler P e . i t , P h . i t ER’s electricity and heat power purchased from ESi
ARabsorption refrigerator ρ e b , i t , ρ h b , i t the electricity and heat selling price of ESi
GBgas boiler ρ e t , ρ h t the electricity and heat price from the higher level purchased by ER
HSheat storage F E S , i the overall revenue of ESi
H M T , i t residual heat generated by MT of ESi C g a s , i t the fuel cost incurred by the MT and GB of ESi
P M T , i t the output power of MT of ESi C o m , i t the operation and maintenance costs for equipment of ESi
η M T , i , γ M T , i generating efficiency and heat loss factor of MT in ESi C e s , i t the energy storage unit operation and maintenance costs of ESi
H W H B , i t the output thermal power of WHB a b e , i t , a b h , i t the base electricity and heat prices of ESi
η W H B , i the heat recovery efficiency of WHB b f e , i , b f h , i the coefficients of fluctuation of electricity and heat prices for ESi
H A R , i t the refrigeration power of AR of ESi U u s e r t the user’s energy utility
η AR , i the refrigeration efficiency of AR of ESi. α e , k , β e , k , α h , k , β h , k the preference coefficients for electricity and heat
Table 2. Parameters for each typical user.
Table 2. Parameters for each typical user.
Categories of UsersParameterValue
RU1
(users who prefer both electricity and heat)
α e , 1 , β e , 1 1.6, 0.004
α h , 1 , β h , 1 1.2, 0.003
RU2
(users who prefer electricity)
α e , 2 , β e , 2 1.6, 0.004
α h , 2 , β h , 2 1.0, 0.005
RU3
(users who prefer heat)
α e , 3 , β e , 3 1.4, 0.006
α h , 3 , β h , 3 1.2, 0.003
RU4
(general users)
α e , 4 , β e , 4 1.5, 0.005
α h , 4 , β h , 4 1.1, 0.004
Table 3. Parameters of each ES and CTM.
Table 3. Parameters of each ES and CTM.
ParameterValueParameterValue
P M T , 1 , max /kW500 σ 1 2 0.02
P G B , 1 , max /kW600 η M T , 1 0.41
r M T , 1 d , r M T , 1 u /kW−230, 230 γ M T , 1 0.09
r G B , 1 d , r G B , 1 u /kW−300, 300 η W H B , 1 0.85
P M T , 2 , max /kW450 σ 2 1 0.007
P G B , 2 , max /kW500 σ 2 2 0.02
r M T , 2 d , r M T , 2 u /kW−220, 220 η M T , 2 0.38
r G B , 2 d , r G B , 2 u /kW−250, 250 γ M T , 2 0.07
λ 1 , 1 , λ 2 , 1 , λ 3 , 1 , λ 4 , 1 0.016, 0.018, 0.02, 0.02 η W H B , 2 0.83
λ 1 , 1 , λ 2 , 1 , λ 3 , 1 , λ 4 , 1 0.02, 0.02, 0.015, 0.015 ψ 0.252
σ 1 1 0.0068 ε /%25
Table 4. The operation modes.
Table 4. The operation modes.
Operation
Mode
User ClassificationIDRCTMNon-Cooperative Game
Mode 1×
Mode 2×
Mode 3×
Mode 4×
Mode 5 (this study)
Table 5. Optimization results for different modes.
Table 5. Optimization results for different modes.
Operational IndicatorMode 1Mode 2Mode 3Mode 4Mode 5
Revenue (CNY)ER77288370787182337810
user aggregator7737858110,91110,90110,794
ES116691440335617862283
ES231141590403319342295
Carbon emissions (kg)ER24062997783131502611
ES112,24913,62212,12810,61110,446
ES211,89016,52817,86212,60812,659
Total carbon emissions (kg)26,54533,14737,82126,36925,716
Carbon trading costs (CNY)ES114431733-11561299
ES213882258-15011890
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Fu, J.; Gong, L.; Wei, Y.; Zhang, Q.; Zou, X. Optimal Operation of a Two-Level Game for Community Integrated Energy Systems Considering Integrated Demand Response and Carbon Trading. Processes 2025, 13, 2091. https://doi.org/10.3390/pr13072091

AMA Style

Fu J, Gong L, Wei Y, Zhang Q, Zou X. Optimal Operation of a Two-Level Game for Community Integrated Energy Systems Considering Integrated Demand Response and Carbon Trading. Processes. 2025; 13(7):2091. https://doi.org/10.3390/pr13072091

Chicago/Turabian Style

Fu, Jing, Li Gong, Yuchen Wei, Qi Zhang, and Xin Zou. 2025. "Optimal Operation of a Two-Level Game for Community Integrated Energy Systems Considering Integrated Demand Response and Carbon Trading" Processes 13, no. 7: 2091. https://doi.org/10.3390/pr13072091

APA Style

Fu, J., Gong, L., Wei, Y., Zhang, Q., & Zou, X. (2025). Optimal Operation of a Two-Level Game for Community Integrated Energy Systems Considering Integrated Demand Response and Carbon Trading. Processes, 13(7), 2091. https://doi.org/10.3390/pr13072091

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop