Skip to main content
Advertisement
Browse Subject Areas
?

Click through the PLOS taxonomy to find articles in your field.

For more information about PLOS Subject Areas, click here.

  • Loading metrics

A multi-time scale rolling optimization framework for low-carbon operation of CCHP microgrids with demand response integration

  • Jue Wang,

    Roles Conceptualization, Data curation, Methodology, Software, Writing – original draft

    Affiliations Institute of Intelligent Manufacturing, Nanjing Tech University, Nanjing, China, Nanjing Normal University Taizhou College, Taizhou, China

  • Zhiwei Cheng,

    Roles Data curation, Software, Writing – review & editing

    Affiliation Jiangsu Pinggao Tai Shida Electric Co. LTD, Taizhou, China

  • Dejun Lu,

    Roles Data curation, Writing – review & editing

    Affiliation Special Equipment Safety Supervision Inspection Institute of Jiangsu Province, Taizhou, China

  • Mingxiang Zhu,

    Roles Writing – review & editing

    Affiliation Nanjing Normal University Taizhou College, Taizhou, China

  • Dengfeng Zhang

    Roles Conceptualization, Methodology, Writing – original draft

    zhdfnjtech@163.com

    Affiliation Institute of Intelligent Manufacturing, Nanjing Tech University, Nanjing, China

Abstract

Microgrid systems incorporating carbon trading mechanisms and demand response (DR) demonstrate significant potential for facilitating low-carbon societies and advancing sustainable energy development. The optimal operation of microgrid systems faces challenges due to: (1) response rate disparities among cooling, heating, and power equipment, (2) load prediction inaccuracies, and (3) complex interdependencies in multi-energy device coupling. To address these challenges, we propose a two-layer rolling optimization framework with multi-time scale scheduling for CCHP microgrid systems. First, wind and photovoltaic power generation are predicted using a CNN-ATT-BiLSTM model, with comparative analysis against standalone CNN, BiLSTM and CNN-LSTM models. Second, we establish a multi-time scale optimization model for CCHP-MG systems, with operating cost minimization as the objective function. Finally, we evaluate four operational scenarios incorporating DR and carbon trading mechanisms, with comparative cost analysis. Case study results demonstrate that the proposed model simultaneously satisfies cooling/heating/power demand while mitigating stochastic supply-demand fluctuations through multi-temporal resolution coordination.

1 Introduction

Under China’s “dual carbon” policy framework, the Ministry of Ecology and Environment (MEE) issued the 2024 Consultation Draft for the National Carbon Emission Trading Scheme, introducing revised allowance allocation mechanisms for the power generation sector. Key revisions include: reduction in carbon emission benchmarks, and shortened compliance periods from biennial to annual cycles. Notably, the scheme introduces quota compensation mechanisms for active peak-shaving participants. These modifications enhance carbon market liquidity while streamlining MRV procedures, consequently reducing verification burdens for enterprises [12]. DR programs incentivize user participation in peak load management, simultaneously alleviating grid stress and enhancing energy efficiency. Three key decarbonization mechanisms facilitate optimal resource allocation: grid-integrated renewables, carbon trading markets, and demand response programs [35]. CCHP microgrids integrate distributed energy resources (DERs), conventional generators, storage systems, and flexible loads to establish multi-energy supply networks that simultaneously enhance clean energy utilization, satisfy diversified load demands, and mitigate environmental impacts. However, CCHP-MG operational complexity escalates with: renewable intermittency, multi-energy coupling dynamics, and heterogeneous response timescales. Therefore, integrating carbon trading with DR in multi-temporal CCHP-MG optimization is critical for achieving sustainable energy systems and low-carbon transitions [610].

Demand response constitutes a grid management paradigm that modulates load profiles during peak periods through price/incentive signals. This response is usually achieved through smart meters, automated control systems, or pre-set tariff mechanisms to balance supply and demand, reduce the peak loads on the grid, improve energy efficiency, and potentially save users on their electricity bills. Ref. [11] conducted research and statistics on the electricity consumption patterns of residential users, industrial and commercial users, and transportation users, etc., analyzed the relationship between the potential DR of different types users and factors such as the electricity consumption patterns, seasons, and the behavior of electricity consumption. Ref. [12] simulated the implementation strategies of different demand response programs and proposed a qualitative analysis method of user DR potential considering the influence of seasonal factors and calling time. The dynamic dispatching process of DR represents a closed-loop control mechanism that enables power systems to dynamically optimize demand-side resources – including flexible loads, energy storage systems, and electric vehicles – in response to real-time grid conditions, pricing signals, or dispatch commands. This sophisticated process achieves multiple objectives: peak shaving, supply-demand balancing, and enhanced system flexibility and economic efficiency. Ref. [13] proposes a tri-level DR framework to enhance the flexibility of electric vehicle charging stations (EVCS) in coupled power-transportation networks (CPTN) by integrating distribution network operators (DNOs). The framework employs deep reinforcement learning (DRL) to dynamically balance profit maximization and operational safety, the results demonstrate superior EVCS operational flexibility compared to traditional charging load regulation methods. Ref. [14] integrates micro-urban transportation network (MUTN) with distribution network (PDN) to realize high-precision vehicle-to-grid (V2G) analysis. It combines SUMO for MUTN simulation and optimized DistFlow model for PDN analysis, and combines the detailed charging dynamics of fast charging station (FCS) and slow charging station (SCS). Ref. [15] proposes a resilient hierarchical load frequency control (LFC) strategy for microgrids (MGs) integrating distributed renewable energy sources (DRESs), particularly addressing wind power fluctuations. Ref. [16] proposes a novel distributed hybrid-triggered (HTed) secondary control (SC) scheme for DC microgrids (MGs) that combines event-triggered communication with self-triggered sampling/computation to optimize efficiency. According to the load response characteristics, DR is divided into price demand response (PDR) and incentive demand response (IDR), as shown in Table 1. PDR regulates electricity consumption plans by changing electricity prices to guide users to make reasonable electricity consumption behaviors. IDR encompasses contractual arrangements including: interruptible loads, demand bidding, emergency response protocols, and direct load control systems.

