Professional Documents
Culture Documents
2, MARCH 2018
Abstract—This paper proposes a novel framework suitable Smart grid technologies, such as smart appliances and home
for bilevel optimization in a system of commercial buildings area network (HAN), render the electrical loads more man-
integrated to smart distribution grid. The proposed optimiza- ageable and controllable at customers premise, and facilitates
tion framework consists of comprehensive mathematical models
of commercial buildings and underlying distribution grid, their advanced demand side management (DSM) activities [6].
operational constraints, and a bilevel solution approach which However, existing mathematical models developed for cus-
is based on the information exchange between the two levels. tomer side DSM mainly consider minimization of electricity
The proposed framework benefits both entities involved in the cost [7], [8], which results in increased load at hours with low
building-to-grid (B2G) system, i.e., the operations of the buildings electricity price. Increased load at those hours may impact
and the distribution grid. The framework achieves two distinct
objectives: increased load penetration by maximizing the dis- voltage performance in the distribution grid. In [9], it is
tribution system load factor and reduced energy cost for the demonstrated that uncontrolled penetration of electric vehicle
buildings. This study also proposes a novel B2G index, which is loads violates the voltage standards set by the ANSI. Thus, it
based on building’s energy cost and nodal load factor, and repre- is advisable that DSM should be employed considering the
sents a metric of combined optimal operations of the commercial operational requirements of customers as well as the elec-
buildings and distribution grid. The usefulness of the proposed
framework is demonstrated in a B2G system that consists of sev- tric power grid. In DSM activities, distribution utilities are
eral commercial buildings connected to a 33-node distribution test more concerned about feeder loss minimization, load factor
feeder, where the building parameters are obtained from actual improvement, reactive power optimization, etc., as part of their
measurements at an office building at Michigan Technological operational objectives [10]–[15]. On the other hand, the objec-
University. tives of DSM activities at customer level are mainly focused
Index Terms—Building to grid optimization, smart build- on comfort maximization and cost minimization. This illus-
ing, smart grid, HVAC, model predictive control, hierarchical trates that the objective set by the grid and customers in DSM
optimization, demand response, load shedding. activities could often be conflicting.
In [16] and [17], promising results are obtained from DSM
I. I NTRODUCTION in reducing customer’s energy price. In [16], pre-cooling
UILDING sector in the United States accounts for about and pre-floating is performed to reduce total electricity cost.
B 70% of electricity energy consumption [1], in which
41.4% of energy consumption is directly related to the
In [17], optimization is performed with a trade-off between
cost and user comfort. In [8], HAN is employed to reshape
space heating, ventilation, and air conditioning (HVAC). Thus, the demand profile based on the impact on distribution trans-
HVAC systems have a great potential to reduce the energy former. In DSM models proposed in [8], [16], and [17],
usage/cost in buildings. As reported in [2] and [3], smart customers obtain benefits by shifting the loads. The mathemat-
control techniques, such as model predictive control (MPC), ical models used in [8], [16], and [17], consider peak power
can provide significant energy saving. Development of MPC information from distribution grid as one of the constraints of
for optimal control of HVAC systems has been a focus optimization but detailed modeling and operational constraints
in [4] and [5], which yields benefits to the operations of of distribution system have not been considered. Thus, for
buildings and electric power grid. advanced DSM activities in smart grids, detailed mathematical
modeling considering objectives and operational requirements
Manuscript received June 16, 2015; revised November 21, 2015 of customers and the distribution system with real-time infor-
and February 21, 2016; accepted April 11, 2016. Date of publication
April 21, 2016; date of current version February 16, 2018. This work was mation exchange between customer and the grid is crucial;
supported by the Elizabeth and Richard Henes Professorship of Mechanical which is a major focus of the proposed work.
Engineering at Michigan Technological University. Paper no. TSG-00687- Fig. 1 summarizes past studies related to three research
2015.
M. Razmara, M. Shahbakhti, and R. D. Robinett, III, are with the categories: building, grid, and integrated building-grid
Department of Mechanical Engineering-Engineering Mechanics, Michigan optimization. In the first category, optimal and model
Technological University, Houghton, MI 49931-1295 USA (e-mail: predictive unidirectional building optimization are stud-
mrazmara@mtu.edu; mahdish@mtu.edu; rdrobine@mtu.edu).
G. R. Bharati and S. Paudyal are with the Department of Electrical and ied [2]–[5], [18]–[27]. In this category, building’s HVAC
Computer Engineering, Michigan Technological University, Houghton, MI, performance or operational cost is optimized using optimal
USA (e-mail: grbharati@mtu.edu; sumitp@mtu.edu). or model predictive control technique. The second cate-
Color versions of one or more of the figures in this paper are available
online at http://ieeexplore.ieee.org. gory include studies in which distribution grid operation
Digital Object Identifier 10.1109/TSG.2016.2557334 is optimized for various operational objectives considering
1949-3053 c 2016 IEEE. Translations and content mining are permitted for academic research only. Personal use is also permitted, but republication/
redistribution requires IEEE permission. See http://www.ieee.org/publications_standards/publications/rights/index.html for more information.
RAZMARA et al.: BILEVEL OPTIMIZATION FRAMEWORK FOR SMART BUILDING-TO-GRID SYSTEMS 583
aggregated loads [10]–[15]. The third category includes Fig. 2. Conceptual building to grid communication framework.
building-to-grid (B2G) integration in which performance of
buildings including comfort level and energy cost is opti- basis and/or the hourly weather update. It should be noted that
mized considering grid side information [7], [16], [28]–[33], the information flow depends on the variation of the param-
and demonstrates its usefulness for grid services. However, eters in the building and grid models during the course of
in the modeling in [7], [16], and [28]–[33] distribution grid operation, and the type of services the building loads pro-
is simplified or completely ignored. Survey results in Fig. 1 vide to the grid (such as demand response, regulation). The
reveal that there are extensive works accomplished in the communication infrastructure must be flexible to interact with
area of control/optimization of distribution grid and buildings the existing and future BEMSs and communication protocols
HVAC systems independently. However, there is little work such as Modbus, RS-484, BACnet, etc. [34]. To manage real-
done in the area of bi-directional B2G, including mathemat- time and bidirectional information exchange cloud computing
ical modeling required for the B2G integration. This work can be deployed [35]. VOLTTRON, OpenADR, BEMOSS are
proposes a bi-directional B2G optimization framework based some of the open source platforms that can be utilized for the
on detailed mathematical modeling of a B2G system. implementation of the proposed models at the customer and
The proposed B2G framework is based on information grid levels [36]–[38].
exchange between the two levels, i.e., the BEMS and distri- This study improves previous single level optimization of
bution system operation (DSO) control center. The predicted buildings by considering the grid model and builds upon
and optimized load profile of buildings are provided to the preliminary results in [39] by the authors. To our knowledge,
DSO by the BEMSs. Similarly, maximum allowable load pen- it is the first study that proposes a bilevel optimization frame-
etration information, that ensures feasible grid operations, are work in B2G interaction, which benefits both building and grid
provided to the BEMSs by the DSO. operations. The contribution of this paper is on the develop-
For the demand response applications discussed in this ment of generic hierarchical optimization framework for B2G
work, a bidirectional communication infrastructure is required, system, which is essential for coordinated control of multiple
as shown in Fig. 2, between the BEMSs and the DSO. Also, BEMSs connected to distribution grid for large scale demand
unidirectional communication links are required between the response and other grid level services. More specifically, to
BEMSs and the market operator (MO), BEMSs and local reach this goal this paper:
weather station, DSO and control equipment at distribu- 1) develops a physics-based comprehensive mathematical
tion level. The required communication infrastructure must model of HVAC system and model predictive controller
be secure, reliable, and low-cost for autonomous interac- (MPC) with the aim of minimizing building’s electricity
tions [34], [35]. In this proposed work, the interaction between costs. The MPC controller works in grid friendly man-
the two levels, i.e., the building and grid, are kept at the ner, i.e., it communicates with distribution grid control
minimum; thus, the communication bandwidth usage is spo- center and incorporates the constraints set by the grid
radic. The information that building receives from the grid controller required for the feasibility of grid operation.
control center is the maximum demand limit, which can be 2) develops a detailed and generic mathematical model of
sent once every 15-30 minutes for next couple hours to next distribution grid that coordinates with several building
day. Building receives information from utility or MO about controllers to optimize the operation of the power grid.
energy price once per day (i.e., the day ahead energy price) This paper proposes a novel B2G index that ensures the
and/or every 5 minutes to one hour (i.e., the real-time energy benefits at the grid level from the building side optimization,
price), depending on which energy rate is applied to the build- and develops a coordination algorithm to solve the hierarchical
ing customers. Building receives weather forecast on daily B2G framework.
584 IEEE TRANSACTIONS ON SMART GRID, VOL. 9, NO. 2, MARCH 2018
The rest of the paper is organized as follows. Section II area radiated to room i, and Q̇int i denotes the internal heat
presents mathematical models of building and distribution sys- generation in room i. Nir is the set of all nodes surrounding
tem, MPC based optimization model at building level, and room i.
distribution grid optimization model. Section III discusses The disturbance to the model, w(t), is function of neighbor-
methodology for bidirectional optimization and the proposed ing room temperature, Tkr (t), internal heat generation in rooms
i (t), and radiative heat flux density on walls, Qi (t). The
Q̇int
B2G index. Section IV describes the building testbed and dis- rad
tribution test feeder. The results of case studies are presented disturbance is given by [40]:
in Section V, and the main conclusions from this work are
included in Section VI. w(t) = g Tkr (t), Qrad
i (t), Q̇int
i (t) (3)
dTir 1 ⎝ Tk − Tir flow rate is constant during day, we can consider the linearized
= r + πi,k τkw Awin Q
i,k i
rad
form of the system. We use Euler’s discretization method to
dt Ci Ri,k
k∈Nir discretize the state update equation (4) for controller design.
⎞
The state-space model is given by:
+ ṁri cpavg Tis − Tir + Q̇inti
⎠ (2)
xk+1 = Axk + Buk + Ewk (5)
where Cir and ṁri denote the heat capacity and air mass flow where wk is the disturbance vector at instant k and E is the
into or out of the room i, respectively. Tk is the temperature of disturbance coefficient matrix with appropriate dimension.
surrounding node k to room i. cpavg denotes the average specific Fig. 3 represents the experimental validation of the building
heat capacity of air and Tis is the temperature of the supply air thermal model for few days in winter. Fig. 3(a) compares the
to room i. πi,j is window identifier which is equal to 0 if there simulated and measured room temperature, and Fig. 3(b) illus-
is no wall between room i and j, otherwise equal to 1. Awin i,j trates the heat-pump power based on the difference between
is the total area of window between room i and surrounding the room temperature and the measured supply air temper-
room j, τi,j
w is the transmissivity of glass of window between
ature. Details of HVAC heat-pump system are discussed in
room i and j, Qradi is the radiative heat flux density per unit Section IV.
RAZMARA et al.: BILEVEL OPTIMIZATION FRAMEWORK FOR SMART BUILDING-TO-GRID SYSTEMS 585
where (8b) and (8c) form building’s state model, (8d) and (8e)
are constraints on input i.e., supply air temperature, (8f) is
output constraint on temperature of room and (8g) represents
the constraint on slack variables. Constraints (8b) and (8d)
should hold for all k = 0, 1, . . . , N − 1, and N is the predic-
Fig. 3. Experimental validation of the building thermal model for a sample
room/zone. tion horizon. In Section V-F, effect of N on simulation results
will be discussed. (8c), (8e), (8f), and (8g) should hold for
B. Building Optimization Model-I all k = 1, 2, . . . , N. Ut = [ut|t , ut+1|t , . . . , ut+N−1|t ] represents
The main goal of optimization is to minimize energy cost control inputs vector and ut+1|t is the estimated value of ut+1
by the building’s HVAC system. For this purpose, both HVAC at time t, t = [εt+1|t , . . . , ε t+N|t ] and t = [εt+1|t , . . . , ε t+N|t ]
energy usage and time varying electricity price are taken into are the slack variables. Slack variables are added to ensure
account. Energy usage is characterized by the energy index Ie feasibility of optimal control problem. In equation (8a) there
which is defined as [2]: is penalty (ρ) for slack variables. Therefore, by choosing large
values for ρ, the optimizer enforces the slack variables to take
24
small values and does not violate the temperature constraints.
Ite = PBt t (6a)
ρ characterizes the flexibility of a building to provide ser-
t=1
f vices at the grid level. is not a pre-determined value in
PBt = Pht + Pct + Pt + Pot (6b) the optimization; however, by choosing large enough values
where PBt is the active power consumption of building. Ph is for ρ, deviation from comfort bound (i.e., ) is guaranteed to
heating power, Pc , and P f are cooling power and fan power, be minimum. In equation (8a), lower values for ρ leads to
respectively. We denote all buildings’ other loads with Po higher flexibility for grid level services; however, this results
which includes lighting and appliances loads. Heating, cooling in occupants’ discomfort [2]. Equation (8f) defines the rela-
and fan power consumption are determined by [2]: tionship between the room temperature and the slack variable
value. is dynamic pricing of electricity which is consid-
Pht = ṁri (t)cp,air Tth − Ti,t
r
(7a) ered to be independent of power consumption by the building
r loads. yt+k|t is the vector of thermal zone temperature, dt+k|t is
Pt = ṁi (t)cp,air Ti,t − Tt
c r c
(7b)
r 3 the disturbance load, and T t+k|t and T t+k|t for k = 1, · · · , N
f
Pt = λ ṁi (7c) are the lower and upper bounds on the zone comfort level,
respectively. U t+k|t and U are the lower and upper limits on
where T h and T c are the supply air temperatures in the heating
the supply air temperature delivered by the heat-pump of the
mode and the cooling mode, respectively and these variables
HVAC system, respectively. Operational limit on maximum
are the system control inputs. Equations (7a) and (7b) rep-
supply air temperature is not time varying, therefore time
resent the relationship between the HVAC heat-pump power
invariant constraint U is used. δU and δU are limitation on rate
consumption and the temperature difference. λ [W.s3 .kg−3 ] is
of change of supply air temperature according to dynamics of
the coefficient of fan which defines the cubic relation between
heat-pump condenser.
power required and mass flow rate. Since air mass flow rate is
not a control input in the state model, and it is constant during
the daytime, fan power, Pf , does not affect optimization result. C. Building Optimization Model-II
The temperature difference between supply air and the room
air is proportional to electrical energy consumption. Hence, Objective of this optimization model is the same as (8).
the building controller keeps the room temperature within the However, an additional constraint is used as a feedback from
comfort levels such that energy cost is minimized. We use distribution grid, which is given as:
the proposed objective function in equation (8a) to minimize
energy cost. In addition, soft constraints (i.e., ) are imple- PBt ≤ Pvar
t (9)
mented to guarantee feasibility of optimal solution at all times.
The following optimization problem is being solved at each where Pvar
t is the maximum allowable building active power
time step t, and cumulative cost is calculated from t to tmax : penetration in the distribution grid, which will be discussed
t in Section II-D. Equations (6), (7a)-(7c), (8b)-(8g), and (9)
max
min It + ρ | t |1 + | t |1
e T
(8a) define equality and inequality constraints of the optimization
Ut ,¯ , model.
t
586 IEEE TRANSACTIONS ON SMART GRID, VOL. 9, NO. 2, MARCH 2018
D. Distribution Grid Optimization Model-I Inequality constraints of the distribution grid optimiza-
The objective of this optimization model is to determine tion model include limits of voltage as per ANSI standards,
maximum additional building loads that can be connected limits on capacitor and LTC positions, limits on ItF , and
at different nodes of the distribution system. This infor- other limits such as feeder capacity, transformer capacity, etc.
mation is used as a feedback to the building optimization Mathematically, the inequality constraints can be written as,
model-II described in Section II-C, which represents infor- V ≤ Vtn ≤ V (14a)
mation exchange between the two levels of the bilevel opti- n
mization framework. Mathematically, objective function can 0≤ Ctapnt ≤ Ctap , ∀ Ctapnt ∈ I (14b)
be written as: Ttap ≤ Ttapmt ≤ Ttap, ∀ Ttapt ∈ I
m
(14c)
t
max
var,nb 0≤ ItF ≤ I
F
(14d)
max Pt (10)
t=1 nb∈n In equations (14a, 14b, 14c, & 14d) overbar and underbar
where n represents nodes and nb represents nodes where denote the maximum and minimum value for variable, respec-
buildings are connected. tively. Equation (14a) ensures that the voltage limits are within
Equality constraints of the grid optimization model include the standard set by ANSI. Equations (14b) and (14c) are the
component modeling and voltage/current balance equations. limits on tap positions in transformer and capacitor banks,
Distribution feeders, transformers, and voltage regulators with which take integer numbers only.
load tap changers (LTCs) are modeled using ABCD param-
eters as described in [41]. Constant power, constant cur- E. Distribution Grid Optimization Model-II
rent, and constant impedance loads are considered at each Objective in this optimization model is to maximize the
node. Mathematically, these equality constraints can be rep- system load factor. Mathematically, this objective function is
resented as: written as [42] and [43]:
n
m
Vt a bm Vtn+1 t
= m (11a) max
Itsen,m c dm Itres,m t=1 Pt
max (15)
tmax |Pt |∞
Itres,m−1 = Itsen,m + ItZ,n + ItI,n
+ ItP,n + ItC,n + Itvar,n (11b) where, Pt total active power load connected to the distribution
grid at hour t is calculated as:
Z n ItC,n = Vtn Ctapnt (11c)
Z,n ∗
where m represents feeder branches, Itres,m−1
and are Itsen,m Pt = Vtn It + ItI,n + ItP,n + Pvar,nb
t (16)
receiving and sending end currents on branch m − 1 and n nb
m, respectively. For branches with LTC, am = 1+s·Ttap
1
m, Equations (11), (12), and (14) represent the equality and
t
bj = cj = 0 and dj = a−1 j where s represents voltage inequality constraints. Load factor in (15) is improved by con-
change (p.u.) with one step change of transformer tap position trolling LTC and switched capacitor banks. For grid power
and Ttapm n
t represents LTC tap positions, Z is the impedance
flow analysis and distribution grid optimization model-II,
of single capacitor in a bank at nominal power and voltage. Ptvar,nb = PB,nb
t , which is obtained from (6).
ItP,n , ItI,n , ItZ,n , and ItC,n are the currents from the constant
power, constant current, constant impedance loads, and capac- F. B2G Index
itor banks connected at node n, respectively. Vtn represents In the hierarchical approach to solve the proposed optimiza-
nodal voltage and Ctapnt represents number of capacitor banks tion models, the lower level is concerned about the electricity
switched on. costs in buildings, while the upper level is concerned in maxi-
Base loads in the distribution feeder are modeled using sum mizing the system load factor. A worthwhile B2G optimization
of constant power, constant current, and constant impedance should maintain an appropriate compromise between low elec-
loads. Building loads are additional power to the grid and mod- tricity cost in buildings and high load factor in the distribution
eled as constant power load. Building load current in terms system. To account for this, we define a new B2G index (IB2G )
of building power can be calculated using: to assess the performance of the proposed B2G optimization
∗ Pvar,nb framework, which allows reduction in the electricity costs and
Vtnb Itvar,nb = t ∠φ (12) improvement of system load factor starting at the building level
cosφ
with the use of nodal load factor. The B2G index is defined as:
where φ is the power factor angle of the building load. An
additional equation is needed to ensure that building load pene- Lf−1
tration is allowed fairly in the distribution grid. Thus, a fairness
index (ItF ) is defined to ensure fair distribution of building e T tmax PtB,nb
∞
loads as: IB2G = α It + β t (17)
max B,nb
P
t=1 t
Ptvar,nb
ItF = (13) where α and β are the weight factors for energy price (Ie T )
PtE,nb
and nodal load factor (Lf ), respectively. The smaller the IB2G
where, PtE,nb is the base load in nodes nb. index, the better the performance for the B2G optimization.
RAZMARA et al.: BILEVEL OPTIMIZATION FRAMEWORK FOR SMART BUILDING-TO-GRID SYSTEMS 587
TABLE I
P ERFORMANCE OF F OUR D IFFERENT B2G O PTIMIZATION T ECHNIQUES , C OMPARED TO THE U NOPTIMIZED (RBC) C ASE S TUDY
C. Bidirectional Optimization
The proposed B2G methodology in Section III is applied
Fig. 6. Building-side optimization: (a) Control input and resulting temper-
for the case study similar to that in Section V-B. Building
ature profile for the building MPC controller, (b) Buildings’ load profile optimization results are illustrated in Fig. 8 and summarized in
including HVAC load, lighting load and appliances load, (c) Buildings’ Table I. The results show the B2G optimizer satisfies the build-
total load at node #10 and base load, (d) Buildings’ electricity load versus
maximum feasible load for node #10.
ing comfort levels, while keeping the building load under the
maximum load allowed by the distribution grid. In addition,
temperature profile of the room, and Fig. 6 (b) shows load dis- compared to the unidirectional (demand side) optimization, the
tribution of buildings connected to node #10 including lighting system level load factor is increased from 0.81 to 0.84. IB2G
load, appliances (computers, elevators, refrigerators, etc.) and index also depicts a significant improvement as seen in Table I.
buildings’ HVAC load. Building load distribution is based on Bidirectional optimizer offers 25% cost saving compared to the
simulation results carried out for Lakeshore Center building at unoptimized case while energy cost saving is only dropped
Michigan Tech using Carrier HAP software. Fig. 6(c) shows by 1% compared to unidirectional (building side). Thus, this
load distribution on node #10. Fig. 6(d) illustrates the building case study demonstrates that with the grid constraints, the cost
electricity load and the maximum feasible load for node #10 of operation of buildings increases, but it ensures a feasible
which is obtained from distribution optimization model-I block operation of the grid.
shown in Fig. 4. In Fig. 6(d), the importance of grid-wise
optimization for buildings is emphasized since the optimized D. Bidirectional Optimization Using IB2G Index
building loads violate the maximum allowable loads by the IB2G index provides a way to control/formulate the impor-
grid. Note that in Fig. 6, the power and supply temperature tance of building benefits versus grid benefits. The results of
peaks at unusual time is due to the pre-heating of the HVAC bidirectional optimization using IB2G index are shown in Fig. 9
system when the electricity price is cheaper. The dynamic pric- and summarized in the Table I. As expected, the new opti-
ing and result HVAC cost are shown in Fig. 7. The monthly mization approach leads to the best result in terms of IB2G .
building electricity cost is listed in Table I. Compared to the The smaller value for IB2G , the better performance for the
RBC, building-side optimization results in 26% cost saving B2G system. Using IB2G in the building objective function
and 16% energy saving. helps to improve building/nodal load factor and consequently
590 IEEE TRANSACTIONS ON SMART GRID, VOL. 9, NO. 2, MARCH 2018
TABLE II
P ERFORMANCE OF T WO D IFFERENT B2G R EAL -T IME O PTIMIZATION T ECHNIQUES , C OMPARED TO THE U NOPTIMIZED (RBC) C ASE S TUDY
Fig. 8. Bidirectional optimization: (a) Control input and room temperature Fig. 9. Bidirectional optimization based on IB2G index: (a) Control input
profile for the MPC controller, (b) Building load vs maximum feasible load. and resulting temperature profile, (b) Building load versus maximum feasible
load.
better system level load factor, while minimizing the building
energy costs. As a result, IB2G is better in the new bidirectional
optimization, compared to the bidirectional optimization with
objective 8a. 0.5 and 0.54 are chosen for α and β, respectively,
to provide comparable weight to building and grid. Selection
of α and β can be another optimization problem which is
outside the scope of this work. In this case study, the cost
of electricity is decreased by 24% with respect to the base
case and both nodal and system load factors are significantly
improved compared to the base case.
If α in IB2G in the bidirectional optimization is chosen to
be zero, the bidirectional optimization becomes unidirectional
which mainly satisfies the grid benefits (Grid unidirectional
in Table I). As expected, this leads to the best load factor
compared to other four cases in Table I. But, the buildings’
electricity cost is increased by 21% compared to the bidi-
rectional IB2G case. Overall, bidirectional optimization using Fig. 10. Voltage at selective nodes. Fig. (a) shows the voltage profile
IB2G provides an optimization platform in which an operator of unidirectional optimization and Fig. (b) illustrates the voltage profile of
bidirectional optimization (using IB2G index).
can easily decide the desirable compromise for the benefits of
customers and the grid. By using the proposed IB2G index as
the optimization cost function, the temperature boundaries are
met based on the ASHRAE standards. F. Hour-Ahead vs Day-Ahead Optimization
In the case studies in Table I, the prediction horizon N is
E. Impact on Voltage Performance considered to be 24. It means that the optimization algorithm
Permissible voltage range, as specified in ANSI C84.1, is has prediction of weather forecast and dynamic pricing for the
one of the standards to maintain power quality in distribution next 24 hours. If the weather forecast or prediction of electric-
feeders. Fig. 10(a) shows the voltage at few selected nodes ity cost (dynamic pricing) is not available or not accurate for
for unidirectional optimization (building-side) which are vio- that period, the MPC algorithm cannot find the optimal solu-
lated in certain hours, and (b) illustrates that the optimization tion for the next 24 hours. Here, we show two examples that
model with IB2G index where voltages are maintained within the dynamic pricing and the weather forecast are available
the limits. for the next hour in Table II. Simulations for two proposed
RAZMARA et al.: BILEVEL OPTIMIZATION FRAMEWORK FOR SMART BUILDING-TO-GRID SYSTEMS 591
Fig. 11. (a) weather forecast of three sample days in Fall, Winter, and Spring
using measured data at Michigan Tech testbed and (b) Dynamic pricing for Fig. 12. (a) shows the weather effect on the building’s electricity bill and
Michigan, Illinois, and Minnesota obtained from [47]. system load factor, and (b) illustrates the effect of dynamic pricing on the
electricity bill and system load factor for the conditions shown in Fig. 11.
An RBC structure similar to that in Table I is used as a baseline to calculate
methods, bidirectional using (8a) and bidirectional using IB2G , saving percentages.
are carried out to demonstrate the effect of prediction hori-
zon on the cost saving and IB2G index. Results show that on the HVAC controller in Spring/Fall compared to Winter
B2G metrics deteriorate by reducing the prediction horizon provides more flexibility for load factor optimization. Thus
but the proposed algorithm still offers benefits for both grid the percentage of increase in the B2G system’s LF is more in
and buildings. Using the real-time B2G optimization, build- Fall/Spring compared to that in the Winter. Finally, the results
ing electricity cost drops up to 20% and building load factor in Fig. 12 (b) show that the proposed B2G optimization pro-
increases over 0.1 compared to the baseline unoptimized case. vides cost saving and system LF increase for all the three
dynamic pricing profiles studied.
G. Impact of Dynamic Pricing and Seasonal Weather H. Computational Cost
The savings on electricity price and improvement on sys- The problem formulation is hierarchical in nature, which
tem load factor greatly depend on various factors including allows each BEMS to solve its own building optimiza-
dynamic pricing, weather, flexibility of commercial build- tion model. The developed building optimization model in
ing’s loads, building’s temperature set-points, available control Section II is linear programming in nature, thus the com-
equipment in the building and distribution grid, and accu- putational tasks at the building level are not challenging for
racy/availability of the forecasts. The impact of dynamic the demand response applications discussed in this work. At
pricing and weather variations on the customer’s cost savings the grid level, the nature of the problem is non-linear and
and system load factor are also studied. LTCs and cap banks add integer variables in the model. This
Fig. 11(a) shows the weather condition for three sample poses inherent computational challenges associated with the
days in Fall, Winter, and Spring in our testbed. Fig. 11 (b) large scale non-convex optimization of distribution grid [49].
illustrates three different dynamic energy prices at nodes in However, for the size of the system considered in this paper,
Michigan, Illinois and Minnesota. Based on the weather and computational complexity was not an issue. Simulation time
energy price data, two sets of simulations are carried out. for bidirectional optimization discussed in this paper on an
Fig. 12(a) shows the effect of weather on the building’s elec- INTEL Core i5, 3.2 GHz CPU desktop computer is less
tricity cost and system load factor for the three seasons by than one minute for building’s unidirectional optimization and
keeping the dynamic energy price same (Michigan node). around 5 minutes for optimization of both building and grid
Fig. 12(b) demonstrates the effect of dynamic pricing on the models. The entire hierarchical optimization problem takes
electricity cost saving and the system load factor improve- maximum of two iterations to solve. First, optimal load pro-
ment using same weather forecast (Fall). During the Winter, files at each interval (i.e., each hour in this work) from the
33% saving in electricity cost and 8% improvement on sys- buildings are sent to grid control center to determine feasi-
tem load factor. However, as weather gets warmer, the cost bility of the grid operation. In case of infeasibility, maximum
saving decreases. For instance, in Spring, only 6% decrease feasible load profiles are sent to each building controllers.
in electricity bill compared to RBC is observed. The reason Computational challenges associated with large practi-
for less saving in Spring compared to Winter is that the cold cal size grid can be reduced by using methods of con-
outside weather in Winter makes HVAC running more often vexification [50], distributed approaches [14], and heuristic
which provides more opportunities to save energy costs by approaches [10]. The solution time desired for the proposed
shifting the load. Less constraints (i.e., heating requirement) models depend on the B2G applications sought. For example,
592 IEEE TRANSACTIONS ON SMART GRID, VOL. 9, NO. 2, MARCH 2018
voltage regulation needs to be tackle in a few minutes, and model and a mathematical model for the distribution grid. The
load shifting in the order of hours [51]. For the type of B2G building optimization model is based on disturbance and heat
applications proposed in this work, solution time of 5 minutes transfer phenomena, and its model parameters are obtained
and a coarse time interval of one hour suffice. from actual measurements collected from an office building
at Michigan Technological University. The distribution grid
I. Benefits, Challenges, and Limitations
model is comprised of modeling of typical distribution sys-
This work provides a generic mathematical framework to tem components including feeders, transformers, and control
optimally coordinate building loads and grid level assets, equipment such as capacitor banks and transformer load tap
which is useful for near-term energy usage planning and/or changers. In the proposed bidirectional optimization model,
near-real time dispatch of building loads. This opens up oppor- the objective is to minimize energy cost for the demand side
tunities to deploy multiple distributed building loads for grid and to maximize load factor for the grid. To account for con-
level applications such as demand response, load follow- flicting interests of the BEMS and distribution operators in
ing, and regulation services. The framework ensures that, in the bidirectional optimization, a novel B2G index is devel-
the demand dispatch process, the operational constraints and oped based on building energy cost and nodal load factor.
interests of the grid level and customer level energy manage- Based on the provided case studies, it can be concluded that
ment activities are honored; thus providing benefits to both the the developed bidirectional optimization framework can reduce
entities involved. commercial buildings’ monthly electricity costs by 25% in
The case studies clearly demonstrated the benefits of the Winter, compared to the unoptimized rule-based control of
proposed framework to the building and grid operations. the building loads, while improving the system load factor.
However, the major challenges in large scale deployment of However, the savings obtained in energy price and improve-
B2G integration are: (1) infrastructural challenges including ment on system load factor greatly depend on various factors
interoperability of tools at building and customer levels, band- including energy price, flexibility of commercial building
width limitation, compatibility of system to handle different loads, customers’ preferences, available control equipment in a
data with different resolution and with different communi- distribution grid, accuracy/availability of weather forecast and
cation standards, and (2) mechanism barriers including lack dynamic pricing prediction, etc. Nevertheless, the developed
of financial models for costumer motivation, accurate pred- bidirectional optimization framework certainly offers benefits
ication of weather and energy price, computational issues to the customers and the utilities in B2G integration.
for grid optimization for real-time applications in practical-
sized systems, and scale-ability of the control and optimization
ACKNOWLEDGMENT
algorithms [51].
Use of dynamic pricing (day ahead or real-time) at Special thanks to G. Kaurala from MTU Energy
small residential and commercial buildings has already Management Office for help in collecting the building exper-
begun [52], [53]. With the widespread implementation of imental data.
dynamic pricing for small customers, and with energy
management systems at customer’s premise, the power peak R EFERENCES
in distribution systems will shift to the hours with least [1] (Dec. 10, 2014). Building Energy Data Book. [Online]. Available:
expensive energy prices. Thus, the utility needs to devise http://buildingsdatabook.eren.doe.gov
[2] M. Maasoumy, M. Razmara, M. Shahbakhti, and A. S. Vincentelli,
demand limits for the customers for the feasible grid opera- “Handling model uncertainty in model predictive control for energy
tion. However, with the demand limits, energy savings of the efficient buildings,” J. Energy Build., vol. 77, pp. 377–392, Jul. 2014.
[3] S. Privara et al., “Building modeling as a crucial part for building
customer will reduce. An appropriate incentive/compensation predictive control,” J. Energy Build., vol. 56, pp. 8–22, Jan. 2013.
mechanism need to take place [54], where utilities may [4] J. Ma, S. J. Qin, B. Li, and T. Salsbury, “Economic model predictive
control for building energy systems,” in Proc. IEEE PES Innov. Smart
compensate the customers for the reduction in the savings. Grid Technol., 2011, pp. 1–6.
However, the compensation may not be necessary for all [5] M. Pčolka, E. Žáčeková, R. Robinett, S. Čelikovský, and M. Šebek,
cases, since the case studies demonstrated that the optimized “Economical nonlinear model predictive control for building climate
control,” in Proc. Amer. Control Conf. (ACC), Portland, OR, USA, 2014,
energy costs of the buildings are reduced compared to the pp. 418–423.
RBC even with the grid constraints. Utilities need to devise [6] A. Brooks, E. Lu, D. Reicher, C. Spirakis, and B. Weihl, “Demand
dispatch,” IEEE Power Energy Mag., vol. 8, no. 3, pp. 20–29,
subscription plans where the customers agree that the BEMSs May/Jun. 2010.
honor the demand limits sent by the DSO and penalties for [7] M. C. Bozchalui, S. A. Hashmi, H. Hassen, C. A. Cañizares, and
K. Bhattacharya, “Optimal operation of residential energy hubs in smart
noncompliance. The another approach to solve this issue is grids,” IEEE Trans. Smart Grid, vol. 3, no. 4, pp. 1755–1766, Dec. 2012.
the use of distribution location marginal price (DLMP) [55]. [8] S. Shao, M. Pipattanasomporn, and S. Rahman, “Demand response as
If appropriate method for setting DLMP can be designed, a load shaping tool in an intelligent grid with electric vehicles,” IEEE
Trans. Smart Grid, vol. 2, no. 4, pp. 624–631, Dec. 2011.
which considers the customer’s expected response for the [9] J. Taylor, A. Maitra, M. Alexander, D. Brooks, and M. Duvall,
low energy prices, the impact of low energy price on peak “Evaluations of plug-in electric vehicle distribution system impacts,” in
Proc. IEEE Power Energy Soc. Gen. Meeting, Minneapolis, MN, USA,
demand can be eliminated to a certain extent. 2010, pp. 1–6.
[10] S. Paudyal, C. A. Cañizares, and K. Bhattacharya, “Optimal operation of
distribution feeders in smart grids,” IEEE Trans. Ind. Electron., vol. 58,
VI. C ONCLUSION no. 10, pp. 4495–4503, Oct. 2011.
[11] S. K. Goswami and S. K. Basu, “A new algorithm for the reconfiguration
This study develops a bidirectional B2G optimization frame- of distribution feeders for loss minimization,” IEEE Trans. Power Del.,
work using an experimentally validated building thermal vol. 7, no. 3, pp. 1484–1491, Jul. 1992.
RAZMARA et al.: BILEVEL OPTIMIZATION FRAMEWORK FOR SMART BUILDING-TO-GRID SYSTEMS 593
[12] Y. Deng, X. Ren, C. Zhao, and D. Zhao, “A heuristic and algorithmic [37] W. Khamphanchai et al., “Conceptual architecture of building energy
combined approach for reactive power optimization with time-varying management open source software (BEMOSS),” in Proc. Innov. Smart
load demand in distribution systems,” IEEE Trans. Power Syst., vol. 17, Grid Technol. Conf. Europe, Istanbul, Turkey, 2014, pp. 1–6.
no. 4, pp. 1068–1072, Nov. 2002. [38] G. Ghatikar and R. Bienert, “Smart grid standards and systems interop-
[13] I. Roytelman, B. K. Wee, and R. L. Lugtu, “Volt/var control algorithm erability: A precedent with OpenADR,” in Proc. Grid Interop Forum,
for modern distribution management system,” IEEE Trans. Power Syst., Phoenix, AZ, USA, 2011, pp. 1–9.
vol. 10, no. 3, pp. 1454–1460, Aug. 1995. [39] M. Razmara, G. R. Bharati, M. Shahbakhti, S. Paudyal, and
[14] E. Dall’Anese, H. Zhu, and G. B. Giannakis, “Distributed optimal power R. D. Robinett, III, “Bidirectional optimal operation of smart building-
flow for smart microgrids,” IEEE Trans. Smart Grid, vol. 4, no. 3, to-grid systems,” in Proc. Amer. Control Conf. (ACC), Chicago, IL, USA,
pp. 1464–1475, Sep. 2013. 2015, pp. 288–293.
[15] M. B. Liu, C. A. Cañizares, and W. Huang, “Reactive power and voltage [40] M. Maasoumy, M. Razmara, M. Shahbakhti, and A. S. Vincentelli,
control in distribution systems with limited switching operations,” IEEE “Selecting building predictive control based on model uncertainty,”
Trans. Power Syst., vol. 24, no. 2, pp. 889–899, May 2009. in Proc. Amer. Control Conf. (ACC), Portland, OR, USA, 2014,
[16] M. Avci, M. Erkoc, and S. S. Asfour, “Residential HVAC load con- pp. 404–411.
trol strategy in real-time electricity pricing environment,” in Proc. [41] W. H. Kersting, Distribution System Modeling and Analysis. Boca Raton,
Energytech, Cleveland, OH, USA, May 2012, pp. 1–6. FL, USA: CRC Press, 2012, Chs. 3–6.
[17] D. T. Nguyen and L. B. Le, “Joint optimization of electric vehicle and [42] E. Sortomme, M. M. Hindi, S. D. J. MacPherson, and S. S. Venkata,
home energy scheduling considering user comfort preference,” IEEE “Coordinated charging of plug-in hybrid electric vehicles to minimize
Trans. Smart Grid, vol. 5, no. 1, pp. 188–199, Jan. 2014. distribution system losses,” IEEE Trans. Smart Grid, vol. 2, no. 1,
[18] Y. Yan et al., “Adaptive optimal control model for building cooling and pp. 198–205, Mar. 2011.
heating sources,” J. Energy Build., vol. 40, no. 8, pp. 1394–1401, 2008. [43] R. F. Chang and C. N. Lu, “Feeder reconfiguration for load fac-
[19] M. Maasoumy, A. Pinto, and A. Sangiovanni-Vincentelli, “Model- tor improvement,” in Proc. Power Eng. Soc. Winter Meeting, vol. 2.
based hierarchical optimal control design for HVAC systems,” in Proc. New York, NY, USA, 2002, pp. 980–984.
ASME Dyn. Syst. Control Conf. (DSCC), Arlington, TX, USA, 2011, [44] A. Bokhari et al., “Experimental determination of the zip coefficients
pp. 271–278. for modern residential, commercial, and industrial loads,” IEEE Trans.
[20] M. Razmara, M. Maasoumy, M. Shahbakhti, and R. D. Robinett, III, Power Del., vol. 29, no. 3, pp. 1372–1381, Jun. 2014.
“Optimal exergy control of building HVAC system,” J. Appl. Energy, [45] J. Löfberg, “YALMIP: A toolbox for modeling and optimization in
vol. 156, pp. 555–565, Oct. 2015. MATLAB,” in Proc. IEEE Int. Symp. Comput. Aided Control Syst.
Design, Taipei, Taiwan, 2004, pp. 284–289.
[21] X. Xu, S. Wang, and G. Huang, “Robust MPC for temperature control of [46] GAMS Development Corporation. (Dec. 10, 2014). General
air-conditioning systems concerning on constraints and multitype uncer- Algebric Modeling System, Release 24.2.1. [Online]. Available:
tainties,” J. Build. Services Eng. Res. Technol., vol. 31, no. 1, pp. 39–55, http://www.gams.com
2010. [47] MISO. (Sep. 3, 2014). Midcontinent Independent System Operator.
[22] M. Razmara, M. Maasoumy, M. Shahbakhti, and R. D. Robinett, III, [Online]. Available: https://www.misoenergy.org/MarketsOperations/
“Exergy-based model predictive control for building HVAC systems,” Prices/Pages/Prices.aspx
in Proc. Amer. Control Conf. (ACC), Chicago, IL, USA, 2015, [48] ASHRAE, “Ventilation for acceptable indoor air quality,” Amer. Soc.
pp. 1677–1682. Heating, Refrigerating Air-Conditioning Eng. Inc, Atlanta, GA, USA,
[23] G. Huang, S. Wang, and X. Xu, “A robust model predictive control strat- Standard 62.1-2004, 2004.
egy for improving the control performance of air-conditioning systems,” [49] S. Paudyal, C. A. Cañizares, and K. Bhattacharya, “Three-phase distri-
J. Energy Convers. Manag., vol. 50, no. 10, pp. 2650–2658, 2009. bution OPF in smart grids: Optimality versus computational burden,” in
[24] F. Oldewurtel et al., “Energy efficient building climate control using Proc. Innov. Smart Grid Technol. Europe, Manchester, U.K., Dec. 2011,
stochastic model predictive control and weather predictions,” in pp. 1–7.
Proc. Amer. Control Conf. (ACC), Baltimore, MD, USA, Jun. 2010, [50] S. H. Low, “Convex relaxation of optimal power flow—Part I:
pp. 5100–5105. Formulations and equivalence,” IEEE Trans. Control Netw. Syst., vol. 1,
[25] Y. Ma, S. Vichik, and F. Borrelli, “Fast stochastic MPC with optimal no. 1, pp. 15–27, Mar. 2014.
risk allocation applied to building control systems,” in Proc. IEEE 51st [51] T. Kuruganti and M. Brambley, “Building-to-grid technical opportu-
Annu. Conf. Decis. Control, Dec. 2012, pp. 7559–7564. nity: From the information and communications technology perspective,”
[26] P.-D. Moroşan, R. Bourdais, D. Dumur, and J. Buisson, “Building DOE Energy Efficiency & Renew. Energy, Washington, DC, USA, Tech.
temperature regulation using a distributed model predictive control,” Rep. DOE/EE-1054, Feb. 2016.
J. Energy Build., vol. 42, no. 9, pp. 1445–1452, 2010. [52] Ameren. Power Smart Pricing; A Smart Electricity Rate From
[27] Y. Ma, G. Anderson, and F. Borrelli, “A distributed predictive control Ameren Illinois. Accessed on Jun. 3, 2015. [Online]. Available:
approach to building temperature regulation,” in Proc. Amer. Control https://www.powersmartpricing.org/
Conf. (ACC), San Francisco, CA, USA, 2011, pp. 2089–2094. [53] The COMED Residential Real-Time Pricing Program
[28] M. Maasoumy and A. Sangiovanni-Vincentelli, “Buildings to grid inte- Guide, Commonwealth Edison (ComEd), Chicago, IL,
gration: A dynamic contract approach,” in Proc. IEEE/ACM Int. Conf. USA. Accessed on Jun. 3, 2015. [Online]. Available:
Comput.-Aided Design, Austin, TX, USA, 2015, pp. 473–478. https://www.comed.com/documents/customer-service/
[29] T. Gamauf, T. Leber, K. Pollhammer, and F. Kupzog, “A generalized rates-pricing/real-time-pricing/rrtpprogramguide.pdf
load management gateway coupling smart buildings to the grid,” in Proc. [54] Z. Wang, “Compensation methods for demand response,” M.S. thesis,
AFRICON Conf., Livingstone, Zambia, 2011, pp. 1–5. Dept. Elect. Comput. Eng., Univ. Kentucky, Lexington, KY, USA, 2015.
[30] P. Palensky and D. Dietrich, “Demand side management: Demand [55] R. Li, Q. Wu, and S. S. Oren, “Distribution locational marginal pricing
response, intelligent energy systems, and smart loads,” IEEE Trans. Ind. for optimal electric vehicle charging management,” IEEE Trans. Power
Informat., vol. 7, no. 3, pp. 381–388, Aug. 2011. Syst., vol. 29, no. 1, pp. 203–211, Jan. 2014.
[31] X. Xue and W. Shengwei, “Interactive building load management for
smart grid,” in Proc. IEEE Power Eng. Autom. Conf., Wuhan, China,
2012, pp. 1–5. Meysam Razmara is currently pursuing the Ph.D. degree in mechanical
[32] A. Saha et al., “A home energy management algorithm in a smart house engineering from Michigan Technological University, Houghton, MI, USA.
integrated with renewable energy,” in Proc. IEEE Innov. Smart Grid
Technol. Conf. Europe, Istanbul, Turkey, 2014, pp. 1–6.
[33] B. Jin, P. Nuzzo, M. Maasoumy, Y. Zhou, and Guna R. Bharati is currently pursuing the Ph.D. degree in electrical
A. Sangiovanni-Vincentelli, “A contract-based framework for integrated engineering from Michigan Technological University, Houghton, MI, USA.
demand response management in smart grids,” in Proc. 2nd ACM Int.
Conf. Embedded Syst. Energy Efficient Built Environ., Seoul, South
Korea, 2015, pp. 167–176. Mahdi Shahbakhti is an Assistant Professor of Mechanical Engineering at
[34] J. Hagerman, G. Hernandez, A. Nicholls, and N. Foster, “Buildings-to- Michigan Technological University, Houghton, MI, USA.
grid technical opportunities: Introduction and vision,” U.S. Dept. Energy,
Energy Efficient and Renewable Energy (EERE), Washington, DC, USA,
Tech. Rep., 2014. Sumit Paudyal is an Assistant Professor of Electrical Engineering at
[35] S. Bera, S. Misra, and J. P. C. Rodrigues, “Cloud computing applications Michigan Technological University, Houghton, MI, USA.
for smart grid: A survey,” IEEE Trans. Parallel Distrib. Syst., vol. 26,
no. 5, pp. 1477–1494, May 2015.
[36] J. Haack, B. Akyol, B. Carpenter, C. Tews, and L. Foglesong, “Volttron: Rush D. Robinett, III, is the Richard and Elizabeth Henes Chair Professor of
An agent platform for the smart grid,” in Proc. Int. Conf. Auton. Agents Mechanical Engineering and the Co-Director of the Agile and Interconnected
Multi-Agent Syst., St. Paul, MN, USA, May 2013, pp. 1367–1368. Microgrids Center, Michigan Technological University, Houghton, MI, USA.