You are on page 1of 13

Journal of Cleaner Production 218 (2019) 315e327

Contents lists available at ScienceDirect

Journal of Cleaner Production


journal homepage: www.elsevier.com/locate/jclepro

Model predictive control of commercial buildings in demand response


programs in the presence of thermal storage
Yan Cao a, *, Jiang Du a, Ehsan Soleymanzadeh b
a
School of Mechatronic Engineering and Shaanxi Key Laboratory of Non-Traditional Machining, Xi'an Technological University, Xi'an, 710021, China
b
Faculty of Electrical and Computer Engineering, University of Tabriz, Tabriz, Iran

a r t i c l e i n f o a b s t r a c t

Article history: The flexibility of buildings in Building-to-Grid (B2G) systems has led to the participation of buildings as
Received 28 July 2018 one of the largest energy consumers in energy management and moving towards clean, reliable and
Received in revised form sustainable energy systems. The development of appropriate frameworks for B2G requires appropriate
30 December 2018
control strategies for the active participation of buildings in these services. These frameworks require the
Accepted 23 January 2019
Available online 31 January 2019
demand side management (DSM) and participation in demand response (DR) programs that can increase
the flexibility of the building, reduce operating costs, and reduce the need for capacity development in
energy networks. A significant part of the energy cost of commercial buildings is related to the demand
Keywords:
Demand-side management
charge. As a result, commercial buildings to reduce this cost should reduce the peak demand or the
Demand charge length of the period of this peak demand. To do this, commercial buildings require operational flexibility
Thermal energy storage to change their operating schedule. In this paper, a multi-level demand charge, along with a real time
MPC pricing (RTP) program and incentivize signals for the participation of thermal energy storage (TES) in-
tegrated commercial buildings in DR programs, has been used to examine building performance in the
presence of these complex pricing schemes. In this regard, a model predictive control (MPC) strategy has
been developed to optimize the performance of the building and to benefit from the operational flexi-
bility of the TES. The results showed that the existence TES in a commercial building leads to more
flexibility for partaking in DR programs, and so a reduction in energy costs and demand charge besides
maintaining occupants comfort level.
© 2019 Published by Elsevier Ltd.

1. Introduction DR programs (Chen et al., 2018). Integrating ESS into commercial


buildings to manage their energy use and partaking in B2G systems
Nowadays, despite the many disparities people have in different while maintaining thermal comfort requires a well-designed
areas so far as ones opinion goes, one point that almost everybody modeling framework. In order to achieve a proper control strat-
agrees upon is the importance of energy. This is owing to the fact egy, the development of dynamic models requires the development
that energy is an indispensable part of peoples life. About 40% of the of a cost effective solution with low computational time
world's energy consumption is related to buildings, and buildings (Mohammadi et al., 2017).
are responsible for a third of CO2 emissions (Ryzhov et al., 2019). The MPC is an appropriate control model that has proven to be
Heating, Ventilation and Air Conditioning Systems (HVACs) are one effective on many energy systems (Afram and Janabi-Sharifi, 2014).
of the largest consumers of energy in commercial buildings (about This method was first applied on thermal storage system with a
40% (Capros et al., 2013)), however, these systems can be controlled chiller and tank by the reference (Henze et al., 1997) in 1997, and
and proper control of them could allow building partnerships in DR the results indicated that under the dynamic pricing conditions for
programs. The use of energy storage systems (ESSs) alongside these energy, the MPC method has better performance than conventional
systems is another promising solution to increase the energy effi- control methods. MPC was used in (Razmara et al., 2017) to control
ciency of buildings and increase their flexibility in participating in the operation of a commercial building in DR programs for bi-
directional power flow with the main grid in the presence of ESS.
The results of this study showed that applying MPC resulted in a
* Corresponding author. reduction in buildings operating cost and also an improvement of
E-mail address: yan.caoxi@gmail.com (Y. Cao). power grid performance by utilizing the flexibility of the HVAC

https://doi.org/10.1016/j.jclepro.2019.01.266
0959-6526/© 2019 Published by Elsevier Ltd.
316 Y. Cao et al. / Journal of Cleaner Production 218 (2019) 315e327