A high proportion of renewable energy sources (RES) is the most important measure for the power industry to achieve energy efficiency and “dual carbon” targets, while wind power and photovoltaic power are vulnerable to a variety of natural factors, highly intermittent and uncertain. Therefore, large-scale wind power and photovoltaic grid integration can not only threaten the reliability and stability of the power grid system, but also bring more unpredictable uncertainties to power dispatching. At present, various wind power forecasts can be categorized according to their time scales [17]. According to the different prediction principles, it can be divided into physical methods, statistical methods, machine learning methods and hybrid methods [1819]. With the development of AI, many machine learning-based methods have also been used for wind power prediction, such as convolutional neural networks (CNN), Deep Belief Networks (DBN), Auto Encoder (AE), Recurrent Neural Networks (RNN), Gated Recurrent Unit (GRU), and long short-term memory (LSTM). CNN can efficiently extract nonlinear local features of wind power data, and LSTM is often used in the field of wind power prediction because of its special memory ability to capture and utilize long-term and short-term time dependencies. Ref. [20] used LSTM for modeling, which prediction error was greatly reduced and the prediction accuracy was improved on a long-term scale. Bidirectional long short-term memory (BiLSTM) was also proposed, which can capture better bidirectional dependencies. BiLSTM can recognize time series features present in data from the past to the future on the one hand, and inverse time series features from the future and the past on the other hand [2124].

CCHP-MG multi-time scale optimal scheduling refers to a comprehensive strategy for energy distribution and management of renewable energy, generator devices, energy storage equipment, other energy equipment and various loads. It takes everything from real-time operations to intraday and day-to-day planning into account, and involves dynamically adjusting the balance of power supply and demand to maximize efficiency, reduce costs, and guarantee the quality and reliability of power supply. Ref. [25] proposed a probabilistic energy management approach considering both day-ahead scheduling and real-time scheduling. Ref. [26] established a multi-temporal and spatial scale optimization model for IES containing multiple communities, which takes advantage of the complementary strengths of multiple energy sources and promotes the balance between energy supply and demand. Ref. [27] established a three-stage optimization model of day-ahead-intra-day rolling-real-time adjustment, and took the lowest daily operating cost, the lowest cost of energy purchase and penalty cost of unit output change in the rolling time, and the smallest total adjustment rate of equipment power as objectives, so as to obtain the real-time smoothed output of the equipment. The real-time smoothing power plan was obtained. Ref. [28] proposed a two-tier coordinated energy management approach, which was applied to smart multi-microgrids to enable flexible and secure operation of microgrids. Ref. [29] considered the time scale of matching the temporal characteristics with the scheduling peaks, and proposed an adaptive scheduling strategy being applied to the scheduling cycle of an integrated energy system. There is a lack of research on two-layer models at multi-time scales, based on differences in response rates of cooling, heating, and power-related equipment.

The operational complexity of CCHP-MG systems escalates due to three key factors: high renewable penetration, load demand uncertainty, and heterogeneous response timescales across energy subsystems. To address these challenges, we develop a multi-temporal CCHP-MG optimization framework with the following innovations:

  1. (1) A comprehensive equipment modeling framework minimizes operational costs while incorporating an attention-enhanced CNN-BiLSTM hybrid model for renewable forecasting, outperforming baseline CNN and BiLSTM architectures.
  2. (2) A bilevel optimization architecture accounts for heterogeneous response dynamics: thermal energy dispatch operates at 15-min intervals (upper layer) while electrical power adjusts at 5-min resolutions (lower layer), enabling prediction error compensation, day-ahead plan recalibration, and system stabilization.
  3. (3) Real-time scheduling (1-min resolution) coordinates fuel cells, energy storage, and grid interactions to mitigate stochastic fluctuations through model predictive control.
  4. (4) Case studies demonstrate cost reductions across four scenarios integrating DR and carbon trading, while the multi-time-scale approach simultaneously ensures 100% energy demand satisfaction and fluctuation attenuation in supply-demand mismatches.

2 The structure of CCHP-MG

In this paper, the CCHP-MG system considers four energy forms: cold, heat, power, and gas, including energy supply equipment, energy storage equipment, and energy conversion equipment. The framework is shown in Fig 1. The energy equipment in the system mainly includes photovoltaic power (PV), wind turbine (WT), fuel cell (FC), micro-gas turbine (MT) and gas boiler (GB); Energy storage equipment mainly includes energy storage (ES), cold storage (CS), and heat storage (HS); Energy conversion equipment includes waste heat boiler (WHB), electric boiler (EB), ice-storage air-conditioning (ISAC), absorption refrigerator (AR) and so on [3031].

2.1 MT

When MT is in operation, the exhaust high-temperature waste heat flue gas is recovered by WHB and then heated and cooled by HE and AR. The characteristic model of MT is roughly depicted in the following:

(1)(2)(3)

where is the exhaust residual heat of MT in the T period; is the output power of MT in the T period; is the power generation efficiency of MT; is the heat dissipation loss coefficient; and are heating and cooling capacity of HE and AR in the T period, respectively; and are heating coefficient and cooling coefficient, respectively; and are flue gas recovery rates for heating and cooling, respectively.

At the same time, MT has to satisfy the upper and lower bound constraints and climb rate constraints:

(4)(5)

where is the start-stop state marker of the MT, and its value of 0 indicates the shutdown, A value of 1 indicates that the device is turned on. and are the minimum and maximum output power of MT, respectively; and are the upper and lower limits of the climb rate of MT, respectively.

The formula for the fuel consumption of MT, where is the price of natural gas, is the calorific value, and is the fuel coefficient for starting and stopping MT.

