Next Article in Journal
The Effect of Selected Factors on Floor Upheaval in Roadways—In Situ Testing
Next Article in Special Issue
Hierarchical, Grid-Aware, and Economically Optimal Coordination of Distributed Energy Resources in Realistic Distribution Systems
Previous Article in Journal
A Feasibility Analysis of Controlling a Hybrid Power System over Short Time Intervals
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Optimal Renewable Resource Allocation and Load Scheduling of Resilient Communities

1
Department of Civil, Environmental and Architectural Engineering, University of Colorado Boulder, 1111 Engineering Dr, Boulder, CO 80309, USA
2
Department of Electrical, Computer and Energy Engineering, University of Colorado Boulder, 425 UCB #1B55, Boulder, CO 80309, USA
3
Renewable and Sustainable Energy Institute, 027 UCB Suite N321, Boulder, CO 80309, USA
4
National Renewable Energy Laboratory, 15013 Denver W Pkwy, Golden, CO 80401, USA
5
Pacific Northwest National Laboratory, 902 Battelle Blvd, Richland, WA 99354, USA
*
Author to whom correspondence should be addressed.
Energies 2020, 13(21), 5683; https://doi.org/10.3390/en13215683
Submission received: 9 October 2020 / Revised: 28 October 2020 / Accepted: 29 October 2020 / Published: 30 October 2020

Abstract

:
This paper presents a methodology for enhancing community resilience through optimal renewable resource allocation and load scheduling in order to minimize unserved load and thermal discomfort. The proposed control architecture distributes the computational effort and is easier to be scaled up than traditional centralized control. The decentralized control architecture consists of two layers: The community operator layer (COL) allocates the limited amount of renewable energy resource according to the power flexibility of each building. The building agent layer (BAL) addresses the optimal load scheduling problem for each building with the allowable load determined by the COL. Both layers are formulated as a model predictive control (MPC) based optimization. Simulation scenarios are designed to compare different combinations of building weighting methods and objective functions to provide guidance for real-world deployment by community and microgrid operators. The results indicate that the impact of power flexibility is more prominent than the weighting factor to the resource allocation process. Allocation based purely on occupancy status could lead to an increase of PV curtailment. Further, it is necessary for the building agent to have multi-objective optimization to minimize unserved load ratio and maximize comfort simultaneously.

1. Introduction

In the past several decades, the degrading power grid infrastructure has been faced with higher stress. On one hand, the frequency of human-made disasters as well as extreme weather events is increasing, causing more frequent power outages [1]. On the other hand, the rapid technical advancement and increasing adoption of renewable energy is bringing more uncertainty and variability, posing new challenges to the grid. These factors impact the resilience of the power supply and, thus, require the demand side to become actively involved in grid resilience management.
In 2017, Hurricane Maria left 1.5 million customers across Puerto Rico without electricity and it took 11 months to fully restore the power system [2]. In such extreme cases, outages not only cause inconvenience to occupants’ daily life but also compromise their health or even lives. The power loss of the heating, ventilation, and air-conditioning (HVAC) system in a nursing home located in Florida caused 12 patients’ deaths after Hurricane Irma in 2017 [3]. This has motivated the research towards more resilient communities.
Studies have proven that communities with on-site PV power and batteries have the potential to sustain power outages for a certain period if the energy resources are properly managed and the controllable loads are well scheduled [4]. Some research efforts focus on microgrid operation with selected distributed generation technologies and energy storage systems. Marnay [5] illustrated that the adoption of combined heat and power together with heat and electrical storage in a hypothetical San Francisco hotel can lead to 11% cost savings and 8% carbon emission reductions. Similarly, Bozchalui [6] developed mathematical models of a combined cooling, heating, and power system for a commercial building microgrid, together with PV generation, thermal energy storage, and battery storage devices. Results in [4,5,6] show that adopting the above technologies can reduce total costs and help achieve efficiency and emission reduction targets.
Some research focuses on restoring the power generation, transmission and distribution promptly after power outages [1]. Arif [7] co-optimized the topology reconfiguration, repair crew scheduling, and distributed generator (DG) dispatching to maximize the picked-up loads while minimizing the repair time. Chen [8] and Ding [9] proposed a mechanism for microgrid formation to restore critical loads after major disruptions in the power grid. In their scheme, a mixed-integer linear program (MILP) was formulated to maximize the total restored critical loads. The problem was constrained by each microgrid’s self-adequacy and operation constraints. Similarly, Chen [10] proposed a MILP model for the optimal sequential service restoration, which coordinates dispatchable DGs and switchgears to restore the power system service step by step.
Other studies consider flexible load scheduling as an important avenue to enhance resilience. In this case, the power demand from buildings can be ramped up or down in response to exterior signals, such as available PV power and occupancy prediction. Hussain [11] classifies proactive scheduling, such as revising schedules of dispatchable generators, flexible loads and energy storages, as the first step for enhancing grid resilience. Kallel [12] proposed a demand-side management control strategy through the modification of the household load profile to satisfy the demand and reduce the size of system components in a stand-alone hybrid PV system. Results show that the proposed strategy led to minimum loss of power supply probability and system cost, as well as extended battery life.
Among the optimal load scheduling studies, some researchers approach load management through a rule-based methodology. Ayodele [13] proposed a rule-based load management scheme for a stand-alone PV battery system, where residential loads are classified into critical and non-critical loads. The critical loads are given higher priority and therefore can operate at their scheduled time while the uncritical loads can be shifted to other times. However, this type of method is not suitable for problems with a large number of variables (i.e., controllable appliances), where manually defining the algorithms becomes difficult.
Many other studies formulate load scheduling as an optimization problem. Garifi [14] adopted a stochastic MPC-based algorithm for demand response in a home energy management system (HEMS). The HEMS optimally schedules controllable appliances given user preferences and available residentially owned power sources such as PV and battery. Zhao [15] applied a genetic algorithm (GA) in a HEMS controller where the optimal power scheduling schemes under various electricity pricing models are compared. Pathak [16] developed a scheduling strategy for demand response management of residential loads using a particle swarm optimization algorithm. Additionally, machine leaning techniques have been emerging in the optimal load scheduling field. Zhang [17] proposed a learning-based HEMS, where neural network and regression-based learning are adopted to predict the energy consumption of the HVAC system. Mazzeo [18] applied energy reliability-constrained method for the multi-objective optimization of hybrid photovoltaic-wind-battery systems. The proposed method permits choosing the most proper indicator combination to be constrained or optimized.
Noticeably, occupants’ preferences are widely considered in the problem formulation of load scheduling as either constraints or objectives. Jin [19] presented a user-centric HEMS that is built on a multi-objective MPC framework, wherein the objectives consist of thermal comfort and user convenience. In Zhao’s work [15], the delay time rate of home appliances, i.e., the deviation between an appliance’s actual operation time and its scheduled time, is minimized to increase the satisfaction of user preferences.
Optimal load scheduling in single buildings, especially residential buildings, has been studied extensively [14,15,16,17,19]. Quantifying load flexibility and optimal load scheduling in other building types, however, needs further exploration. Larger-scale studies, such as those for microgrids, often focus on identifying enabling energy technologies or operating energy resources from a higher level. The scheduling of each controllable load in every building of a community can be computationally challenging due to the increased number of variables. However, this also provides more possibilities for load scheduling due to the heterogeneity of different building load shapes in the community. If building loads in the same community are scheduled simultaneously by a single operator, power sharing is possible. Further, under certain circumstances, buildings of lower priority could reduce their loads to satisfy the demand of higher priority building loads.
Therefore, this paper proposes a new methodology for optimal renewable resource allocation and load scheduling in resilient communities. The methodology adopts a hierarchical architecture consisting of a COL and a BAL. The COL enables dynamic renewable resource sharing among buildings in the same community according to various weighting methods. The BAL then achieves the locally optimal operation solution by controlling its HVAC system, loads and battery storage with the allowable load decided by the COL. The innovation of this work is that it proposes an easy-to-deploy optimization scheme for large-scale communities, which embraces both high-level resource allocation and low-level high-fidelity building energy modeling. The hierarchical control architecture distributes the computational effort and is easier to be scaled up than traditional centralized control, which is not robust for large-scale deployment. The hierarchical structure also helps hide the complexity of the whole scheduling system through the separated layers. In the case study, different building types are considered, including residential and small commercial buildings.
The remainder of the paper is organized as follows: Section 2 introduces the concept and architecture developed for community resource allocation and load scheduling. Section 3 provides the mathematical formulation of the optimization problem. Section 4 demonstrates the proposed methodology through a case study based on a real community. Finally, concluding remarks and future work are provided in Section 5.

2. Proposed Architecture for Resource Allocation and Scheduling

