1. Introduction
In current society, climate change is a core issue of concern for humanity, while reducing energy consumption and promoting the low-carbon transition of energy are key aspects of this challenge [
1,
2]. Energy consumption in buildings accounts for 40% of the global total, and carbon emissions reach 37% of the total carbon emissions across all industries [
3]. Therefore, exploring zero-carbon emissions in buildings is of great significance for reducing dependence on traditional energy sources and mitigating carbon emissions.
Building electrification is considered an effective measure to reduce carbon emissions in buildings [
4,
5]. Compared to traditional fuel-based building systems, the introduction of low-carbon intensity integrated energy systems can suppress carbon emissions from multiple aspects. On the one hand, clean energy sources such as wind and solar power are prioritized within the building system to meet electricity consumption, thereby reducing carbon generation at the source of power [
6]. On the other hand, carbon capture and utilization devices can be organically integrated with the energy system, creating a carbon cycle within the building, further reducing carbon emissions to the external atmosphere [
7,
8]. However, the output of renewable energy is volatile, and how to properly handle the uncertainty is a key aspect of ensuring the stable energy supply for the building system.
Furthermore, the building system contains multiple types of energy, such as electricity, gas, and heat, which are interconnected and influence each other. Energy optimization dispatch needs to minimize power costs when ensuring the supply of different types of energy, while also balancing occupant comfort and economic considerations. In recent years, the rise of carbon markets has provided new pathways for the circulation of carbon flows and has opened up new revenue channels for zero-carbon and low-carbon units [
9,
10]. Therefore, considering the interaction between zero-carbon building systems and the external carbon market is also a promising direction for research.
1.1. Related Works
To achieve the goal of zero carbon in building systems, each step of the carbon trail needs to be addressed, including carbon capture, utilization, and emissions. In integrated energy systems that include Combined Heat and Power (CHP), Carbon Capture and Storage (CCS) is commonly used as an important device, which can capture the CO
2 generated by CHP for storage or transportation. Ref. [
11] integrates Power to Gas (P2G) and CCS with CHP in the integrated energy system, avoiding the costs of transportation and storage through the direct utilization of carbon while also improving the consumption of renewable energy. Ref. [
12] utilizes post-combustion methods with monoethanolamine to capture CO
2 in a hybrid wind–solar system. In daily energy scheduling, carbon emission constraints are considered to derive the optimal strategy. CCS is also used as a carbon capture device in virtual power plant networks with electric vehicles. Through deep learning methods, it simultaneously leverages the flexibility of electric vehicles while achieving emission reduction targets [
13]. In building energy systems, CCS is also used, as in [
14], where it is employed to establish a low-carbon model to reduce carbon emissions to the atmosphere. Through non-cooperative game theory, the overall optimal solution for the common interests of multiple building systems is achieved. However, it is important to note that the efficiency of carbon capture by CCS and carbon utilization by P2G cannot reach 100%, so some CO
2 will inevitably be emitted into the atmosphere. If energy-consuming units participate in the carbon market, excessive carbon emissions compared to the given carbon quota will increase the energy costs, whereas a lower level of emissions may present potential benefits. This aspect has been less discussed in the aforementioned studies.
Compared to traditional building systems, the introduction of zero-carbon technology will make it more complex due to the integration of various subsystems, with the most critical aspect being the existence of multiple types of uncertainty. From an energy perspective, the sources of uncertainty include both the energy supply side and the energy demand side. This has been studied by several scholars. Ref. [
15] studied zero-carbon buildings powered by renewable energy and energy storage systems, analyzing the seasonal variation characteristics and uncertainties of energy supply. Solar and hydro energy are modeled using a Gaussian distribution, and the system stability is guaranteed through hydrogen storage and fuel cells. Similar research is also conducted in [
16], where the uncertainties of photovoltaics and electric vehicles are analyzed and modeled to adjust the scale of battery storage in smart homes, achieving the optimal storage capacity to reduce costs. The changes in energy demand within the building system directly affect energy costs. Meanwhile, for consumers, variations in energy costs influence energy consumption habits, thereby altering the energy demand. These two factors are interrelated over time. If optimization can be combined with building occupants’ energy consumption habits and comfort zones, it is bound to yield results that are closer to real-world scenarios, which is relatively studied in existing research.
Traditional optimization approaches for addressing uncertainty include stochastic optimization (SO) [
17], scenario reduction (SG) [
18], chance-constrained (CC) optimization [
19], robust optimization (RO) [
20], and distributed robust optimization (DRO) [
21]. However, these approaches either require detailed distribution information about uncertain parameters or result in optimization outcomes with noticeable conservatism. In contrast, data-driven approaches [
22] are entirely based on the samples of uncertain parameters that can be collected. Through specific data analysis techniques, parameter information can be effectively extracted. Combining this process with above traditional approaches may help mitigate their shortcomings, achieving a balance between optimization performance and computational difficulty.
Motivated by the above discussion, we propose an optimal energy dispatch solution for zero-carbon buildings with integrated energy systems. Specifically, we consider the flows of electricity, heat, gas, and carbon, as well as their interactions with corresponding markets. The occupants’ heat demand is modeled as a chance constraint with a confidence level to maximize the profits from utilizing the comfort zone. Furthermore, a data-driven clustering-based approach called Mean Robust Optimization (MRO) is proposed, through which we preprocess the dataset of uncertain parameters and construct the modified uncertainty set to improve traditional RO and DRO approaches. Specifically, a comparison between our approach and existing studies is shown in
Table 1.
1.2. Our Contributions
The contributions of this paper are as follows:
We have established a zero-carbon building model with an integrated energy system, providing the trails of electricity, gas, heat, and carbon flows based on the analysis of the characteristics of main devices. Additionally, we emphasize the role of carbon market transactions, which can introduce a new source of revenue through low-carbon emissions.
The impact of the comfort zone on energy dispatch and energy costs is considered, and a chance-constrained heat balance equation is established. A data-driven clustering approach is used to preprocess the dataset of samples, forming the basis of the optimization model.
We propose a data-driven MRO approach to solve the optimization problem, which reduces the conservativeness and computational burden of the problem by reconstructing the constraint functions and uncertainty sets after clustering. Numerical studies are conducted using two typical days in summer and winter, and the results demonstrate the advantages of the proposed approach.
Section 2 introduces the structure of the zero-carbon building with an integrated energy system and models its main devices.
Section 3 analyzes the optimization objectives and constraints corresponding to different energy flows, and the uncertainty in the system is handled at the same time.
Section 4 presents the proposed MRO approach for solving the optimization problem and provides a detailed computational workflow.
Section 5 conducts numerical studies, where typical day result analysis and comparative studies validate the effectiveness of the method. Finally, the conclusions are presented in
Section 6.
4. Solution Methodology
In this section, we will transform the mathematical model established above and present an appropriate solution approach.
The output of renewable energy in the system is predicted based on historical data. Accordingly, we can collect historical data samples from typical days similar to the day to be optimized, obtaining a dataset of the output prediction errors, denoted as
with sample size
N. Based on the linear relationship of Equations (
12), (
13), (
28), and (
32), we can transform Equations (
33) and (
34) into the following form:
where the function
is used to represent the relationship between decision variable
and uncertainty parameter
.
Therefore, we can obtain the standard mathematical model named primary model (PO):
According to the principles of RO, it is required to ensure that the constraints are satisfied for any . It can be seen that a large sample size of will lead to computational burdens, while a small sample size will highlight the conservativeness of RO itself. To effectively reduce the dimensionality of , we draw on the clustering concept from machine learning to preprocess the data in and construct the uncertainty set .
Assuming that the dataset
is divided into
K disjoint subsets
, where the centroid of
kth subset is denoted as
, that is:
where
denotes cluster weight, and
refers to the radius of uncertainty set.
According to Theorem 3.4 in [
26], constraints in the form of Equations (
33) and (
34) can yield the minimum radius that satisfies the probability guarantee, denoted as
:
Substituting
into the right side of the above inequality, we can derive the following:
Due to the clustering operation,
may no longer satisfy the requirements for each subset. An intuitive approach is to introduce a clustering-related parameter to enlarge the radius of the uncertainty set, which is denoted as
[
27].
To match the uncertainty set after clustering, the functions in Equations (
36) and (
37) also need to be transformed. For simplicity, the average value of each
can be taken, which gives the following result:
Based on the above analysis, we have transformed the PO problem into a mean robust optimization (MRO) problem as follows:
RO is a commonly used approach for handling optimization problems with uncertain parameters. It ensures constraint satisfaction under the worst-case scenario within the uncertainty set, making conservativeness an inherent characteristic. DRO incorporates possible data distributions within an ambiguity set and measures the divergence between each distribution and the empirical distribution. Although DRO reduces the conservativeness of RO, it inevitably increases the computational burden. In the above exploration, we have reduced the data dimensionality through clustering and constructed an uncertainty set for each cluster, trying to achieve a balance between conservatism and computational difficulty. The details are illustrated in
Figure 2.
The last two constraints in the
MRO need further processing in order to make the problem easier to solve. Taking Equation (
42) as an example, the treatment for Equation (
43) is similar.
Equation (
42) must always be satisfied under the given uncertainty set
. Based on the characteristics of RO, the worst-case scenario among all possible options is considered, and it can be obtained that:
By dualizing the above optimization and using Slater’s condition [
28,
29], it can be transformed into:
where
denotes the Lagrangian parameter in the dualizing process. By replacing the uncertainty constraints with the processed constraints,
MRO can be solved using a commercial solver Gurobi in Python.
Reviewing the process of solving the above optimization problem, it is presented in the form of a flowchart, as shown in
Figure 3.
6. Conclusions
In this paper, we establish a zero-carbon building system with integrated energy, and the main devices based on the analysis of electricity, heat, gas, and carbon flows are modeled. To achieve optimal energy dispatch in a zero-carbon building under uncertainty, the heat balance is described using chance constraints based on the occupants’ comfort zone. Then, we employ a data-driven approach by clustering the prediction errors of PV&WPP outputs to construct uncertainty sets. Furthermore, the MRO approach is proposed for solving the optimization problem. We conduct numerical studies using a typical day chosen from summer and winter. Comparative analysis under different uncertainty settings shows that the proposed model can reduce energy costs while ensuring robustness. Additionally, the results show that carbon emissions in winter are approximately 1.85 times higher than those in summer, with CO2 produced by GT accounting for about 90% of the total. Relaxing the occupant comfort constraints leads to a reduction in energy costs, with a maximum decrease of 18.82% in summer and 27.22% in winter, respectively. Additionally, comparative analysis indicates that the proposed method can balance conservativeness and computational efficiency through the selection of the number of clusters.
There are many types of uncertainties in building systems, including renewable energy output, market prices, and user demand. How to design zero-carbon building systems and dispatch energy under multiple uncertain parameters and even coupled uncertainties is the direction of our future research.