(6)

2.2 FC

Fuel cells convert chemical energy stored in hydrogen-containing fuels such as natural gas, methanol, and oxygen into electricity efficiently and pollution-free. In this paper, a proton exchange membrane fuel cell (PEMFC) is used, which uses natural gas as the primary energy source. Since the fuel cell is used electrical dispatching micropower source, the rest of the heat utilization is not considered.

(7)(8)

where is the consumption of natural gas, is the efficiency of FC, is the output power of FC in the T period, and is the minimum and maximum output, respectively. is the fuel cost of the fuel cell in the period T.

(9)

2.3 ES

In this paper, the energy storage device (ES) uses a battery to store electrical energy. The battery should not only constrain the amount of charging and discharging power, but also consider avoiding low power and low state of charge (SOC), as in Eq. (10). The battery also meets the charge and discharge constraints in its operation, as shown in Eq. (11).

(10)(11)

where: is the SOC value of the ES; and are the charging and discharging power, respectively; and are the charging and discharging efficiency, respectively; ΔT is the time interval; and are the charging and discharging state markers, whose values are 0 for shutdown and 1 for operation, and satisfy the mutual exclusion constraint.

(12)

In addition, the climb rate constraints of charge and discharge described in Eq. (13) must be satisfied, where and are the upper and lower limits of the climb rate in the charging and discharging states, respectively.

(13)

2.4 EB

EB can convert power energy into heat energy to meet the user’s heat load demand, and its constraints are shown in the following:

(14)(15)

where and are the power energy and heat energy of EB in the T period, respectively; is the maximum permissible capacity of EB; is the efficiency coefficient of EB.

2.5 GB

The gas boiler supplements the heat energy when the heat supply is insufficient, and its model is given in Eqs. (16), (17) and (18). The output heat energy can be expressed as . is the consumption of natural gas, is the efficiency of GB. and are the minimum and maximum thermal energy output, respectively.

(16)(17)(18)

2.6 HS

HS uses heat storage tank for heat energy storage, and the constraints are as follows:

(19)(20)

where is the stored heat energy of HS; and are charging and discharging heat energy of HS, respectively; is the energy self-loss rate of HS. and are efficiencies of charging and discharging heat energy, respectively; and are the charging and discharging heat energy state markers of HS, respectively.

(21)(22)

2.7 ISAC

The CS uses a cold storage tank for cold storage, and the ISAC stores cold when it is running in the ice state. The following constraints need to be met.

(23)(24)(25)(26)(27)(28)

In the above equations, , are the output cooling energy, ice storage energy and ice melting energy of ISAC, respectively; , and are cooling state, ice storage state and ice melting stage markers of ISAC. is the cooling energy stored in CS; is the self-loss coefficient; The ice storage coefficient and ice melting coefficient are and , respectively; and are the upper and lower limits of the climb rate of SC, respectively.

3 WT and PV power prediction

3.1 WT

The ideal formula for the output of WT is shown in Eq. (29):

(29)

is the wind energy utilization efficiency of WT, and the air density; A is the swept area; V is the wind speed; is determined by temperature, air pressure, and humidity together, which can be expressed by:

(30)

is the standard atmospheric pressure, is the saturated water vapor pressure; T is the thermodynamic temperature; for the relative humidity of the air; Therefore, when considering the influence of on the output, air pressure, temperature and humidity are actually also considered. Finally, in addition to the indirect factors that affect the output power of wind power discussed in the above equation, wind direction is also a particularly important factor affecting the output.

3.2 PV

The output power of PV can be expressed as:

(31)

where represents the conversion efficiency of solar panels; represents the area of the PV cell, represents the intensity of solar radiation, and represents the operating temperature of the PV module. In addition, PV power generation will also be affected by other factors, such as solar irradiance, temperature, humidity, weather and season.

3.3 Predictive model

WT and PV power generation have non-linear, random and other characteristics, many influencing factors will lead to changes. In summary, the WT power prediction is analyzed by selecting wind speed, wind direction, air pressure, temperature, humidity and historical power data as the input data set. The PV power prediction data quantitatively analyze the correlation between PV power and meteorological factors based on Pearson’s correlation coefficient, and the Global Horizontal Irradiance (GHI), zenith angle, temperature, relative humidity, cloud opacity, wind speed, and the historical power data are selected to carry out PV power prediction studies. The selected data is normalized and fed into a predictive model [3233].

In this paper, a two-layer CNN network is used to mine and extract the potential connection of data, which includes two layers of two-dimensional convolutional layer and two layers of pooling layer alternate composition. A dropout layer is added to prevent overfitting. Then, the important feature information is extracted through the Attention module, and then the temporal features of the data are extracted by two-layer BiLSTM. Finally, the final predicted power is inputted to the fully connected layer by the Attention module, which completes the construction of the CNN-ATT-BiLSTM model. The framework of the model is shown in Fig 2.

CNN and BiLSTM are selected to compare with the proposed model in this paper, and the predicted waveforms of WT and PV power are shown in Figs 3 and 4.

The proposed CNN-ATT-BiLSTM model can better track the variation of WT and PV power. The prediction errors by three models are shown in Table 2:

thumbnail
Table 2. Prediction errors of different models.

https://doi.org/10.1371/journal.pone.0327523.t002

The comparative analysis of prediction performance, as illustrated in 3 and 4 Figs and Table 2, demonstrates that CNN-LSTM achieves superior performance to the standalone CNN and BiLSTM model, exhibiting reduced prediction error and enhanced accuracy. However, the proposed CNN-ATT-BiLSTM architecture emerges as the most effective model, with the minimal prediction error and an R2 value approaching unity, indicating optimal predictive capability.

This advanced hybrid model integrates three complementary mechanisms: CNN for extracting local spatial features, BiLSTM networks for capturing comprehensive temporal dependencies in both forward and backward directions, and ATT for dynamically emphasizing critical temporal features. The CNN-LSTM architecture, while maintaining spatial feature extraction capabilities through its CNN component and simplified structure, demonstrates effective performance for stationary time series but fails to account for reverse temporal dependencies. The standalone CNN model shows proficiency in identifying local patterns and periodic fluctuations, yet exhibits limitations in modeling long-term temporal relationships. The BiLSTM network, although capable of bidirectional temporal context learning, lacks spatial feature extraction capacity.

These comparative results clearly demonstrate the superior modeling capability of the CNN-ATT-BiLSTM architecture, which effectively combines the strengths of spatial feature extraction, bidirectional temporal modeling, and attention-based feature weighting. The model’s exceptional performance is particularly evident in renewable energy power prediction applications, where it successfully captures both spatial correlations and complex temporal dynamics simultaneously.

4 Multi-time scale scheduling operation

4.1 Multi-time scale Model Predictive Control

To address the multi-time scale scheduling challenges in IES, numerous forecasting methods and optimization techniques – extending beyond Model Predictive Control (MPC) – can be utilized to improve scheduling performance. Table 3 presents a comparative analysis of prevalent forecasting approaches along with their distinctive application characteristics. Based on the comparative evaluation of prediction model attributes presented in the table, MPC has been selected as the most suitable approach for this study.

thumbnail
Table 3. Comparison of Prediction Methods in Multi-Timescale Scheduling.

https://doi.org/10.1371/journal.pone.0327523.t003

MPC is an advanced online control algorithm that optimizes system performance by predicting future outputs and states within a finite time horizon. This algorithm generates an optimal control sequence by continuously solving a constrained optimization problem based on real-time system states and environmental variations, thereby demonstrating superior control performance. For a multi-device system comprising N components, the predicted output sequence group at time step k for future j time steps can be mathematically expressed as follows:

(32)

The sequence of corresponding control variables is as follow:

(33)

The system state variable sequence can be expressed as . The system constraints to be satisfied are as follows:

(34)

Where: and are the control and output variables of the i-th device at time , respectively; , , and , are the upper and lower constraints on the control and output variables at time , respectively; and are the upper and lower constraints on the incremental amount of the control at time , respectively.

The overall control strategy of the system can be expressed as follows:

(35)

Where: is the reference trajectory of the system at moments; and are the predicted output variables and control variables of the system at time, respectively; P and Q are the weight coefficient matrices of the output variables and control variables, respectively. In this study, the system outputs are defined as the electrical power purchased from the grid and the natural gas consumption. The control variables consist of the power outputs from MT, FC, ES, EB, GB and IASC. The predicted load variations, along with the forecasted power generation fluctuations from wind turbines and photovoltaic systems, are treated as system disturbances. Based on these definitions, a multi-input multi-output (MIMO) state-space model is established for the energy management system.

The multi-time dispatching model proposed mainly includes day-ahead dispatching, intra-day rolling and real-time scheduling. Its multi-time scale optimal dispatching model is shown in Fig 5.

thumbnail
Fig 5. Multi-time scale optimal dispatching model.

https://doi.org/10.1371/journal.pone.0327523.g005

The day-ahead plan is formulated 24 h ahead of time, and is 1 h time scale. In the day-ahead dispatching, determine the start-stop and output of MT1, MT2, FC, GB, EB, ES, HS, ISAC, PG, PDR and class A IDR load invocation, and substitute it into the intra-day dispatching.

The intra-day rolling optimization considers the correlation and complementarity of cooling, heating and power, and dispatches the cooling and heating loads on the upper-layer, so that the electrical load is scheduled on the lower-layer. The cooling and heating load is predicted and scheduled every 30 min, and the prediction time range is the data of the next 4 h in the scheduling period. The outputs of MT2, GB, EB, HS and ISAC are adjusted to meet the cooling and heating load demand of intra-day. The intra-day electric energy is selected and forecasted every 15 min, and the forecast range is the power data of the next 2 h. The outputs of FC, ES and PG is adjusted to meet the class B IDR load invocation plan and the fluctuation of electric load.

The real-time rolling optimization scheduling is selected to forecast and dispatch once in 5 min, and the forecast range is the power data in the next 1 h. The purpose is to use the intraday dispatch plan as a benchmark to fine-tune the FC, ES, PG output and call the class C IDR to correct the intra-day dispatch plan and real-time working conditions [3435].

This study presents a scenario-based MPC framework to address uncertainty in renewable energy systems while ensuring alignment between Real-time operational, Intra-day and Day-ahead optimization objectives. A double-layer forecasting approach is adopted for intra-day predictions, effectively mitigating the cost inefficiencies caused by myopic decision-making. Additionally, energy storage systems are leveraged to further compensate for forecasting errors and enhance operational flexibility. In the intra-day adjustment layer, MT2 is designated as the slack variable to absorb power imbalances, whereas in the real-time control layer, FC serves as the slack variable to ensure instantaneous power balance.

4.2 DR and Carbon trading

DR resources can change the load curve by optimizing the output of devices with different carbon intensity to achieve a reduction in carbon emissions [36]. PDR can transfer some peak load to off-peak time region, thus effectively reduce the carbon emissions of CCHP-MG. In this paper, the PDR uses the time-of-use electricity price in the peak-valley and flat periods, and uses the impact of the electricity price change rate on the load response rate is described by elastic matrix.

(36)

where is the price demand elasticity matrix, parameter is shown in Table 4; is the load rate change matrix; is the matrix of the rate of change electricity price. Since the adjustment amount of the user’s electricity plan is limited, we set the PDR response amount not exceeding 15% of the load. Fig 6 shows the day-ahead electrical load waveform and the electrical load waveform considering PDR. It is evident that the power load waveform considering the PDR has a clear trend of peak shaving and valley filling.

thumbnail
Fig 6. PDR and IDR Power at different time scales.

https://doi.org/10.1371/journal.pone.0327523.g006

At the same time, by IDR with different response speeds during the day-ahead and intra-day, load demand can be increased during off-peak hours to absorb WT and PV power, optimizing operational costs. The flexibility of system scheduling and processing problems can be improved by Calling IDR in the real-time stage, such as abandoned WT and PV power caused by WT power, PV power and load forecasting errors. The IDR load calls in this paper are subject to the following limitations:

(37)

where represents the maximum response amount of class A IDR load. is the response speed. This paper sets the capacity of class A, B, and C IDR not exceeding 10%, 5%, and 3% of the total load, respectively. is the cost. is the cost coefficient. is the call volume. The cost formula for class B and class C IDR load is similar to that of class A IDR.

(38)

Fig 6 presents the power dispatch diagrams for day-ahead PDR, day-ahead IDRA, intra-day IDRB, and real-time IDRC. The red segments indicate shiftable loads during the current period, while the green segments represent curtailable loads. Owing to fluctuations in time-of-use electricity pricing, load demand, and renewable energy generation, the demand-responsive loads consistently shift from peak-price periods to valley-price and shoulder-price periods. Fig 7 compares the PDR power profile with the aggregated power profiles of the three IDR types. From these results, the baseline power load profile – both with and without demand response – can be derived, as illustrated in Fig 8. This approach effectively achieves peak shaving and valley filling while facilitating renewable energy integration and stabilizing power fluctuations.

Carbon emission trading refers to the government assessing the maximum carbon emissions in a certain area under the conditions of the environment. It is divided it into several carbon emission allowances, and distributed them to enterprises that need to emit carbon emissions through auctions or free allocation. For CCHP-MG established in this article, carbon emission allowances are provided to the system through free allocation and based on the baseline method, with the carbon emission sources being MT, FC, GB, and PG. MT generates electricity and produces heat, GB only produces heat, FC serves as an electricity dispatching role, and PG is considered for upgrading to coal-fired units for thermal power generation. Carbon emission allowances according to the total equivalent calorific value:

(39)

where: represents the regional unit electricity carbon emission allocation amount, which is determined by the “National Carbon Emission Trading Scheme for Total Quantity and Allocation of Allowances for Power Generation Sector” issued by the Ministry of Ecology and Environment of China in 2024. = = 0.3288t/(MW·h), =0.7944t/(MW·h), = =0.0533t/GJ. is the actual emission of CCHP-MG in this paper is similar to Eq. (39), and the carbon emission factors of each system are selected as: = =0.4788t/(MW·h); = 0.8944t/(MW·h), = = 0.0682t/GJ.

In order to encourage the system to actively participate in the carbon trading mechanism, this paper constructs the carbon trading strategy: users can trade carbon emission quotas on their own, if the actual carbon emissions are less than the carbon emission quota, they can sell the remaining carbon emission quotas at market prices to obtain profits. Otherwise, they need to buy the excess carbon emission quota from the market. Therefore, the carbon trading cost in the t period is , is the trading price.

(40)

4.3 Day-ahead stage

In the day-ahead dispatching, the cost of low-carbon optimization model.

(41)

where represents optimization of the objective. is the calling cost of A IDR. and are the electricity prices and electricity purchased of the power grid (PG).

(42)

Electrical power balance constraint:

(43)

In the equation: is the power consumption of ISAC in the T period; and are the output powers of WT and PV, respectively. Cold energy, heat energy and power balance constraints:

(44)(45)(46)

where and are the maximum and minimum quantity of electricity purchased, respectively.

After the day-ahead dispatching stage, the output of the units, energy storage equipment and electricity purchased of PG can be calculated, including: , , , , , , , , , , and the response volume for PDR and Class A IDR is determined. decomposes into two parts, and are describing as follows:

(47)

4.4 Intra-day two-layer stage

4.4.1 Upper-layer rolling optimization model.

In the upper-layer optimization problem, it is necessary to follow the equipment of day-ahead scheduling stage, and adjust the output of each unit and energy storage equipment according to the variation of the cooling and heating load. The objective is :

(48)(49)

where , , and are the adjustment costs of MT, GB, EB and ISAC, respectively, t0 to t0 + 30 min is the control time domain for heat and cold scheduling; , , and are the adjusted power of MT, GB, EB, and ISAC, , , and are the penalty costs for adjusting MT, GB, EB, and ISAC, respectively.

The cold and heat energy of intra-day scheduling stage must also meet the following constraints:

(50)

The constraint cold and heat energy of the intra-day stage can be referred to the day-ahead stage. In addition, the fine-tuning change of MT does not exceed 5% of the maximum value.

4.4.2 Lower-layer rolling optimization model.

In the lower-layer optimization objective function is Eq. (51). Revision of the day-ahead schedule is based on fluctuations in renewable energy sources and power changes in electrical loads.

(51)(52)

where , and are the adjustment costs of the PG, FC and ES, respectively. t0 to t0 + 15 min is the control time domain of power scheduling; , , and are the adjustment power of PG, FC and ES, respectively. , and are the penalty costs for adjusting PG, FC and ES, respectively. and are the invocation cost and the cost of intra-day carbon emissions.

The constraint for intra-day electricity dispatching is similar to the day-ahead electricity dispatching. Additionally, it is necessary to ensure that the change in capacity of ES and PG do not exceed 5% of their maximum amount, respectively.

(53)

4.5 Real-time stage

The real-time model focus on the discrepancy between the forecast output and actual the of WT and PV power, the real-time fluctuation of load. This stage uses ES, FC and class C IDR to suppress fluctuations, improve the problems of load loss and WT and PV power reductions, and construct a low-carbon scheduling model. The objective function is :

(54)

where , and are the adjustment costs of the PG, FC and ES, and are the invocation cost and the cost of real-time fine-tuning carbon emissions. to is the control time domain of power scheduling. The remaining formulas and constraints are similar to intra-day scheduling.

5 Example analysis

This study employs operational dataset from an industrial park in Jiangsu Province, China, covering the period from May to July over a 24-year span, with the original data being provided and validated by Jiangsu Pinggao Tai Shida Electric Co. LTD under a confidentiality agreement. The simulation is conducted in MATLAB R2023a and solved by Gurobi solver, with detailed equipment parameters provided in Table 5. In order to validate the reasonableness of the proposed model, we compared and analyzed four scenarios.

Scenario 1: Considering DR under the carbon trading mechanism.

Scenario 2: Only considering the carbon trading mechanism.

Scenario 3: Only considering DR.

Scenario 4: Without considering the carbon trading mechanism and without considering DR.

The cost of each scenario is shown in Table 6.

thumbnail
Table 6. Carbon emissions and costs of four scenarios.

https://doi.org/10.1371/journal.pone.0327523.t006

Table 6 shows that compared to Scenario 4, Scenario 1 had an 18% lower cost of carbon emissions, and the actual carbon emissions were reduced by 17683.08 kg. The reason is that Scenario 1 considered the carbon trading market, which allowed CCHP-MG to have an initial carbon emission quota that can offset part of the carbon emission cost, while Scenario 4 needed to consider the all cost of the carbon emission. Compared to Scenario 4, the energy purchase cost of Scenario 3 reduced by 10%, which was due to considering DR to reduce peak-time electrical loads and increased valley-time electrical loads, thereby enabling the system to choose more economical ways to buy energy. Compared with Scenario 1 and Scenario 2, Scenario 3 had a higher operational cost, lower energy purchase cost, and higher carbon trading cost and actual carbon emissions. The carbon trading mechanism plays a significant role in promoting carbon emission reduction and energy conservation. The total operation cost, carbon trading cost, energy purchase cost, and actual carbon emissions of scenario 1 were all less than those of Scenario 2. This is since considering DR under the carbon trading mechanism, on the one hand, shifted part of the load from the high electricity price time domain to the low electricity price time domain and reduced part of the load, and on the other hand, realized the mutual substitution of electricity and heat on the user side and smoothed the load curve. CCHP-MG selected a more economical and with less carbon emissions by comparing the electricity and gas purchase costs and the output of MT, FC, and PG electricity purchased in different periods, effectively coordinating the operation economy and low-carbon nature of the system.

In Scenario 1, the day-ahead scheduling power balance diagram, heat energy balance diagram, and cold energy balance diagram are shown in Fig 911. In this paper, MT selected two devices, MT1 and MT2, to participate in the day-ahead scheduling. During the 22:00–07:00 electricity price in the valley period, both the electrical load and the cold load were in the valley, the output of renewable energy was gradually increasing, the heat load was mainly borne by GB and EB, the electrical load was mainly borne by the power grid purchase, and the cold load was mainly borne by the ISAC refrigeration power. During the peak period of electricity price from 07:00 to 11:00, with the gradual increase of electric load and cold load, the output of MT and FC continued to increase, and reached full load operation for the same time, the output of renewable energy also increased at this time, electrical load of the system reduced dependence on the external grid at this time, ES and ISAC used less electricity power, excess heat was stored by the HS and the cold storage tank began to release cold energy. During the flat period of electricity price from 11:00 to 17:00, the electric load gradually decreased, meanwhile, ES gradually stored energy, MT gradually reduced the output to provide less heat and cold energy, the power grid purchases increased, HS began to release heat energy, GB heat production increased, and ISAC refrigeration power increased. From 17:00 to 22:00, the electricity price reached the peak period again, and the working condition of the system was basically the same as that of the 06:00–11:00 period, but considering the low WT and PV power output in the current period, the discharge frequency of ES was higher than that of the first peak electricity price. The power and energy changes of each unit and energy storage device of day-ahead scheduling are shown in Fig 12 Day-ahead scheduling power and energy changes.

thumbnail
Fig 9. Day-ahead scheduling power balance diagram.

https://doi.org/10.1371/journal.pone.0327523.g009

thumbnail
Fig 10. Day-ahead scheduling heat energy balance diagram.

https://doi.org/10.1371/journal.pone.0327523.g010

thumbnail
Fig 11. Day-ahead scheduling cold energy balance diagram.

https://doi.org/10.1371/journal.pone.0327523.g011

thumbnail
Fig 12. Day-ahead scheduling power and energy changes.

https://doi.org/10.1371/journal.pone.0327523.g012

The optimization results of intra-day upper layer cooling and heating load scheduling are shown in Fig 13. In this paper, MT selected two devices, only MT2 participates in the scheduling of intra-day cooling and heating load fluctuations, and MT1 does not participate. The scheduling of cold and heat energy in intra-day scheduling was based on a time scale of 30 min, which is more accurate than the day-ahead prediction, so the equipment output was corrected. The optimization results of intra-day lower layer power load scheduling are shown in Fig 14. According to the results of the upper layer cold and heat energy scheduling and the fluctuation of the electric power load, the day-ahead electric energy scheduling plan was adjusted. At this time, the FC, ES output and power grid purchase were adjusted to meet the class B IDR load invocation plan and the scheduling of intra-day power load fluctuations, and the FC had sufficient reserve margin. The scheduling of power energy in intra-day dispatch was based on a time scale of 15 min.

thumbnail
Fig 13. Intra-day upper cooling and heating load scheduling.

https://doi.org/10.1371/journal.pone.0327523.g013

The real-time scheduling used 5 min time scale, so it expanded to 288 data points in real-time scheduling. According to the intra-day dispatch results, the error between the forecast and actual WT and PV power. The fluctuation of electric load, and the load calling plan of class C IDR to adjust FC, ES and power grid purchase, and the real-time stage optimization are shown in the Fig 15.

The DR was evident from the results of the day-ahead, in-day and real-time scheduling, as shown in Fig 16. It can be seen from the day-ahead scheduling that the basic trend of peak shaving and valley filling for PDR and class A IDR was to increase load during the valley and flat period of electricity prices and to reduced load during the two peak periods of electricity price. During the intra-day lower layer scheduling, class B IDR was called more frequently during the daytime and the changes were more dramatic, and mainly fluctuated greatly during the peak load period in the daytime, class B IDR and FC, ES output, as well as power grid purchase, to smooth intra-day fluctuations. In real-time scheduling, class C IDR in 24h a day, although the magnitude of fluctuations was small, the changes were dramatic, mainly used to smooth out the fluctuations of WT and PV power under a very short time scale, similar to the intra-day scheduling worked with the FC, ES and power grid purchase.

6 Conclusions and future work

This study investigates CCHP-MG integrated with renewable distributed generation. Considering the temporal correlation and complementarity of cooling, heating, and power loads, we propose a multi-time scale scheduling model incorporating DR and a carbon trading mechanism. We developed a wind turbine (WT) and photovoltaic (PV) output forecasting model. The main findings are as follows:

  1. (1) We developed a CNN-ATT-BiLSTM model by integrating an attention mechanism into a combined CNN and BiLSTM network for WT and PV power forecasting. This hybrid model demonstrated superior prediction accuracy compared to individual CNN or BiLSTM models.
  2. (2) In this study, MPC approach is adopted to optimize the operation of a comprehensive energy system across day-ahead to real-time scheduling horizons. The proposed bi-level optimization framework facilitates multi-timescale coordination of CCHP-MG flows. The method demonstrates superior capability in mitigating supply-demand fluctuations while ensuring operational stability for both the combined cooling, heating, and CCHP-MG and the external PG.
  3. (3) Case studies evaluating four operational scenarios with DR and carbon trading demonstrated that the multi-time scale model simultaneously satisfies user demands for cooling, heating, and power while significantly reducing supply-demand fluctuations. Energy output analyses of system components and storage devices confirmed that the proposed approach achieves economical, environmentally friendly, and stable CCHP-MG operation.

To further advance this field, future research could prioritize the following directions:

  1. (1) Computational Efficiency for High-Dimensional Systems – Future studies should focus on developing lightweight MPC variants to enable real-time control in large-scale systems, including distributed energy networks and multi-agent cooperative systems. Further exploration of edge computing integration could enhance computational scalability.
  2. (2) Robustness Under Uncertainty – Enhancing the current framework to address model mismatch, non-Gaussian disturbances, and adversarial scenarios—potentially through distributionally robust optimization or adaptive learning techniques—would significantly improve practical applicability in uncertain environments.
  3. (3) Dynamic Granularity Adaptation – The development of self-adaptive time-scale partitioning algorithms, such as those leveraging event-triggered mechanisms or digital twin feedback, could dynamically optimize scheduling granularity in response to renewable forecasting errors and demand fluctuations.
  4. (4) Equipment Dynamics and Robustness Verification – Future investigations should systematically examine the dynamic interactions between equipment response characteristics and system-level stability, such as comprehensive parameter sensitivity analysis of device response rates and development of integrated robustness testing frameworks capable of evaluating the coupled dynamics-stability relationships in multi-energy scenarios.

These research directions aim to bridge current theoretical and practical gaps while enhancing the applicability of multi-timescale optimal scheduling methodologies for integrated energy systems in complex real-world scenarios.