In this work, we consider an islanded community during a power outage. The only energy resource accessible to the community is the on-site PV generator and the batteries. Under this problem setting, the research question is how to optimally allocate the limited PV generation among different buildings and schedule the loads to meet occupants’ essential needs for a certain time period. Here, we confine occupants’ essential needs to be physiological (i.e., food and shelter) and safety needs (i.e., lighting at night), which align with the two bottom levels of Maslow’s Hierarchy of Needs [20].
To address this problem, we propose a hierarchical control architecture that consists of two layers. The top layer is the COL which mimics the perspective of the community operator and seeks the optimal solution for allocating the limited PV power among buildings. The bottom layer is the BAL which satisfies its occupants’ needs through optimal load scheduling. In this way, the cooperation among buildings is achieved through their individual but simultaneous communication with the operator and the global optimum of the whole community is also achieved through decentralized control. The operation in both layers is formulated as MPC problems. The proposed architecture with data exchange flow is visualized in Figure 1.
As can be seen from the figure, the COL determines the allowable load based on the forecast of the total PV power generation and the load flexibility of each building. The determined allowable load of each building is then passed down to the building smart controllers in BAL. Other inputs of the BAL consist of the outdoor temperature and solar irradiance forecasts. This decentralized control architecture distributes the computational efforts to local controllers. Compared with centralized control, this structure is more robust, scales up easily, and allows the use of inexpensive and simple agents at the BAL [21]. The data exchange between the COL and the BAL can be implemented through multi-agent communication system [22]. The detailed mechanisms of the two layers are introduced in the remainder of this section.

2.1. Renewable Resource Allocation in COL

The COL allocates the limited amount of available generation from a renewable energy resource; namely, PV power, according to the load flexibility of each building, within which range the building’s power demand can fluctuate. The operator decides the optimal way to allocate the current PV power to avoid PV curtailment and building load shedding. We assume that the operator does not take into account the detailed building equipment information, extra building-owned energy resources (i.e., battery), or building thermal dynamics in its allocation process. This assures the scalability of the control framework. The allocated PV power to building i is defined as the allowable load:
P a l l o w , i t = α i t P p v t ,
where α i t is the ratio of the allowable load of building i to the current total PV generation P p v t . Since it is directly related to the allocated PV power, α i t is referred to as the allocation factor in the rest of the paper.
To investigate a logical way to allocate the PV power besides the baseline, where the allocation is done only with information of building load flexibility, we introduce weighting factors into the problem. The weighting factor reflects the priority of each building. Two types of weighting factors are considered: constant versus dynamic. The constant weighting factor is adopted when a building is naturally more important than other buildings. For example, health facilities are naturally prioritized over other types of buildings during emergencies. The dynamic weighting factor is time-varying based on occupancy, e.g., when a building is occupied, it has a higher weighting factor.
Therefore, the COL decides the allowable load of each building through three methods: (1) equally weighted, (2) weighted based on priority, (3) weighted based on occupancy. The determined allowable load is then passed to the smart controllers in BAL, where each building performs its local detailed optimization to achieve its own objectives.

2.2. Optimal Load Scheduling in BAL

The BAL addresses the optimal load scheduling problem with the predetermined allowable load. Each building is simulated as an agent that has various electrical loads, an HVAC system, and a battery. The HVAC system is modeled with a linear regression model trained from data. The battery is modeled with a linear convex model. By adopting linear room temperature models and battery models, the optimization problem becomes linear. This method has the advantage of shorter computational time. However, compared to high-fidelity nonlinear models, it may lose some model fidelity and the ability to simulate certain system dynamics by making simplifications. In this work, linear models are accurate enough for our application scenario.
In this work, following methods found in the literature [12,13,15,17,23], the building’s electrical loads are categorized into four types: sheddable, modulatable, shiftable, and critical. The primary classification criteria include the assumed occupants’ preference during emergency circumstances and the electrical characteristics of different appliances. Only loads that are related to safety (e.g., lighting at night) or food preservation (e.g., refrigerator) are considered critical. Sheddable loads are those that can be fully disconnected without impacting the occupant’s essential needs during the studied time period, such as coffee makers. Modulatable loads are those categorized by varying power amplitudes such as the HVAC system. Shiftable loads are those that need to be operated but are flexible with respect to the time of day that they are scheduled. Examples are washers and driers. From practical point of view, categorizing building loads can help avoid dealing with thousands of individual load models especially when the problem scales up. It can significantly reduce the computational effort. Figure 2 visualizes the logic we followed to categorize the loads.
Additionally, at this layer, different optimization objective functions are compared to evaluate their performance in satisfying selected key performance indices (KPIs); namely, unserved load ratio, thermal comfort, PV curtailment, and required battery installation size. Two objectives are considered: (1) minimizing unserved load ratio, and (2) maximizing thermal comfort.
It is to mention that we included uncertainty in the weather-related parameter forecasts to account for prediction errors. Chance constraints for the indoor temperature range are, thus, implemented to ensure thermal comfort is maintained with high probability. The following section presents the detailed mathematical formulation of the two-layered control architecture with equations.

3. Formulation of the Optimization Problem

3.1. Community Operator Layer

The COL determines the allowable load of each building through MPC-based optimization that takes into account forecasted PV generation, building load flexibility, priority and occupancy of each building. The flexibility of building loads depends on the power demand of the controllable loads, i.e., the sum of sheddable, modulatable, and shiftable loads. Note that the HVAC load flexibility is reflected in the temperature range constraints and is not summed here. The mathematical formulation of the load flexibility for each building i is given by:
P l o a d , f l e x , i t = j = 1 N s h e d ,   i P ^ s h e d , i , j t + j = 1 N m o d u , i P ^ m o d u , i , j t + j = 1 N s h i f , i P ^ s h i f , i , j t ,
where P ^ s h e d , i , j t , P ^ m o d u , i , j t , and P ^ s h i f , i , j t denote the prediction data of each individual sheddable, modulatable, and shiftable load in building i , respectively. The N s h e d ,   i , N m o d u , i , and N s h i f , i represent the number of appliances under each category. The constraints of the flexible load are defined as:
P _ l o a d , i t = j = 1 N c r i t , i P ^ c r i t , i , j t ,
P ¯ l o a d , i t = P _ l o a d , i t + P l o a d , f l e x , i t ,
P _ l o a d , i t P l o a d , i t P ¯ l o a d , i t ,
where P ^ c r i t , i , j t stands for the prediction data of each critical load in building i . P l o a d , i t is an optimization variable that represents the actual consumed power at each timestep, which is bounded by the critical load P _ l o a d , i t and the total desired load P ¯ l o a d , i t .
Equations (6)–(10) define the power balance and its constrains at the community level:
α i t P p v t P c u r t , i t = P l o a d , i t P s h e d , i t ,
s . t .   0 P c u r t , i t α i t P p v t ,
0 P s h e d , i t P _ l o a d , i t ,
0 α i t 1 ,
i = 1 I α i t = 1 ,
where α i t P p v t is the PV power allocated to building i at timestep t . Equation (7) defines the range of the PV curtailment, where the variable P c u r t , i t denotes the curtailment of allocated PV power in the case that allocated PV power exceeds the upper bound of P l o a d , i t . Similarly, P s h e d , i t is the variable of load shedding for situations when the available PV power is less than the lower bound of P l o a d , i t . Equation (8) enforces that the value of load shedding cannot exceed the lower bound of P l o a d , i t . Equations (9) and (10) define the range of the PV allocation factor α i t and the sum of all allocation factors at any timestep must equal 1. The total number of buildings in the community is given by parameter I .
The objective of the COL is to minimize the total PV curtailment and load shedding over the whole MPC prediction horizon at the community level. The mathematical formulation of the objective function is defined as:
f c o s t ( t , { x t } t = 1 H ) = i = 1 I t = 1 H ( P c u r t , i t + P s h e d , i t ) ,
min { x t } t = 1 H f c o s t ( t , { x t } t = 1 H ) ,
where H denotes the prediction horizon. Let x t be the vector of all optimization variables of the COL:
x t = [ { P c u r t , i t } t = 1 H , { P s h e d , i t } t = 1 H , { P l o a d , i t } t = 1 H , { α i t } t = 1 H ] ,   i { 1 ,   2 ,   ,   I } ,   t { 1 ,   2 ,   ,   H } .
For scenarios where a certain building is prioritized over other buildings, a weighting factor w i t > 1 is introduced into the cost function shown in Equation (11) to obtain:
f c o s t ( t , { x t } t = 1 H ) = i = 1 I t = 1 H ( P c u r t , i t + w i t P s h e d , i t ) .
This will ensure that a prioritized building will experience less load shed P s h e d , i t . For constant weighting scenarios, w i t of the prioritized building is twice as large as the rest of the buildings over the whole simulation. For occupancy-based time-varying weighting scenarios, w i t of any building is doubled when that building is occupied.

3.2. Building Agent Layer

