This paper was converted on www.awesomepapers.org from LaTeX by an anonymous user.
Want to know more? Visit the Converter page.

Cooperative Energy Management of HVAC via Transactive Energy

Qing Yang and Hao Wang Qing Yang is with the Blockchain Technology Research Center (BTRC) and the College of Electronics and Information Engineering (CEI), Shenzhen University, Shenzhen, Guangdong Province, China [email protected]Hao Wang is with the Department of Data Science and Artificial Intelligence, Faculty of Information Technology, Monash University, Melbourne, VIC 3800, Australia [email protected]This work is in part supported by the National Natural Science Foundation of China (project 61901280) and the FIT Academic Staff Funding of Monash University.*Corresponding author: Hao Wang.
Abstract

Heating, Ventilation, and Air Conditioning (HVAC) energy consumption accounts for a significant part of the total energy consumption of buildings and households. The ubiquitous adoption of distributed renewable energy and smart meters helps to decarbonize the HVAC energy consumption and improve energy efficiency. However, how to scale up HVAC energy management for a group of users while persevering users’ privacy remains a big challenge. In this work, we utilize the concept of transactive energy to build a cooperative energy management system for independent HVAC units in a distributed manner. Specifically, we develop a distributed energy trading algorithm that consists of two layers based on the alternating direction method of multipliers method. The distributed energy trading algorithm achieves optimal trading performance and also preserves users’ privacy. Furthermore, we evaluate the performance of the distributed trading algorithm by extensive simulations with real-world data. Simulation results show that the energy trading algorithm converges fast and the cooperative energy platform reduces the user’s individual cost by up to 50% and lowers the overall cost of all users by 23%.

I INTRODUCTION

Heating ventilation and air conditioning (HVAC) is an indispensable component of modern buildings; however, HVAC energy use accounts for a significant portion of energy consumption in buildings and households [1]. Recent research interests have been focusing on how to decarbonize the HVAC energy consumption. The ubiquitous deployment of smart meters and renewable energy generators enables us to develop energy management systems for HVAC units powered by a high penetration of renewable energy. As an essential part of the smart city, residential users (e.g., smart homes) [2] are expected to manage their energy consumption to improve the energy efficiency of appliances (and the HVAC in particular). This paper aims to study the following key problem: can residential users further reduce their HVAC expenses by merely utilizing the existing grid and renewable energy? To this end, transactive energy emerges as a prospective solution [3] in both smart grid academia and industry.

In smart homes, the energy management system schedules the energy usage of appliances including HVAC to reduce energy costs yet keeps the indoor comfortable [4]. To further improve the energy efficiency, users are encouraged to cooperate in the energy management of their renewable supply, HVAC, and other load. By enabling users to share surplus energy and cooperatively schedule their energy usage, cooperative energy management can effectively reduce the individual user’s cost and enhances the efficiency of the system. However, the following challenges must be addressed before a cooperative energy management system that involves multiple users in a community. First, the cooperative energy management system should improve the system efficiency while incentivizing the users to join the trading by providing them enough benefit. Second, privacy-preserving is critical for cooperative energy management since users’ power usage information can be exploited by malicious parties for their own interests.

Recently, many research works on HVAC energy management have been published to address the above challenges. A data-driven modeling method for HVAC was proposed in [5] to achieve the optimal HVAC energy scheduling. In [6], the authors suggested a robust evolutionary algorithm to optimize the power consumption of centralized HVAC. In [7], the authors investigated the solar-assisted HVAC model and proposed a stochastic optimization method to reduce energy consumption. However, references [5, 6, 7] only studied standalone energy management of HVAC in a single house. A cooperative energy management that involves multiple households was studied in [8], in which the authors employed a mixed-integer linear programming method but assumed a fully centralized model that causes privacy concerns. Reference [9] reports the vulnerability of users’ privacy in transactive energy, and [10] presented a method to exploit privacy information from users’ smart meter data. The trade-off between users’ privacy and the performance of HVAC energy management is modeled and analyzed in [11], and the authors suggested a noise injection method to enhance privacy.

In this paper, we designed a cooperative energy management system for HVAC with a novel distributed P2P (peer-to-peer) energy trading algorithm to address the challenges as mentioned earlier. The main contributions of this work are as follows.

  1. 1.

    We develop an efficient and trustable cooperative energy management platform for HVAC based on transactive energy. The developed platform enables energy trading among users and handles the supply/demand matching while preserving users’ privacy.

  2. 2.

    We design a P2P energy trading algorithm that improves the system efficiency and minimizes users’ HVAC costs. The proposed energy trading algorithm enables participated users to interact in a distributed manner to gain benefits from trading, and also does not require users to reveal private parameters.

  3. 3.

    We evaluate the distributed P2P energy trading algorithm with extensive simulation using real-world data. To test the feasibility of the energy trading algorithm in practice, we validate the trading platform and algorithm using realistic renewable and load data. The results show that the system cost is reduced by 23% and the users’ costs are reduced by up to 50%.

The rest of the paper is organized as follows. Section II introduces the HVAC energy management model on the transactive energy platform. Section III formulates an optimization problem for the cooperative energy system. Section IV elaborates on the design of the distributed P2P energy trading algorithm for HVAC. Section V evaluates the proposed P2P energy trading system with extensive simulations and Section VI concludes our work.

II SYSTEM MODEL

We consider multiple houses interconnected via the power grid, as shown in Fig. 1. We denote the users in this energy management model by the set 𝒩={1,..,N}\mathcal{N}{=}\{1,..,N\}. The system can be split into two layers: 1) the internal energy scheduling layer, in which each user schedules the energy use for the HVAC; and 2) the external energy trading layer facilities energy exchange among users to further utilize local renewables and reduce operational costs. Exchanging surplus energy with other users is encouraged during the operation of the energy management system. The residential users have diverse preferences for their household energy usage including HAVC (e.g., target temperature); therefore the users may benefit each other by trading energy in a peer-to-peer manner. The system model of the user’s smart house is described in Fig. 1.

Refer to caption
Figure 1: The system model of the transactive energy platform. The user’s smart house is installed with renewable generation and appliances. The energy management system manages the HVAC according to the residential user’s preference. The smart house can generate renewable energy, draw electricity from the grid, and trade energy with other smart houses. The energy management system is used to manage the HVAC energy consumption and run the P2P energy trading algorithm.

II-A Internal Energy Scheduling Layer

Each residential user is equipped with renewable generation (e.g., solar panel and wind turbine), HVAC, and other appliances as shown in Fig. 1. The model of the smart house has two parts. The first part is the supply model that includes the electricity from both the grid and local renewable energy; the second part is the load model that consists of HVAC and other appliances. Let ={1,,H}\mathcal{H}{=}\{1,...,H\} denotes the operational horizon of the system. The load model of user ii describes the energy consumption of the user’s HVAC and other appliances. Specifically, we denote the amount of energy that user ii purchases from the grid by piG[t]p_{i}^{\text{G}}[t], and denote the renewable energy by PiRE[t]P_{i}^{\text{RE}}[t] in time slot tt. Therefore, the energy supply terms piG[t]p_{i}^{\text{G}}[t] and PiRE[t]P_{i}^{\text{RE}}[t] should satisfy the following constraints:

0piRE[t]PiRE[t],\displaystyle 0\leq p_{i}^{\text{RE}}[t]\leq P_{i}^{\text{RE}}[t], i𝒩,t,\displaystyle~{}\forall i\in\mathcal{N},t\in\mathcal{H}, (1)
0piG[t]PiG,\displaystyle 0\leq p_{i}^{\text{G}}[t]\leq P_{i}^{\text{G}}, i𝒩,t,\displaystyle~{}\forall i\in\mathcal{N},t\in\mathcal{H}, (2)

where piRE[t]p_{i}^{\text{RE}}[t] and piG[t]p_{i}^{\text{G}}[t] are non-negative and upper-bounded by the available renewable generation PiRE[t]P_{i}^{\text{RE}}[t] and power capacity PiGP_{i}^{\text{G}} from the grid per time slot, respectively.

To model the realistic system, we adopt the two-part tariff billing for the electricity purchased from the grid. Hence, user ii’s grid cost is

CiG=π1GtpiG[t]+π2GmaxtpiG[t],\displaystyle C_{i}^{\text{G}}=\pi_{1}^{\text{G}}\sum\nolimits_{t\in\mathcal{H}}p_{i}^{\text{G}}[t]+\pi_{2}^{\text{G}}\max_{t\in\mathcal{H}}p_{i}^{\text{G}}[t], (3)

where π1G\pi_{1}^{\text{G}} and π2G\pi_{2}^{\text{G}} denote the unit energy price and peak load price, respectively. The grid cost consists of an energy charge π1GtpiG[t]\pi_{1}^{\text{G}}\sum_{t\in\mathcal{H}}p_{i}^{\text{G}}[t] and a peak charge π2GmaxtpiG[t]\pi_{2}^{\text{G}}\max_{t\in\mathcal{H}}p_{i}^{\text{G}}[t]. The peak charge is introduced to shave the peak load of the grid by penalizing the user’s peak load.

The load model includes the HVAC load and other inflexible loads such as the refrigerator and lighting. We let PiIL[t]P_{i}^{\text{IL}}[t] denote the inflexible load, which includes the power consumption of house appliances other than HVAC in time slot tt. The HVAC system works to adjust the indoor temperature TiIN[t]T_{i}^{\text{IN}}[t] according to user ii’s preference. In time slot tt, the energy consumption of the heating or cooling process incurred by the HVAC system is denoted by piAC[t]p_{i}^{\text{AC}}[t]. We denote the outdoor temperature as TiOUT[t]T_{i}^{\text{OUT}}[t], then the dynamics of the indoor temperature [12] is modeled as

TiIN[t]=TiIN[t1]\displaystyle T_{i}^{\text{IN}}[t]=T_{i}^{\text{IN}}[t-1]- 1CiRi(TiIN[t1]TiOUT[t]\displaystyle\frac{1}{C_{i}R_{i}}(T_{i}^{\text{IN}}[t-1]-T_{i}^{\text{OUT}}[t] (4)
+ηiRipiAC[t]),i𝒩,t,\displaystyle+\eta_{i}R_{i}p_{i}^{\text{AC}}[t]),~{}\forall i\in\mathcal{N},t\in\mathcal{H},

where CiC_{i} and RiR_{i} denote the working parameters of the HVAC unit (and we let Ci=3.3C_{i}{=}3.3 and Ri=1.35R_{i}{=}1.35 in our simulations). The working mode of the HVAC is represented by the sign of ηi\eta_{i}: ηi\eta_{i} is positive if the system is cooling, and negative if the system is heating. Through this work, we omit the installation cost and depreciation of all the appliances in the model since our focus is energy management.

Usually, user ii sets a preferred indoor temperature TiREFT_{i}^{\text{REF}} for the HVAC system; thus any deviation from this value will discomfort the user. The discomfort of user ii can be modeled by the cost function below

CiAC=βiACt(TiIN[t]TiREF)2,i𝒩,C_{i}^{\text{AC}}=\beta_{i}^{\text{AC}}\sum\nolimits_{t\in\mathcal{H}}\left(T_{i}^{\text{IN}}[t]-T_{i}^{\text{REF}}\right)^{2},~{}\forall i\in\mathcal{N}, (5)

where βiAC\beta_{i}^{\text{AC}} denotes that sensitivity coefficient.

Note that the indoor temperature should also be within a range that human can tolerate, thus we have

T¯iINTiIN[t]T¯iIN,i𝒩,t,\underline{T}_{i}^{\text{IN}}\leq T_{i}^{\text{IN}}[t]\leq\overline{T}_{i}^{\text{IN}},~{}\forall i\in\mathcal{N},t\in\mathcal{H}, (6)

where the parameters T¯iIN\underline{T}_{i}^{\text{IN}} and T¯iIN\overline{T}_{i}^{\text{IN}} define the upper- and lower-bounds of user ii’s tolerable temperature.

II-B External Energy Trading Layer

Besides scheduling their internal energy, users can also exchange energy externally with each other via the cooperative energy management system. Because users have diverse HVAC use profiles and different renewable energy generations, they can exploit the diversities of supply and load profiles for mutual benefits by transactive energy.

In the cooperative energy management system shown in Fig.1, user ii can trade with user j𝒩\ij\in\mathcal{N}\backslash i to exchange energy. The cooperative energy management platform provides a free and open marketplace for users to trade energy and allow participated users to earn profit. Let pi,jET[t]p_{i,j}^{\text{ET}}[t] denotes the amount of electricity traded between user ii and user jj in time slot tt. Note that a positive pi,jET[t]p_{i,j}^{\text{ET}}[t] indicates that user ii purchases energy from user jj, and negative pi,jET[t]p_{i,j}^{\text{ET}}[t] indicates user ii sells energy to user jj.

Without loss of generality, we omit the electricity loss during the power transfer over the grid, since the users are closely located to each other. To balance the load and supply over the grid, the following constraint applied for all the energy trading pairs:

pi,jET[t]+pj,iET[t]=0,t,i𝒩,j𝒩\i,\displaystyle p_{i,j}^{\text{ET}}[t]+p_{j,i}^{\text{ET}}[t]=0,~{}\forall t\in\mathcal{H},~{}\forall i\in\mathcal{N},~{}\forall j\in\mathcal{N}\backslash i, (7)

which clears the energy-trading amount between each trading pair of users ii and jj in time slot tt.

III PROBLEM FORMULATION

In this section, we consider the HVAC energy management scenarios without and with energy trading among users. Specifically, in the non-cooperative scenario, all the users optimize their own energy scheduling independently without interacting with other users. In the cooperative scenario, users exchange energy with other users to purchase energy when in a deficit of local supply or sell extra energy to make profits.

III-A Non-cooperative Scenario

In the non-cooperative energy management scenario, the residential users schedule their energy usages individually. Specifically, users schedule their energy supply and energy consumption to minimize the operating costs. User ii uses the local renewable supply piRE[t]p_{i}^{\text{RE}}[t] and also purchases from the grid piG[t]p_{i}^{\text{G}}[t] to serve the demand, consisting of HVAC load piAC[t]p_{i}^{\text{AC}}[t] and the inflexible load piIL[t]p_{i}^{\text{IL}}[t]. To shorten the notation, we redefine the following variables as 𝒑iRE={piRE[t],t}\bm{p}_{i}^{\text{RE}}{=}\{p_{i}^{\text{RE}}[t],\forall t{\in}\mathcal{H}\}, 𝒑iG={piG[t],t}\bm{p}_{i}^{\text{G}}{=}\{p_{i}^{\text{G}}[t],\forall t{\in}\mathcal{H}\}, 𝒑iAC={piAC[t],t}\bm{p}_{i}^{\text{AC}}{=}\{p_{i}^{\text{AC}}[t],\forall t{\in}\mathcal{H}\}, and 𝒑iIL={piIL[t],t}\bm{p}_{i}^{\text{IL}}{=}\{p_{i}^{\text{IL}}[t],\forall t{\in}\mathcal{H}\}.

During the energy management process, user ii’s power supply and demand must be equal in each time slot, which leads to the constraint

piRE[t]+piG[t]=piAC[t]+PiIL[t],i𝒩,t.\displaystyle p_{i}^{\text{RE}}[t]+p_{i}^{\text{G}}[t]=p_{i}^{\text{AC}}[t]+P_{i}^{\text{IL}}[t],~{}\forall i\in\mathcal{N},t\in\mathcal{H}. (8)

The left-hand side of (8) represents the total energy supply, and the right-hand side of (8) denotes the total demand from the HVAC load piAC[t]p_{i}^{\text{AC}}[t] and the inflexible load PiIL[t]P_{i}^{\text{IL}}[t].

For the non-cooperative energy management, the overall operating cost of user ii is

CiO(𝒑iG,𝒑iAC)CiG(𝒑iG)+CiAC(𝒑iAC),\displaystyle C_{i}^{\text{O}}(\bm{p}_{i}^{\text{G}},\bm{p}_{i}^{\text{AC}})\triangleq C_{i}^{\text{G}}(\bm{p}_{i}^{\text{G}})+C_{i}^{\text{AC}}(\bm{p}_{i}^{\text{AC}}), (9)

where CiG(𝒑iG)C_{i}^{\text{G}}(\bm{p}_{i}^{\text{G}}) denotes the electricity bill from the grid, and CiAC(𝒑iAC)C_{i}^{\text{AC}}(\bm{p}_{i}^{\text{AC}}) denotes the the user’s discomfort cost of HVAC.

The energy management system aims to minimize users’ total cost in (9). Therefore, for a specific user ii, the energy management problem can be formulated as

EMPi: User ii’s Energy Management Problem.

min\displaystyle\min CiO(𝒑iG,𝒑iAC)\displaystyle C_{i}^{\text{O}}(\bm{p}_{i}^{\text{G}},\bm{p}_{i}^{\text{AC}})
subject to (1),(2),(4),(6),(8)\displaystyle\text{\eqref{constraint-load5}},\text{\eqref{constraint-load6}},\text{\eqref{constraint-load1}},\text{\eqref{constraint-load2}},\text{\eqref{constraint-load11}}
variables: {𝒑iRE,𝒑iG,𝒑iAC}.\displaystyle\left\{\bm{p}_{i}^{\text{RE}},\bm{p}_{i}^{\text{G}},\bm{p}_{i}^{\text{AC}}\right\}.

Based on our analysis, user ii can locally solve the optimization problem in EMPi since it is a standard convex optimization. We denote the optimal total cost in problem EMPi by C¯iO\bar{C}_{i}^{\text{O}} and let this value serve as a benchmark cost for the comparison with the costs in the cooperative scenario.

III-B Cooperative Scenario

Unlike the non-cooperative scenario, users not only schedule their internal energy supply and demand but also exchange energy externally with other users when needed in the cooperative scenario. Users with surplus renewable energy can sell their energy to other users via the grid; also, users can purchase energy from their neighbors other than the grid to lower the total costs. Taken the energy trading into account, the load balance constraint becomes

piRE[t]+piG[t]+\displaystyle p_{i}^{\text{RE}}[t]{+}p_{i}^{\text{G}}[t]{+} j𝒩\ipi,jET[t]=piAC[t]+PiIL[t],i𝒩,t,\displaystyle\sum_{j\in\mathcal{N}\backslash i}p_{i,j}^{\text{ET}}[t]{=}p_{i}^{\text{AC}}[t]{+}P_{i}^{\text{IL}}[t],\forall i{\in}\mathcal{N},t{\in}\mathcal{H}, (10)

where the summation j𝒩\ipi,jET[t]\sum_{j\in\mathcal{N}\backslash i}p_{i,j}^{\text{ET}}[t] is the total energy traded between user ii and all other users j𝒩\ij\in\mathcal{N}\backslash i in time slot tt.

We assume that the operator of the energy management system does not charge any fees to the users. Therefore, users who purchase energy will pay their counterparts at a time-dependent unit price π[t]\pi[t] set by the trading platform. Therefore, user ii’s cost during the energy trading process is

CiET(𝒑iET)=t(π[t]j𝒩\ipi,jET[t]),\displaystyle C_{i}^{\text{ET}}(\boldsymbol{p}_{i}^{\text{ET}})=\sum\nolimits_{t\in\mathcal{H}}\left(\pi[t]\sum\nolimits_{j\in\mathcal{N}\backslash i}p_{i,j}^{\text{ET}}[t]\right), (11)

where 𝒑iET\boldsymbol{p}_{i}^{\text{ET}} is the short notation for {pi,jET[t],t,j𝒩\i}\{p_{i,j}^{\text{ET}}[t],~{}\forall t\in\mathcal{H},~{}\forall j\in\mathcal{N}\backslash i\}.

In the cooperative energy management system, the system overall cost consists of user’s individual operating cost CiO(𝒑iG,𝒑iAC)C_{i}^{\text{O}}(\bm{p}_{i}^{\text{G}},\bm{p}_{i}^{\text{AC}}) and the trading cost CiET(𝒑iET)C_{i}^{\text{ET}}(\boldsymbol{p}_{i}^{\text{ET}}). Therefore, we formulate the cooperative energy management problem CEMP for the platform as follows.

CEMP: Cooperative Energy Management Problem

min\displaystyle\min i𝒩[CiO(𝒑iG,𝒑iAC)+CiET(𝒑iET)]\displaystyle\sum_{i\in\mathcal{N}}\left[C_{i}^{\text{O}}(\bm{p}_{i}^{\text{G}},\bm{p}_{i}^{\text{AC}})+C_{i}^{\text{ET}}(\boldsymbol{p}_{i}^{\text{ET}})\right]
subject to (1),(2),(4),(6),(7),(10)\displaystyle\text{\eqref{constraint-load5}},\text{\eqref{constraint-load6}},~{}\text{\eqref{constraint-load1}},~{}\text{\eqref{constraint-load2}},~{}\text{\eqref{constraint-trading1}},~{}\text{\eqref{constraint-load12}}
variables: {𝒑iRE,𝒑iG,𝒑iAC,𝒑iET,i𝒩}.\displaystyle\{\bm{p}_{i}^{\text{RE}},\bm{p}_{i}^{\text{G}},\bm{p}_{i}^{\text{AC}},\bm{p}_{i}^{\text{ET}},~{}i\in\mathcal{N}\}.

We see that Problem CEMP jointly solves the optimal internal energy scheduling (of renewable and HVAC load) and the optimal external energy trading for all the users. However, solving CEMP in a centralized manner may cause severe privacy concerns because the users have to reveal all their parameters to the platform. To preserve users’ privacy and enable cooperative energy management, we aim to solve Problem CEMP in a distributed manner in Section IV.

IV ALGORITHM DESIGN

Distributed solutions have been developed in microgrid energy management [3], data center demand response [13], and electric vehicles [14]. In our work, though users are willing to trade energy for benefits, they have the concern of sharing their private data and system parameters with others. Motivated by the need for privacy-preserving, we design a distributed trading algorithm to solve Problem CEMP. In the distributed algorithm, the users optimize their internal energy scheduling of renewable and HVAC load and communicate with others to determine the external energy trading. Therefore, users do not share their private data in the energy-trading process.

First, we employ the alternating direction method of multipliers (ADMM) method [15] to solve Problem CEMP, as ADMM has a good convergence for convex optimization problems with non-strictly convex objective functions. Here, we introduce the auxiliary variables 𝒑^iET={p^i,jET[t],j𝒩\i,t}\hat{\boldsymbol{p}}_{i}^{\text{ET}}{=}\{\hat{p}_{i,j}^{\text{ET}}[t],\forall j\in\mathcal{N}\backslash i,\forall t\in\mathcal{H}\} for energy trading decisions of user ii, and thus rewrite constraint (7) to its equivalent constraints

p^i,jET[t]=pi,jET[t],j𝒩\i,i𝒩,t,\displaystyle\hat{p}_{i,j}^{\text{ET}}[t]=p_{i,j}^{\text{ET}}[t],~{}\forall j\in\mathcal{N}\backslash i,~{}\forall i\in\mathcal{N},~{}\forall t\in\mathcal{H}, (12)
p^i,jET[t]+p^j,iET[t]=0,j𝒩\i,i𝒩,t.\displaystyle\hat{p}_{i,j}^{\text{ET}}[t]+\hat{p}_{j,i}^{\text{ET}}[t]=0,~{}\forall j\in\mathcal{N}\backslash i,~{}\forall i\in\mathcal{N},~{}\forall t\in\mathcal{H}. (13)

To solve Problem CEMP, we decompose it into a lower-level problem and an higher-level problem. To facilitate the decomposition, we introduce dual variables 𝝀={𝝀i,i𝒩}\boldsymbol{\lambda}=\{\bm{\lambda}_{i},~{}\forall i\in\mathcal{N}\} where 𝝀i={λi,j[t],j𝒩\i,t}\bm{\lambda}_{i}=\{\lambda_{i,j}[t],~{}\forall j\in\mathcal{N}\backslash i,~{}t\in\mathcal{H}\} for constraints (12). We then obtain the augmented Lagrangian for Problem CEMP as

L=i𝒩[CiO(𝒑iG,\displaystyle L=\sum_{i\in\mathcal{N}}\big{[}C_{i}^{\text{O}}(\bm{p}_{i}^{\text{G}}, 𝒑iAC)+CiET(𝒑iET)]\displaystyle\bm{p}_{i}^{\text{AC}})+C_{i}^{\text{ET}}(\bm{p}_{i}^{\text{ET}})\big{]}
+i𝒩\displaystyle+\sum_{i\in\mathcal{N}} j𝒩\it[ρ2(p^i,jET[t]pi,jET[t])2\displaystyle\sum_{j\in\mathcal{N}\backslash i}\sum_{t\in\mathcal{H}}\Big{[}\frac{\rho}{2}\left(\hat{p}_{i,j}^{\text{ET}}[t]-p_{i,j}^{\text{ET}}[t]\right)^{2}
+λi,j[t](p^i,jET[t]pi,jET[t])],\displaystyle+\lambda_{i,j}[t](\hat{p}_{i,j}^{\text{ET}}[t]-p_{i,j}^{\text{ET}}[t])\Big{]},

where ρ>0\rho>0 is a coefficient for the quadratic penalty of constraint (12).

Next, we split the optimization of CEMP into a lower-level problem and an higher-level problem. In the lower-level problem, users minimize their own operating costs in parallel when the dual variables 𝝀\boldsymbol{\lambda} and auxiliary variables {𝒑^iET,i𝒩}\{\boldsymbol{\hat{p}}_{i}^{\text{ET}},\forall i{\in}\mathcal{N}\} are given. The higher-level problem updates the auxiliary variables and dual variables based on the trading decisions submitted by users {𝒑iET,i𝒩}\{\boldsymbol{p}_{i}^{\text{ET}},\forall i{\in}\mathcal{N}\}. The trading algorithm iterates between the lower-level problem and the higher-level problem until it converges to the optimal solution.

Specifically, in the lower-level problem, given the dual variables λi,j[t]\lambda_{i,j}[t] and auxiliary variables {p^i,jET[t],j𝒩\i}\{\hat{p}_{i,j}^{\text{ET}}[t],j{\in}\mathcal{N}\backslash i\}, user ii solves the following optimization problem:

LLP1i: Lower-level problem of CEMP.

min\displaystyle\min CiO(𝒑iG,𝒑iAC)+CiET(𝒑iET)\displaystyle C_{i}^{\text{O}}(\bm{p}_{i}^{\text{G}},\bm{p}_{i}^{\text{AC}})+C_{i}^{\text{ET}}(\boldsymbol{p}_{i}^{\text{ET}})
+j𝒩\it[ρ2(p^i,jET[t]pi,jET[t])2λi,j[t]pi,jET[t]]\displaystyle{+}\sum_{j\in\mathcal{N}\backslash i}\sum_{t\in\mathcal{H}}\left[\frac{\rho}{2}\left(\hat{p}_{i,j}^{\text{ET}}[t]{-}p_{i,j}^{\text{ET}}[t]\right)^{2}-\lambda_{i,j}[t]p_{i,j}^{\text{ET}}[t]\right]
subject to (1)(2),(4),(6),(10)\displaystyle\text{\eqref{constraint-load5}}-\text{\eqref{constraint-load6}},~{}\text{\eqref{constraint-load1}},~{}\text{\eqref{constraint-load2}},~{}\text{\eqref{constraint-load12}}
variables: {𝒑iRE,𝒑iG,𝒑iAC,𝒑iET}.\displaystyle\{\bm{p}_{i}^{\text{RE}},\bm{p}_{i}^{\text{G}},\bm{p}_{i}^{\text{AC}},\bm{p}_{i}^{\text{ET}}\}.

By solving LLP1, user ii obtains the energy trading decision 𝒑iET\bm{p}_{i}^{\text{ET}} and sends to the higher-level problem for the iteration.

The higher-level problem solves the dual variables 𝝀\boldsymbol{\lambda} and auxiliary variables 𝒑^iET\boldsymbol{\hat{p}}_{i}^{\text{ET}} for all users i𝒩i\in\mathcal{N}. The higher-level problem of CEMP is formulated as follows:

HLP1: higher-level problem of CEMP

min\displaystyle\min i𝒩j𝒩\it[ρ2(p^i,jET[t]pi,jET[t])2+λi,j[t]p^i,jET[t]]\displaystyle\sum_{i\in\mathcal{N}}\sum_{j\in\mathcal{N}\backslash i}\sum_{t\in\mathcal{H}}\left[\frac{\rho}{2}\left(\hat{p}_{i,j}^{\text{ET}}[t]{-}p_{i,j}^{\text{ET}}[t]\right)^{2}{+}\lambda_{i,j}[t]\hat{p}_{i,j}^{\text{ET}}[t]\right]
subject to (13)
variables: {𝒑^iET,i𝒩},\displaystyle\{\hat{\bm{p}}_{i}^{\text{ET}},~{}i\in\mathcal{N}\},

and solving HLP1 yields the optimal auxiliary variables

p^i,jET[t]=p^j,iET[t]=ρ(pi,jET[t]pj,iET[t])(λi,j[t]λj,i[t])2ρ,\displaystyle\begin{split}&\hat{p}_{i,j}^{\text{ET}}[t]{=}{-}\hat{p}_{j,i}^{\text{ET}}[t]=\frac{\rho\left(p_{i,j}^{\text{ET}}[t]{-}p_{j,i}^{\text{ET}}[t]\right)-\left(\lambda_{i,j}[t]-\lambda_{j,i}[t]\right)}{2\rho},\end{split} (14)

and the update rule for the dual variables as

λi,j[t+1]=λi,j[t]+ρ(p^i,jET[t]pi,jET[t]).\displaystyle\lambda_{i,j}[t+1]=\lambda_{i,j}[t]+\rho\left(\hat{p}_{i,j}^{\text{ET}}[t]-p_{i,j}^{\text{ET}}[t]\right). (15)
Initialization: Index k1k{\leftarrow}1, tolerance ϵ0.1\epsilon{\leftarrow}0.1, stepsize ρ(0)1\rho(0){\leftarrow}1, multipliers 𝝀𝟎\boldsymbol{\lambda}{\leftarrow}\boldsymbol{0};
while i𝒩𝐩^iET(k)𝐩iET(k)>ϵ\sum_{i\in\mathcal{N}}\parallel\bm{\hat{p}}_{i}^{\mathrm{ET}}(k)-\bm{p}_{i}^{\mathrm{ET}}(k)\parallel>\epsilon do
       ¬\neg for i𝒩i\in\mathcal{N} do
             ¬\neg User ii solves Problem LLP1i based on 𝒑^iET(k1)\hat{\bm{p}}_{i}^{\text{ET}}(k-1) and 𝝀i(k1)\bm{\lambda}_{i}(k-1);
            ¬\neg User ii sends the energy-trading decisions 𝒑iET(k)\bm{p}_{i}^{\text{ET}}(k) to Problem HLP1;
       end for
      
      ¬\neg HLP1 updates 𝒑^iET(k),i𝒩\bm{\hat{p}}_{i}^{\text{ET}}(k),\forall i\in\mathcal{N} and 𝝀(k)\bm{\lambda}(k) according to (14) and (15);
      ¬\neg Update the iteration index kk+1k\leftarrow k+1;
end while
Results:Optimal HAVC management and energy trading schedule, i.e., 𝒑iRE,\bm{p}_{i}^{\text{RE},\ast}, 𝒑iG,\bm{p}_{i}^{\text{G},\ast}, 𝒑iAC,\bm{p}_{i}^{\text{AC},\ast}, 𝒑iET,\bm{p}_{i}^{\text{ET},\ast}.
Algorithm 1 Distributed transactive energy trading

We present the distributed transactive energy algorithm in Algorithm 1. Specifically, the algorithm solves the higher-level and lower-level problems for Problem CEMP in an iterative fashion. Each user determines the internal energy scheduling and external energy trading in Problem LLP1i without sharing any private data. Instead, each user only needs to report its trading demand to the higher-level problem. The higher-level problem receives all the users’ trading decisions to update the auxiliary and dual variables in (14) and (15). Then the higher-level problem broadcasts the updated information to all the users. According to [15], our developed distributed algorithm (i.e., representing the higher-level and lower-level problems) converges to the optimal solution of Problem CEMP when we choose the stepsize ρ(k)=1/k\rho(k)=1/k, in which kk denotes the number of iteration.

Refer to caption
Figure 2: The optimal energy scheduling of 1010 users for (a) renewable energy supply, (b) energy drawn from the grid, (c) energy consumed by HVAC over one week.

V SIMULATION RESULTS

In this section, we evaluate the cooperative HAVC energy management platform by extensive numerical simulations with real data of renewable generation [16] and load [17]. The simulation data include users’ daily electricity usage, renewable energy generation (e.g., rooftop solar panels and wind turbines), and outdoor temperature during September 6-12, 2016. To validate the energy trading algorithm developed in Section IV, we simulate a group of 10 users and each user has a HVAC unit and local renewable generation.

V-1 Algorithm Convergence

We firstly evaluate the performance of the distributed optimization algorithm in Section IV with 10 users. The convergence error of the distributed trading algorithms is defined as the sum of the absolute deviation between the actual trading decisions (i.e., 𝒑iET\bm{p}_{i}^{\mathrm{ET}}) and auxiliary decisions (i.e., 𝒑^iET\bm{\hat{p}}_{i}^{\mathrm{ET}}) as in Algorithm 1. We set the threshold for the convergence error to be 1×1061\times 10^{-6}. We plot the error with respect to the number of iterations in Fig. 3, and we see that Algorithm 1 converges at iteration 26. The result show that the proposed distributed trading algorithm converges fast in practice with real-world data, which is of practical importance.

Refer to caption
Figure 3: The convergence speed of the distributed optimization algorithm for Problem CEMP. We simulate 1010 users whose power usage and smart house parameters are collected from real-world data. The convergence error of the algorithm is defined in Algorithm 1, and the stop threshold is 1×1061\times 10^{-6}.

V-2 Power Scheduling in Energy Trading Scenario

Secondly, we show the optimized hourly day-ahead energy scheduling of 10 users over one week in Fig. 2 in the cooperative scenario. The decisions of users include, as shown in Fig. 2, (a) renewable energy supply, (b) the power purchased from the grid, and (c) the HVAC energy consumption of users. We see in Fig. 2 (a) that users try to utilize their renewable energy generations despite the different capacities and generations of solar energy and wind energy. In Fig. 2 (b), the power purchased from the grid shows a complementary pattern with the renewable power supply, as the users try to reduce the dependence on the grid and thus reduce their costs. As depicted in Fig. 2 (c), the scheduled HVAC load varies with the temperature change to keep the indoor temperature within the comfort zones.

Refer to caption
Figure 4: The optimal energy trading of 1010 users over one week: (a) the total amount of energy traded per hour for all users, (b) energy trading of user #3, and (c) energy trading of user #6. Note that the positive value denotes energy purchase and the negative value denotes energy selling.
Refer to caption
Figure 5: Comparison of the grid-purchased power between the non-cooperative and cooperative energy management for (a) user #3 and (b) user #6 over one-week time. We compare the non-cooperative scenario (blue) and the cooperative scenario (red) in each subplot.

V-3 Energy Trading Performance

We plot the hourly energy trading decisions of all the 10 users over one week in Fig. 4 (a). We see active energy trading among users throughout the whole week, in which positive values denote energy purchase, and negative values denote energy selling. Furthermore, we take user #3 and user #6 as an example to show the different trading patterns of different types of users in Fig. 4 (b) and (c). User #3 is energy self-sustained and thus sells a lot of energy to other users including user #6. By contrast, user #6 is in short of local energy in the daytime and thus often purchases energy from other users. It is demonstrated that our cooperative energy management platform provides an effective platform for users to interact and trade energy for mutual benefits. We compare the gird-purchased power of user #3 and user #6 as an example to show the effects of energy trading. As shown in Fig. 5, both the users’ grid power consumption, particularly the peak power consumption, is effectively reduced in the cooperative scenario compared with that of the non-cooperative scenario.

Refer to caption
Figure 6: The costs of the ten users in the one-week simulation time. For each user, we compare its costs of non-cooperative energy management scenario (orange bar) and cooperative energy management scenario (purple bar). The numbers above the bars show the cost reduction rate for all the users.

V-4 Energy Cost Reduction

To evaluate the benefits for users to join the cooperative energy management platform, we compare each user’s cost with and without energy trading. As depicted in Fig. 6, the orange bars indicate the costs of all users if they manage their power usage via Problem EMP in the non-cooperative scenario. The purple bars indicate the users’ costs in the cooperative scenario according to Problem CEMP. Comparing the costs in both scenarios, we see that all the users reduce their costs directly with energy trading. We annotate the percentage of cost reduction between the non-cooperative and cooperative scenarios above the bars. It is shown that all users’ costs are reduced, and the reduction rates range from 15% to 50%, and the total cost of the system including all the users is reduced by 23%.

VI CONCLUSION AND FUTURE WORK

This paper presented a cooperative energy management platform that enables residential users to trade energy with each other to improve the efficiency of their HVAC energy management. We designed a distributed energy trading algorithm that well preserves users’ privacy and encourages users to trade energy to reduce energy costs. We evaluated the distributed energy trading algorithm by extensive simulations using realistic data trace. Simulation results showed that the trading algorithm reduced the costs for all the users ranging from 15% up to 50%, and reduced the system cost (defined as the overall cost of all the users) by 23%. During the research of this work, we found that the proposed distributed trading algorithm well matches the structure of blockchain. In our future, we will explore to integrate blockchain technology with cooperative energy management.

References

  • [1] “Annual energy outlook 2016 with projections to 2040,” Technical Report, US Energy Information Administration, 2016.
  • [2] W. Tushar, B. Chai et al., “Three-party energy management with distributed energy resources in smart grid,” vol. 62, no. 4, pp. 2487–2498, 2014.
  • [3] H. Wang and J. Huang, “Incentivizing energy trading for interconnected microgrids,” IEEE Transactions on Smart Grid, vol. 9, no. 4, pp. 2647–2657, 2018.
  • [4] M. Fukuta, K. Matsui, M. Ito, and H. Nishi, “Proposal for home energy management system to survey individual thermal comfort range for hvac control with little contribution from users,” in Proc. IEEE INDIN ’15, Cambridge, UK, July 2015, pp. 658–663.
  • [5] A. Kusiak, M. Li, and F. Tang, “Modeling and optimization of hvac energy consumption,” Elsevier Appl. Energy, vol. 87, no. 10, pp. 3092–3102, 2010.
  • [6] K. F. Fong, V. I. Hanby, and T.-T. Chow, “System optimization for hvac energy management using the robust evolutionary algorithm,” Elsevier Appl. Therm. Eng., vol. 29, no. 11-12, pp. 2327–2334, 2009.
  • [7] H. T. Nguyen, D. T. Nguyen, and L. B. Le, “Energy management for households with solar assisted thermal load considering renewable energy and price uncertainty,” IEEE Trans. Smart Grid, vol. 6, no. 1, pp. 301–314, 2014.
  • [8] A. C. Luna et al., “Cooperative energy management for a cluster of households prosumers,” IEEE Trans. Consum. Electron., vol. 62, no. 3, pp. 235–242, 2016.
  • [9] J. Lian et al., “Transactive system, part I: Theoretical underpinnings of payoff functions, control decisions, information privacy, and solution concepts,” Pacific Northwest National Laboratory, Tech. Rep. PNNL-27235, December 2017. [Online]. Available: https://www.pnnl.gov/main/publications/external/technical_reports/PNNL-27235Part1.pdf
  • [10] G. Eibl and D. Engel, “Influence of data granularity on smart meter privacy,” IEEE Trans. Smart Grid, vol. 6, no. 2, pp. 930–939, 2014.
  • [11] R. Jia, R. Dong et al., “Privacy-enhanced architecture for occupancy-based hvac control,” in Proc. ACM/IEEE ICCPS ’17.   Pittsburgh, PA, USA: IEEE, April 2017, pp. 177–186.
  • [12] S. Cui, Y.-W. Wang, and J.-W. Xiao, “Peer-to-peer energy sharing among smart energy buildings by distributed transaction,” IEEE Trans. Smart Grid, vol. 10, no. 6, pp. 6491–6501, 2019.
  • [13] H. Wang and Z. Ye, “Renewable energy-aware demand response for distributed data centers in smart grid,” in 2016 IEEE Green Energy and Systems Conference (IGSEC).   IEEE, 2016, pp. 1–8.
  • [14] J. Rivera, C. Goebel, and H.-A. Jacobsen, “Distributed convex optimization for electric vehicle aggregators,” IEEE Transactions on Smart Grid, vol. 8, no. 4, pp. 1852–1863, 2016.
  • [15] S. Boyd et al., “Distributed optimization and statistical learning via the alternating direction method of multipliers,” Found. Trends Mach. Learn., vol. 3, no. 1, pp. 1–122, 2011.
  • [16] H. Wang, “Microgrid generation planning considering renewable energy target,” in 2016 IEEE International Conference on Power and Energy (PECon).   IEEE, 2016, pp. 356–360.
  • [17] Energy Research, Website, Pecan Street Inc., accessed on 1 Oct. 2019. [Online]. Available: https://www.pecanstreet.org/dataport/