system. An MPC-based control framework for a building with range. The results showed that the use of MPC strategy could
chilled water tank was suggested in (Kim, 2013) to minimize the reduce the energy consumption and demand of the HVAC system
operating costs. Discretization of the operation interval in various compared to the traditional control method based on the
limited operation intervals led to the development of a specific thermostat.
model for each operation range and finally an 8% cost reduction Many of the work done on optimizing the energy system is
compared to a storage priority control. A hierarchical MPC was aimed at minimizing energy costs. Although cost optimization is an
developed in (Touretzky and Baldea, 2014) to track the indoor important factor in energy, this factor can ignore the level of
temperature and the operating modes in modifying the cooling comfort and satisfaction of consumers and lead to consumer
system variables for a building with a chilled water thermal storage dissatisfaction (Yousefi et al., 2017). Occupants comfort is one of the
to ensure acceptable thermal comfort. Similar structures can also key factors in B2G implementation, as a large part of energy con-
be found in (Touretzky and Baldea, 2016; Fiorentini et al., 2017). sumption in buildings is related to people's activities, such as the
MPC has been used in many ways to control various energy use of electrical equipment, ventilation and lighting. Energy con-
systems, due to the ability of this method to minimize energy costs sumption in the building is influenced by the occupants activities
and take into account the occupants comfort. This controller has and the level of welfare they desire, and in total, they determine the
the ability to control many of the building equipment, such as energy consumption and peak demand of the building. Therefore,
HVACs, water heaters, pumps, and other controllable loads, so that any change in this pattern of consumption should be based on
their load can be shifted for DSM goals. The advantages of this satisfaction and welfare of occupants to not affect their daily ac-
approach to the classic control methods are the ability to consider tivities. An MPC methodology has been developed in (Razmara
system constraints and dynamics and future predictions of the et al., 2017) to optimize the performance of a commercial build-
system variables. An overview of the various methods of modeling ing energy system in the presence of DR programs, in a way that
and controlling HVAC systems and examining the benefits, chal- does not change much in the comfort of consumers. In this work,
lenges and barriers to their practical application can be found in with the consideration of PV and a battery, with optimization in
(Afroz et al., 2018). A review with more focus on the MPC method two deterministic and probabilistic modes, the efficiency of the
can be found in (Afram and Janabi-Sharifi, 2014). A comprehensive proposed model has been proven in reducing energy costs and load
overview of the application of the MPC method to control energy ramp rate. The performance of a phase-change material energy
building systems in the presence of ESS can also be found in exchanger in residential, service, and commercial buildings using
(Thieblemont et al., 2017). The evaluations of this study showed the MPC strategy has been investigated in (Gholamibozanjani et al.,
that among the methods used to control the building energy sys- 2018) to minimize the energy cost of building, taking into account
tem, MPC has had the best results reported in the literature the optimal temperature for consumers. However, in this study, the
regarding reducing energy costs and peak demand, and maintain- potential of these buildings for participation in DR programs has
ing thermal comfort. not been studied. Performance of modern HVAC systems compared
MPC-based models not only can minimize energy consumption, to a conventional ventilation system in a building under various
but can also reduce the peak demand of a building that can weather conditions in Moscow, with the goal of minimizing energy
dramatically reduce the total operating cost of a building (Ma et al., costs and maintaining consumer comfort, taking into account the
2012). The performance of the MPC method has been tested in physical parameters of the building, the uncertainty and prediction
(Mirakhorli and Dong, 2018a) to control the energy system of a horizon was investigated in (Ryzhov et al., 2019). The results
residential building, taking into account price signals, modeling showed that the use of MPC could reduce the peak demand through
power consumer equipment along with electrical storage and pre-heating and pre-cooling the building during off-peak hours, in
consumer behavior with the goal of minimizing energy costs. In addition to reducing building costs, resulting in maintaining indoor
this study, centralized and decentralized controls were investigated temperature and reducing the effects of harsh weather condition.
in the presence of various price signals, and the results showed that DR was not considered in this study. A multi-objective optimization
the use of MPC could lead to significant energy savings, which could framework was provided in (Gomez-Herrera and Anjos, 2018) for
be up to 40% in the presence of the battery. The authors in a considering energy costs and occupants comfort in residential
comprehensive study (Blum et al., 2019) identified the factors buildings and benefiting from their participation in incentive-based
affecting the accuracy and performance of MPC-based models and DR programs considering the battery as an energy storage system. A
examined the impact of practical problems on the use of MPC in planning and operation model has been developed that can opti-
building energy systems. Using a gray-box model for a single zone mize building performance in order to reduce energy costs and
building, the impact of items such as building specifications, model peak demand. The authors in (Mirakhorli and Dong, 2018b) used
design, input data sets, data quality and availability, model order, the MPC strategy for integrated management of a large number of
developed algorithm and simulation software have been studied on residential buildings in the distribution network to provide B2G
the modeling process and its results. The results of this study services to reduce energy and peak demand and improve network
showed that among these effective factors, model structure and sustainability. This model is capable of controlling building energy
data quality have the greatest impact on the accuracy and modeling equipment such as HVAC and ESS, so that in addition to optimal
results. An MPC methodology was developed in (Bianchini et al., controlling of the building energy system, have the ability to
2016) to optimize the performance of heating systems for large participate in an aggregated control to provide ancillary services to
commercial buildings to participate in DR programs based on price the network. A significant part of the energy costs of commercial
signals provided by a collector based on a simple and linear model buildings is related to the demand charge. As a result, commercial
of the building, and the results indicated the robustness of the buildings to reduce this cost should reduce the peak demand or the
proposed method to model uncertainties. However, in this study, length of the period of this demand. To do this, commercial
the flexibility offered by ESS has not been investigated. The coop- buildings require operational flexibility that can change their
eration of roof top units for cooling and heating small and medium- operating schedule to reduce costs. The study in (Braun, 2003) on
sized commercial buildings was investigated in (Kim and Braun, the effect of using MPC to reduce peak demand showed a decrease
2018) using the MPC method in a real long-term demonstration. of about 35% compared with traditional control systems. A com-
The model has been developed with the aim of minimizing energy parison of MPC performance in the presence of various price signals
costs, peak demand and deviating from the comfort temperature including constant and time of usage (TOU) pricing in (Oldewurtel
Y. Cao et al. / Journal of Cleaner Production 218 (2019) 315e327 317

et al., 2010) indicated that peak demand was reduced in terms of of this paper can be summarized as follows:
using TOU scheme. A similar result was reported for large buildings
considering the battery as an energy storage system (Oldewurtel  To develop an MPC strategy to optimize the performance of
et al., 2011). The demand charge was considered as the objective commercial buildings by considering DR and TES with the goal
function in (Hajiah and Krarti, 2012a, 2012b) and the results indi- of minimizing energy costs, demand charge and maintaining the
cated a significant reduction in peak demand in a building equipped occupants comfort.
with ice storage and the use of the MPC strategy. The results of  Considering a multi-level demand charge program and its
these studies showed that the use of MPC in storage facilities could impact on the performance of TES-integrated commercial
lead to a reduction in peak demand. A two-level optimization buildings in the presence of RTP-based DR programs.
model for controlling TES with high control, and chiller with low-  Discussing the importance of considering demand charge in
control has been developed in (Deng et al., 2015) so that at the modeling, and examining the effect of demand charge on
high level the TES function is optimized by using the demand for building consumption curves and costs, including energy and
cooling and electricity prices, and the results of this optimized DR costs.
performance used by MPC to optimize chiller performance. A  Modeling the uncertainty of electrical and cooling demands and
similar model was developed in (Ioli et al., 2016) for an MPC-based considering actual modeling for equipment such as actual and
two-level optimization for storage-integrated buildings to optimize time-variable curves for the coefficient of performance (COP) of
the building temperature and tank storage performance. The au- chillers.
thors in (Zhang and Augenbroe, 2018) presented a planning and  Perform sensitivity analysis on unmet load values on system
operation optimization model for minimizing NPC and operating costs to demonstrate the importance of thermal comfort in the
costs for a variety of commercial buildings. In this paper, demand proposed model.
charge along with DR programs is intended to evaluate the flexi-
bility of commercial buildings in response to these programs, but The remainder of this study is organized as follows. Section 2
the role of ESS has been ignored to increase this flexibility. introduces the methodology and system model, including phys-
The demand charge represents a penalty for large consumers in ical modeling of building components. Section 3 devoted to opti-
the power system. Today, with the development of technology and mization problem and control method, including different pricing
the increase in the number of power consumer equipment and the signals and MPC for TES and chillers. Section 4 presents numerical
unprecedented growth of the size of commercial buildings, despite results of simulation on a real commercial building and discussions.
the improvement in energy efficiency, peak demand for these Finally, section 5 concludes this paper.
buildings can be increased by increasing size. By increasing this
peak demand, the amount of power provided by the network 2. Model description
should also be increased, which means more investment in the
network infrastructures. The demand charge is considered for The peak demand usually occurs during hot days of the year
sharing large power customers at these costs. This charge is when the air conditioner systems of residential and commercial
considered as the cost of paying for the maximum power con- buildings are active, as a result of which, thermal loads have a high
sumption in kW in a given period (such as a month or even in potential for partaking in DR programs. However, controlling these
certain periods of a day) for consumers whose power in kW exceeds loads by system operators may reduce the welfare of the consumers
a threshold value. To reduce the peak demand in buildings, various during hot days. The TES can reduce the risk of loss of the desired
ways have been considered in literature so that they can be cate- level of welfare for consumers and increase the probability of a
gorized as methods for increasing energy efficiency, peak shaving, successful and efficient consumer participation in DR programs. A
load shifting, or application of local distributed energy sources typical TES consists of an isolated tank and a chiller that is filled
(DERs). All of these can increase the flexibility of the building in with ice or cold water. Cold water and ice are usually produced and
response to network conditions. This flexibility is defined as the stored during periods with low electricity prices and used to pro-
ability of consumers to revise energy consumption patterns vide thermal loads during periods with high electricity prices.
without disturbances in their performance and receiving services. Because of reducing maximum load demand during peak hours,
In general, energy flexibility and demand charge have a reverse this load shift is very valuable to the energy system operator.
relationship. Building management systems often use solutions In this section, mathematical equations of the proposed model
such as the use of ESS, local DGs, DSM, and occupational behavioral for the optimal performance of the building as an energy system are
features to increase the flexibility of building, which can also affect presented. This model has been applied to a commercial building in
the demand charge. Therefore, from a point of view, demand charge New York City (Consolidated edison company of new york, 2016),
can be considered as a penalty for buildings without energy flexi- and the real DR programs has been obtained from (Kim, 2012).
bility. Therefore, it can be said that paying attention to reducing Physical models (considering a base model on reference (Henze
demand charge can lead to reduced investments and strategies to et al., 1997)) have been developed for considering second chiller,
increase the flexibility of the building and increase its efficiency for chiller ramp limitations, time varying COPs, and heat exchanger
active participation in smart grids. All of the above mentioned and storage efficiencies. The final model is a multi-Input multi-
research have so far ignored the demand charge survey and did not output (MIMO) system with time-varying dynamics. The variable k
address the impact of demand charge on the operation of TES- represents the index in the set t ¼ f0; …; N  1g, where N ¼ T=t is
integrated buildings in the presence of DR programs. In this pa- the number of time steps with the intervals equal to tðhÞ in the time
per, we discuss the increasing flexibility of commercial buildings in horizon T which is 24 h x1 ðkÞ is the charge level of ice tank (kWh)
the presence of TES to participate in DR programs, taking into ac- with maximum amount of x1 ðkÞ and x2 ðkÞ is the thermal demand
count the demand charge. To the best of our knowledge, there has from the previous time steps. The amount of x2 ðkÞ can be negative,
been no research in the literature that considers all of these items in as an example when the building is precooled during previous
a building energy system optimization model. Considering demand night. These two are state variables of the system state. u1 ðkÞ, u2 ðkÞ
charge develop the conventional DR concept, which is based on and u3 ðkÞ are the power consumed for producing ice (kW), the
sending incentive signals in high-priced situations or the occur- share of the demand which is supplied by ice tank and the power
rence of an event in the network. Therefore, the main contributions consumption of the main chiller (kW), respectively. These three
318 Y. Cao et al. / Journal of Cleaner Production 218 (2019) 315e327

variables are control variables which their values in each step are modeled and solved by applying MPC method. Several price signals
determined by the optimization problem. For each i which have been considered to encourage the consumers for participating
i2f1; 2; 3g, the maximum operating point is defined as ui  0 and in DR programs. The conventional methods for controlling the
the maximum ramp as Dui . In order to apply the ramp variable energy systems of the building with TES are methods such as
constraints the uðk  1Þ added as another state variable as equation storage priority, chiller function priority or relatively stable control.
(1). However, such methods are effective in energy systems with TOU
electricity price, but the effective operation of these methods in
h iT
XðkÞ ¼ x1 ðkÞ; x2 ðkÞ; uðk  1ÞT (1) more complex pricing systems is still under question. Control-
based optimization methods have a better performance in
Therefore, the state constraints as xðkÞ2c ¼ ½0; x1   R4 and balancing between competitive incentives such as multi-level de-
control constraints as uðkÞ2UðXðkÞÞ are defined based on equation mand charge, revenues from DR programs and customers comfort
(2). level. In this paper, a convex optimization framework for predictive
n    control model of the thermal storage system is proposed taking into
  
UðXðkÞÞ ¼ u2R3 ui 2½0; ui ; ui  xiþ2 ðkÞ  Dui (2) account the multi-level demand charge program and DR price
signals.
By considering ce ðkÞ as energy price and
xðkÞ is state and uðkÞ is control input. XðkÞ and UðkÞ define the
pðkÞ ¼ u1 ðkÞ þ u3 ðkÞ þ w2 ðkÞ as the total power demand, the energy
constraints of state and control values, respectively. w1 ðkÞ is the
cost is defined as equation (7).
thermal load of the building and kWðthÞ and w2 ðkÞ are the other
electrical loads (lighting, plug loads, etc). In this study thermal load
and other electrical loads are assumed as joint normal distribution ge ðk; uðkÞ; wðkÞÞ ¼ ce ðkÞpðkÞDt (7)
as equations (3) and (4). The presented model consider the pa-
Energy prices for each hour (ce ðkÞ) are announced at 16 p.m. the
rameters of the distribution from which the buildings load is
day before, so the energy price for 24 h of simulation are deter-
sampled. The building's load is considered as a Gaussian distribu-
ministic. For i2f1; 2; 3g is assumed that ti ⊆t is the set of steps
tion which its mean value equal to the actual value of the load from
according to the level of the demand charge and pi ðkÞ is the peak
historical data.
demand in the previous step before k as ti ∩f0; …; k  1g. The var-
iable pi ð0Þ is valued based on peak demand in the previous month i,
wðkÞ ¼ ½w1 ðkÞ; w2 ðkÞT (3)
and if k ¼ 0 (the beginning of the month), past data are used for
 valuation. So each pi follows the dynamics and variations described
X 
wðkÞ  N wðkÞ; ðkÞ in equation (8).
h i X (4)
E ðwðjÞ  wðJÞÞðwðkÞ  wðkÞÞT ¼ djk ðkÞ 
maxfpi ðkÞ; pðkÞg k2ti
pi ðk þ 1Þ ¼ (8)
It is also assumed that the building's operator in step 0 is aware pi ðkÞ k;ti
P
of the values for all wðkÞ and ðkÞ. The dynamic system is defined
If it is assumed cd ; ðti Þ  0 is the cost of demand in ti , then the
as equation (5) or can be summarized as (6).
increase in the three-level demand charge between the steps k1
and k2  k1 is equal to equation (9).
x1 ðk þ 1Þ ¼ bx1 ðkÞ þ kice ðkÞu1 ðkÞDt  u2 ðkÞDt=h
x2 ðk þ 1Þ ¼ x2 ðkÞ þ ½w1 ðkÞ  u2 ðkÞ  kmain u3 ðkÞDt (5)
xi ðk þ 1Þ ¼ ui2 ðkÞ; i2f2; 3; 4g   X
3 
k2
gd fuðkÞ; wðkÞg ¼ cd ðti Þ   pi ðk1 Þ
k ¼ k1
i¼1
Xðk þ 1Þ ¼ AXðkÞ þ BðkÞuðkÞ þ GwðkÞ 
(6)
A2R55 ; BðkÞ2R53 andG2R52 þ max pðkÞ (9)
k2ti ∩fk1 ;…;k2 g
Where b2½0; 1 is ice storage efficiency, h2½0; 1 is the heat
exchange efficiency between the building and the tank, kice ðkÞ and In order to prevent overcooling or undercooling, it is possible to
kmain ðkÞ are the COP of the ice chiller and the main chiller respec- impose the exact cooling demand at all stages, but this might make
tively. The time dependence of the chiller coefficients makes these the plans such as pre-cooling impossible. Therefore, in this study, a
coefficients variable with outdoor temperature variations. It is quadratic equation is considered as penalty for the deviation of the
assumed that the building's operator has perfect knowledge of X(k). supplied cooling value from the designed value as equation (10).
Estimation of unmeasured states can be conducted by advanced
methods like the use of a Kalman filter, but it would add an un-
gu ðk; XðkÞÞ ¼ cu ðkÞx2 ðkÞ2 (10)
necessary layer of complexity to this study, while taking focus away
from the key topic of this research (i.e., TES-integrated building Where cu ðkÞ > 0 is the cost of cooling energy not-supplied. The DR
optimization in light of different pricing schemes). The consider- program are considered in energy costs as cost of DR ($=kWh) for
ation of different forecasting scenarios is left for future work. decreasing the demand during the DR periods which are deter-
mined by the operator. The cost of DR can be calculated as equation
(11).
3. Optimization problem and control method
  X
In this paper, participation of the TES-integrated commercial gdr fuðkÞ; wðkÞgk2tdr ¼ cdr Dt ½b
p ðkÞ  pðkÞ (11)
buildings in DR programs is evaluated. A commercial building k2tdr
(including offices) with multi-level demand chatge is studied as
case study and RTP for day ahead is determined by the system Where bp ðkÞ is the base power consumption in step k determined by
operator. A penalty has also been considered for customers that not operator. Daily cost of tank discourage is considered as equation
participate in DR programs. A stochastic optimization problem is (12).
Y. Cao et al. / Journal of Cleaner Production 218 (2019) 315e327 319

4. Simulation results
gt ðXðNÞÞ ¼ ct ðx1 ð0Þ  x1 ðNÞÞþ (12)
In this section, in order to evaluate the model in a real economic
Where the initial mode Xð0Þ is predetermined and adjustable environment, simulation has applied on a commercial building in
parameter. Therefore, the net cost of each step is calculated as New York City following ASHRAE Standard 90.1 (U.s. department of
equation (13). energy, 2016). The hottest day in 2013 in New York City (July 18) is
selected as the simulation horizon. In this simulation, the hours
gk ðxðkÞ; uðkÞ; wðkÞÞ ¼ ge ðk; uðkÞ; wðkÞÞ þ gu ðk; xðkÞÞ (13) between 14 and 18 is considered as DR period for reducing energy
consumption. Energy costs, demand charge and DR are shown in
The input terminal cost is the sum of demand charge, DR cost, Figs. 1e3.
and tank discharge cost as equation (14). Fig. 1 shows DR cost is equal to 3ð$=kWhÞ and the maximum RTP
  of 0.328 ð$=kWhÞ. In the DR mode, which is determined by the
gN xðNÞ; fuðkÞ; wðkÞgk2t ¼ gd fuðkÞ; wðkÞgk2t network operator, if the building partake in the program, it will
 
þ gdr fuðkÞ; wðkÞgk2tdr benefit from the load reduction, or will be penalized if does not
participate in the program. Fig. 2 shows the demand charge values
þ gt ðxðNÞÞ (14) in on-peak, shoulder and off-peak intervals (t1 ; t2 ; t3 respectively).
Basically, the demand charge is the cost for maximum demand. In
As a result, in order to obtain the optimization problem, by
this case t3 3t2 3t1 , therefore, if the maximum demand occurs in
having the initial state Xð0Þ, the expected total cost of a particular
the interval t3 , the cost for the building will be equal to cd ðt1 Þ þ
policy, p ¼ fm0 ; …; mN1 g which uðkÞ ¼ mk ðxðkÞÞ, with its related
cd ðt2 Þ þ cd ðt3 Þ. Fig. 3 shows the under or over cooling price, which
constraints can be minimized as equation (15).

" #
 X
N1
min Jp ðx0 Þ ¼ E gN xðNÞ; fuðkÞ; wðkÞgk2t þ gk ðxðkÞ; uðkÞ; wðkÞÞ
k¼0
s:t: x1 ðk þ 1Þ ¼ bx1 ðkÞ þ kice ðkÞu1 ðkÞDt  u2 ðkÞDt=h (15)
x2 ðk þ 1Þ ¼ x2 ðkÞ þ ½w1 ðkÞ  u2 ðkÞ  kmain u3 ðkÞDt
xi ðk þ 1Þ ¼ ui2 ðkÞ; i2f2; 3; 4g

varies with time, and is at the highest level during the hot-hours of
Where the expected value for all k2t occurs during WðkÞ. And the day except for lunch and residents gathering time. This item is
more compactly, the optimal control problem is defined as equa- for considering the comfort level of consumers and residents of the
tion (16). building, and if the building operator does not have the capacity to
supply the cooling demand, it should pay a penalty for unmet load.
Therefore, in optimization problem, the system operator tries to
min Jp ðx0 Þ minimize this cost to maintain the comfort level. The case study is
s:t: xðk þ 1Þ ¼ AxðkÞ þ BðkÞuðkÞ þ GwðkÞ (16) the “OfficeLarge” prototype, 14,200 m2 office building in New York
xðk þ 1Þ2c City following ASHRAE Standard 90.1e2013 (U.s. department of
At each step, the MPC optimizes the model in such a way that energy, 2016). The physical parameters are given in Table 1.
result in the lowest cost of energy consumption and the highest Outdoor temperature and the COPs of the chillers which is
revenue from participating in the DR programs. MPC policies are changing during day could be seen in Figs. 4 and 5 respectively. The
calculated in each step by an online convex optimization. COP of a chiller is a function of temperature so with increasing

Fig. 1. Energy price and demand-response.


320 Y. Cao et al. / Journal of Cleaner Production 218 (2019) 315e327

Fig. 2. Three-level demand charge plans.

Fig. 3. Penalty for unmet cooling demand.

Table 1
Fixed parameters.

Parameter Symbol Unit Amount

time horizon T hours 24


time step Dt hours 0.5
MPC horizon (number of time steps) H e 48
Storage tank capacity x1 kWhth 1760
Maximum capacity of the ice chiller u1 kW 94
Maximum variation of the ice chiller Du1 kW 70.5
Maximum amount of ice melting in each step u2 kWhth 510
Maximum variation of ice melting in each step Du2 kWhth 510
Maximum capacity of the main chiller u3 kW 73
Maximum variation of the ice chiller Du1 kW 54.75
Depreciation cost of the storage tan ct $\kWth 0.18
Ice maintenance factor b e 0.98
Ice storage output efficiency h e 0.9
Initial peak demand (all hours) p1 ð0Þ kW 200
Initial peak demand (8a.m. 10p.m.) p2 ð0Þ kW 200
Initial peak demand (8a.m. 6 p.m.) p3 ð0Þ kW 200
Initial states ðx1 ð0Þ; x2 ð0ÞÞ kWhth 176.0

temperature the coefficient value decreases as in Fig. 5. methods which are developed based on the probability density
Energy consumption depends on factors like culture, consumers function (PDF) and can be applied in cases where sufficient statis-
behavior, climate condition, and so on. Therefore, the demand for tical data is available. In this study, in order to consider the demand
the future horizons is uncertain and ignoring this uncertainty leads uncertainty, Gaussian distribution for cooling loads and other
to a reduction in model accuracy and unrealistic results. An effec- electrical loads of the building has been developed and by gener-
tive solution for considering uncertainties in models is probabilistic ating random numbers using the probability distribution of the
Y. Cao et al. / Journal of Cleaner Production 218 (2019) 315e327 321

Fig. 4. Outdoor temperature.

Fig. 5. Performance coefficient of the chillers.

historical data, demand for each time step is calculated which can pattern of building energy consumption and the demand during
be seen in Figs. 6 and 7. In this case, the load of a building in each night and in the early morning is equal to this base load. Then, the
step is considered as a PDF with a normal distribution which its amount of load increases to reach a peak at noon or afternoon, and
mean value equal to the actual value of the load from historical data afterward reduces to reach the base load. The charge state of the
and its variance equal to 10% of the mean value. storage tank based on MPC policy and power consumption of the
As can be seen in Figs. 6 and 7, there is a base load in the daily chillers are showed in Figs. 8 and 9 respectively.

Fig. 6. Historical and predicted cooling demand.


322 Y. Cao et al. / Journal of Cleaner Production 218 (2019) 315e327

Fig. 7. Historical and predicted data of the other electrical load demand.

Fig. 8. Storage tank state of charge based on MPC policy.

Fig. 9. Power consumption of the chillers.

By implementing the proposed model, the building can operate supply is minimized during this period and because the chillers fill
during the night hours. About 3 a.m., the main chiller for pre- up the storage tank during low energy price hours and the storage
cooling the building and the ice chiller for filling the ice storage energy are used during peak hours with high energy price, the cost
tank, start working. During the DR period (14e18), both chillers are of energy decrease. Fig. 10 shows the unmet cooling demand which
turned off and the building's cooling demand is provided by is not provided in each time step and transferred to the next step.
melting ice. Therefore, energy consumption for cooling demand The negative values in this figure represent pre-cooling modes.
Y. Cao et al. / Journal of Cleaner Production 218 (2019) 315e327 323

Fig. 10. Unmet cooling demand.

During the night hours, the occupancy or activity level and so realized form this sensitivity analysis (not providing cooling de-
the cooling demand is minimized and the amount of unmet cooling mand during the daytime leads to huge cost for the system).
load is at its highest level. There is no penalty for unmet cooling Figs. 13 and 14 show the effect of the demand charge program
demand during this period, and as a result of which the building's on the performance of the buildings energy system which repre-
operator uses the chillers to produce ice and precooling the sent the power consumption and the costs in the presence of de-
building. The penalty cost of unmet cooling demand can be seen in mand charge programs and without considering it in the objective
Fig. 11. function.
Figs. 10 and 11 reflect the impact of thermal comfort level and its Demand charge program has little impact on the cost of energy
priority on the model. Fully providing the demand leads high cost and unmet cooling demand. In other words, it can be said that the
for the system, on the other hand the system operator must pay a demand charge program does not have much effect on the total
penalty cost for unmet cooling load which is calculated as the dif- energy cost profile, and only changes the pattern of energy con-
ference between the production level and the cooling demand plus sumption which reduces the cost paid for peak demand. On the
storage capacity. The proposed model establishes a balance be- other hand, there is little effect on penalties for unmet cooling
tween the cost of provided cooling load and the penalty cost for demand which means that the program does not influence the
unmet cooling load and offers the lowest cost plan for the building. consumers level of comfort and priority, and the amount of demand
As shown in Fig. 11, within a few hours after 18:00, due to the full shaving leads to a small amount of unmet cooling demand which is
discharge of the storage tank, the maximum penalty for unmet insignificant compared to the cost paid for maximum demand.
cooling load has been paid. With the full discharge of the storage Without including the demand charge program in the objective
tank at these hours, the main chiller is used to provide cooling function, demand costs of the system are approximately doubled.
demand and the ice chiller for ice re-production and increasing the In these figures, it can also be seen that there is a conflict between
charge storage level of the storage tank, and therefore the cost of the DR and demand charge programs. Without demand charge
providing cooling demand increases. A sensitivity analysis for program, the ice tank can be refilled between 10 a.m. and 2 p.m.
showing the effect of different values of unmet cooling demand on and the building can be pre-cooled and with DR program, reduce
the penalty cost has been done and summarized in Fig. 12. The the demand and earn more revenue for the building. Fig. 15 shows
importance of the thermal comfort in the proposed model can be the total power consumption under MPC policy, baseline load and

Fig. 11. Penalty cost of unmet cooling demand.


324 Y. Cao et al. / Journal of Cleaner Production 218 (2019) 315e327

Fig. 12. Penalty profiles for different amounts of unmet cooling loads.

Fig. 13. Load demand profile with/without demand charge program.

Fig. 14. System costs with/without demand charge program.

the case without energy storage. 15 to 17 due to high energy price the main chiller was shut down.
The baseline demand in Fig. 15 represents the power con- However, in this case, the revenue from participation in the DR
sumption without the DR program which the cost of the DR is program is reduced. As seen in Fig. 15, in the system without TES,
considered to be zero, so the incentivize pricing plans are RTP and the demand in off-peak periods is at its lowest amount (12 a.m.e8
three-level demand charge. In the baseline plan, during the hours a.m.). On the contrary, during the day and in the period with
Y. Cao et al. / Journal of Cleaner Production 218 (2019) 315e327 325

Fig. 15. Total energy consumption under different policies.

expensive energy price, due to the increased cooling demand, the decreases the costs and the peak demand.
system operator has to supply these loads and increase energy The results under the DR plan can be seen in Figs. 16 and 17
consumption, and especially peak demand occurs during these which represent the cost of energy consumption and the cost of
hours. In the system equipped with energy storage, the storage tank the DR, respectively. Fig. 16 illustrates the cost of buildings energy
is filled in off-peak periods with lower energy price and the stored consumption without taking into account the building attendance
energy is used during periods with higher energy price which in the DR program. From hour 14 to 18, the building is requested to

Fig. 16. The cost of energy consumption.

Fig. 17. The cost of demand-response in the building's energy system.


326 Y. Cao et al. / Journal of Cleaner Production 218 (2019) 315e327

participate in the DR program and reduce the costs. The building and minimizing payment for maximum demand. Note that the
will receive revenue from the collaboration for reduction in energy three above mentioned conditions, except those mentioned above,
consumption based on Fig. 4. are the same in all other cases, such as meeting the technical re-
If the building increases its energy consumption in this period, it quirements, minimizing the cost of energy and the cost of cooling
will be penalized. In this study, at 15:30, the energy consumption of energy not supplied. A better display of power consumption in
the building in the optimal model is more than its baseline (can be these three scenarios is shown in Fig. 18.
seen in Fig. 15), and at this time the building pays a cost for this The power in each simulation step can be found in Fig. 18 for
increase in consumption but it can be seen that in total, the building three different modes. As shown in Table 2, the sum of the power in
has received significant revenue by participating in the DR program the proposed mode has the lowest value, and its value in the sce-
between hours 14 to 18 (Fig. 17) and this amount of revenue is more nario 2 is higher than the scenario 1. The reason for this is the se-
than the total cost of the buildings energy consumption in this lection of a policy that does not take into account the demand
period. As a result, it can be said that in the DR period, the building charge. In scenario 2, the building operator, in addition to charging
revenues is higher than the cost of energy consumption. Besides, the tank at night, also pre-cools the building and refills the storage
this decrease in demand leads to the peak shaving consumption tank before the DR period by turning on the chillers to attain more
and energy losses in the distribution network. revenue in DR period. Implementation of the chillers during the
The information obtained from the above figures is summarized mid-hours of the day, with the highest energy costs and demand
in Table 2. In this table power consumption has been investigated in charge, in addition to increasing power consumption, leads to a
three scenario. dramatic increase in operating costs. While Scenario 1 does not
actually have a DR program, and there is no need to pre-cool and fill
 Scenario 1: proposed model without DR. the storage tanks before the DR period. Therefore, the consumption
 Scenario 2: proposed model without demand charge s. curve follows a more flat behavior and the objective is minimizing
 Scenario 3: Optimized control in the proposed model. energy costs, paying for peak demand, and penalizing cooling en-
ergy not supplied. So, as shown in Table 2, the cost of the peak
Scenario 1 is a condition in which the DR cost is zero and the demand for scenario 1 is lower than the scenario 2. However, on the
cost or benefit is not calculated for increasing or decreasing con- other hand, revenue from DR in Scenario 1 is zero and in Scenario 2,
sumption in a given period (DR period). Scenario 1 is a situation has a significant amount.
where three-level demand charge tariffs apply to the demand from In a comparison of scenario 1 and scenario 3, we can mention
the network operator, but the minimization of the payment for the cost of payment to the maximum demand in these two situa-
maximum demand in the objective function is not considered. The tions. In scenario 1, because of the zero DR costs, the consumption
scenario 3 is the proposed MPC control, taking into account the DR curve follows a flat pattern, which is close to the maximum demand
during the day. Therefore, the maximum power consumption of the
building in this case occurs in the peak period (the highest demand
charge) and results in high cost for the system. In scenario 3,
Table 2
despite the higher peak demand compared to scenario 1, due to the
Different optimization scenarios.
occurrence of this peak demand in the medium-peak period (hours
Variable Scenario 1 Scenario 2 Scenario 3 18 to 22), the payment for maximum demand is less than scenario
Total power (kW) 7898.6695 7962.6738 7830.5703 1. For the scenario 2 and 3, this is true too. In scenario 2, which there
Energy consumption cost ($) 689.2044 692.7054 682.90214 is no attempt to minimize peak demand and shifting it to off-peak
DR cost ($) 0 554.065 436.48154
periods, in addition to the fact that the maximum demand is
Energy cost considering DR ($) 689.2044 128.83714 246.4206
Demand charge ($) 2459.7172 3566.59 1896.84 greater than that of the scenario 3, this amount occurred in peak
Energy not-supplied cost ($) 68.384 71.915 63.6646 period and leads to the highest demand charge for the system.
Total operation cost ($) 3217.3056 3906.0247 2453.3458 However, as noted above, in the scenario 2, due to pre-cooling and

Fig. 18. Total energy consumption in different scenarios.


Y. Cao et al. / Journal of Cleaner Production 218 (2019) 315e327 327

increasing the charge level of the storage tanks during before the Chen, Y., Xu, P., Gu, J., Schmidt, F., Li, W., 2018. Measures to improve energy demand
flexibility in buildings for demand response (dr): a review. Energy Build. 177,
DR period, a further reduction in the power consumption in DR
125e139.
period occurs and building earns more revenue. On the contrary, Consolidated edison company of new york. 2016. URL http://www.coned.com/
this policy imposes a significant cost on the system in terms of energyefficiency/demand_response_program_details.aspU [Accessed:4 April
demand charge. Therefore, it can be said that the proposed model 2018].
Deng, K., Sun, Y., Li, S., Lu, Y., Brouwer, J., Mehta, P.G., et al., 2015. Model predictive
provides the optimal mode for the performance of the energy control of central chiller plant with thermal energy storage via dynamic pro-
system of the building, and leads to the lowest operating cost by the gramming and mixed-integer linear programming. IEEE Trans. Autom. Sci. Eng.
balance between the various pricing schemes such as hourly energy 12 (2), 565e579.
Fiorentini, M., Wall, J., Ma, Z., Braslavsky, J.H., Cooper, P., 2017. Hybrid model pre-
pricing, DR, and the three-level demand charge. dictive control of a residential hvac system with on-site thermal energy gen-
eration and storage. Appl. Energy 187, 465e479.
5. Conclusion Gholamibozanjani, G., Tarragona, J., de Gracia, A., Ferna ndez, C., Cabeza, L.F.,
Farid, M.M., 2018. Model predictive control strategy applied to different types of
building for space heating. Appl. Energy 231, 959e971.
In this study, the effects of various DSM programs on the optimal Gomez-Herrera, J.A., Anjos, M.F., 2018. Optimal collaborative demand-response
performance of a TES-integrated commercial building have been planner for smart residential buildings. Energy 161, 370e380.
Hajiah, A., Krarti, M., 2012. Optimal control of building storage systems using both
investigated. A commercial building in the New York City was ice storage and thermal massepart i: simulation environment. Energy Convers.
selected as a case study and optimal controlling the buildings en- Manag. 64, 499e508.
ergy system under dynamic pricing, demand charge and DR pro- Hajiah, A., Krarti, M., 2012. Optimal controls of building storage systems using both
ice storage and thermal massepart ii: parametric analysis. Energy Convers.
gram has been studied. Real DR programs which are to apply for
Manag. 64, 509e515.
commercial consumers in the New York City were used and the cost Henze, G.P., Dodier, R.H., Krarti, M., 1997. Development of a predictive optimal
of demand charge was included in the objective function of the controller for thermal energy storage systems. HVAC R Res. 3 (3), 233e264.
optimization problem. In the developed programs, the commercial Ioli, D., Falsone, A., Prandini, M., 2016. Energy management of a building cooling
system with thermal storage: a randomized solution with feedforward distur-
loads can attain revenue by participating in the DR programs. In bance compensation. In: American Control Conference (ACC), 2016. IEEE,
proposed model, the thermal comfort of consumers has been pp. 2346e2351.
considered by assuming a penalty cost for unmet cooling demand Kim, J.J., 2012. Price Responsive Demand in New York Wholesale Electricity Market
using Openadr.
during the warm days of the year. The simulation results indicate Kim, S.H., 2013. Building demand-side control using thermal energy storage under
that the MPC method could balance the goals in a real economic uncertainty: an adaptive multiple model-based predictive control (mmpc)
environment. Dynamic pricing, demand charge and DR programs approach. Build. Environ. 67, 111e128.
Kim, D., Braun, J.E., 2018. Development, implementation and performance of a
lead to shift the peak demand so that minimize the energy cost. model predictive controller for packaged air conditioners in small and medium-
Although without DR plans, a higher energy price under a real-time sized commercial building applications. Energy Build. 178, 49e60.
pricing method, can lead to lower consumption (by turning off the Ma, J., Qin, J., Salsbury, T., Xu, P., 2012. Demand reduction in building energy systems
based on economic model predictive control. Chem. Eng. Sci. 67 (1), 92e100.
main chiller), but by including DR program, the consumer could Mirakhorli, A., Dong, B., 2018. Market and behavior driven predictive energy
reach a higher revenue. Such conflicts among various DSM pro- management for residential buildings. Sustain. Cities Soc. 38, 723e735.
grams show the need for an control program to achieve optimal Mirakhorli, A., Dong, B., 2018. Model predictive control for building loads connected
with a residential distribution grid. Appl. Energy 230, 627e642.
performance of the buildings’ energy system. In a nutshell, the
Mohammadi, M., Noorollahi, Y., Mohammadi-Ivatloo, B., Yousefi, H.,
proposed model has the ability to balance the various DSM pro- Jalilinasrabady, S., 2017. Optimal scheduling of energy hubs in the presence of
grams and achieve the optimal performance of the buildings en- uncertainty-a review. J. Energy Manag. Technol. 1 (1), 1e17.
ergy system in a complex economic environment. Oldewurtel, F., Ulbig, A., Parisio, A., Andersson, G., Morari, M., 2010. In: Reducing
Peak Electricity Demand in Building Climate Control Using Real-Time Pricing
and Model Predictive Control. CDC, pp. 1927e1932.
Acknowledgment Oldewurtel, F., Ulbig, A., Morari, M., Andersson, G., 2011. Building control and
storage management with dynamic tariffs for shaping demand response. In:
Innovative Smart Grid Technologies (ISGT Europe), 2011 2nd IEEE PES Inter-
This paper is supported by Key Laboratory Scientific Research national Conference and Exhibition on. IEEE, pp. 1e8.
Project of Shaanxi Education Department (Grant: 17JS058) and Razmara, M., Bharati, G., Hanover, D., Shahbakhti, M., Paudyal, S., Robinett III, R.,
Shaanxi Key Research and Development Plan (Grant: 2018ZDXM- 2017. Building-to-grid predictive power flow control for demand response and
demand flexibility programs. Appl. Energy 203, 128e141.
GY-077). Ryzhov, A., Ouerdane, H., Gryazina, E., Bischi, A., Turitsyn, K., 2019. Model predictive
control of indoor microclimate: existing building stock comfort improvement.
References Energy Convers. Manag. 179, 219e228.
Thieblemont, H., Haghighat, F., Ooka, R., Moreau, A., 2017. Predictive control stra-
tegies based on weather forecast in buildings with energy storage system: a
Afram, A., Janabi-Sharifi, F., 2014. Theory and applications of hvac control
review of the state-of-the art. Energy Build. 153, 485e500.
systemsea review of model predictive control (mpc). Build. Environ. 72,
Touretzky, C.R., Baldea, M., 2014. Integrating scheduling and control for economic
343e355.
mpc of buildings with energy storage. J. Process Contr. 24 (8), 1292e1300.
Afroz, Z., Shafiullah, G., Urmee, T., Higgins, G., 2018. Modeling techniques used in
Touretzky, C.R., Baldea, M., 2016. A hierarchical scheduling and control strategy for
building hvac control systems: a review. Renew. Sustain. Energy Rev. 83, 64e84.
thermal energy storage systems. Energy Build. 110, 94e107.
Bianchini, G., Casini, M., Vicino, A., Zarrilli, D., 2016. Demand-response in building
U.s. department of energy. 2016. URL https://www.energycodes.gov/901-prototype-
heating systems: a model predictive control approach. Appl. Energy 168,
building-models-large-office.
159e170.
Yousefi, H., Tavakkoli-Moghaddam, R., Oliaei, M., Mohammadi, M., Mozaffari, A.,
Blum, D., Arendt, K., Rivalin, L., Piette, M., Wetter, M., Veje, C., 2019. Practical factors
2017. Solving a bi-objective vehicle routing problem under uncertainty by a
of envelope model setup and their effects on the performance of model pre-
revised multi-choice goal programming approach. Int. J. Ind. Eng. Comput. 8 (3),
dictive control for building heating, ventilating, and air conditioning systems.
283e302.
Appl. Energy 236, 410e425.
Zhang, Y., Augenbroe, G., 2018. Optimal demand charge reduction for commercial
Braun, J.E., 2003. Load control using building thermal mass. J. Sol. Energy Eng. 125
buildings through a combination of efficiency and flexibility measures. Appl.
(3), 292e301.
Energy 221 (C), 180e194. https://doi.org/10.1016/j.apenergy.2018.0. http://
Capros, P., De Vita, A., Tasios, N., Papadopoulos, D., Siskos, P., Apostolaki, E., et al.,
www.coned.com/energyefficiency/demand_response_program_details.asp
2013. EU Energy, Transport and GHG Emissions: Trends to 2050, Reference
[Accessed:4April2018].
Scenario 2013.

You might also like