The BAL performs MPC-based optimal load scheduling with detailed device models. The overall optimization problem is a MILP since our device models include binary variables. Each building agent coordinates the electricity usage of an HVAC model, four types of building loads, and a battery. Since all the equations in this section apply for every individual building i , to avoid redundancy, we have removed the notation of building index i in the following discussion. For each of the studied buildings, the power balance that must be satisfied at each timestep is given by:
P p v t P c u r t t = P c h t P d i s t + P l o a d t + P h v a c t ,
where PV curtailment is limited by how much PV generation is available:
s . t .   0 P c u r t t P p v t .
Two different cost functions are designed to be compared: (1) to minimize unserved load ratio:
f c o s t ( t , { x t } t = 1 H ) = t = 1 H ( P ¯ l o a d t P l o a d t ) + t = 1 H γ P c h t + t = 1 H γ P c u r t t ,
min { x t } t = 1 H f c o s t ( t , { x t } t = 1 H ) ,
and (2) to maximize thermal comfort:
f c o s t ( t , { x t } t = 1 H ) = t = 1 H ( T r o o m t T _ r o o m + T ¯ r o o m 2 ) 2 + t = 1 H γ P c h t + t = 1 H γ P c u r t t ,
m i n { x t } t = 1 H f c o s t ( t , { x t } t = 1 H ) .
In Equation (17), P ¯ l o a d t is the same predicted load upper bound discussed in Section 3.1 in Equation (4). The difference between this upper bound and the actual operated loads P l o a d t is minimized to achieve maximum served load. In Equation (19), the first term penalizes when the indoor air temperature T r o o m t deviates from the desired temperature range given by T _ r o o m and T ¯ r o o m , which are the lower and upper bounds of the indoor air temperature. To avoid simultaneous charging and discharging of the battery as well as PV curtailment, the objective function also includes small penalizations of charging γ P c h t and curtailment γ P c u r t t [24].
The room temperature is predicted with a linear regression model shown in Equations (21)–(23). The independent variables include the ambient temperature T a m b t , indoor room temperature T r o o m t , and solar irradiance Q s o l t of the past two timesteps, and the speed of the HVAC equipment of the past one timestep r h v a c t . The normalized speed ranges from 0 to 1. The resulted HVAC system power is thus the product of the speed ratio r h v a c t and the nominal power P h v a c , n o m . The choice of regression over two past terms is to reflect the impact of building thermal mass on indoor temperature evolution while balancing prediction accuracy and computational time [25]. In this model, the internal heat gain was not included as it is calculated from the actual operated devices (i.e., optimization variables). Having it in the temperature prediction model will further couple the temperature calculation and the load scheduling, causing the computational effort to be greater. Additionally, compared to the solar heat gain, the internal heat gain accounts for less than 10% of the total heat gain in our case. Due to the above reasons, we did not include the internal heat gain in this model.
T r o o m t + 1 = β 1 T a m b t + β 2 T a m b t 1 + β 3 T r o o m t + β 4 T r o o m t 1 β 5 r h v a c t + β 6 Q s o l t + β 7 Q s o l t 1
0 r h v a c t 1
P h v a c t = r h v a c t P h v a c , n o m
To account for the uncertainty in the outdoor air temperature and solar irradiance forecasts, we use chance constraints to ensure that thermal comfort is maintained with a high probability [26]. The chance constraints are given by:
P r ( T _ r o o m T r o o m t ) 1 ε T ,
P r ( T r o o m t T ¯ r o o m ) 1 ε T ,
where ε T is the maximum violation probability of the chance constraint. We assume that the forecasting errors for all timesteps follow the same normal distribution and are independent for each timestep:
T a m b , e t ~ N ( μ T t , ( σ T t ) 2 ) ,
Q s o l , e t ~ N ( μ Q t , ( σ Q t ) 2 ) .
The outdoor temperature and solar irradiance predictions can, thus, be represented as:
T a m b t = T a m b , f t + T a m b , e t ,
Q s o l t = Q s o l , f t + Q s o l , e t ,
where T a m b , f t and Q s o l , f t are the forecasts of ambient temperature and solar irradiance while T a m b , e t and Q s o l , e t are the forecast errors. The chance constraint shown in Equation (25) can be rewritten as:
P r ( χ T t + 1 0 ) 1 ε T ,
where:
χ T t + 1 = T r o o m t + 1 T ¯ r o o m .
Then, by substituting Equations (21), (28), and (29) for T r o o m t + 1 , the above equation becomes:
χ T t + 1 = β 1 ( T a m b , f t + T a m b , e t ) + β 2 ( T a m b t 1 + T a m b , e t 1 ) + β 3 T r o o m t + β 4 T r o o m t 1 β 5 r h v a c t + β 6 ( Q s o l , f t + Q s o l , e t ) + β 7 ( Q s o l t 1 + Q s o l , e t 1 ) T ¯ r o o m .
Since T a m b , e t and Q s o l , e t are normally distributed, χ T t + 1 is also normally distributed with the following mean μ t and standard deviation σ t :
μ T = β 1 ( T a m b , f t + μ T t ) + β 2 ( T a m b t 1 + μ T t ) + β 3 T r o o m t + β 4 T r o o m t 1 β 5 r h v a c t + β 6 ( Q s o l , f t + μ Q t ) + β 7 ( Q s o l t 1 + μ Q t ) T ¯ r o o m ,
σ t = ( β 1 σ T t ) 2 + ( β 2 σ T t ) 2 + ( β 6 σ Q t ) 2 + ( β 7 σ Q t ) 2 .
Hence, the chance constraint in Equation (30) can be reformulated as:
P r ( χ T t + 1 0 ) = Φ ( 0 μ t σ t ) 1 ε T ,
where Φ ( · ) is the cumulative distribution function (CDF) of the standard normal distribution N ( 0 ,   1 ) . Finally, by taking the inverse CDF of both sides in Equation (35), we obtain the chance constraint for ensuring the indoor temperature not exceeding the upper bound of T ¯ r o o m with the probability of ( 1 ε T ) as follows:
T ¯ r o o m β 1 ( T a m b , f t + μ T t ) β 2 ( T a m b t 1 + μ T t ) β 3 T r o o m t β 4 T r o o m t 1 + β 5 r h v a c t β 6 ( Q s o l , f t + μ Q t ) β 7 ( Q s o l t 1 + μ Q t ) Φ 1 ( 1 ε T ) ( β 1 σ T t ) 2 + ( β 2 σ T t ) 2 + ( β 6 σ Q t ) 2 + ( β 7 σ Q t ) 2 .
Taking a similar derivation process for Equation (24), we obtain the chance constraint for the temperature lower bound:
β 1 ( T a m b , f t + μ T t ) + β 2 ( T a m b t 1 + μ T t ) + β 3 T r o o m t + β 4 T r o o m t 1 β 5 r h v a c t + β 6 ( Q s o l , f t + μ Q t ) + β 7 ( Q s o l t 1 + μ Q t ) T _ r o o m Φ 1 ( 1 ε T ) ( β 1 σ T t ) 2 + ( β 2 σ T t ) 2 + ( β 6 σ Q t ) 2 + ( β 7 σ Q t ) 2 .
As mentioned above, the electrical loads consist of four types: sheddable, modulatable, shiftable, and critical, which are summed in the following equation:
P l o a d t = j = 1 N s h e d P s h e d , j t + j = 1 N m o d u P m o d u , j t + j = 1 N s h i f P s h i f , j t + j = 1 N c r i t P c r i t , j t .
where P s h e d , j t , P m o d u , j t , P s h i f , j t , and P c r i t , j t are the optimization variables for individual loads in each category. The mathematical formulation of the sheddable load is shown in Equation (39), where u s h e d , j t is a binary optimization variable and P ^ s h e d , j t is the original sheddable load power demand data. The actual sheddable load after optimization P s h e d , j t is determined by the ON/OFF status represented by the binary variable.
P s h e d , j t = u s h e d , j t P ^ s h e d , j t ,     j { 1 ,   ,   N s h e d }
Equation (40) sets the lower and upper bound of the optimization variable P m o d u , j t , which represents the modulatable load power demand. The actual demand is modulated between zero and the original demand data P ^ m o d u , j t .
0 P m o d u , j t P ^ m o d u , j t ,     j { 1 ,   , N m o d u }
Equation (41) states that the actual critical load P c r i t , j t must be exactly equal to the critical power demand data P ^ c r i t , j t .
P c r i t , j t = P ^ c r i t , j t ,     j { 1 ,   , N c r i t }
The shiftable loads are scheduled through scheduling matrices [15]. First, using the power data [27], we extracted the average cycle time n s h i f , j and the average power demand P s h i f , j , a v g of each shiftable load. The starting time of a shiftable load t s h i f , j , s is optimized over the MPC horizon. At the scheduled starting time, the binary variable v s h e d , j t equals 1 and is 0 otherwise:
v s h i f , j t = { 1 ,   t = t s h i f , j , s     0 ,   t t s h i f , j , s   , t { 1 ,   ,   H n s h i f , j + 1 } ,   j { 1 ,   ,   N s h i f } .
Once the starting time of a load is selected, the power demand of the load is then fixed until it finishes its cycle. The appliance must finish its cycle before the horizon ends ( t { 1 ,   ,   H n s h i f , j + 1 } ). Here, we assume that each shiftable load operates once and only once in each horizon, which is enforced by:
t = 1 H n s h i f , j + 1 v s h i f , j t = 1 .
Next, a scheduling matrix S s h i f , j of shape H × ( H n s h i f , j + 1 ) is generated for each shiftable load. The actual power shape of the load, denoted P s h i f , j t , is calculated by:
P s h i f , j t = S s h i f , j × [ v s h i f , j 1 v s h i f , j H n s h i f , j + 1 ] × P s h i f , j , a v g .
For instance, when H = 12 ,   n s h i f , j = 3 , an appliance scheduling matrix of shape 12 × 10 is generated as follows:
S s h i f , j = [ 1 0 0 0 1 1 0 0 1 1 0 0 0 1 0 0 0 0 0 0 0 0 1 0 0 0 1 1 0 0 1 1 0 0 0 1 ]
The linear battery model adopted in this work is shown in Equations (46)–(48). The battery state of charge (SOC) E b a t t + 1 depends on the SOC of the previous timestep E b a t t , as well as the battery charging or discharging during each step and the battery charging/discharging efficiencies η c h and η d i s . Constraints in Equations (47) and (48) enforce the acceptable limits for charging/discharging power and battery SOC:
E b a t t + 1 = E b a t t + η c h P c h t Δ t 1 η d i s P d i s t Δ t  
0 P c h t , P d i s t P ¯ b a t
0 E b a t t E ¯ b a t
The optimization variables in each building agent are collected in vector x t :
x t = [ { P c u r t t } t = 1 H , { P c h t } t = 1 H , { P d i s t } t = 1 H , { r h v a c t } t = 1 H , { u s h e d , j t } t = 1 H , { P m o d u , j t } t = 1 H , { v s h i f , j t } t = 1 H n s h i f , j + 1 , { T r o o m t } t = 1 H , { E b a t t }   t = 1 H ]

4. Case Study

The proposed architecture has been tested with a case study based on a real-world community located in Anna Maria Island, FL [28]. It is a net-zero energy community made up of residential units and small commercial buildings with on-site PV panels. To demonstrate the idea of dynamic power sharing among buildings, the data for three buildings of different types are used in the case study [27]. The selected buildings are: one residential building (area: 93.8 m2), one ice cream shop (area: 160.5 m2), and one bakery (area: 410 m2). All buildings use heat pumps as the HVAC equipment. All data for the case study have been exported from a validated physics-based model of the studied community [29]. The weather file embedded in the model is typical meteorological year (TMY) data for the weather station at Tampa International Airport [30]. The load data consists of power submetering data provided by the community [27]. The solar irradiance data are collected through a local solar station. The indoor temperature data are simulation results generated by the physics-based room models [31]. The simulations are run in Python 2.7 with Gurobi 9.0 [32] as the optimization engine. The average simulation time of each scenario is about 20 s in Windows 7 operating system on a DELL T5810 workstation with 32 GB RAM and a 3.50 GHz Intel Xeon CPU (E5-1620 v4) processor.

4.1. Simulation Scenario Design

The optimal resource allocation and load scheduling MPC algorithm for the community when disconnected from the grid was simulated for 48 h within Florida’s hurricane season on August 4 and 5. The timestep Δ t for both COL and BAL is 1 h and the MPC horizon H = 12 h to balance the trade-off between forecast information and computational time. Table 1 lists the 10 scenarios covering various weighting methods at the operator layer and two different objectives at the building layer. In the following discussion, R stands for Residential, I stands for Ice Cream Shop, and B stands for Bakery. Each scenario was run for all three buildings. In total, 30 simulations were run and analyzed.
In the room temperature constraints, the lower and upper temperature limits T _ r o o m and T ¯ r o o m are governed by ASHRAE Standard 55–2017 [33], which recommends the temperature range for thermal comfort to be approximately between 67 ° F and 82 ° F (20–28 ° C ). Thus, T _ r o o m is 20 ° C and T ¯ r o o m is 28 ° C . Table 2 summarizes the coefficients of the HVAC linear regression models. The prediction accuracy is measured with the root mean square error (RMSE). The nominal power of each heat pump is listed in the last row of Table 2.
Table 3 summarizes the load categorization results following the classification proposed in Section 2.2. In this study, we determine whether a load is sheddable from the building owner’s perspective. For instance, the coffee maker and the soda dispenser in the ice cream shop are classified as sheddable during the outage. Mixers with variable speed options, as well as the HVAC system, are classified as modulatable loads due to their varying power amplitudes. Since some plug loads in the dataset are unspecified, we sum those loads into one modulatable load. The washer, dryer, and stovetop range are considered shiftable loads in this work as their operation schedules can be flexible if needed. Lights, coolers, and display cases are classified as critical because they are related with occupants’ need for safety and food preservation. Due to the islanded circumstances, some loads commonly categorized as critical are considered to be sheddable (e.g., computer) in this paper.
Parameters related to battery configuration and penalty coefficients are summarized in Table 4. We assumed the maximum charging/discharging power P ¯ b a t to be 40% of the battery energy bound E ¯ b a t . Further, the initial battery SOC is assumed to be 50% of E ¯ b a t . The charging/discharging efficiencies are η c h = η d i s = 0.9 .

4.2. Validation of the Chance Constraint

Before further evaluating the simulation results, we first need to validate the chance constraints. The normally distributed error we introduced into outdoor temperature forecast is assumed to be T a m b , e t ~ N ( 0 , ( 0.2 ) 2 ) and the solar irradiance forecast error is assumed to be Q s o l , e t ~ N ( 0 , ( 0.01 ) 2 ) . The tolerance ε T is 0.05, meaning that with the given error distribution of forecast, the temperature range can be violated 5% of the time in the independent experiments.
Monte Carlo simulations were adopted for the constraint validation. For each timestep of the simulation, normally distributed errors were generated randomly for 1000 times and then added into the temperature prediction model in Equation (21) with the optimal HVAC operation decisions. Results showed that all temperature predictions of 10 scenarios in all three buildings are within the range of 20–28 ° C . As an example, Figure 3 compares the temperature predictions with and without uncertainty using the simulation results for scenario S11. We see that, with the accumulation of prediction errors (both positive and negative), the absolute difference between the temperature trajectories with and without forecast error lies within the 0–0.5 ° C range.

4.3. Impact of Weighting Factor

This section first discusses the allocation factors α i t generated by the operator layer, which later serves as the input for the smart controllers at the building layer. Then, we compare the scheduled load shapes, battery behavior, and indoor temperature of each building in different scenarios to further discuss the impact of weighting factors on the KPIs.
Figure 4 compares the allocation factors for equally weighted buildings (baseline) with weightings that prioritize each building over the others. Qualitatively, when all buildings are equally weighted in the allocation process (second plot from top), we see a rather random behavior for the PV allocation during the nighttime when no PV power is available. All three buildings take turn to get full PV power ( α i t = 1 ) because they have the same objective function value. On the contrary, for the scenarios when single building is prioritized, the prioritized building gets full PV power alone during the nighttime (bottom three plots). During the daytime, when more PV generation is available, the allocation results follow similar trends for all scenarios regardless of the weighting method. Although generally we see less load shedding in the prioritized building, as well as a higher value of the allocation factor, the allocation process is mostly constrained by the building load flexibility ranges. More specifically, buildings with a higher load flexibility lower bound (i.e., ice cream shop) tend to get more allowable load than other buildings.
Figure 5 plots the allocation factors for occupancy-based weighting method against building occupancy. Here, occupancy indicates whether the building is occupied. In this work, we do not consider number of people in the building as we don’t have access to this level of data. From the middle plot, we see that the residential building is mostly occupied during the night from about 7 P.M. to 8 A.M. Ice cream shop and bakery are occupied during the day from 10 A.M.–11 P.M. and 6 A.M.–7 P.M., respectively. From the bottom plot, we see that similar to single building prioritized scenarios, when at night only residential building is occupied, it gets full PV allocation. However, when the time reaches 5 A.M., the allocation factor of the residential building starts to decrease and during the day only a few hours will it get PV power due to its unoccupied status. During the daytime, when both the bakery and ice cream shop are occupied, the allocation basically follows the buildings’ power flexibility lower bounds as discussed before.
To further quantify the impact of different weighting methods, the mean values of the allocation factors α i t ¯ , as well as the total allocated PV energy are listed in Table 5. Due to the highly stochastic allocation during nighttime when no PV power is available, we only counted hours when PV generation is greater than zero in the calculation of α i t ¯ . From the table, we noticed that having a lower mean allocation factor does not necessarily mean less PV energy allocation. For example, in the scenario where the residential building is prioritized, its α i t ¯ is less than 22% while for the bakery it is almost 33%. However, the total PV energy allocated to the residential building is 33.42% more than that allocated to the bakery. This is because the residential building has higher α i t values during hours with the most PV generation (i.e., around noon). This indicates that having a higher allocation factor when more PV power is generated is more crucial. When looking at the occupancy-based weighting scenario, the residential building PV energy exceeds that of the equal weighting scenario since the shortly occupied hours during the day (e.g., hours 34–36) bring more allocation. Overall, no matter which weighting method is adopted, the ice cream shop is always allocated the most PV energy due to its large refrigeration loads, while the residential building is always allocated the least amount of PV energy (except when it is prioritized in scenarios S21_R and S22_R). This indicates that the impact of power flexibility is more prominent than the weighting factors during the resource allocation.
Next, the simulation results will be discussed for the various PV allocation methods. In the following discussion, we highlight a subset of the results; however, the complete set of results are available in Appendix A and quantitative results for all 30 simulations are summarized in Table A1. In the following simulation results, the baseline power is the original load shape from data. The positive battery power means charging and negative means discharging. The scheduled sheddable, modulatable, shiftable loads, and critical loads are represented by color blocks. When evaluating the thermal comfort results, the baseline temperature is the original indoor temperature with a setpoint of 24 °C without optimization. For clarity, the label S21 in the temperature plots represents the scenario of the discussed building being prioritized, as described in Table 1.
The residential building operation is compared in the scenario where all buildings are equally weighted and where the residential building is prioritized in Figure 6 and Figure 7, respectively. In both scenarios, we see that shiftable loads are scheduled during the day when more PV power is available. All sheddable and modulatable loads are satisfied in both cases (see Table A1 for details). When the allocated PV power is more than doubled in the residential building due to it being prioritized, we see more battery charging and discharging in Figure 7. However, more than enough PV power is allocated to the residential building in this case due to its high priority, resulting in 31.25% of the allocated PV power being curtailed. Additionally, more power is allocated to the HVAC system in Figure 7, causing the indoor temperature to be closer to the lower bound (Figure 8). Comparing S11, S21, S31 with various weighting factors in Figure 8, we see that scenarios with more allocated PV power results in a lower indoor temperature since more power is available for the HVAC load. In Figure 8, all temperatures are within the comfort bounds. It is noted that in Figure 8, S12, S22, and S32 temperature curves have almost the same trend that they cannot be differentiated from the plot.
Figure 9 depicts the results for the ice cream shop with equal weighting while Figure 10 shows the results with occupancy-based weighting. Since the total allocated PV energy in Figure 10 is reduced by about 12% that compared to Figure 9, we see much less battery charging and a slight reduction of HVAC power in Figure 10. All sheddable loads are satisfied in both cases (see Table A1 for details). In Figure 11, the indoor temperature trajectories of S11 and S21 overlap with each other as almost the same amount of PV power is allocated to the ice cream shop in these two scenarios. The indoor temperature in simulation scenario S31 first drops below those of scenarios S11 and S21 in the morning due to a precooling between 6 to 9 A.M., and then exceeds them in the afternoon due to less power available to operate the HVAC system. A similar trend is also seen in the following simulation day. As in the residential building, Figure 11 shows that the indoor thermal comfort of the ice cream shop was maintained within the given temperature bounds. It is noted that in Figure 11, S12, S22, and S32 temperature curves have almost the same trend that they cannot be differentiated from the plot.
Figure 12 plots the results for bakery with equal weighting while Figure 13 with occupancy-based weighting. Due to a reduction of PV power in Figure 13, much less power is allocated to the HVAC system, especially during late afternoon (e.g., hour 16 and 40). The battery discharging is almost the same in the two scenarios, both to satisfy the four types of loads present in this building. All sheddable and modulatable loads are satisfied in both cases (see Table A1 for details). However, battery charging only happens about once a day in scenario S31 given the focused allocated PV power shape. In Figure 14, the indoor temperature for S31 is higher than S11 due to less power available to operate the HVAC system. All temperatures are within the comfort temperature bounds. It is noted that in Figure 14, S12, S22, and S32 temperature curves have almost the same trend that they cannot be differentiated from the plot.
To summarize, in this section, we discussed the PV resource allocation results under different weighting methods. The resulted load shape, battery behavior, and indoor temperatures are also discussed qualitatively. From the discussion, we found that the weighting method of the operator layer directly affects the mean allocation factor of each building. When one building is prioritized, we see an obvious increase of α i t ¯ . However, a higher α i t ¯ does not necessarily mean more PV energy allocation. A higher allocation factor during time periods with more PV generation (e.g., around noon) is more crucial than a higher mean value of the allocation factor overall. Additionally, we noticed that the allocation process is mostly constrained by the building load flexibility ranges. More specifically, buildings with a higher load flexibility lower bound (i.e., ice cream shop with large critical loads) tend to get more allowable load than other buildings. Additionally, when prioritizing buildings according to occupancy status, the building with longer occupant presence gets more PV power, which is not necessarily a fair allocation method. For instance, in S31, 5.5% of the PV energy allocated to the residential building was curtailed. Since the allocation process was according to building occupancy time, more than enough power is allocated to the residential building in this case. Lastly, the resulting load schedule, battery behavior, and indoor temperature are directly correlated with the available PV power when other system settings are the same (e.g., battery charging constraints and penalty coefficients).

4.4. Impact of Objective Function

This section discusses the impact of different objective functions on the scheduled load shapes, battery behavior, and indoor temperature. Similar to the last section, qualitative discussions will first be provided.
Figure 15 plots the results of the residential building with equal weighting and the objective is to maximize thermal comfort. Compared with Figure 6, we see that when the objective switches from minimizing unserved load to maximizing comfort, there is an obvious increase of HVAC power and the temperature gets closer to the temperature setpoint of 24 ° C (Figure 8). When comparing Figure 16 with Figure 7, we see a decrease of HVAC power usage because before (S21 in Figure 8), the indoor temperature was below 24 ° C ; when the objective is to minimize the temperature deviation from 24 ° C , the required cooling power is actually less. The HVAC power is saved to get the indoor temperature closer to the temperature setpoint.
Comparing Figure 17 with Figure 9, we see a decrease of serving in sheddable load when the objective switches from minimizing unserved load to maximizing comfort. As a result, 63.72% of sheddable load is unserved in this scenario (Table A1). However, the HVAC power also decreases in order to increase the indoor temperature to the temperature setpoint. The saved PV power is charged into the battery as we see an increase of battery charging in Figure 17. Similar observation can be found if we compare Figure 18 with Figure 12, where unserved ratio of sheddable load increases to 99.03% and modulatable to 68.89% due to the change of objective function (Table A1).
To further quantify the impact of weighting factor and objective function, we summarized the community overall KPIs in Table 6 and Table 7. The KPIs include PV curtailment ratio, unserved load ratio, temperature deviation from setpoint, and required battery size. The definition of the PV curtailment ratio is the total curtailed PV energy over the generated energy during the simulation horizon. The unserved load ratio is calculated by dividing the total unserved load by the total original load over the simulation horizon. The definition of the temperature deviation from setpoint is adapted from the root mean square deviation (RMSD), which is the root mean of the square of the deviation between the indoor temperature and the temperature setpoint over the 48-h simulation denoted by:
R M S D = t = 1 H ( T r o o m t T _ r o o m + T ¯ r o o m 2 ) 2 N ,
where N = 48 is the simulation horizon. Here, the temperature setpoint is selected to be the middle of the comfort temperature range: 24 ° C . Lastly, the required battery size is obtained by subtracting the minimum battery SOC from the maximum value. This gives us a sense of how much of the battery capacity has been utilized under different scenarios. Further, this could help to guide the battery sizing to enhance community resilience.
From Table 6, we see that PV curtailment only happens when the residential building is prioritized (S21_R and S22_R) or when occupancy-based weighting is implemented (S31 and S32). This is because the residential building has a relatively small power demand compared to the other two commercial buildings. When it is prioritized by the operator layer, more PV generation is allocated than needed, resulting in PV curtailment. This also echoes our discussions above that allocating purely based on building occupancy status could lead to unfair allocation situations. In the table, the shiftable load unserved load ratio is the same for all scenarios. This is because of our assumption that each shiftable load operates once and only once every day. However, in the original data, some loads might have operated more than once, causing “unserved load” for shiftable loads. Given this, we can consider that all loads are satisfied for the scenarios to minimize unserved load (S11 to S31 in Table 6). When looking at scenarios S12–S32 in Table 6, we see an increase of unserved load as the objective switches to maximizing comfort. The largest unserved load ratio appears in the scenario where residential building is prioritized. From Table 6, the scenarios that perform the best would be S11, S21_I, and S21_B if we only consider PV curtailment and unserved load ratio. In these scenarios, the PV allocation is either equally weighting all buildings or prioritizing those with larger power demand while minimizing the unserved load ratio.
Next, we analyze the temperature deviation and necessary battery size shown in Table 7. We see that all scenarios with the thermal comfort objective experience the fewest temperature deviations. This means that the indoor temperature is well controlled to stay near the temperature setpoint. In the remaining scenarios with the unserved load objective, large deviations in temperature can be seen. For many scenarios, this is due to lower indoor temperatures than the temperature setpoint. Hence, setting the temperature setpoint appropriately can save HVAC energy. However, in our case, the saved energy was either curtailed or charged into the battery instead of satisfying the other loads. This also leads to larger battery sizes in scenarios to maximize comfort (average size: 221.5 kWh) than scenarios to minimize unserved load (average size: 200.5 kWh). Therefore, a co-optimization of thermal comfort and unserved load is necessary with the benefit of less curtailment, smaller unserved load ratio, assured thermal comfort, as well as smaller battery size.
The above simulation results highlight the impact of the objective function on KPI outcomes. From the above discussions, we identified that if only PV curtailment and unserved load ratio are considered, the best option is to allocate the PV resource either equally weighting or prioritizing buildings with larger power demand while minimizing unserved load ratio. After further looking at other indices, we noticed that choosing the optimization objective to track an appropriately selected indoor room temperature setpoint will save HVAC energy. However, this will not lead to lower unserved ratio for other load types. Instead, the PV curtailment could increase. The two objectives have a competitive relationship: serving more HVAC power to increase thermal comfort will decrease the other served load.

5. Conclusions

We proposed a novel decentralized control architecture for renewable resource allocation and load scheduling of resilient communities. This MPC-based optimization architecture consists of a community operator layer that allocates the daily PV power generation to achieve the community-wide optimum and a building agent layer that schedules building loads to achieve its local optimum in each building. Three allocation methods were tested for the operator layer: equally weighted, weighted based on building priority, and weighted based on building occupancy. At the building level, two objective functions were compared: minimizing unserved load ratio versus maximizing thermal comfort. The proposed framework has the advantage of distributed computational effort and is easier to be scaled up than traditional centralized control, which is not robust for large-scale deployment. Additionally, the comparison between different combinations of allocation methods and objective functions provides guidance for real-world deployment by community and microgrid operators.
Through a case study for an islanded community in FL for 48 h, we evaluated the proposed architecture with respect to user-centric performance metrics (KPIs). We found that the allocation process is mostly constrained by the building load flexibility. More specifically, buildings with less load flexibility (i.e., ice cream shop with large critical loads) tend to be allocated more PV generation than other buildings. Additionally, when prioritizing buildings according to occupancy status, the building with longer occupancy duration is allocated more PV power, which may not result in a fair allocation method and could lead to more PV curtailment.
Additionally, through the analysis of different objective functions, we found that setting the objective to target at an appropriately selected indoor temperature setpoint will result in increased HVAC energy savings. However, in our case study this did not lead to lower unserved ratio for other load types. Instead, the PV curtailment increased. The two objectives have a competitive relationship: serving more HVAC power to increase thermal comfort will decrease the other served load. Therefore, it is necessary for the building agent to have multi-objective optimization to minimize unserved load ratio and maximize comfort simultaneously. This will bring the benefit of less curtailment, smaller unserved load ratio, assured thermal comfort, as well as smaller battery size. However, the weighting between the two objectives needs to be carefully selected as their scales are quite different.
For future work, we will conduct multi-objective optimization for the building agent layer to investigate the trade-off between minimizing unserved load ratio and maximizing thermal comfort. Uncertainty of PV generation should also be included to reflect the impact of different weather conditions.

Author Contributions

Conceptualization: J.W., K.G., K.B., W.Z., and Y.Z.; data curation: J.W.; formal analysis: J.W.; funding acquisition: D.V.; investigation: J.W.; methodology: J.W., K.G., and K.B.; project administration: S.H.; resources: W.Z.; software: J.W. and K.G.; supervision: W.Z.; validation: J.W. and K.G.; visualization: J.W.; writing—original draft: J.W.; writing—review and editing: K.G., K.B., W.Z., Y.Z., S.H., and D.V. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by the U.S. Department of Energy, Energy Efficiency and Renewable Energy, Building Technologies Office, under contract no. DE-AC05-76RL01830.

Conflicts of Interest

The authors declare no conflict of interest.

Nomenclature

NotationDescription
Sets i I Set of buildings in the community
j N s h e d Set of sheddable loads
j N m o d u Set of modulatable loads
j N s h i f Set of shiftable loads
j N c r i t Set of critical loads
COL Parameters P l o a d , f l e x , i t Flexible load at time t for building i
P _ l o a d , i t / P ¯ l o a d , i t Minimum/maximum load demand
P p v t Forecasted PV generation at time t
w i t Weighting factor for building i at time t
COL Variables P l o a d , i t Power demand of building i at each time step
α i t PV allocation factor for building i at time t
P c u r t , i t Curtailment of PV in building i
P s h e d , i t Critical load shed in building i
BAL Parameters P p v t Available PV generation
T _ r o o m / T ¯ r o o m Indoor thermal comfort bounds
β 1 7 Indoor air temperature model coefficients
P h v a c , n o m Nominal HVAC power draw when ON
P ^ s h e d , j t / P ^ m o d u , j t / P ^ s h i f , j t / P ^ c r i t , j t Projected demand for each type of load
E ¯ b a t Maximum battery state of charge
P ¯ b a t Maximum battery charging/discharging power
η c h / η d i s Battery charging/discharging efficiency
n s h i f , j Average cycle time of shiftable load
P s h i f , j , a v g Average power demand of shiftable load
BAL Random Variables T a m b t Ambient outdoor drybulb temperature
Q s o l t Solar irradiance
BAL Variables P c u r t t PV curtailment
P c h t Power charged into the battery
P d i s t Power discharged from the battery
u s h e d , j t Binary indicating status of sheddable load
r h v a c t HVAC system speed ratio
P m o d u , j t Power demand of modulatable load
t s h i f , j , s Start time of shiftable load
v s h i f , j t Binary indicating start time of shiftable load
E b a t t Battery state of charge
T r o o m t Indoor air temperature
Abbreviations
PVPhotovoltaic
COLCommunity Operator Layer
BALBuilding Agent Layer
MPCModel predictive control
HVACHeating, ventilation, and air-conditioning
DGDistributed generator
MILPMixed-integer linear program
HEMSHome energy management system
GAGenetic algorithm
KPIsKey performance indices
CDFCumulative distribution function
SOCState of charge
TMYTypical meteorological year
ASHRAEAmerican Society of Heating, Refrigerating, and Air-Conditioning Engineers
RMSERoot mean square error
SScenario
RResidential building
IIce cream shop
BBakery
HPrediction horizon
NSimulation horizon
RMSDRoot mean square deviation

Appendix A

Table A1. Detailed KPIs for each building and community overall of each scenario.
Table A1. Detailed KPIs for each building and community overall of each scenario.
Temperature   Deviation   ( ° C ) PV Curtailment RatioUnserved Load RatioBattery Size (kWh)
SheddableShiftableModulatableCriticalOverall
S11R1.340.00%0.00%19.92%N/A0.00%5.99%34.71
I2.620.00%0.00%N/AN/A0.00%0.00%89.81
B0.770.00%0.00%8.18%0.00%0.00%0.38%75.28
Community3.040.00%0.00%10.94%0.00%0.00%0.27%199.80
S21_RR2.7631.25%0.00%19.92%N/A0.00%5.99%45.57
I2.650.00%0.00%N/AN/A0.00%0.00%75.85
B1.340.00%0.00%8.18%0.00%0.00%0.38%94.13
Community4.058.31%0.00%10.94%0.00%0.00%0.27%215.55
S21_IR0.790.00%0.00%19.92%N/A0.00%5.99%35.56
I2.620.00%0.00%N/AN/A0.00%0.00%93
B0.500.00%0.00%8.18%0.00%0.00%0.38%81.08
Community2.780.00%0.00%10.94%0.00%0.00%0.27%209.64
S21_BR1.450.00%0.00%19.92%N/A0.00%5.99%35.56
I2.620.00%0.00%N/AN/A0.00%0.00%87.79
B0.790.00%0.00%8.18%0.00%0.00%0.38%71.26
Community3.100.00%0.00%10.94%0.00%0.00%0.27%194.61
S31R2.065.50%0.00%19.92%N/A0.00%5.99%38.79
I2.690.00%0.00%N/AN/A0.00%0.00%77.67
B0.800.00%0.00%8.18%0.00%0.00%0.38%66.45
Community3.481.03%0.00%10.94%0.00%0.00%0.27%182.91
S12R0.290.00%86.50%19.92%N/A0.00%10.80%28.99
I0.280.00%63.72%N/AN/A0.00%12.74%124.68
B0.340.00%99.03%8.18%68.89%0.00%4.32%64.4
Community0.530.00%64.14%10.94%68.89%0.00%9.25%218.07
S22_RR0.2949.57%31.49%19.92%N/A0.00%7.74%39.81
I0.280.00%65.17%N/AN/A0.00%13.03%90.25
B0.340.00%100.00%8.18%77.00%0.00%4.77%111.99
Community0.5313.18%65.06%10.94%77.00%0.00%9.54%242.05
S22_IR0.290.00%85.89%19.92%N/A0.00%10.77%32.82
I0.280.00%63.72%N/AN/A0.00%12.74%127.86
B0.340.00%99.03%8.18%72.83%0.00%4.54%77.23
Community0.530.00%64.13%10.94%72.83%0.00%9.34%237.91
S22_BR0.290.00%86.50%19.92%N/A0.00%10.80%28.37
I0.280.00%63.72%N/AN/A0.00%12.74%122.66
B0.340.00%99.03%8.18%69.23%0.00%4.34%59.16
Community0.530.00%64.14%10.94%69.23%0.00%9.26%210.19
S32R0.2928.93%46.01%19.92%N/A0.00%8.55%35.33
I0.280.00%65.47%N/AN/A0.00%13.09%90.88
B0.340.00%100.00%8.18%73.64%0.00%4.58%73.31
Community0.535.43%65.49%10.94%73.64%0.00%9.51%199.52
Figure A1. Residential building load shape, battery behavior, and PV power (S31: occupancy-based weighting, minimizing unserved load ratio).
Figure A1. Residential building load shape, battery behavior, and PV power (S31: occupancy-based weighting, minimizing unserved load ratio).
Energies 13 05683 g0a1
Figure A2. Residential building load shape, battery behavior, and PV power (S32: occupancy-based weighting, maximizing thermal comfort).
Figure A2. Residential building load shape, battery behavior, and PV power (S32: occupancy-based weighting, maximizing thermal comfort).
Energies 13 05683 g0a2
Figure A3. Ice cream shop load shape, battery behavior and PV power (S21_I: prioritizing ice cream shop, minimizing unserved load ratio).
Figure A3. Ice cream shop load shape, battery behavior and PV power (S21_I: prioritizing ice cream shop, minimizing unserved load ratio).
Energies 13 05683 g0a3
Figure A4. Ice cream shop load shape, battery behavior, and PV power (S22_I: prioritizing ice cream shop, maximizing thermal comfort).
Figure A4. Ice cream shop load shape, battery behavior, and PV power (S22_I: prioritizing ice cream shop, maximizing thermal comfort).
Energies 13 05683 g0a4
Figure A5. Ice cream shop load shape, battery behavior, and PV power (S32: occupancy-based weighting, maximizing thermal comfort).
Figure A5. Ice cream shop load shape, battery behavior, and PV power (S32: occupancy-based weighting, maximizing thermal comfort).
Energies 13 05683 g0a5
Figure A6. Bakery load shape, battery behavior, and PV power (S21_B: prioritizing bakery, minimizing unserved load ratio).
Figure A6. Bakery load shape, battery behavior, and PV power (S21_B: prioritizing bakery, minimizing unserved load ratio).
Energies 13 05683 g0a6
Figure A7. Bakery load shape, battery behavior, and PV power (S22_B: prioritizing bakery, maximizing thermal comfort).
Figure A7. Bakery load shape, battery behavior, and PV power (S22_B: prioritizing bakery, maximizing thermal comfort).
Energies 13 05683 g0a7
Figure A8. Bakery load shape, battery behavior, and PV power (S32: occupancy-based weighting, maximizing thermal comfort).
Figure A8. Bakery load shape, battery behavior, and PV power (S32: occupancy-based weighting, maximizing thermal comfort).
Energies 13 05683 g0a8

References

  1. Wang, J.; Zuo, W.; Rhode-Barbarigos, L.; Lu, X.; Wang, J.; Lin, Y. Literature Review on Modeling and Simulation of Energy Infrastructures from a Resilience Perspective. Reliab. Eng. Syst. Saf. 2019, 183, 360–373. [Google Scholar] [CrossRef]
  2. Campbell, A.F. It Took 11 Months to Restore Power to Puerto Rico after Hurricane Maria. A Similar Crisis Could Happen Again. Available online: https://www.vox.com/identities/2018/8/15/17692414/puerto-rico-power-electricity-restored-hurricane-maria (accessed on 17 April 2020).
  3. Sun, K.; Specian, M.; Hong, T. Nexus of Thermal Resilience and Energy Efficiency in Buildings: A Case Study of a Nursing Home. Build. Environ. 2020, 106842. [Google Scholar] [CrossRef]
  4. Wang, J.; Garifi, K.; Baker, K.; Zuo, W.; Zhang, Y. Optimal Operation for Resilient Communities through a Hierarchical Load Scheduling Framework. In Proceedings of the 2020 Building Performance Analysis Conference & SimBuild, Virtual Conference, Chicago, IL, USA, 9 September–1 October 2020. [Google Scholar]
  5. Marnay, C.; Venkataramanan, G.; Stadler, M.; Siddiqui, A.S.; Firestone, R.; Chandran, B. Optimal Technology Selection and Operation of Commercial-Building Microgrids. IEEE Trans. Power Syst. 2008, 23, 975–982. [Google Scholar] [CrossRef]
  6. Bozchalui, M.C.; Sharma, R. Optimal Operation of Commercial Building Microgrids Using Multi-Objective Optimization to Achieve Emissions and Efficiency Targets. In Proceedings of the 2012 IEEE Power and Energy Society General Meeting, San Diego, CA, USA, 22–26 July 2012; pp. 1–8. [Google Scholar] [CrossRef]
  7. Arif, A.; Wang, Z.; Wang, J.; Chen, C. Power Distribution System Outage Management with Co-Optimization of Repairs, Reconfiguration, and DG Dispatch. IEEE Trans. Smart Grid 2017, 9, 4109–4118. [Google Scholar] [CrossRef]
  8. Chen, C.; Wang, J.; Qiu, F.; Zhao, D. Resilient Distribution System by Microgrids Formation after Natural Disasters. IEEE Trans. Smart Grid 2015, 7, 958–966. [Google Scholar] [CrossRef]
  9. Ding, T.; Lin, Y.; Li, G.; Bie, Z. A New Model for Resilient Distribution Systems by Microgrids Formation. IEEE Trans. Power Syst. 2017, 32, 4145–4147. [Google Scholar] [CrossRef]
  10. Chen, B.; Chen, C.; Wang, J.; Butler-Purry, K.L. Sequential Service Restoration for Unbalanced Distribution Systems and Microgrids. IEEE Trans. Power Syst. 2017, 33, 1507–1520. [Google Scholar] [CrossRef]
  11. Hussain, A.; Bui, V.-H.; Kim, H.-M. Microgrids as a Resilience Resource and Strategies Used by Microgrids for Enhancing Resilience. Appl. Energy 2019, 240, 56–72. [Google Scholar] [CrossRef]
  12. Kallel, R.; Boukettaya, G.; Krichen, L. Demand Side Management of Household Appliances in Stand-Alone Hybrid Photovoltaic System. Renew. Energy 2015, 81, 123–135. [Google Scholar] [CrossRef]
  13. Ayodele, T.R.; Ogunjuyigbe, A.S.O.; Akpeji, K.O.; Akinola, O.O. Prioritized Rule Based Load Management Technique for Residential Building Powered by PV/Battery System. Eng. Sci. Technol. Int. J. 2017, 20, 859–873. [Google Scholar] [CrossRef]
  14. Garifi, K.; Baker, K.; Touri, B.; Christensen, D. Stochastic Model Predictive Control for Demand Response in a Home Energy Management System. In Proceedings of the 2018 IEEE Power & Energy Society General Meeting (PESGM), Portland, OR, USA, 5–9 August 2018; pp. 1–5. [Google Scholar]
  15. Zhao, Z.; Lee, W.C.; Shin, Y.; Song, K.-B. An Optimal Power Scheduling Method for Demand Response in Home Energy Management System. IEEE Trans. Smart Grid 2013, 4, 1391–1400. [Google Scholar] [CrossRef]
  16. Pathak, A.K.; Chatterji, D.S.; Narkhede, M.S. Artificial Intelligence Based Optimization Algorithm for Demand Response Management of Residential Load in Smart Grid. Int. J. Eng. Innov. Technol. 2012, 2. [Google Scholar] [CrossRef]
  17. Zhang, D.; Li, S.; Sun, M.; O’Neill, Z. An Optimal and Learning-Based Demand Response and Home Energy Management System. IEEE Trans. Smart Grid 2016, 7, 1790–1801. [Google Scholar] [CrossRef]
  18. Mazzeo, D.; Oliveti, G.; Baglivo, C.; Congedo, P.M. Energy Reliability-Constrained Method for the Multi-Objective Optimization of a Photovoltaic-Wind Hybrid System with Battery Storage. Energy 2018, 156, 688–708. [Google Scholar] [CrossRef]
  19. Jin, X.; Baker, K.; Christensen, D.; Isley, S. Foresee: A User-Centric Home Energy Management System for Energy Efficiency and Demand Response. Appl. Energy 2017, 205, 1583–1595. [Google Scholar] [CrossRef]
  20. Maslow, A.H. Motivation and Personality; Harper & Brothers: New York, NY, USA, 1954. [Google Scholar]
  21. Tolić, D.; Palunko, I.; Ivanović, A.; Car, M.; Bogdan, S. Chapter Twelve—Decentralized Cooperative Control in Degraded Communication Environments; Vamvoudakis, K.G., Jagannathan, S.B.T.-C., Eds.; Butterworth-Heinemann: Oxford, UK, 2016; pp. 373–395. [Google Scholar] [CrossRef]
  22. Luncean, L.; Becheru, A. Communication and Interaction in a Multi-Agent System Devised for Transport Brokering. In Proceedings of the 2015 Balkan Conference on Informatics: Advances in ICT, Craiova, Romania, 2–4 September 2015; pp. 2–4. [Google Scholar]
  23. Javaid, N.; Ullah, I.; Akbar, M.; Iqbal, Z.; Khan, F.A.; Alrajeh, N.; Alabed, M.S. An Intelligent Load Management System with Renewable Energy Integration for Smart Homes. IEEE Access 2017, 5, 13587–13600. [Google Scholar] [CrossRef]
  24. Garifi, K.; Baker, K.; Christensen, D.; Touri, B. Control of Home Energy Management Systems with Energy Storage: Nonsimultaneous Charging and Discharging Guarantees. Available online: https://arxiv.org/pdf/1805.00100.pdf (accessed on 29 October 2020).
  25. Zakula, T.; Armstrong, P.R.; Norford, L. Modeling Environment for Model Predictive Control of Buildings. Energy Build. 2014, 85, 549–559. [Google Scholar] [CrossRef]
  26. Garifi, K.; Baker, K.; Christensen, D.; Touri, B. Stochastic Home Energy Management Systems with Varying Controllable Resources. In Proceedings of the 2019 IEEE Power & Energy Society General Meeting (PESGM), Atlanta, GA, USA, 4–8 August 2019; pp. 1–5. [Google Scholar]
  27. SiteSage. Historic Green Village Submetering Data. Available online: https://sitesage.net/home/management/index.php (accessed on 7 October 2020).
  28. Historic Green Village. Available online: https://www.historicgreenvillage.com/ (accessed on 11 April 2019).
  29. He, D.; Huang, S.; Zuo, W.; Kaiser, R. Towards to the Development of Virtual Testbed for Net Zero Energy Communities. In Proceedings of the SimBuild 2016: Building Performance Modeling Conference, Salt Lake City, UT, USA, 10–12 August 2016; Volume 6. [Google Scholar]
  30. National Renewable Energy Laboratory. National Solar Radiation Data Base 1991–2005 Update: Typical Meteorological Year 3; Office of Scientific and Technical Information: Oak Ridge, TN, USA, 2007.
  31. Wang, J.; Fu, Y.; Huang, S.; Zuo, W. Net Zero Energy Community Library. Available online: https://bitbucket.org/historicgreenvillage/hgv/branch/release/V1.0 (accessed on 17 April 2020).
  32. Gurobi 9.0. Gurobi Optimization. 2020. Available online: https://www.gurobi.com/ (accessed on 29 October 2020).
  33. ASHRAE. ASHRAE Standard 55-2017 Thermal Environmental Conditions for Human Occupancy; ASHRAE: Peachtree Corners, GA, USA, 2017. [Google Scholar]
Figure 1. Proposed architecture with data exchange flow.
Figure 1. Proposed architecture with data exchange flow.
Energies 13 05683 g001
Figure 2. Flow chart of the load categorization logic.
Figure 2. Flow chart of the load categorization logic.
Energies 13 05683 g002
Figure 3. Comparison of predicted indoor air temperature with and without inclusion of uncertainty in Scenario S11.
Figure 3. Comparison of predicted indoor air temperature with and without inclusion of uncertainty in Scenario S11.
Energies 13 05683 g003
Figure 4. Allocation factors for each COL PV allocation scenario.
Figure 4. Allocation factors for each COL PV allocation scenario.
Energies 13 05683 g004
Figure 5. Allocation factors for occupancy-based weighting against building occupancy.
Figure 5. Allocation factors for occupancy-based weighting against building occupancy.
Energies 13 05683 g005
Figure 6. Residential building load shape, battery behavior, and PV power (S11: equal weighting, minimizing unserved load ratio).
Figure 6. Residential building load shape, battery behavior, and PV power (S11: equal weighting, minimizing unserved load ratio).
Energies 13 05683 g006
Figure 7. Residential building load shape, battery behavior, and PV power (S21_R: prioritizing residential, minimizing unserved load ratio).
Figure 7. Residential building load shape, battery behavior, and PV power (S21_R: prioritizing residential, minimizing unserved load ratio).
Energies 13 05683 g007
Figure 8. Residential building indoor and outdoor temperature for all scenarios.
Figure 8. Residential building indoor and outdoor temperature for all scenarios.
Energies 13 05683 g008
Figure 9. Ice cream shop load shape, battery behavior, and PV power (S11: equal weighting, minimizing unserved load ratio).
Figure 9. Ice cream shop load shape, battery behavior, and PV power (S11: equal weighting, minimizing unserved load ratio).
Energies 13 05683 g009
Figure 10. Ice cream shop load shape, battery behavior, and PV power (S31: occupancy-based weighting, minimizing unserved load ratio).
Figure 10. Ice cream shop load shape, battery behavior, and PV power (S31: occupancy-based weighting, minimizing unserved load ratio).
Energies 13 05683 g010
Figure 11. Ice cream shop indoor and outdoor temperature for all scenarios.
Figure 11. Ice cream shop indoor and outdoor temperature for all scenarios.
Energies 13 05683 g011
Figure 12. Bakery load shape, battery behavior, and PV power (S11: equal weighting, minimizing unserved load ratio).
Figure 12. Bakery load shape, battery behavior, and PV power (S11: equal weighting, minimizing unserved load ratio).
Energies 13 05683 g012
Figure 13. Bakery load shape, battery behavior, and PV power (S31: occupancy-based weighting, minimizing unserved load ratio).
Figure 13. Bakery load shape, battery behavior, and PV power (S31: occupancy-based weighting, minimizing unserved load ratio).
Energies 13 05683 g013
Figure 14. Bakery indoor and outdoor temperature for all scenarios.
Figure 14. Bakery indoor and outdoor temperature for all scenarios.
Energies 13 05683 g014
Figure 15. Residential building load shape, battery behavior, and PV power (S12: equal weighting, maximizing thermal comfort).
Figure 15. Residential building load shape, battery behavior, and PV power (S12: equal weighting, maximizing thermal comfort).
Energies 13 05683 g015
Figure 16. Residential building load shape, battery behavior, and PV power (S22_R: prioritizing residential, maximizing thermal comfort).
Figure 16. Residential building load shape, battery behavior, and PV power (S22_R: prioritizing residential, maximizing thermal comfort).
Energies 13 05683 g016
Figure 17. Ice cream shop load shape, battery behavior, and PV power (S12: equal weighting, maximizing thermal comfort).
Figure 17. Ice cream shop load shape, battery behavior, and PV power (S12: equal weighting, maximizing thermal comfort).
Energies 13 05683 g017
Figure 18. Bakery load shape, battery behavior, and PV power (S12: equal weighting, maximizing thermal comfort).
Figure 18. Bakery load shape, battery behavior, and PV power (S12: equal weighting, maximizing thermal comfort).
Energies 13 05683 g018
Table 1. Designed simulation scenarios with varied weighting factors and objective functions.
Table 1. Designed simulation scenarios with varied weighting factors and objective functions.
Community Operator Layer
Equal WeightingPriority-Based WeightingOccupancy-Based Weighting
Prioritize ResidentialPrioritize Ice Cream ShopPrioritize Bakery
Building Agent LayerMinimize unserved load ratioS11S21_RS21_IS21_BS31
Maximize thermal comfortS12S22_RS22_IS22_BS32
Table 2. Coefficients, accuracy, and nominal power of HVAC linear regression models.
Table 2. Coefficients, accuracy, and nominal power of HVAC linear regression models.
Regression VariablesResidentialIce Cream ShopBakery
Coefficients T r o o m t 1 1.5271.5791.530
T r o o m t 2 −0.532−0.586−0.536
T a m b t 1 0.0370.0440.050
T a m b t 2 −0.032−0.036−0.044
r H V A C t 1 −0.324−0.688−0.393
Q s o l t 1 0.3500.4860.206
Q s o l t 2 −0.072−0.2190.098
RMSE (°C)0.1960.2300.295
Nominal Power (kW)4.05.56.8
Table 3. Summary of load types in studied buildings.
Table 3. Summary of load types in studied buildings.
Load TypeResidentialIce Cream ShopBakery
SheddableComputerCoffee maker, soda dispenser, outdoor ice storageMicrowave
ModulatableHVACHVACMixer, unspecified room plugs, HVAC
ShiftableRange, washer, dryerNoneRange, oven, dishwasher
CriticalLights, refrigeratorLights, cooler, display caseLights, cooler, display case
Table 4. Parameters of battery configuration and penalty coefficients.
Table 4. Parameters of battery configuration and penalty coefficients.
ParameterResidentialIce Cream ShopBakery
Battery   energy   upper   bound   E ¯ b a t (kWh)70270280
Maximum   charging   power   P ¯ b a t (kW)28108112
Penalty   of   charging   γ 1.00 × 10−31.00 × 10−61.00 × 10−4
Penalty   of   curtailment   γ 5.00 × 10−31.00 × 10−51.00 × 10−3
Table 5. Mean values of allocation factors and PV energy allocation for different weighting methods.
Table 5. Mean values of allocation factors and PV energy allocation for different weighting methods.
BuildingEqual WeightingPriority-Based WeightingOccupancy-Based Weighting
Prioritize ResidentialPrioritize Ice Cream ShopPrioritize Bakery
α i t ¯ E p v ( k W h )   α i t ¯ E p v ( k W h ) α i t ¯ E p v ( k W h ) α i t ¯ E p v ( k W h ) α i t ¯ E p v ( k W h )
Residential0.09959.520.218153.850.07567.180.05458.670.163108.61
Ice Cream Shop0.499350.070.455309.510.669356.000.454346.200.581308.51
Bakery0.402169.080.326115.310.256155.500.492173.800.255161.56
Table 6. Community overall PV curtailment and unserved load ratio of each scenario.
Table 6. Community overall PV curtailment and unserved load ratio of each scenario.
ScenarioPV Curtailment RatioUnserved Load Ratio
SheddableShiftableModulatableCriticalOverall
S110.00%0.00%10.94%0.00%0.00%0.27%
S21_R8.31%0.00%10.94%0.00%0.00%0.27%
S21_I0.00%0.00%10.94%0.00%0.00%0.27%
S21_B0.00%0.00%10.94%0.00%0.00%0.27%
S311.03%0.00%10.94%0.00%0.00%0.27%
S120.00%64.14%10.94%68.89%0.00%9.25%
S22_R13.18%65.06%10.94%77.00%0.00%9.54%
S22_I0.00%64.13%10.94%72.83%0.00%9.34%
S22_B0.00%64.14%10.94%69.23%0.00%9.26%
S325.43%65.49%10.94%73.64%0.00%9.51%
Table 7. Community overall room temperature deviation and required battery size of each scenario.
Table 7. Community overall room temperature deviation and required battery size of each scenario.
Scenario Temperature   Deviation   ( ° C ) Battery Size (kWh)
S113.04199.8
S21_R4.05215.55
S21_I2.78209.64
S21_B3.10194.61
S313.48182.91
S120.53218.07
S22_R0.53242.05
S22_I0.53237.91
S22_B0.53210.19
S320.53199.52
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Wang, J.; Garifi, K.; Baker, K.; Zuo, W.; Zhang, Y.; Huang, S.; Vrabie, D. Optimal Renewable Resource Allocation and Load Scheduling of Resilient Communities. Energies 2020, 13, 5683. https://doi.org/10.3390/en13215683

AMA Style

Wang J, Garifi K, Baker K, Zuo W, Zhang Y, Huang S, Vrabie D. Optimal Renewable Resource Allocation and Load Scheduling of Resilient Communities. Energies. 2020; 13(21):5683. https://doi.org/10.3390/en13215683

Chicago/Turabian Style

Wang, Jing, Kaitlyn Garifi, Kyri Baker, Wangda Zuo, Yingchen Zhang, Sen Huang, and Draguna Vrabie. 2020. "Optimal Renewable Resource Allocation and Load Scheduling of Resilient Communities" Energies 13, no. 21: 5683. https://doi.org/10.3390/en13215683

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop