Sustainable and Resilient Smart House Using the Internal Combustion Engine of Plug-in Hybrid Electric Vehicles

: Nowadays, due to the increasing number of disasters, improving distribution system resiliency is a new challenging issue for researchers. One of the main methods for improving the resiliency in distribution systems is to supply critical loads after disasters during the power outage and before system restorations. In this paper, a “Sustainable and resilient smart house” is introduced for the ﬁrst time by using plug-in hybrid electric vehicles (PHEVs). PHEVs have the ability to use their fuel for generating electricity in emergency situations as the Vehicle to Grid (V2G) scheme. This ability, besides smart house control management, provides an opportunity for distribution system operators to use their extra energy for supplying a critical load in the system. The proposed control strategy in this paper is dedicated to a short duration power outage, which includes a large percent of the events. Then, improvement of the resiliency of distribution systems is investigated through supplying smart residential customers and injecting extra power to the main grid. A novel formulation is proposed for increasing the injected power of the smart house to the main grid using PHEVs. The e ﬀ ectiveness of the proposed method in increasing power injection during power outages is shown in simulation results.


Introduction
Disasters are inevitable and have become more frequent and intense because of recent climate changes. This leads to a considerable increase in power outage frequency and severity. Recent power outages occurring in the world, such as hurricane Sandy, which caused a power outage of about 7.5 million customers across Washington and 15 states, highlight the need to introduce a new concept as a resiliency which fulfils other power system issues such as reliability, security, risk, and stability in studying high impact low frequency (HILF) incidents. A lot of research effort is devoted to the resiliency concept- [1][2][3][4][5][6] describes the basic framework of it. Grid resilience has become increasingly critical because of the rising number of outages in disasters such as hurricanes, floods, blizzards, earthquakes, and other extreme events [7]. In a variety of different disasters, severe weather has the highest number of power outages. As shown in [8], weather disasters are involved in 87% of power outages in the United States. Moreover, distribution systems are usually more vulnerable to such kinds of events. For example, according to [8], about 90% of power outages in the United States occur in distribution systems. According to [9], "system resilience is the ability to prepare for and adapt to changing conditions, withstand, and recover rapidly from disruptions". In other words, power system resiliency includes three major parts; prevention, survivability, and recovery. This paper attempts to introduce a method for increasing survivability capability by using plug-in hybrid electric vehicles (PHEVs) in distribution systems. Although some appliances are used as the power supply in emergency situations in residential areas such as diesel generators, uninterruptable power supply (UPS), and distributed generators, most of them are not cost effective and are costly to customers. Thus, these devices are not extensively used nowadays. Penetration of electric vehicles (EVs) is increasing considerably. The number of electric vehicles will reach 250 million by 2030, according to the International Energy Agency (IEA) [10]. The vehicle-to-grid (V2G) technology has the significant capability to provide power to the grid. With this technology, EVs provide cost effective solutions for supplying residential loads in emergency situations. Although distributed generation plays the main role in increasing the resiliency of the distribution systems, EVs can help beside them and provide a considerable amount of energy as back up generation. Noteworthy research has been carried out in the V2G concept. Authors in [11][12][13][14][15] consider voltage and frequency control through V2G. In [16][17][18], storage and renewable energy were studied with the integration of V2G concepts. Vehicle-to-home (V2H) is defined as a small version of V2G in supplying homes with the power of electric cars. It is to be noted that electric utilities are responsible for increasing the resiliency and decreasing the amount of outage as much as they can in the distribution systems. So, it is their responsibility to provide a situation and considerable incentives for EV owners in order to persuade them to participate as back up generation. Therefore, a sizeable amount of energy storage will be available for distribution system operators in order to improve the resiliency of the system.
There are few papers that consider PHEVs as a power source [19][20][21][22]. In [19,21], the concept of using PHEVs was introduced with integrating rooftop photovoltaic (PV). With the help of PHEVs' battery, the off-grid operation of PV was enabled. In this case, the energy for supplying appliances in the house was obtained by PHEVs' battery and onboard engine in addition to PV generation. It is to be noted that the house is completely isolated from the main grid because of the power outage. The fuel tank in PHEVs provides considerable energy back up in emergency situations. In [20], a smart strategy was introduced for controlling the battery and engine generator. The focus of this paper was on increasing back up duration and it did not consider the capability of smart houses. In [21], the optimized V2H system was presented for secure long back up duration to survive in the long power outage. In this paper, the onboard engine generator was modeled for solving optimization models. This paper also did not consider smart house capabilities. In [22], PHEVs and EVs were considered as a back-up energy supply in homes. The consumption of fuel was analyzed for different types of EVs and PHEVs. A building energy management system (BEMS) was used for decreasing the house consumption in emergency and extreme emergency situations. The energy management system is essential in the future smart house. An energy scheduling method for a building to minimize the total energy cost has been presented in [23]. A load management system was presented in [24]. The problem of minimizing the sum of energy cost and thermal discomfort cost for a sustainable smart house with a ventilation, heating, and air conditioning load was investigated. The sub-aggregators involved in a residential complex, including a parking lot and a smart building, was presented in [25]. However, in the above papers, customers could set their loads by the price signal. Moreover, in the above papers, the role of PHEVs was also not considered in supporting back up energy in emergency conditions in the smart houses.
In the above papers, PHEVs were used for supplying the energy of houses in emergency conditions, assuming that houses were isolated from the main grid. In these papers, authors tried to increase the backup duration by smart management and tried to model the accurate consumption of gasoline. As explained in the next section, there are various kinds of disasters that cause short time outages and the power outage in these cases usually occurs within a period shorter than one day. In such situations, there is no need to increase back up duration; however, it is required to decrease the power outage of distribution systems as much as possible. Providing energy for loads is the main concern of distribution system operators. Many studies have been done on using available energy resources for increasing the resiliency and supplying the critical loads. Providing the energy resources is a challenge in the mentioned methods. Houses with the capability of V2G should be used to generate energy for both other customers and themselves. Thus, the aim, in this case, is to produce maximum energy and power to local distribution grids to energize other customers. Smart houses can have considerable effects on increasing produced energy. In this paper, we intend to present the model for sustainable smart houses that improve the resiliency of the system and fill the abovementioned gaps.
The contributions of this paper are: • Introducing a novel model for sustainable and resilient smart houses • Use of gasoline energy of PHEVs in smart house management • Use of smart houses for increasing power injected to distribution power systems in emergency situations • Considering the effect of residents' comfort levels on the amount of energy production.
The rest of the paper is organized as follows: in Section 2, the capability of PHEVs is considered in using gasoline storage for generating energy. The motivation to use PHEVs is also explained in emergency situations. In Section 3, the V2G operation formulation is presented under power outage. Section 4 presents the simulations and the results are discussed in Section 5. Finally, in Section 6, we conclude the paper.

Plug-In Hybrid Electric Vehicles
PHEVs are vehicles that have both an electric motor and an internal combustion engine motor. They have rechargeable batteries that have the capability of being charged by external electric power sources. The battery capacity is usually larger than the one in conventional hybrid electric vehicles. Internal combustion engines provide energy for electric motor traction as power generation (according to the series hybrid mode) or provide energy for both the drive system and power generation (according to the parallel hybrid mode) [26]. In both modes, plug-in hybrid electric vehicles have the capability to charge the battery [26]. As depicted in Figure 1, PHEVs have engine generators that produce electric energy for charging the battery as well as for driving the electric motor and internal consumption of the car. The engine generator usually has an upper bound than the conventional alternator. For example, according to [20], the Mitsubishi PHEV Outlander has a 55 kW engine generator, which provides considerable energy for the electric system of the car. Considering the effect of residents' comfort levels on the amount of energy production. The rest of the paper is organized as follows: in Section 2, the capability of PHEVs is considered in using gasoline storage for generating energy. The motivation to use PHEVs is also explained in emergency situations. In Section 3, the V2G operation formulation is presented under power outage. Section 4 presents the simulations and the results are discussed in Section 5. Finally, in Section 6, we conclude the paper.

Plug-in Hybrid Electric Vehicles
PHEVs are vehicles that have both an electric motor and an internal combustion engine motor. They have rechargeable batteries that have the capability of being charged by external electric power sources. The battery capacity is usually larger than the one in conventional hybrid electric vehicles. Internal combustion engines provide energy for electric motor traction as power generation (according to the series hybrid mode) or provide energy for both the drive system and power generation (according to the parallel hybrid mode) [26]. In both modes, plug-in hybrid electric vehicles have the capability to charge the battery [26]. As depicted in Figure 1, PHEVs have engine generators that produce electric energy for charging the battery as well as for driving the electric motor and internal consumption of the car. The engine generator usually has an upper bound than the conventional alternator. For example, according to [20], the Mitsubishi PHEV Outlander has a 55 kW engine generator, which provides considerable energy for the electric system of the car. In order to use PHEVs as back up generation, the V2G system, which includes a power electronic interface, must be used. There are some practical experiences in using PHEVs as backup power [27], [28]. So, it is understood from the current practical experiences that this concept can be carried out in real situations. In these cases, it is assumed that only battery storage is used for supplying houses because of pollution constraints. The usual and practical methods for producing power in emergency situations are using a bidirectional level 2 charger or fast charging stations with the capability of the V2H system. Authors in [20] use an engine generator of PHEVs for producing energy. Although the range of power in the engine generator is considerably high, there is no standard way to deliver the energy of the engine generator to the main grid, making this method impractical nowadays. In this paper, we assume that the energy of PHEVs is delivered only through the standard plug and standard In order to use PHEVs as back up generation, the V2G system, which includes a power electronic interface, must be used. There are some practical experiences in using PHEVs as backup power [27,28]. So, it is understood from the current practical experiences that this concept can be carried out in real situations. In these cases, it is assumed that only battery storage is used for supplying houses because of pollution constraints. The usual and practical methods for producing power in emergency situations are using a bidirectional level 2 charger or fast charging stations with the capability of the V2H system. Authors in [20] use an engine generator of PHEVs for producing energy. Although the range of power in the engine generator is considerably high, there is no standard way to deliver the energy of the engine generator to the main grid, making this method impractical nowadays. In this paper, we assume that the energy of PHEVs is delivered only through the standard plug and standard charging station. According to the above explanation, PHEVs and their fuel tank can be used as backup power in emergency situations. It is to be noted that the interaction between the EVs and the utilities is the same as V2G systems and the communication architecture is not changed.
In this paper, authors attempt to use PHEVs in providing backup energy in the smart house and introduce the "sustainable and resilient smart house" concept.
According to the study conducted in [1], weather-based disasters usually last shorter than one day and also can be predictable, as depicted in Table 1. Thus, strategies used for supplying power for house areas should be designed for this period. As explained in the previous section, PHEVs can be used as emergency backup power and minutes are needed to prepare the car for this purpose. The predictability of weather-based disasters gives us the needed time and there will be no problem for connecting PHEVs to V2G systems. In this paper, the proposed strategy is introduced for disasters that have short affecting time where the power system is restored quickly. It is to be noted that the affecting time is predictable by power system experts according to the level of damages occurring in distribution systems. The strategy chosen in this paper focuses on providing maximum power and energy to the main grid in addition to supplying the energy of house appliances during the power outage. In fact, the method introduced in this paper provides an energy source for the power system operator to restore the system faster than before and decrease power outage considerably. It is to be noted that it is assumed that the houses may be able to deliver the extra energy to the main grid. This situation occurs in an area that disasters destroy a part of distribution systems and other parts can work, and the main problem is providing energy for the house without power.

Vehicle to Grid (V2G) Operation under Grid Outage
In this section, a formulation is explained for maximizing the injected power to the main grid in the V2G system during the power outage. The proposed optimization model finds the maximum backup power for helping the distribution system in resiliency mode. The power supply in the smart house is assumed to be carried out with a photovoltaic panel (PV), main grid, energy storage system (ESS) discharging, and PHEVs (see Figure 2). PHEVs' fuel tanks are supposed to work only in emergency situations because of air pollution constraints. The loads in the smart house include Electrically Controllable Appliances (ECA), Optically Controllable Appliances (OCA), and Thermostatically Controllable Appliances (TCA) and are controlled in order to maximize the power injection to the main grid. It is to be noted that the running duration of the proposed optimization model is the power outage duration and the periods out of it are not considered in this paper. Figure 2 depicts the smart house appliances and its energy resources. PVs, ESSs, and PHEVs are connected through AC-DC converters to the main bus of the house, which is an AC system. In the smart house, a control center is responsible for communicating between different appliances and also energy resources. This device is also responsible for control tasks and implementing the algorithms for managing devices. It should be noted that the house owner, according to the discomfort levels that he/she can tolerate, proposes price steps to distribution system operator (DSO). By considering the distribution system condition and also the severity of the disasters, DSO determines the best price step in each time interval. This is because in this paper, only a smart house is considered and the interaction between other smart houses and DSO is not studied. We consider the behavior of smart house in different discomfort levels.

Objective Function
As explained before, the main goal of the proposed model is to increase the injection power to the main grid during emergency situations, which causes a short duration power outage in distribution systems. Therefore, the objective function is to maximize the sum of power injection during the studied period as below: where Obj is the objective function, is the amount of power injection at the time t, and T in and T out are the start time of the event (the start time of power outages) and the end time of the power outage, respectively. It should be noted that it is assumed that T in and T out depict the worst case scenario for the outage period.

Generations
The proposed energy management system exploits solar energy in order to maximize the injected power. In this study, a simple model of the PV system was considered, including the solar irradiance, environment temperature, array area, and efficiency of PV modules. In the PV system [29], power output where η PV is the conversion efficiency of solar cell array (%), A PV is array area (m 2 ), It is the sun irradiation at time t (kW/m 2 ), and Tt OUT is the outside air temperature (°C). The hourly distribution of sun radiations can be modeled with a bimodal distribution, which is explained in [29].

Energy Storage System
In order to engage the renewable source's output and PHEVs' power generation more efficiently in a normal and emergency condition operation, the ESS was used.
Electricity stored in the ESS at time t is presented by (3)-(4) and the electricity charged, the electricity discharged, and also self-discharging rate are considered. During the charging or discharging process, electrical energy would be lost, so turn-around efficiency of ESS is considered. .

Objective Function
As explained before, the main goal of the proposed model is to increase the injection power to the main grid during emergency situations, which causes a short duration power outage in distribution systems. Therefore, the objective function is to maximize the sum of power injection during the studied period as below: where Ob j is the objective function, EP INJ_GRD t is the amount of power injection at the time t, and T in and T out are the start time of the event (the start time of power outages) and the end time of the power outage, respectively. It should be noted that it is assumed that T in and T out depict the worst case scenario for the outage period.

Generations
The proposed energy management system exploits solar energy in order to maximize the injected power. In this study, a simple model of the PV system was considered, including the solar irradiance, environment temperature, array area, and efficiency of PV modules. In the PV system [29], power output EP PV t is represented by: where η PV is the conversion efficiency of solar cell array (%), A PV is array area (m 2 ), I t is the sun irradiation at time t (kW/m 2 ), and T t OUT is the outside air temperature ( • C). The hourly distribution of sun radiations can be modeled with a bimodal distribution, which is explained in [29].

Energy Storage System
In order to engage the renewable source's output and PHEVs' power generation more efficiently in a normal and emergency condition operation, the ESS was used.
Electricity stored in the ESS at time t is presented by (3)-(4) and the electricity charged, the electricity discharged, and also self-discharging rate are considered. During the charging or discharging process, electrical energy would be lost, so turn-around efficiency of ESS is considered. , where EE ESS t is ESS energy at time t, time interval duration is shown by δ, η ESS is ESS efficiency, EP DCH−ESS t is ESS discharge at time t, EP CH−ESS t is ESS charge at time t, S ess t is ESS status at time t, and EP ess,sdc is ESS self-discharging rate. EE ESS ini depicts initial value of ESS at the beginning of the period. In order to prevent net accumulation and keeping the status of the ESS the same before and after the outage period, it is assumed that the ESS returns to its initial value at the end of the period.
Equations (7)-(9) illustrate the limits on discharge or charge rate, which are defined by the manufacturer.

Appliance
Three classifications for electrical house appliances have been presented in this study, namely Electrically Controllable Appliances, Thermostatically Controllable Appliances, and Optically Controllable Appliances. The formulation and related studies for each type of appliance are outlined in the following.

Electrically Controllable Appliances
An optimal method to schedule all the ECAs is proposed based on the maximizing power injection in the V2G scheme. The ECAs can be run within an interval and users do not have to run them in a specific time. Hence, the operational parameters for each ECA have to be set, which are Earliest Starting Time (EST), Latest Finishing Time (LFT), and Length of Operation Time (LOT), along with power consumption. The ECA is run in an interval starting from EST and ending with LFT. In this study, these parameters were adopted from [30].
The starting probability of each appliance, P start can be calculated through (2): where A is the ECA appliance, h stands for the hour of the day, d is the day of the week and W represents the week of the year, and δ is the computational time step (second or minute). The effects of social factor and weather on the consumption pattern of customers are considered in P social and σ f lat is the standard deviation of it. Seasonal changes are modeled with the P season as the seasonal probability factor, P hour models the activity levels during the day, and P step is the step size scaling factor, which scales the probabilities in accordance with δ. P start is a variable that takes a value between 0 and 1 and when it is more than the threshold value, the appliance will be turned on. When the length of operation (LOT) is accomplished, the appliance will be turned off [31]. The mathematical model of ECAs are as follows: where W a is 52 and H is 24. By adding the daily starting frequencies, the mean yearly starting frequency can be achieved.
where D a is 7. It is assumed that each appliance is turned on/off once in a day.
where S start i,t is a binary variable stating the starting status of the appliance i. It is 1 if the appliance turns on in the period t and is 0 in all other times. S f inish i,t is the appliance i finishing status and is 1 if the appliance turns off and is 0 in all other times, respectively.
where t i,ST and t i,FN are the appliance i starting and finishing time, respectively. The overall electricity consumption of an appliance in each interval is the sum of the power consumption of all running ECAs.
where EP ECA t is the total demand of ECAs at the time t; EP i is the power consumption of the appliance i, and S i,t is a binary variable indicating the status of the i th appliance at the time t.

Thermostatically Controllable Appliances
The TCAs are scheduled based on the thermal and electrical constraints. The indoor, fridge, and freezer temperatures are the parameters, which are controlled in TCA considering acceptable temperature ranges. These parameters are limited by the following equations: where T in min , T  The status of the fridge compressor is defined through (24)- (26). It is assumed that the compressor of the fridge is turned on at the beginning of the scheduling period.
The temperature of the fridge at time t is relevant to the temperature of the fridge at time t−1, activity probability of the fridge at time t, and its heat losses. The effect of the activity probability on the temperature of the fridge is modeled by means of β f r ; where more activity probability will lead to more cooling demand on the fridge, which is defined as the number of times the fridge door is opened and closed during each time interval. The effect of thermal leakage on fridge temperature is modeled by γ f r . Here, α f r and γ f r model the impact of the on and off status on the temperature of the fridge.

(b) Air Conditioning and Heating
The indoor temperature at time t is a function of habitants' activity, the indoor temperature at time t−1, and the difference between the indoor and outdoor temperature. The related equations are as follows: The air conditioner and heater are operated in an interval, which are shown by TW ac and TW ht , respectively. It is assumed that the air conditioner (heater) is turned on at the beginning of the scheduling period. The air conditioner and heater do not run at the same time and inequality (33) guarantees that. The thermodynamic equations for indoor temperature are shown in (29) and (32).
The effect of habitants' activity on the indoor temperature is considered through β ac /β ht , where more activity will lead to more cooling/heating demand. The effect of outdoor temperature on indoor temperature is modeled by ρ ac and ρ ht .

Optically Controllable Appliances
The optically controllable appliances can be scheduled based on the activity probability and the illumination level index. The needed illumination can be obtained by means of the lighting system, besides outdoor illumination. The house has different zones and each zone has a different minimum required illumination based on its use. The load of lighting for the Zth zone of the house is expressed as follows: The illumination constraints are met through the abovementioned inequality. The K t declares the "discomfort elasticity" of the lighting load. When the discomfort level is high, the residents tend to decrease illumination. This means that a higher discomfort level leads to lower K t . parts: battery and fuel consumption. It should be mentioned that PHEVs formulation is for the power outage period.
Eng t = 0 t < T in and t > T out (39) where Eng t is the kWh equivalent of the engine generator produced energy according to the thermal efficiency η tank . Here, F usage t depicts fuel usage at time t. Moreover, 9 is the equivalent kWh energy of one liter fuel [22]. It should be noted that a linearized relation between fuel consumption and kWh output is assumed. Constraints related to the fuel tank and battery capacity are modeled in Equations (41)-(50).
EP CH_PHEVs t ≤ P max charge M t charge , t < T in and t > T out (48) where Cap tank t is the fuel tank current capacity at t. Cap Full,tank shows the maximum capacity (initial capacity) of the fuel tank. Equation (40)

Simulation Framework
In order to demonstrate the ability of the proposed model, it has been implemented on a house consisting of different types of appliances and domestic energy resources such as the PV and upstream grid. The authors have used GAMS 2010 software to conduct the simulations. The requisite data for optimizing the energy usage of the house are taken from [29]. Since the main goal in this paper is to study the house control center treatment after the occurrence of the disaster and before power system restoration (during power outage duration), it is assumed that PHEVs do not charge and discharge before disasters and after power system restoration. In order to apply different outage conditions such as duration and starting time, four different scenarios are deployed, with their beginning and ending hours shown in Table 2. In order to consider the worst case scenario, it is assumed that each appliance is turned on/off once a day. The efficiency of the inverter (η inverter ) is assumed to be 0.9; this amount is the practical efficiency of an AC-DC converter in many recent studies. I initial battery is 0.5 and I f inal tank is 0.2. The initial capacity of the fuel tank is assumed to be full. The house has one PHEV and its charge and discharge rate is considered to be 6.6 kW and 6 kW, respectively.
In order to study the effect of the discomfort level on the results, three situations with three levels of discomforts were considered and their data are shown in Tables 3 and 4. Level 3 has a harder condition than levels 2 and 1. Level 2 also has a harder condition than level 1. For comparing the proposed method with the normal condition, the input data for the normal condition is given in Tables 3  and 4. The results of applying the above-mentioned scenarios, including PV generation, ESS charge and discharge, imported and exported electricity from/to the grid, as well as load profile are shown in Figures 3-6, which illustrate the smart house management strategy for maximizing the injected power to the main grid. In order to study the effect of duration length on the proposed method, average power injection in different discomfort levels was considered for the three scenarios (scenario 1, 3, and 4), which is shown in Figure 7. Figure 8 shows a comparison of average temperature.                     Average temperature comparison between two scenarios for three discomfort levels. Figure 8. Average temperature comparison between two scenarios for three discomfort levels.

Results and Discussion
As depicted in Figure 3, during the power outage, the PHEV acts as a source and supplies house appliances and also injects the excess power into the main grid (the discomfort level in this scenario is 1). According to Figure 3b, the injected power for discomfort level 3 is higher than that for the other levels, which imposes a harder situation for homeowners. The amount of power in level 3 is about 4 kW and is 400 W more than the without management state. It is shown in Figure 3c that average temperature in discomfort level 3 is lower than that in the other levels, which shows the harder condition. Adding 400 W to the injected power leads to a 4-degree reduction in temperature, which can be reasonable during short period outages. As illustrated in Figure 3c, the reduction in temperature and the injected power increase do not have a linear relationship. Thus, by reducing the discomfort level, more energy can be extracted. A similar study has been carried out on other scenarios. Only smart house management strategies are shown in Figures 4-6. As depicted in Figure 4, the power outage period as compared to scenario 1 is only changed and the duration is the same as scenario 1. The smart house control center controls appliances and the PHEV in order to inject maximum power to the grid. For studying the performance of the proposed method on a long duration power outage in a day, scenarios 3 and 4 were implemented. Figure 5 depicts the smart house management in scenario 3. As can be observed, PHEV can supply the requested load and also inject the excess power to the main grid. PV cooperates in supplying appliances in this period. The procedure is the same for scenario 4, as shown in Figure 6. It can be observed that PHEV has the ability to supply house appliances and also inject the extra power to the main grid.
In order to study the effect of duration length on the proposed method, the average power injection in different discomfort levels was considered for the three scenarios (scenario 1, 3, and 4). As depicted in Figure 7, for a longer power outage duration, the average injected power is higher than other scenarios. The reason for this is that the control center has more time to implement its control strategies. It is shown that when the discomfort level is low, if the length of outage becomes more, power injection will also become more. In level 1, the house owner imposes more limits on the house conditions; so, the control center does not have enough flexibility. When the discomfort levels are levels 2 and 3, the average injected power in scenarios 3 and 4 are approximately the same. The difference between the scenarios in level 1 is more than level 2 and 3. This means that the smart house can perform better by changing its discomfort level in long period power outages. An average temperature comparison is shown in Figure 8. As is depicted, the average temperature in scenario 1 is lower than that in scenario 4 in the same level. Because of the short duration in scenario 1, the proposed control center has to decrease the temperature for a short period in order to inject more power to the grid. This means that in the occurrence of short period outages, the control center poses a harder situation on the homeowner to inject more power. In levels 2 and 3, the average temperature is lower than that in level 1 and the reason for this is the harder condition that homeowners can tolerate.

Conclusions
In this paper, the sustainable smart house is introduced. The new model for a resilient house was presented, including PV, PHEV, and energy storage system. The proposed method maximizes the injected power to the main grid during the power outage. Smart house management controls appliances and PHEVs in order to increase the maximum power injection. The simulation results show that PHEVs have the ability to supply house appliances and also inject the excess power to the main grid. The combination of PHEV's fuel-based capability and the smart home appliances in addition to a PV system provides a sustainable energy system and allows house owners to participate in distribution system resiliency improvement strategies by considering their welfare. The results show that smart houses increase the injected power by about 8%. Average power injection shows that the proposed control method has better performance (about 5.5%) for easier conditions (higher discomfort level). In addition, the proposed control method injects more power when the power outage lasts longer. For future works, authors suggest implementing an experimental validation of using fuel-based capabilities of PHEVs in a smart house and also inclusion of the degradation of devices, namely batteries, within the optimization model.