References

  1. 1. Ministry of Ecology and Environment of the People’s Republic of China. Total quota and allocation scheme of the national carbon emission trading power generation industry. 2024.7.2. http://www.mee.gov.cn/
  2. 2. Shu YB, Zhao Y, Zhao L. Low-carbon transformation path of energy and electric power in China under the goal of “dual carbon”. Proceedings of the CSEE. 2023;43(5):1663–72.
  3. 3. Toolabi Moghadam A, Soheyli F, Sanei S, Akbari E, Khorramdel H, Ghadamyari M. Bi‐level optimization of the integrated energy systems in the deregulated energy markets considering the prediction of uncertain parameters and price‐based demand response program. Energy Science & Engineering. 2022;10(8):2772–93.
  4. 4. Qi B, Zheng S, Sun Y, Li B, Tian S, Shi K. A model of incentive based integrated demand response considering dynamic characteristics and multi-energy coupling effect of demand side. Proceedings of the CSEE. 2022;42(5):1783–99.
  5. 5. Chen H, Gao L, Zhang Z. Multi-objective optimal scheduling of a microgrid with uncertainties of renewable power generation considering user satisfaction. International Journal of Electrical Power & Energy Systems. 2021;131:107142.
  6. 6. Song D, Meng W, Dong M, Yang J, Wang J, Chen X, et al. A critical survey of integrated energy system: Summaries, methodologies and analysis. Energy Conversion and Management. 2022;266:115863.
  7. 7. Wen Q, Liu G, Rao Z, Liao S. Applications, evaluations and supportive strategies of distributed energy systems: A review. Energy and Buildings. 2020;225:110314.
  8. 8. He F, Zhou J, Mo L, Feng K, Liu G, He Z. Day-ahead short-term load probability density forecasting method with a decomposition-based quantile regression forest. Applied Energy. 2020;262:114396.
  9. 9. Qu Z, Xu C, Yang F, Ling F, Pirouzi S. Market clearing price-based energy management of grid-connected renewable energy hubs including flexible sources according to thermal, hydrogen, and compressed air storage systems. Journal of Energy Storage. 2023;69:107981.
  10. 10. Deng Y, Liu Y, Zhang Y, Zeng R, Zheng Z, Yao Y, et al. Optimization and performance analysis of CCHP-GSHP-SE system under different start factors. Energy Conversion and Management. 2022;266:115827.
  11. 11. Krstic J, Reljic M, Filipovic S. Factors influencing electricity consumption: a review of research methods. Management: Journal of Sustainable Business and Management Solutions in Emerging Economies. 2018;24(2):1–10.
  12. 12. Ghaemi S, Schneider S. Potential analysis of residential demand response using Grid LAB-D. In: IECON 2013-39th Annual Conference of the IEEE Industrial Electronics Society; 2013. 8039–45.
  13. 13. Qian T, Fang M, Hu Q, Shao C, Zheng J. V2Sim: An Open-Source Microscopic V2G Simulation Platform in Urban Power and Transportation Network. IEEE Trans Smart Grid. 2025;16(4):3167–78.
  14. 14. Qian T, Liang Z, Chen S, Hu Q, Wu Z. A Tri-Level Demand Response Framework for EVCS Flexibility Enhancement in Coupled Power and Transportation Networks. IEEE Trans Smart Grid. 2025;16(1):598–611.
  15. 15. Hu Z, Su R, Veerasamy V, Huang L, Ma R. Resilient Frequency Regulation for Microgrids Under Phasor Measurement Unit Faults and Communication Intermittency. IEEE Trans Ind Inf. 2025;21(2):1941–9.
  16. 16. Li X, Hu C, Luo S, Lu H, Piao Z, Jing L. Distributed Hybrid-Triggered Observer-Based Secondary Control of Multi-Bus DC Microgrids Over Directed Networks. IEEE Trans Circuits Syst I. 2025;72(5):2467–80.
  17. 17. Wang Y, Zou R, Liu F, Zhang L, Liu Q. A review of wind speed and wind power forecasting with deep neural networks. Applied Energy. 2021;304:117766.
  18. 18. Hanifi S, Liu X, Lin Z, Lotfian S. A Critical Review of Wind Power Forecasting Methods—Past, Present and Future. Energies. 2020;13(15):3764.
  19. 19. Sun R, Zhang T, He Q. Review on key technologies and applications in wind power forecasting. High Voltage Engineering. 2021;47(04):1129–43.
  20. 20. Cheng M, Qian W, He X. The Research on Wind Power Prediction Based on Wind Speed Correction// proceedings of the 2023 42nd Chinese Control Conference (CCC), Tianjin, July 24-26, 2023. Piscataway: IEEE; 2023. p. 6309–14.
  21. 21. Huang S, Yan C, Qu Y. Deep learning model-transformer based wind power forecasting approach. Front Energy Res. 2023;10.
  22. 22. Shi C, Zhang X. Recurrent neural network wind power prediction based on variational modal decomposition improvement. AIP Advances. 2023;13(2).
  23. 23. Cheng M, Qian W, He X. The Research on Wind Power Prediction Based on Wind Speed Correction// proceedings of the 2023 42nd Chinese Control Conference (CCC), Tianjin, July 24-26, 2023. Piscataway: IEEE; 2023. p. 6309–14.
  24. 24. Liu H, Han H, Sun Y, Shi G, Su M, Liu Z, et al. Short-term wind power interval prediction method using VMD-RFG and Att-GRU. Energy. 2022;251:123807.
  25. 25. Jani A, Karimi H, Jadid S. Multi-time scale energy management of multi-microgrid systems considering energy storage systems: A multi-objective two-stage optimization framework. Journal of Energy Storage. 2022;51:104554.
  26. 26. Peng L, Zixuan W, Jiahao W, et al. A multi time-space scale optimal operation strategy for a distributed integrated energy system. Applied Energy. 2021;289:116698.
  27. 27. Wang Z, Tao H, Cai W, Duan Y, Wu D, Zhang L. Study on the multitime scale rolling optimization operation of a near-zero energy building energy supply system. Energy Conversion and Management. 2022;270:116255.
  28. 28. Sabzalian MH, Pirouzi S, Aredes M, Wanderley Franca B, Carolina Cunha A. Two-Layer Coordinated Energy Management Method in the Smart Distribution Network including Multi-Microgrid Based on the Hybrid Flexible and Securable Operation Strategy. International Transactions on Electrical Energy Systems. 2022;2022:1–19.
  29. 29. Wang X, Han L, Wang C, Yu H, Yu X. A time-scale adaptive dispatching strategy considering the matching of time characteristics and dispatching periods of the integrated energy system. Energy. 2023;267:126584.
  30. 30. Yang C, Cong Z, Guibo D, Yicheng L, Shipeng Y, Zhuo S.Low- carbon economic dispatch of integrated energy system with carbon capture power plants. Proceedings of the CSEE. 2022;42(33):8431–46.
  31. 31. Yi L, Xiao P, Xinyang D, et al. Operation optimization of electrothermal system combined with additional heat and demand response. Power System and Clean Energy. 2020;3(5):94–100.
  32. 32. Zhang Q, Dong P, Wang K. LSTM based on Bayesian optimization the remaining life prediction of the engine. Fire and command control. 2022;47(4):8.
  33. 33. Zhou X, Liu C, Luo Y, Wu B, Dong N, Xiao T, et al. Wind power forecast based on variational mode decomposition and long short term memory attention network. Energy Reports. 2022;8:922–31.
  34. 34. Liu S, Ai Q, Zheng J, Wu R. Bi-level coordination mechanism and operation strategy of multi-time scale multiple virtual power plants. Proceedings of the CSEE. 2018;38:753–61.
  35. 35. Cheng Z, Jia D, Li Z, Xu S, Zhi C, Wu L. Multi-time scale energy management of microgrid considering the uncertainties in both supply and demand. Energy Reports. 2022;8:10372–84.
  36. 36. Yang C, Peng Z, Zheng W, et al. Low-carbon economic dispatch of electricity-gas-heat integrated energy system that takes into account the electricity price-type demand-side response to carbon-containing capture equipment. Power System Technology. 2021;45(02):447–61.