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

\history

Date of publication xxxx 00, 0000, date of current version xxxx 00, 0000. 10.1109/ACCESS.2021.3050757

\tfootnote

This work was supported by the Korea Institute of Energy Technology Evaluation and Planning (KETEP) and the Ministry of Trade, Industry & Energy (MOTIE) of the Republic of Korea (No. 20184030202130) and this work was supported by the Soonchunhyang University Research Fund.

\corresp

Corresponding author: Daehee Kim(e-mail: [email protected])

An Optimal Energy-Saving Home Energy Management Supporting User Comfort and Electricity Selling with Different Prices

HUY TRUONG DINH       AND DAEHEE KIM    Department of Future Convergence Technology, Soonchunhyang University, Asan 31538, South Korea
Abstract

In this study, we investigate the operation of an optimal home energy management system (HEMS) with integrated renewable energy system (RES) and energy storage system (ESS) supporting electricity selling functions. A multi-objective mixed integer nonlinear programming model, including RES, ESS, home appliances and the main grid, is proposed to optimize different and conflicting objectives which are energy cost, user comfort and PAR. The effect of different selling prices on the objectives is also considered in detail. We further develop a formula for the lower bound of energy cost to help residents or engineers quickly choose best parameters of RES and ESS for their homes during the installation process. The performance of our system is verified through extensive simulations under three different scenarios of normal, economic, and smart with different selling prices using real data, and simulation results are compared in terms of daily energy cost, PAR, user’s convenience and consecutive waiting time to use appliances. Numerical results clearly show that the economic scenario achieves 51.6%51.6\% reduction of daily energy cost compared to the normal scenario while sacrificing the user’s convenience, PAR, and consecutive waiting time by 49%49\%, 132%132\%, and 1 hour, respectively. On the other hand, the smart scenario shows only slight degradation of user’s convenience and PAR by 2%2\% and 18%18\%, respectively while achieving 46.4%46.4\% reduction of daily energy cost and the same level of consecutive waiting time. Furthermore, our simulation results show that a decrease of selling prices has tiny impacts on PAR and user comfort even though the daily energy cost increases.

Index Terms:
home energy management systems, electricity selling operation, energy trading, MINLP, user comfort, lower bound.
\titlepgskip

=-15pt

I Introduction

In the future, the smart grid (SG) will not only be a main component of electricity delivery between suppliers, prosumers and consumers but also play a key role in reducing energy consumption [1]. By using advanced metering infrastructure (AMI) of the SG, residents can utilize external information sent by the utilities to improve their energy usage. On the other side, the SG also helps the utilities distribute power in more effective way and reduce the system’s peak-to-average ratio (PAR), a main contributing factor to an electricity crisis [2]. With the amazing development of renewable energy and energy storage technologies, more and more houses are able to set up home energy management systems (HEMSs) with integrated renewable energy systems (RESs) and energy storage systems (ESSs) to reduce their energy cost, PAR, and dependency on the main grid (MG) in an efficient and reliable manner. In the SG, participating in the electricity market is another efficient way to decrease energy costs and maximally utilize renewable energy from residential zones. Hence, the main role of HEMS is not only to control and manage all electrical devices, but also to fully support selling operations by the residents, fulfilling their various requirements. Due to the tremendous effects of HEMS on energy consumption of houses, there are numerous studies on the different problems HEMS may encounter. A large number of optimization models and scheduling schemes have also been proposed. For example, in [3], Sereen Althaher et al. proposed an optimization-based automated demand response (ADR) to be implemented in HEMS. Their ADR aimed to reduce the consumer’s electricity bill below a certain level, whilst increasing their comfort. To achieve these objectives, a mixed integer nonlinear programming (MINLP) model for optimizing the cost of energy with thermal and device constraints was built. However, in their study, RES and ESS were not considered, and thus selling operations were not mentioned.

The authors in [4] presented a joint optimization of electric vehicles (EV) and home energy scheduling. In their study, EV was exploited as dynamic energy storage. Their objectives were to minimize energy cost while considering thermal constraints and the constraints of EV travel. Utilization of the MG and selling activities were mentioned to reduce their energy cost during high price slots. To solve their optimization problem, they employed the Model Predictive Control (MPC) technique. However, the set of appliances in the house was not considered. Thus, the detailed schedule of each appliance and selling operations in each time slot were not given consideration. Moreover, RES was not considered in this paper.

In [5], a HEMS integrated battery storage system and photo-voltaic system were presented. Their objectives were to minimize energy cost and satisfy the thermal and device constraints. In their study, an example set of appliances for a house was given. Instead of building an optimization model, they proposed a load management algorithm. Their algorithm only controlled battery and thermal appliances to adapt to operations of other appliances which were turned on or off by residents. In their work, selling was not mentioned.

In [6], an energy management system with integrated RES and ESS for a group of homes was proposed to optimize energy cost and allow power trading. At each home, a set of appliances was given and a model was also built for minimizing energy cost and scheduling these appliances. In this paper, selling operations between the homes was supported using the Nash equilibrium from game theory. However, utilization of the MG and user comfort were not considered for each home in their model.

Similar to [6], in [7], multiple-home energy management system was proposed. In this system, three types of home were introduced, including a home with both an EV and a PV, a home with a single EV, and a home without EV and PV. Maximization of consumer satisfaction, minimization of energy cost, and minimization of PAR were considered as their objectives. To solve their multi-objective optimization problem, pareto tribe evolution with Nash equilibrium-based decision (PTE-Nash) was used. However, selling operation was not considered in their system.

In [8], [9], and [10], the authors built an optimization model for HEMS with integrated RES and ESS to optimize energy cost and user comfort. A multi-objective MINLP optimization model was developed for considering both energy saving, thermal comfort and the user’s convenience. A detailed schedule of appliances was given by solving this MINLP model. Although selling activities were mentioned, their HEMS failed to give a detailed schedule for selling operations in each time slot. Moreover, the effect of selling price on system performance and user comfort were not considered.

In [11], authors developed an optimal real time schedule controller for HEMS to minimize energy consumption during a week. In their study, a set of home appliances was given. A new binary backtracking search algorithm (BBSA) was introduced to solve their optimization problem and the performance of this new algorithm was compared with binary particle swarm optimization (binary PSO). Simulation results showed that the performance of the BBSA controller was better in terms of saving energy compared to the binary PSO controller. However, RES and ESS were not considered in their study.

In [12], an HEMS with integration of RES and battery energy storage system (BESS) was proposed to reduce energy cost in a home. A given set of home appliances included six shiftable appliances and six fixed appliances. In their study, a mathematical model of the system was built. In this model, BESS energy was supposed to be not free and its price depends on the state of charge (SOC). This price allowed the optimal use of battery energy, thus enhancing the battery lifetime. To solve the optimization problem, PSO was used. Three scenarios were introduced: base scenario without scheduling, optimization with scheduling appliances (OSA), and optimization with scheduling appliances and batteries (OSAB). Simulation results proved that OSAB was more effective in reducing the energy cost and BESS energy loss than other scenarios. However, in this study, user comfort and electricity selling were not considered.

In [13], a home energy management controller was proposed using artificial neural network (ANN) to decrease the energy consumption for home devices at specific times. A example set of home devices included air conditioner, electric water heater, washing machine and refrigerator. Their ANN was trained to predict the optimal ON/OFF status of the home devices. Results showed that the proposed ANN based controller can reduce the energy consumption and maintain the total power consumption below a threshold without affecting resident lifestyles. However, RES and ESS were not considered in their study.

In [14], an HEMS with integrated BESS and PV system was presented. In this study, BESS and PV system were utilized to reduce electricity bill in smart home. The proposed planning for determining optimal strategy was expressed as a stochastic MINLP which was solved by advanced-adaptive PSO (AAPSO). In their HEMS, selling and buying operation from network were supported. However, selling price equaled to buying price and both prices were the same as main grid price. Hence, the effect of different selling prices was not considered in this study. Moreover, scheduling for appliances was not considered.

In our previous work [15], we presented a HEMS to optimize energy cost and PAR. To achieve these objectives, optimization formulas were built and solved using a PSO algorithm. A detailed schedule of utilization of the MG and selling operations were given for each time slot but user comfort was not considered.

Beside [14] and [15], there are many other studies that use meta-heuristic algorithms for scheduling appliances such as genetic algorithm (GA), wind driven optimization (WDO), harmony search algorithm (HSA), and so on [16], [17], [18], [19], [20], [21], [22], [23]. Although energy cost and various kinds of user comfort were considered and optimized in these studies, all of them failed to consider the selling operation in their optimization problems.

Two main techniques widely used to solve optimization problem of a HEMS in a home are meta-heuristic algorithms and mathematical optimization algorithms. Each kind of techniques has its own advantages and disadvantages, and depends on the environment in which a HEMS is built. However, in meta-heuristic algorithms, optimal values need to be investigated for many parameters such as swarm size, number of iterations, and so on. Moreover, in our previous work, meta-heuristic algorithms take a lot of time to solve our optimization problem and output optimal results. Hence, in this work, mathematical optimization algorithms are selected to solve our problem.

TABLE I: A comparison of HEMS: State of the art
Work Algorithm (Technique) Integration Objective Consecutive Constraints Utilizing MG Different Lower Bound
ESS RES Energy PAR User Consecutive Selling of
Cost Convenience Waiting Time Prices Energy Cost
[3] MINLP
[4] MPC
[5] load control
[6] game theory
[7] PTE-Nash
[8] MINLP
[9] MINLP
[11] BBSA
[12] meta-heuristic
[13] ANN
[14] meta-heuristic
[16] meta-heuristic
[17] meta-heuristic
[18] meta-heuristic
[19] meta-heuristic
[20] meta-heuristic
[21] meta-heuristic
[22] meta-heuristic
[23] meta-heuristic
Previous work meta-heuristic
Our work MINLP

Motivated by the above literature works, we propose a novel HEMS with integration of RES and ESS supporting user comfort and electricity selling. In this HEMS which is an extension of our previous work [15], the effects of different selling prices on energy cost, user comfort and PAR are fully considered. In this study, a MINLP model, including different objectives: energy cost per day, user comfort, and PAR, is modeled. Two kinds of user comfort are considered in our model: the user’s convenience and consecutive waiting time to use appliances. To the best of our knowledge, none of the previous studies considered an optimization model which takes daily energy cost, user comfort, and PAR into account and supports electricity selling. The brief comparison of research works on HEMS is listed in Table I. The main contributions of our works can be summarized as follows.

  • A multi-objective MINLP model that jointly optimizes four different objectives is built. This model aims to achieve a balance between minimizing energy cost and preservation of user comfort and PAR. A detailed schedule for the operation of appliances, utilization of the MG and selling operation in each time slot are given to achieve this optimal balance. The effect of selling price on system performance is considered. Specifically, simulation results show that a decrease of selling price impacts user comfort and PAR slightly.

  • A formula for the lower bound of energy cost is developed. Due to its simplicity, this formula can help residents or engineers quickly estimate the economic benefit achieved by using a HEMS with integrated specific RES and ESS. Thus, residents or engineers can easily choose the parameters of the RES and ESS that are the best fit for their homes. The numerical results show that the minimum value of our energy cost approaches very close to this lower bound.

  • We show the impacts of different weight coefficients, which control energy cost, user comfort, and PAR, on system operation as well as the economic benefits. The weight method for multi-objective optimization allows us more flexibility in setting trade-offs between energy cost, user comfort, and PAR.

The remainder of this paper is organized as follows. A brief description of the HEMS system is shown in Section II. A detailed problem formulation and optimization model are built in Section III. Section IV investigates the lower bound of energy cost. In Section V, the scenarios and simulation results are provided. Finally, Section VI outlines conclusions and potential future works.

II System Description

In this paper, as shown in Fig. 1, a smart home with HEMS and a collection of shiftable and non-shiftable electrical appliances is studied. Generally, key components of a HEMS include AMI, a main controller (MC), ESS and RES. External information can be collected through an AMI. This includes pricing information, forecast temperature, and solar irradiance. The MC uses this useful information to control all electrical devices including the ESS and RES. The RES is used to decrease the dependency on the MG and reduce energy cost. In this paper, we assume that a PV system is set up as the RES. To be able to store surplus RES energy and utilize electricity from the MG at low price times, the ESS is needed for our system. Moreover, our HEMS supports residents in selling the electricity. Fig. 2 shows all energy flows in our smart home.

Refer to caption
Figure 1: HEMS Architecture [15].
Refer to caption
Figure 2: Energy flows in our HEMS [15].

III Problem Formulation

In this section, we build mathematical formulas for the RES, ESS, appliances and our objectives during a day time from 0 A.M. to 12 P.M. We divide a day into T=24T=24 time slots and the duration of each time slot is Δt=1h\Delta t=1h. It is important to note that the following formulas are valid even when Δt\Delta t is smaller and TT is bigger.

III-A Renewable Energy Source

In this work, our HEMS is equipped with a PV system as its RES. According to [15], the output energy, ERES(t)E_{RES}(t), from a PV system in kWh in any time slot tt (1tT1\leq t\leq T) can be measured as

ERES(t)=GHI(τ)SηRESΔt.E_{RES}(t)=GHI(\tau)\cdot S\cdot\eta^{RES}\cdot\Delta t. (1)

where GHIGHI is the global horizontal irradiation (kW/m2)(kW/m^{2}) at the location of the solar panels. τ\tau is the real time in time slot tt. SS is the total area (m2)(m^{2}) of solar panels and ηRES\eta^{RES} is the solar conversion efficiency of the PV system.

As shown in Fig. 2, this energy would be used for home load and ESS charging. Thus, we have the following equation.

ERES(t)=ERESload(t)+EREScharge(t)E_{RES}(t)=E_{RES}^{load}(t)+E_{RES}^{charge}(t) (2)

where ERESload(t)E_{RES}^{load}(t) is the energy quantity used for home load in time slot tt. EREScharge(t)E_{RES}^{charge}(t) is the energy quantity used to charge the ESS in time slot tt. In real life, because every ESS is only able to store a limited amount of energy over a certain time, if our RES generates more energy than the sum of the energy which home appliances need and the energy which is able to be stored in the ESS in a time slot, the remaining energy of RES will be wasted. Hence, (2) should be changed to

ERES(t)ERESload(t)+EREScharge(t).E_{RES}(t)\geq E_{RES}^{load}(t)+E_{RES}^{charge}(t). (3)

III-B Energy Storage System

As described in Fig. 2, our ESS is charged by the RES energy and energy from the main grid and is discharged for home load use and selling. Hence, with t,1tT\forall t,\hskip 2.84544pt1\leq t\leq T, we have the following formulas.

EESSDischarge(t)=EESSload(t)+EESSselling(t)E_{ESS}^{Discharge}(t)=E_{ESS}^{load}(t)+E_{ESS}^{selling}(t) (4)
EESSCharge(t)=EREScharge(t)+EMGcharge(t)E_{ESS}^{Charge}(t)=E_{RES}^{charge}(t)+E_{MG}^{charge}(t) (5)

where EESSDischarge(t)E_{ESS}^{Discharge}(t) refers to the energy quantity which is drawn from the ESS in a time slot tt. EESSCharge(t)E_{ESS}^{Charge}(t) refers to the energy quantity stored in the ESS in a time slot tt. EESSload(t)E_{ESS}^{load}(t) is the energy quantity used for home load in a time slot tt. EESSselling(t)E_{ESS}^{selling}(t) is the energy quantity sold to the outside in a time slot tt. EREScharge(t)E_{RES}^{charge}(t) is the energy quantity stored in the ESS from the RES in a time slot tt. EMGcharge(t)E_{MG}^{charge}(t) is the energy quantity stored in the ESS from the main grid in a time slot tt.

The energy level of the ESS after time slot tt becomes

EESSLevel(t)=EESSLevel(t1)\displaystyle E_{ESS}^{Level}(t)=E_{ESS}^{Level}(t-1) +EESSCharge(t)ηESS\displaystyle+E_{ESS}^{Charge}(t)\cdot\eta^{ESS}
EESSDischarge(t)/ηESS\displaystyle-E_{ESS}^{Discharge}(t)/\eta^{ESS} (6)

where ηESS\eta^{ESS} is the ESS efficiency. As shown in (6), when we charge or discharge ESS, we lose small amount of energy which depends on the parameter ηESS\eta^{ESS}.

When using the ESS, we must satisfy the following constraints.

  • The charge/discharge rate of the ESS cannot exceed the Chrate/DhrateCh_{rate}/Dh_{rate}. This means that we are only able to put in or draw a certain maximum energy quantity in a time slot tt with duration Δt\Delta t.

  • The energy level of the ESS must be between ELminEL_{min} and ELmaxEL_{max}.

  • We should avoid simultaneous charging and discharging of our ESS.

From the above, we have the following constraints.

0EESSDischarge(t)DhrateΔt(1modeESS(t))0\leq E_{ESS}^{Discharge}(t)\leq Dh_{rate}\cdot\Delta t\cdot\big{(}1-mode^{ESS}(t)\big{)} (7)
0EESSCharge(t)ChrateΔtmodeESS(t)0\leq E_{ESS}^{Charge}(t)\leq Ch_{rate}\cdot\Delta t\cdot mode^{ESS}(t) (8)
ELminEESSLevel(t)ELmaxEL_{min}\leq E_{ESS}^{Level}(t)\leq EL_{max} (9)
modeESS(t)={1if the ESS is charged in time slot t0if the ESS is discharged in time slot tmode^{ESS}(t)=\begin{cases}1&\quad\text{if the ESS is charged in time slot }t\\ 0&\quad\text{if the ESS is discharged in time slot }t\end{cases} (10)

Combining (4), (5), (7), and (8), we have the following constraints for EESSload(t)E_{ESS}^{load}(t), EESSselling(t)E_{ESS}^{selling}(t), EREScharge(t)E_{RES}^{charge}(t), and EMGcharge(t)E_{MG}^{charge}(t).

0EESSload(t)+EESSselling(t)DhrateΔt(1modeESS(t))0\leq E_{ESS}^{load}(t)+E_{ESS}^{selling}(t)\leq Dh_{rate}\cdot\Delta t\cdot\big{(}1-mode^{ESS}(t)\big{)} (11)
0EREScharge(t)+EMGcharge(t)ChrateΔtmodeESS(t)0\leq E_{RES}^{charge}(t)+E_{MG}^{charge}(t)\leq Ch_{rate}\cdot\Delta t\cdot mode^{ESS}(t) (12)

Because the sum of EESSload(t)E_{ESS}^{load}(t) and EESSselling(t)E_{ESS}^{selling}(t) has an upper bound as shown in (11), there is a trade-off between EESSload(t)E_{ESS}^{load}(t) and EESSselling(t)E_{ESS}^{selling}(t). When EESSload(t)E_{ESS}^{load}(t) increases, EESSselling(t)E_{ESS}^{selling}(t) will decrease, and vice versa. Likewise, there is a trade-off between EREScharge(t)E_{RES}^{charge}(t) and EMGcharge(t)E_{MG}^{charge}(t).

Since we only consider our system over the course of day (with no net accumulation being carried over to the next day), the energy level must be returned to the initial energy level by the end of the day. Thus, we have this constraint.

EESSLevel(T)=EL0E_{ESS}^{Level}(T)=EL_{0} (13)

We assume that all energy to be sold comes from the ESS. The parameters of our ESS used in this paper are shown in Table II.

TABLE II: The parameters of an ESS.
Parameters Meaning
ηESS\eta^{ESS} ESS efficiency
Chrate/DhrateCh_{rate}/Dh_{rate} maximum charge/discharge rate of the ESS
EL0EL_{0} initial energy level of the ESS
ELminEL_{min} minimum energy level of the ESS
ELmaxEL_{max} maximum energy level of the ESS

III-C Home Appliances

In our system, we suppose that there are two different sets of appliances: shiftable appliances MM and non-shiftable appliances NN. The set of shiftable devices M={a1,a2,a3,,am}M=\{a_{1},a_{2},a_{3},...,a_{m}\} includes the devices which can operate during any time slot whereby we can move the operation time of these devices to low price slots to save cost. The set of non-shiftable devices N={b1,b2,b3,,bn}N=\{b_{1},b_{2},b_{3},...,b_{n}\} includes the devices which have fixed operation time slots defined by users. None of the appliances can be interrupted during their operation.

The operation time of each non-shiftable appliance bib_{i} is defined by binary parameter Obi(t)O_{b_{i}}(t) which shows the status of device bib_{i} in time slot tt. These parameters have a fixed value and are defined by users.

Obi(t)={1if non-shiftable device bi is ON0if non-shiftable device bi is OFFO_{b_{i}}(t)=\begin{cases}1&\quad\text{if non-shiftable device $b_{i}$ is ON}\\ 0&\quad\text{if non-shiftable device $b_{i}$ is OFF}\end{cases} (14)

Assuming PRbiPR_{b_{i}} is the power rating of device bib_{i} given by producers, the energy consumption of non-shiftable set NN in a time slot tt is calculated as

EN(t)=i=1n(PRbi×Obi(t)×Δt).E_{N}(t)=\displaystyle\sum_{i=1}^{n}\Big{(}PR_{b_{i}}\times O_{b_{i}}(t)\times\Delta t\Big{)}. (15)

The operation time of each shiftable appliance aia_{i} is defined by one parameter and two variables: parameter LoTaiLoT_{a_{i}} is the length of operation time in a day, integer variable staist_{a_{i}} refers to the time slot in which device aia_{i} starts to run, and binary variable Oai(t)O_{a_{i}}(t) shows the status of device aia_{i} in time slot tt.

Oai(t)={1if shiftable device ai is ON0if shiftable device ai is OFFO_{a_{i}}(t)=\begin{cases}1&\quad\text{if shiftable device $a_{i}$ is ON}\\ 0&\quad\text{if shiftable device $a_{i}$ is OFF}\end{cases} (16)

In a time slot tt, the energy consumption of shiftable set MM is calculated as

EM(t)=i=1m(PRai×Oai(t)×Δt).E_{M}(t)=\displaystyle\sum_{i=1}^{m}\Big{(}PR_{a_{i}}\times O_{a_{i}}(t)\times\Delta t\Big{)}. (17)

where PRaiPR_{a_{i}} refers to the power rating of devices aia_{i} given by producers. There are several constraints which these variables must follow. First, each shiftable device must finish its operation within that day.

staiTLoTai+1st_{a_{i}}\leq T-LoT_{a_{i}}+1 (18)

Second, every shiftable device must not be interrupted during its operation time. This means that the binary variable Oai(t)O_{a_{i}}(t) must satisfy the following constraint.

Oai(t)={1if staitstai+LoTai10otherwiseO_{a_{i}}(t)=\begin{cases}1&\quad\text{if }st_{a_{i}}\leq t\leq st_{a_{i}}+LoT_{a_{i}}-1\\ 0&\quad\text{otherwise}\end{cases} (19)

Third, a shiftable device aia_{i} should be started after the device aja_{j}’s operation is completed (consecutive tasks). As an example, the clothes dryer should be started after the washing machine has already stopped. We have the following constraint.

staj+LoTaj+Djistaist_{a_{j}}+LoT_{a_{j}}+D_{ji}\leq st_{a_{i}} (20)

where parameter DjiD_{ji} is the minimum delay between the time device aja_{j} is stopped and the time device aia_{i} is started and this parameter is determined by the residents.

In a time slot tt (1tT1\leq t\leq T), the energy consumption of all the appliances in the house, Etotalappliances(t)E_{total}^{appliances}(t), is the sum of the energy consumption of the shiftable set MM, EM(t)E_{M}(t), and non-shiftable set NN, EN(t)E_{N}(t). We have:

Etotalappliances(t)=EN(t)+EM(t).E_{total}^{appliances}(t)=E_{N}(t)+E_{M}(t). (21)

To provide enough energy for home appliances in time slot tt, we use three different sources: energy from RES, ESS, and the main grid as shown in Fig. 2. Hence, we have the following formula.

Etotalappliances(t)=ERESload(t)+EESSload(t)+EMGload(t)E_{total}^{appliances}(t)=E_{RES}^{load}(t)+E_{ESS}^{load}(t)+E_{MG}^{load}(t) (22)

From (21), we have

EMGload(t)+ERESload(t)+EESSload(t)=EN(t)+EM(t).E_{MG}^{load}(t)+E_{RES}^{load}(t)+E_{ESS}^{load}(t)=E_{N}(t)+E_{M}(t). (23)

As EMGload(t)0E_{MG}^{load}(t)\geq 0 and we assume that the main grid always provides enough electricity for the requirements of our home load, we have the following constraint.

0ERESload(t)+EESSload(t)EN(t)+EM(t)0\leq E_{RES}^{load}(t)+E_{ESS}^{load}(t)\leq E_{N}(t)+E_{M}(t) (24)

III-D Objective Functions

III-D1 Objective 1: Minimizing energy cost

We assume that the energy from the RES and ESS is complimentary, thus, we only need to consider energy from the main grid. Whereby in a given time slot tt, the load needed from main grid, ELD(t)E_{LD}(t), is calculated as

ELD(t)=EMGload(t)+EMGcharge(t).E_{LD}(t)=E_{MG}^{load}(t)+E_{MG}^{charge}(t). (25)

From (23), we have

ELD(t)=EN(t)+EM(t)+EMGcharge(t)ERESload(t)EESSload(t).E_{LD}(t)=E_{N}(t)+E_{M}(t)+E_{MG}^{charge}(t)-E_{RES}^{load}(t)-E_{ESS}^{load}(t). (26)

In addition, in the time slot tt, we sell an amount of energy, EESSselling(t)E_{ESS}^{selling}(t), to the outside. Hence, the energy cost in the time slot tt, EC(t)EC(t), is

EC(t)=ELD(t)×PMG(t)EESSselling(t)×Psell(t).EC(t)=E_{LD}(t)\times P_{MG}(t)-E_{ESS}^{selling}(t)\times P_{sell}(t). (27)

where PMG(t)P_{MG}(t) is the day-ahead price of the main grid in the time slot tt. This value is determined by the electrical provider and sent to users through the AMI. Psell(t)P_{sell}(t) is the price of selling energy in time slot tt. This value is decided by residents. From (26), we have

EC(t)=\displaystyle EC(t)= (EN(t)+EM(t)+EMGcharge(t)ERESload(t)\displaystyle\Big{(}E_{N}(t)+E_{M}(t)+E_{MG}^{charge}(t)-E_{RES}^{load}(t)
EESSload(t))×PMG(t)EESSselling(t)×Psell(t).\displaystyle-E_{ESS}^{load}(t)\Big{)}\times P_{MG}(t)-E_{ESS}^{selling}(t)\times P_{sell}(t). (28)

Since our objective is to minimize the total energy cost over a day, the objective function is defined as

min(Cday)=mint=1TEC(t)=\displaystyle min(C_{day})=min\displaystyle\sum_{t=1}^{T}EC(t)=
mint=1T((EN(t)+EM(t)+EMGcharge(t)ERESload(t)\displaystyle min\displaystyle\sum_{t=1}^{T}\bigg{(}\Big{(}E_{N}(t)+E_{M}(t)+E_{MG}^{charge}(t)-E_{RES}^{load}(t)
EESSload(t))×PMG(t)EESSselling(t)×Psell(t)).\displaystyle-E_{ESS}^{load}(t)\Big{)}\times P_{MG}(t)-E_{ESS}^{selling}(t)\times P_{sell}(t)\bigg{)}. (29)

where EN(t)E_{N}(t) has a fixed value and EM(t)E_{M}(t) is calculated by (17). Usually, the price of electricity from the main grid is higher than the selling price. We assume that Psell(t)=α×PMG(t)P_{sell}(t)=\alpha\times P_{MG}(t) with 0<α10<\alpha\leq 1. Thus, the objective function of our system becomes

mint=1T(\displaystyle min\displaystyle\sum_{t=1}^{T}\bigg{(} EN(t)+EM(t)+EMGcharge(t)ERESload(t)\displaystyle E_{N}(t)+E_{M}(t)+E_{MG}^{charge}(t)-E_{RES}^{load}(t)
EESSload(t)α×EESSselling(t))×PMG(t).\displaystyle-E_{ESS}^{load}(t)-\alpha\times E_{ESS}^{selling}(t)\bigg{)}\times P_{MG}(t). (30)

It is worth noting that our HEMS prefers using ESS energy for home load to selling ESS energy to the outside in order to obtain more profits if α<1\alpha<1 because the sum of EESSload(t)E_{ESS}^{load}(t) and EESSselling(t)E_{ESS}^{selling}(t) has an upper bound as shown in (11).

III-D2 Objective 2: Maximizing user’s convenience

To be able to measure the user’s convenience (UC) when a shiftable device is scheduled to run at a specific time, we introduce two kinds of time range which are set by residents for each shiftable device aia_{i}: Utilization time range UTRai=[usai,ueai]UTR_{a_{i}}=[us_{a_{i}},ue_{a_{i}}] is the time slots this device can be run; Best time range BTRai=[bsai,beai]BTR_{a_{i}}=[bs_{a_{i}},be_{a_{i}}] is the time slots which are best suited for operation of this device. If a shiftable device aia_{i} is run in time slot tt, UCai(t)UC_{a_{i}}(t) can be calculated as

UCai(t)={0tusai.tusaibsaiusaiusaitbsai.1bsaitbeai.tueaibeaiueaibeaitueai.0ueait.UC_{a_{i}}(t)=\begin{cases}0&\quad t\leq us_{a_{i}}.\\ \frac{t-us_{a_{i}}}{bs_{a_{i}}-us_{a_{i}}}&\quad us_{a_{i}}\leq t\leq bs_{a_{i}}.\\ 1&\quad bs_{a_{i}}\leq t\leq be_{a_{i}}.\\ \frac{t-ue_{a_{i}}}{be_{a_{i}}-ue_{a_{i}}}&\quad be_{a_{i}}\leq t\leq ue_{a_{i}}.\\ 0&\quad ue_{a_{i}}\leq t.\end{cases} (31)
Refer to caption
Figure 3: Definition of a user’s convenience.

Fig. 3 shows the distribution function UCai(t)UC_{a_{i}}(t). As shown in Fig. 3, when a shiftable device aia_{i} is run in a time slot tt, the user’s convenience of this device, UCai(t)UC_{a_{i}}(t), is maximum value of 11 if the time slot tt is in its best time range and is minimum value of 0 if the time slot tt is outside its utilization time range. If the time slot tt is inside the utilization time range but outside the best time range, the user’s convenience will decrease linearly. Hence, our HEMS tries to maximize user’s convenience during a day by scheduling this device inside the best time range or at least the utilization time range.

Our objective function of a user’s convenience can be determined as

max(UC)=maxi=1mt=1T(priai×UCai(t)×Oai(t)).max(UC)=max\displaystyle\sum_{i=1}^{m}\displaystyle\sum_{t=1}^{T}\Big{(}pri_{a_{i}}\times UC_{a_{i}}(t)\times O_{a_{i}}(t)\Big{)}. (32)

where priai[1,2,3]pri_{a_{i}}\in[1,2,3] is the priority of devices aia_{i} that has a highest priority of 3 down to a lowest priority of 1, and this parameter is defined by users.

III-D3 Objective 3: Minimizing PAR

PAR, related to the operation of the main grid, is the ratio of the peak load demand and the average of total load demand over a day. In our system, our objective function of PAR can be defined as

min(PAR)=min((ELD(t))max1Tt=1TELD(t)).min(PAR)=min\Bigg{(}\frac{(E_{LD}(t))_{max}}{\frac{1}{T}\displaystyle\sum_{t=1}^{T}E_{LD}(t)}\Bigg{)}. (33)

where ELD(t)E_{LD}(t) is calculated by (26).

III-D4 Objective 4: Minimizing consecutive waiting time

For our appliances, some devices (aj,ai)(a_{j},a_{i}) have to satisfy the same consecutive constraint as in (20). For example, the clothes dryer should be started as soon as possible after the washing machine stops. In this case, the user wants to minimize the waiting time between the time the clothes dryer starts and the time the washing machine stops for maximizing user comfort. However, it is inconvenient if we have to wait a long time to start device aia_{i}, even though device aja_{j} has already stopped. In this paper, we propose an objective function to minimize this waiting time (WT) as

min(WT)=min(stai(staj+LoTaj+Dji)).min(WT)=min\displaystyle\sum\big{(}st_{a_{i}}-(st_{a_{j}}+LoT_{a_{j}}+D_{ji})\big{)}. (34)

To minimize the objective of consecutive waiting time and satisfy the consecutive constraint, our HEMS tries to start device aia_{i} as soon as possible, after device aja_{j} is stopped and guarantees a minimum delay of DjiD_{ji}.

III-D5 Optimization Model

To optimize our HEMS, all mentioned objectives have to be considered. Hence, a multi-objective function (MO Function) is proposed as our system’s optimization model.

min(MO Function)=min(CdayUCPARWT)min(\text{MO Function})=min\Bigg{(}\frac{C_{day}}{UC-PAR-WT}\Bigg{)} (35)

This function must be optimized subject to all previously mentioned constraints of the RES, ESS, and appliances.

IV A lower bound for energy cost

In this section, a lower bound for the energy cost CdayC_{day} that is described in (30) is discovered. Clearly, as 0<α10<\alpha\leq 1, we have

Cdayt=1T\displaystyle C_{day}\geq\displaystyle\sum_{t=1}^{T} (EN(t)+EM(t)+EMGcharge(t)ERESload(t)\displaystyle\bigg{(}E_{N}(t)+E_{M}(t)+E_{MG}^{charge}(t)-E_{RES}^{load}(t)
EESSload(t)EESSselling(t))×PMG(t).\displaystyle-E_{ESS}^{load}(t)-E_{ESS}^{selling}(t)\bigg{)}\times P_{MG}(t). (36)

Naming:

E(t)=EMGcharge(t)ERESload(t)EESSload(t)EESSselling(t).E(t)=E_{MG}^{charge}(t)-E_{RES}^{load}(t)-E_{ESS}^{load}(t)-E_{ESS}^{selling}(t). (37)

We then have

Cdayt=1T(EN(t)+EM(t)+E(t))×PMG(t).C_{day}\geq\displaystyle\sum_{t=1}^{T}\bigg{(}E_{N}(t)+E_{M}(t)+E(t)\bigg{)}\times P_{MG}(t). (38)
Cdayt=1T(EN(t)×PMG(t))\displaystyle\Rightarrow C_{day}\geq\displaystyle\sum_{t=1}^{T}\Big{(}E_{N}(t)\times P_{MG}(t)\Big{)} +t=1T(EM(t)×PMG(t))\displaystyle+\displaystyle\sum_{t=1}^{T}\Big{(}E_{M}(t)\times P_{MG}(t)\Big{)}
+t=1T(E(t)×PMG(t)).\displaystyle+\displaystyle\sum_{t=1}^{T}\Big{(}E(t)\times P_{MG}(t)\Big{)}. (39)

Because EN(t)E_{N}(t) and PMG(t)P_{MG}(t) are values we already know, t=1T(EN(t)×PMG(t))\displaystyle\sum_{t=1}^{T}\Big{(}E_{N}(t)\times P_{MG}(t)\Big{)} has a fixed value. From (17) we have

t=1T(EM(t)×PMG(t))\displaystyle\displaystyle\sum_{t=1}^{T}\Big{(}E_{M}(t)\times P_{MG}(t)\Big{)}
=i=1mt=staistai+LoTai1(PRai×PMG(t)×Δt)\displaystyle=\displaystyle\sum_{i=1}^{m}\displaystyle\sum_{t=st_{a_{i}}}^{st_{a_{i}}+LoT_{a_{i}}-1}\Big{(}PR_{a_{i}}\times P_{MG}(t)\times\Delta t\Big{)}
=i=1m(PRai×Δt×t=staistai+LoTai1PMG(t))\displaystyle=\displaystyle\sum_{i=1}^{m}\Big{(}PR_{a_{i}}\times\Delta t\times\displaystyle\sum_{t=st_{a_{i}}}^{st_{a_{i}}+LoT_{a_{i}}-1}P_{MG}(t)\Big{)}
i=1m(PRai×Δt×MMGai).\displaystyle\geq\displaystyle\sum_{i=1}^{m}\Big{(}PR_{a_{i}}\times\Delta t\times M_{MG}^{a_{i}}\Big{)}. (40)

where MMGaiM_{MG}^{a_{i}} is the minimum value of t=staistai+LoTai1PMG(t)\displaystyle\sum_{t=st_{a_{i}}}^{st_{a_{i}}+LoT_{a_{i}}-1}P_{MG}(t) and is easily calculated. Hence, the minimum value of t=1T(EM(t)×PMG(t))\displaystyle\sum_{t=1}^{T}\Big{(}E_{M}(t)\times P_{MG}(t)\Big{)} is also easily calculated. From (3), (4), (5) and (37), we have

E(t)EESSCharge(t)EESSDischarge(t)ERES(t).\displaystyle E(t)\geq E_{ESS}^{Charge}(t)-E_{ESS}^{Discharge}(t)-E_{RES}(t). (41)

Thus, we have

t=1T(E(t)×PMG(t))\displaystyle\displaystyle\sum_{t=1}^{T}\Big{(}E(t)\times P_{MG}(t)\Big{)}
t=1T(EESSCharge(t)EESSDischarge(t))×PMG(t)\displaystyle\geq\displaystyle\sum_{t=1}^{T}\Big{(}E_{ESS}^{Charge}(t)-E_{ESS}^{Discharge}(t)\Big{)}\times P_{MG}(t)
t=1T(ERES(t)×PMG(t)).\displaystyle\hskip 85.35826pt-\displaystyle\sum_{t=1}^{T}\Big{(}E_{RES}(t)\times P_{MG}(t)\Big{)}. (42)

where t=1T(ERES(t)×PMG(t))\displaystyle\sum_{t=1}^{T}\Big{(}E_{RES}(t)\times P_{MG}(t)\Big{)} is the cost-benefit we achieve from our PV system in a day, this is easily calculated. Hence, the lower bound of t=1T(E(t)×PMG(t))\displaystyle\sum_{t=1}^{T}\Big{(}E(t)\times P_{MG}(t)\Big{)} only depends on the expression t=1T(EESSCharge(t)EESSDischarge(t))×PMG(t)\displaystyle\sum_{t=1}^{T}\Big{(}E_{ESS}^{Charge}(t)-E_{ESS}^{Discharge}(t)\Big{)}\times P_{MG}(t). A nice thing about this expression is that it only involves EESSCharge(t)E_{ESS}^{Charge}(t) and EESSDischarge(t)E_{ESS}^{Discharge}(t), an energy quantity which can be stored or drawn from ESS in a time slot tt. These variables only need to satisfy the constraints in (7), (8), (9), (10), (13). Hence, this expression is a simple MIP problem and the minimum of this expression is easily determined using Matlab or Python. In appendix A, a python program is written to calculate this minimum. Naming CMIPminC_{MIP}^{min} as this minimum, we have

t=1T(E(t)×PMG(t))CMIPmint=1T(ERES(t)×PMG(t)).\displaystyle\displaystyle\sum_{t=1}^{T}\Big{(}E(t)\times P_{MG}(t)\Big{)}\geq C_{MIP}^{min}-\displaystyle\sum_{t=1}^{T}\Big{(}E_{RES}(t)\times P_{MG}(t)\Big{)}. (43)

Combining (39), (40) and (43), a lower bound of the energy cost CdayC_{day} can be determined as

Cdayt=1T(EN(t)\displaystyle C_{day}\geq\displaystyle\sum_{t=1}^{T}\Big{(}E_{N}(t) ×PMG(t))+i=1m(PRai×Δt×MMGai)\displaystyle\times P_{MG}(t)\Big{)}+\displaystyle\sum_{i=1}^{m}\Big{(}PR_{a_{i}}\times\Delta t\times M_{MG}^{a_{i}}\Big{)}
+CMIPmint=1T(ERES(t)×PMG(t)).\displaystyle+C_{MIP}^{min}-\displaystyle\sum_{t=1}^{T}\Big{(}E_{RES}(t)\times P_{MG}(t)\Big{)}. (44)

The equal sign = is only valid if the equal signs = of (40), (43) are valid and α=1\alpha=1.

During the installation process, when the resident wants to estimate the economic benefits in the HEMS system, the engineer can apply the python program in Appendix A to calculate CMIPminC_{MIP}^{min} for the ESS and use (1) to estimate the cost-benefit from the RES. By applying these values with the minimum energy cost of shiftable appliances and the energy cost of non-shiftable appliances into (44), we can quickly estimate the economic benefit achieved from the HEMS system.

V Simulations and Discussions

In this section, a house with a set of household appliances, a RES and an ESS is simulated over the course of a day. The parameters for the household appliances are shown in Table III where the units of PR and LoT are kW and hour, respectively. There are 17 appliances that were divided into two categories: shiftable and non-shiftable. The shiftable appliances are devices whose operating time can be shifted to low price time slots whereas operating times of non-shiftable devices cannot be changed. None of the appliances can be interrupted during operation. We further define three consecutive constraints: the clothes dryer (CD) should be started as soon as possible after the washing machine (WM) is finished (DWM,CD=0D_{WM,CD}=0), the hair dryer (HD) should be started as soon as possible after the electric shower (ES) is finished (DES,HD=0D_{ES,HD}=0), and the dish washer (DW) should be started 1 hour after the rice cooker (RC) is finished (DRC,DW=1D_{RC,DW}=1).

TABLE III: Description of the appliances.
Load Type Appliances PR LoT Start Time UTR BTR pri
Shiftable Toaster 0.8 1 - 1 A.M. - 10 A.M. 6 A.M. - 8 A.M. 3
Iron 1.1 1 - 1 A.M. - 1 P.M. 5 A.M. - 7 A.M. 2
Vacuum Cleaner 0.7 1 - 8 A.M. - 8 P.M. 9 A.M. - 12 A.M. 2
Microwave 0.9 1 - 8 A.M. - 7 P.M. 11 A.M. - 2 P.M. 3
Electric Kettle 1.0 1 - 4 A.M. - 12 A.M. 6 A.M. - 7 A.M. 3
Air Conditioner 1.3 10 - 5 A.M. - 12 P.M. 9 A.M. - 11 P.M. 2
Washing Machine 1.0 2 - 7 A.M. - 9 P.M. 8 A.M. - 2 P.M. 1
Clothes Dryer 1.8 1 - 9 A.M. - 9 P.M. 11 A.M. - 5 P.M. 1
Rice Cooker 0.6 2 - 3 P.M. - 9 P.M. 5 P.M. - 8 P.M. 3
Dish Washer 1.4 2 - 4 P.M. - 12 P.M. 8 P.M. - 11 P.M. 2
Electric Shower 2.5 1 - 5 P.M. - 12 P.M. 8 P.M. - 10 P.M. 2
Hair Dryer 1.0 1 - 8 P.M. - 12 P.M. 10 P.M. - 11 P.M. 1
non-shiftable Personal computers 0.2 14 8 A.M. - - -
Security cameras 0.1 24 0 A.M. - - -
Refrigerator 0.9 21 2 A.M. - - -
Television 0.2 6 4 P.M. - - -
Lights 0.1 7 5 P.M. - - -
TABLE IV: The input parameters of our ESS in the simulation.
ηESS\eta^{ESS} Chrate/DhrateCh_{rate}/Dh_{rate} EL0EL_{0} ELminEL_{min} ELmaxEL_{max}
95% 1.0 kW 0.5 kWh 0.5 kWh 10 kWh

The parameters for our ESS are shown in Table IV. For the RES in our house, a PV system is used for electricity generation, this is modeled in (1). The day ahead price (DAP) and solar irradiance used in our HEMS are shown in Fig. 4 and Fig. 5. This DAP signal is defined by the electricity provider and the solar irradiance is obtained from METEONORM 6.1 for the Islamabad region of Pakistan [17]. We assume that total area of solar panels is S=1m2S=1m^{2} and the solar conversion efficiency ηRES=0.95\eta^{RES}=0.95. The hourly energy quantity generated by the PV system over the course of a day is shown in Fig. 6.

Refer to caption
Figure 4: Hourly prices according to DAP signal [17].
Refer to caption
Figure 5: Solar irradiance [17].
Refer to caption
Figure 6: Hourly estimated RES.

The performance of our HEMS is compared under three different scenarios: normal,economic,normal,economic, and smartsmart. The normal scenario describes a situation in which no HEMS is set up. The RES and ESS are also not set up in this scenario. Therefore, there is no ability for utilizing the DAP information, RES, and ESS. Shiftable devices are not controlled according to different objectives and they are run upon the resident’s requests. The economic scenario describes a situation in which the HEMS including the RES and ESS is set up. However, shiftable devices are scheduled to minimize energy cost only, other objectives are ignored. On the other hand, in the smart scenario, our HEMS is fully utilized to optimize the multi-objective function, as shown in (35). Shiftable devices are scheduled not only to reduce energy cost, but also to optimize the outcomes of other objectives. It is worth noting that in all three scenarios, the consecutive constraints of shiftable devices are always satisfied. All of our simulations were run on an Intel(R) Core(TM) i7-8700 CPU @ 3.20GHz and 16GB RAM with Windows 10 pro (64-bit). The mathematical programming software AIMMS [24] with Cplex/Conopt/Outer-Approximation [25] solvers was used to solve our optimization problem. AIMMS is a high-level modeling system designed for solving LP, NLP, MIP and MINLP problems with minimal user intervention. The computational time taken for the economic and smart scenarios was about 10 seconds and 23 seconds, respectively.

V-A Performance of our HEMS in the three scenarios

Refer to caption
Figure 7: Performance of three scenarios with α=1\alpha=1.

Fig. 7 shows our system’s performance for each scenario when Psell(t)=PMG(t)(t1tT)P_{sell}(t)=P_{MG}(t)\hskip 2.84544pt(\forall t\hskip 2.84544pt1\leq t\leq T) which means that α=1\alpha=1. As depicted in this figure, the smart scenario demonstrates excellent performance in comparison with the other scenarios, this is achieved by taking four objectives into account. The multi-objective function value (MO Function) for the smart scenario is only 8.3, a significant improvement of 45%45\% and 54%54\% over the normal and economic scenarios. In detail, in the economic scenario, to achieve the minimum of energy cost (339.22 cents), the user’s convenience, consecutive waiting time, and PAR were worst in comparison with the normal scenario. PAR is increased to more than double from 2.22.2 to 5.15.1 and residents have to wait 1 hour to start to use of shiftable devices. Especially, the economic scenario fails to fulfill the satisfaction of residents in terms of the user’s convenience index (UC/UCmax×100)(UC/UC_{max}\times 100). The user’s convenience in the economic scenario is decreased dramatically from 100%100\% to 51%51\%. However, in the smart scenario, with a small increase in energy cost, the user’s convenience, consecutive waiting time, and PAR are quite close to those in the normal scenario with a small increase in energy cost.

Refer to caption
Figure 8: Performance of three scenarios with α=0.9\alpha=0.9.
Refer to caption
Figure 9: Performance of three scenarios with α=0.8\alpha=0.8.

Moreover, our system still works well in cases where the selling price Psell(t)P_{sell}(t) is decreased as shown in Fig. 8 and Fig. 9. As observed from the simulation results, both the energy cost and multi-objective function value have a tiny increase when Psell(t)P_{sell}(t) is steadily reduced. However, our system still maintains the user’s convenience, consecutive waiting time, and PAR like in the normal scenario. In particular, in both cases, the PAR and consecutive waiting time are the same as in the normal scenarios, being 2.22.2 and 0, respectively. Only the user’s convenience is slightly decreased to 97%97\%. Comparing the smart scenario with α=1\alpha=1 to that of α=0.9\alpha=0.9 and α=0.8\alpha=0.8, the reductions of selling price only decrease user’s convenience very slightly by 1%1\% and enhance PAR by 0.40.4. Moreover, when comparing both smart scenarios with α=0.9\alpha=0.9 and α=0.8\alpha=0.8, the user’s convenience, consecutive waiting time and PAR, including the scheduling of home appliances, are exactly the same. The only difference between two cases is the increase of energy cost from 384384 cents to 389389 cents.

To gain better insights into the performance of the smart scenario, the optimal operation of the RES, ESS, and shiftable appliances in the smart scenario with α=0.9\alpha=0.9 are shown in Fig. 10, Fig. 11, and Table V. As depicted in Fig. 10, because the RES energy is generated during high price time slots, most of it is used for the home load. A small amount of energy is stored in the ESS at time slots from 4 P.M. to 5 P.M. and from 7 P.M. to 8 P.M. In these time slots, the price of the main grid is low and this energy is used for the home load later from 8 P.M. to 10 P.M. By utilizing the RES energy for home load, our HEMS reduces the dependence on the main grid. Moreover, hourly RES energy can be stored in ESS in some time slots and used in next appropriate time slots. This helps our HEMS schedule appliances more flexibly and easily, thereby reducing the energy cost and achieving high user’s convenience.

In Fig. 11, in the high price time slots from 7 A.M. to 11 A.M., energy from the ESS is discharged to provide the home load while the surplus energy is also discharged to sell as much as possible to make profits. It is worth noting that, in these time slots, our HEMS only sells ESS energy to the outside after fully supporting home load. This ESS energy came from main grid in the low price time slots from 0 A.M. to 7 A.M. Likewise, the operation of the appliances was scheduled to avoid these high price time slots, as shown in Table V. Besides, the optimal schedule for the appliances was created by effectively taking the consecutive constraints and time preferences of the residents into account. As an example, the clothes dryer is run after the washing machine finishes. Both of these are operated during the low price times at 3 P.M. and 5 P.M.

Refer to caption
Figure 10: Hourly RES usage in smart scenario with α=0.9\alpha=0.9.
Refer to caption
Figure 11: Hourly input and output energy of ESS in smart scenario with α=0.9\alpha=0.9.
TABLE V: Schedule and consumption profile of the shiftable appliances in smart scenario with α=0.9\alpha=0.9.
Appliances Start Time Energy consumption Cost
(kWh) (cents)
Toaster 6 A.M. 0.8 7.96
Iron 5 A.M. 1.1 10.12
Vacuum Cleaner 11 A.M. 0.7 11.55
Microwave 12 A.M. 0.9 14.85
Electric Kettle 6 A.M. 1.0 12.2
Air Conditioner 1 P.M. 13 127.66
Washing Machine 3 P.M. 2 17.5
Clothes Dryer 5 P.M. 1.8 15.66
Rice Cooker 6 P.M. 1.2 10.5
Dish Washer 9 P.M. 2.8 22.54
Electric Shower 8 P.M. 2.5 20.5
Hair Dryer 9 P.M. 1 8.0

V-B Lower bound of energy cost

With energy generated by the RES, as shown in Fig. 6, and the set of appliances as shown in Table III, applying (44), the lower bound of the energy cost in our system was 338.92 cents while the energy cost of economic scenario in our system with α=1\alpha=1 was 339.22 cents, as shown in Fig. 7. There is a tiny gap between the two values. To explain where this difference comes from, we consider the schedules of the electrical devices in both scenarios, as shown in Table VI.

TABLE VI: A comparison of schedules between (44) and economic scenario
Time Slot Schedule from (44) Schedule from economic scenario
energy demand ESS energy demand RES, Main Grid, and ESS
of all appliances EESSCharge(t)E_{ESS}^{Charge}(t) EESSDischarge(t)E_{ESS}^{Discharge}(t) of all appliances EREScharge(t)E_{RES}^{charge}(t) EMGcharge(t)E_{MG}^{charge}(t) EESSload(t)E_{ESS}^{load}(t) EESSselling(t)E_{ESS}^{selling}(t)
(kWh) (kWh) (kWh) (kWh) (kWh) (kWh) (kWh) (kWh)
0 A.M.-1 A.M. 0.1 1 0 0.1 0 1 0 0
1 A.M.-2 A.M. 0.1 1 0 0.1 0 1 0 0
2 A.M.-3 A.M. 1 1 0 1 0 1 0 0
3 A.M.-4 A.M. 1 1 0 1 0 1 0 0
4 A.M.-5 A.M. 1 1 0 1 0 1 0 0
5 A.M.-6 A.M. 1 1 0 1 0 1 0 0
6 A.M.-7 A.M. 1 1 0 1 0 1 0 0
7 A.M.-8 A.M. 1 0 1 1 0 0 0.43 0.57
8 A.M.-9 A.M. 1.2 0 1 1.2 0 0 0 1
9 A.M.-10 A.M. 1.2 0 1 1.2 0 0 0 1
10 A.M.-11 A.M. 1.2 0 1 1.2 0 0 0 1
11 A.M.-12 A.M. 1.2 0 1 1.2 0 0 0.06 0.94
12 A.M.-1 P.M. 1.2 0 1 1.2 0 0 0.06 0.94
1 P.M.-2 P.M. 1.2 0 0.3175 1.2 0 0 0.06 0.2575
2 P.M.-3 P.M. 2.5 0 0 2.5 0 0 0 0
3 P.M.-4 P.M. 2.5 0 0 2.5 0 0 0 0
4 P.M.-5 P.M. 2.7 1 0 2.7 0.95 0.05 0 0
5 P.M.-6 P.M. 2.8 0 0 2.8 0 0 0 0
6 P.M.-7 P.M. 2.8 0 0.9025 2.8 0 0 0.9025 0
7 P.M.-8 P.M. 7.3 0 0 10.6 0 0 0 0
8 P.M.-9 P.M. 2.8 0 0 4.4 0 0 0 0
9 P.M.-10 P.M. 11.1 0 0 6.4 0 0 0 0
10 P.M.-11 P.M. 5.4 0 0 3.8 0 0 0 0
11 P.M.-12 P.M. 1.5 0 0 2.9 0 0 0 0

To achieve the lower bound of 338.92 cents for the energy cost calculated by (44), it is required that the input energy EESSCharge(t)E_{ESS}^{Charge}(t) and output energy EESSDischarge(t)E_{ESS}^{Discharge}(t) in each time slot have to obey the schedule shown in Table VI (to achieve the minimum value of CMIPminC_{MIP}^{min}). As an example, from 0 A.M. to 7 A.M., the ESS has to be in charge mode and EESSCharge(t)=1E_{ESS}^{Charge}(t)=1 (kWh). Moreover, it is also required that all shiftable appliances have to be run in the lowest price time slots to achieve the minimum value from (40). The energy demands from both non-shiftable and shiftable appliances in each time slot are shown in this Table.

In the schedule for the economic scenario, as can be seen in Table VI, the input and output energy of the ESS are exactly the same as the schedule from (44). As an example, in the time slot from 7 A.M. to 8 A.M., in schedule from (44), the ESS has to be in discharge mode and EESSDischarge(t)=1E_{ESS}^{Discharge}(t)=1 (kWh). In the economic scenario, the ESS is also in discharge mode and EESSload(t)+EESSselling(t)=0.43+0.57=1E_{ESS}^{load}(t)+E_{ESS}^{selling}(t)=0.43+0.57=1 (kWh) in this time slot. There are only small differences in the energy demands of all appliances in the low price time slots from 7 P.M. to 12 P.M. We get these differences because in the economic scenario consecutive constraints are considered while these constraints are not included in (40). These differences make the energy cost of the economic scenario unequal to the lower bound calculated in (44). It is worth noting that in this economic scenario, during every time slot, the RES energy is always smaller than the energy demand of all appliances and is fully utilized by our system (no loss). The usage of the RES energy is shown in Fig. 12.

Refer to caption
Figure 12: Hourly RES usage in economic scenario with S=1m2S=1m^{2}
Refer to caption
Figure 13: Hourly RES usage in economic scenario with S=1.5m2S=1.5m^{2}.

Now, we increase the total area of solar panels S=1.5m2S=1.5m^{2}. This means that the energy generated by the RES is increased by 50%50\% in every time slot, as shown in Fig. 13. In (44), most of the elements are not changed except ERES(t)E_{RES}(t). Thus, the schedule of the appliances and the ESS are not changed and the new lower bound of the energy cost is 250.16 cents. For this case, in the economic scenario, if our ESS and appliances continues following the previous schedule, a lot of RES energy is lost and the energy needed from main grid will be increased dramatically. The reason for this loss is that, from 8 A.M. to 2 P.M, the RES energy is a lot larger than energy demand for all appliances and the ESS can not store the surplus RES energy because the ESS is in discharge mode. Hence, to minimize the energy cost, our system still tries to follow the schedule from (44) but it makes two main changes to reduce the loss of RES energy. First, our system moves some devices to run in the high price time slots from 11 A.M. to 1 P.M. As can be seen in Table VII, the energy demand of all appliances in these time slots is increased to 1.8 (kWh). Second, in the time slot from 1 P.M. to 2 P.M., instead of being in discharge mode, our ESS is in charge mode and stores the surplus RES energy (0.51 kWh) as shown in Table VII. The main reason for these changes is to consume all the RES energy in these time slots. However, not all RES energy is used. Our system decides to lose some RES energy from 8 A.M. to 11 A.M. as shown in Fig. 13. Due to the changes and RES loss mentioned above, the new minimum energy cost of our system in this scenario is only 275.2 cents, an increase of 10%10\% compared with the above lower bound of the energy cost.

There is always a gap between lower bound from (44) and the minimum value of the energy cost. If we continue increasing the RES energy by increasing total area of solar panels, this gap will continue to increase and thus the loss of the RES energy will also continue to increase. In real life, residents do not want to lose RES energy, they usually want to set up a PV system which generates an energy quantity equal or a little larger than the energy demand from all appliances for every time slot. As a result, our lower bound is very close to the minimum value of the energy cost and is useful for these houses. It can help residents or engineers estimate quickly how much cost they can save if they want to set up a specific HEMS for a house.

TABLE VII: A comparison of schedules between (44) and economic scenario with increasing solar panels.
Time Slot Schedule from (44) Schedule from economic scenario
energy demand ESS energy demand RES, Main Grid, and ESS
of all appliances EESSCharge(t)E_{ESS}^{Charge}(t) EESSDischarge(t)E_{ESS}^{Discharge}(t) of all appliances EREScharge(t)E_{RES}^{charge}(t) EMGcharge(t)E_{MG}^{charge}(t) EESSload(t)E_{ESS}^{load}(t) EESSselling(t)E_{ESS}^{selling}(t)
(kWh) (kWh) (kWh) (kWh) (kWh) (kWh) (kWh) (kWh)
0 A.M.-1 A.M. 0.1 1 0 0.1 0 1 0 0
1 A.M.-2 A.M. 0.1 1 0 0.1 0 1 0 0
2 A.M.-3 A.M. 1 1 0 1 0 1 0 0
3 A.M.-4 A.M. 1 1 0 1 0 1 0 0
4 A.M.-5 A.M. 1 1 0 1 0 1 0 0
5 A.M.-6 A.M. 1 1 0 1 0 1 0 0
6 A.M.-7 A.M. 1 1 0 1 0 1 0 0
7 A.M.-8 A.M. 1 0 1 1 0 0 0.43 0.57
8 A.M.-9 A.M. 1.2 0 1 1.2 0 0 0 1
9 A.M.-10 A.M. 1.2 0 1 1.2 0 0 0 1
10 A.M.-11 A.M. 1.2 0 1 1.2 0 0 0 1
11 A.M.-12 A.M. 1.2 0 1 1.8 0 0 0.06 0.94
12 A.M.-1 P.M. 1.2 0 1 1.8 0 0 0.06 0.94
1 P.M.-2 P.M. 1.2 0 0.3175 1.2 0.51 0 0 0
2 P.M.-3 P.M. 2.5 0 0 2.5 0 0 0 0.7778
3 P.M.-4 P.M. 2.5 0 0 2.5 0 0 0 0
4 P.M.-5 P.M. 2.7 1 0 2.7 0.661 0.339 0 0
5 P.M.-6 P.M. 2.8 0 0 2.8 0 0 0 0
6 P.M.-7 P.M. 2.8 0 0.9025 2.8 0 0 0.9025 0
7 P.M.-8 P.M. 7.3 0 0 8.3 0 0 0 0
8 P.M.-9 P.M. 2.8 0 0 3.8 0 0 0 0
9 P.M.-10 P.M. 11.1 0 0 9.5 0 0 0 0
10 P.M.-11 P.M. 5.4 0 0 3.8 0 0 0 0
11 P.M.-12 P.M. 1.5 0 0 1.5 0 0 0 0

V-C Weight method used in optimization model

In (35), the user’s convenience, consecutive waiting time, and PAR have the same weight coefficient of 1. In Fig. 7, in the smart scenario, the PAR of our system is 2.6, we want to reduce this PAR to smaller than the PAR in normal scenario (2.2). To do this job, the weight method of multi-objective optimization (MOO) is used and a new model of optimization is introduced as follows.

min(MO Function)=min(Cdayw1.UCw2.PARw3.WT)min(\text{MO Function})=min\Bigg{(}\frac{C_{day}}{w_{1}.UC-w_{2}.PAR-w_{3}.WT}\Bigg{)} (45)

where w1,w2,w3[0,1]w_{1},w_{2},w_{3}\in[0,1] are the weighting coefficients of user’s convenience, PAR, and consecutive waiting time, respectively. These parameters are set by residents and w1w_{1} + w2w_{2} + w3w_{3} = 11.

Refer to caption
Figure 14: The effect of weighting coefficients in our system.

As depicted in Fig. 14, the PAR of our system decreases to 2 when its weight coefficient is set to 0.7, the other weight coefficients for user’s convenience and consecutive waiting time are set to 0.2 and 0.1, respectively. If we continue increasing the weight coefficient of PAR, the value of PAR will continue to decrease. However, there is then a trade-off between the energy cost and PAR. The energy cost of our system will be increased if PAR is decreased. The main reason for this trade-off is that, to decrease PAR, our HEMS has to move operations of some appliances to high price time slots instead of scheduling them during low price time slots. Moreover, as shown in Fig. 14, even though energy cost of our system is increased, our proposed method keeps the user’s convenience stably and changes consecutive waiting time slightly. In other words, the decrease of PAR only affects the energy cost and it does not affect user comfort in our system.

With the weight method of MOO, residents have more flexibility in setting the trade-off between energy cost, user’s convenience, consecutive waiting time, and PAR for their homes.

VI Conclusion

In this study, a new multi-objective MINLP-based HEMS is mathematically modeled and validated in three different scenarios: normal, economic, and smart. The simulation results show that our HEMS accomplishes a balance among daily energy cost, user’s convenience, PAR, and consecutive waiting time. More specifically, the smart scenario shows only slight degradation of user’s convenience and PAR by 2%2\% and 18%18\%, respectively while achieving 46.4%46.4\% reduction of daily energy cost and the same level of consecutive waiting time. Furthermore, our simulation results show that a decrease of selling prices has very slight impacts on PAR and user comfort even though the daily energy cost increases. By applying the weight method from MOO, the simulation results show that our system has more flexibility in changing balancing energy cost, user’s convenience, consecutive waiting time, and PAR based on the requirements of residents.

In this paper, a lower bound for energy cost was discovered. There is a gap between this lower bound and the minimum value of the energy cost of our system. However, this gap is very small if the energy quantity generated by the RES is equal or a little larger than the energy demands of all the appliances in every time slot. Residents can use this lower bound to quickly calculate an estimate for the cost they can save or choose which parameters for the RES and ESS are suitable for their homes.

The disadvantage of our proposed HEMS is that it requires residents to configure many parameters of shiftable appliances such as the best time range, the utilization time range, the priority and so on. Moreover, our system cannot reschedule home appliances in order to adapt to the real-time changes which can affect user comfort such as outside temperature or the number of persons in a home. Thus, in the future, we are interested in applying ANN into our HEMS in order to automatically determine the user parameters and adapt to the real-time changes, thereby achieving better performance.

Appendix A Python program to find the minimum value of a MIP problem

In this appendix, a python program is introduced to find CMIPminC_{MIP}^{min} in Section IV. Our program uses a library called ”mip”. Variable CMIPminC_{MIP}^{min} is found easily by using python software.

{python}

from mip import Model, xsum, BINARY # price of main grid price_Grid = [10, 10, 8.5, 9, 12, 9.2, 12.2, 24.5, 27, 27.5, 17.2, 16.5, 16.5, 16.2, 14, 9, 8.5, 8.7, 9.5, 8, 8.2, 8, 8.1, 8.1] # parameters of ESS effi_ess = 0.95 EL_max = 10 EL_min = 0.5 EL0 = 0.5 number_time_slot = 24 charge_discharge_rate = 1 duration = 24 / number_time_slot

# declaring model m = Model()

# definition of variables charge_discharge_mode=[m.add_var(var_type=BINARY) for i in range(number_time_slot)] charging_energy = [m.add_var(lb=0) for i in range(number_time_slot)] discharging_energy = [m.add_var(lb=0) for i in range(number_time_slot)] ESS_level = [m.add_var(lb=EL_min, ub=EL_max) for i in range(number_time_slot)]

# definition of objective function m.objective  = xsum((charging_energy[i]-discharging_energy[i]) * price_Grid[i] for i in range(number_time_slot))

# adding constraints for i in range(number_time_slot): m += charging_energy[i] ¡=  charge_discharge_rate * duration  * charge_discharge_mode[i]

m += discharging_energy[i] ¡=  charge_discharge_rate * duration  * (1 - charge_discharge_mode[i])

for i in range(number_time_slot): if i ¿ 0: m += ESS_level[i] == ESS_level[i - 1]  + charging_energy[i] * effi_ess  - discharging_energy[i] / effi_ess else: m += ESS_level[i] == EL0  + charging_energy[i] * effi_ess  - discharging_energy[i] / effi_ess

m += ESS_level[23] == EL0 m.optimize()

# print the minimum value print(”optimal value =”, m.objective_value)

References

  • [1] G. Dileep, “A survey on smart grid technologies and applications,” Renew. Energy, vol. 146, pp. 2589–2625, 2020.
  • [2] Y. Liu, C. Yuen, S. Huang, N. U. Hassan, X. Wang, and S. Xie, “Peak-to-average ratio constrained demand-side management with consumer’s preference in residential smart grid,” IEEE Journal of Selected Topics in Signal Processing, vol. 8, no. 6, pp. 1084–1097, 2014.
  • [3] S. Althaher, P. Mancarella, and J. Mutale, “Automated demand response from home energy management system under dynamic pricing and power and comfort constraints,” IEEE Tran. Smart Grid, vol. 6, no. 4, pp. 1874–1883, 2015.
  • [4] D. T. Nguyen and L. B. Le, “Joint optimization of electric vehicle and home energy scheduling considering user comfort preference,” IEEE Trans. on Smart Grid, vol. 5, no. 1, pp. 188–199, 2013.
  • [5] M. Shakeri, M. Shayestegan, H. Abunima, S. S. Reza, M. Akhtaruzzaman, A. Alamoud, K. Sopian, and N. Amin, “An intelligent system architecture in home energy management systems (hems) for efficient demand response in smart grid,” Energy and Buildings, vol. 138, pp. 154–164, 2017.
  • [6] P. Samadi, V. W. Wong, and R. Schober, “Load scheduling and power trading in systems with high penetration of renewable energy resources,” IEEE Trans. on Smart Grid, vol. 7, no. 4, pp. 1802–1812, 2015.
  • [7] D. Wang, X. Zhang, K. Qu, T. Yu, Z. Pan, and Q. Liu, “Pareto tribe evolution with equilibrium-based decision for multi-objective optimization of multiple home energy management systems,” Energy and Buildings, vol. 159, pp. 11–23, 2018.
  • [8] A. Anvari-Moghaddam, H. Monsef, and A. Rahimi-Kian, “Optimal smart home energy management considering energy saving and a comfortable lifestyle,” IEEE Tran. Smart Grid, vol. 6, no. 1, pp. 324–332, 2014.
  • [9] A. Anvari-Moghaddam, J. M. Guerrero, J. C. Vasquez, H. Monsef, and A. Rahimi-Kian, “Efficient energy management for a grid-tied residential microgrid,” IET Gener. Transm. Distrib., vol. 11, no. 11, pp. 2752–2761, 2017.
  • [10] A. Anvari-Moghaddam, A. Rahimi-Kian, M. S. Mirian, and J. M. Guerrero, “A multi-agent based energy management solution for integrated buildings and microgrid system,” Applied energy, vol. 203, pp. 41–56, 2017.
  • [11] M. S. Ahmed, A. Mohamed, T. Khatib, H. Shareef, R. Z. Homod, and J. Abd Ali, “Real time optimal schedule controller for home energy management system using new binary backtracking search algorithm,” Energy and Buildings, vol. 138, pp. 215–227, 2017.
  • [12] A. Bouakkaz, A. J. G. Mena, S. Haddad, and M. L. Ferrari, “Efficient energy scheduling considering cost reduction and energy saving in hybrid energy system with energy storage,” Journal of Energy Storage, p. 101887, 2020.
  • [13] M. S. Ahmed, A. Mohamed, H. Shareef, R. Z. Homod, and J. Abd Ali, “Artificial neural network based controller for home energy management considering demand response events,” in 2016 International Conference on Advances in Electrical, Electronic and Systems Engineering (ICAEES).   IEEE, 2016, pp. 506–509.
  • [14] R. Hemmati and H. Saboori, “Stochastic optimal battery storage sizing and scheduling in home energy management systems equipped with solar photovoltaic panels,” Energy and Buildings, vol. 152, pp. 290–300, 2017.
  • [15] H. T. Dinh, J. Yun, D. M. Kim, K.-H. Lee, and D. Kim, “A home energy management system with renewable energy and energy storage utilizing main grid and electricity selling,” IEEE Access, vol. 8, pp. 49 436–49 450, 2020.
  • [16] P. H. Shaikh, N. B. M. Nor, P. Nallagownden, I. Elamvazuthi, and T. Ibrahim, “Intelligent multi-objective control and management for smart energy efficient buildings,” International Journal of Electrical Power & Energy Systems, vol. 74, pp. 403–409, 2016.
  • [17] A. Ahmad, A. Khan, N. Javaid, H. M. Hussain, W. Abdul, A. Almogren, A. Alamri, and I. Azim Niaz, “An optimized home energy management system with integrated renewable energy and storage resources,” Energies, vol. 10, no. 4, p. 549, 2017.
  • [18] H. Hussain, N. Javaid, S. Iqbal, Q. Hasan, K. Aurangzeb, and M. Alhussein, “An efficient demand side management system with a new optimized home energy management controller in smart grid,” Energies, vol. 11, no. 1, p. 190, 2018.
  • [19] S. Rahim, N. Javaid, A. Ahmad, S. A. Khan, Z. A. Khan, N. Alrajeh, and U. Qasim, “Exploiting heuristic algorithms to efficiently utilize energy management controllers with renewable energy sources,” Energy and Buildings, vol. 129, pp. 452–470, 2016.
  • [20] N. Javaid, A. Ahmed, S. Iqbal, and M. Ashraf, “Day ahead real time pricing and critical peak pricing based power scheduling for smart homes with different duty cycles,” Energies, vol. 11, no. 6, p. 1464, 2018.
  • [21] M. H. Rahim, A. Khalid, N. Javaid, M. Alhussein, K. Aurangzeb, and Z. A. Khan, “Energy efficient smart buildings using coordination among appliances generating large data,” IEEE access, vol. 6, pp. 34 670–34 690, 2018.
  • [22] M. Awais, N. Javaid, K. Aurangzeb, S. I. Haider, Z. A. Khan, and D. Mahmood, “Towards effective and efficient energy management of single home and a smart community exploiting heuristic optimization algorithms with critical peak and real-time pricing tariffs in smart grids,” Energies, vol. 11, no. 11, p. 3125, 2018.
  • [23] O. Samuel, S. Javaid, N. Javaid, S. Ahmed, M. Afzal, and F. Ishmanov, “An efficient power scheduling in smart homes using jaya based optimization with time-of-use and critical peak pricing schemes,” Energies, vol. 11, no. 11, p. 3155, 2018.
  • [24] M. Roelofs, AIMMS 3. 10 User’s Guide.   Lulu. com, 2010.
  • [25] M. Hunting, “The aimms outer approximation algorithm for minlp,” Paragon Decision Technology, Haarlem, 2011.
[Uncaptioned image] Huy Truong Dinh was born in Quang Nam, Viet Nam, in 1981. He received the B.S. degree in information technology from Posts and Telecommunications Institute of Technology, Ho Chi Minh, Viet Nam, in 2004 and the M.S. degree in computer engineering from Delft University of Technology, Delft, The Netherlands, in 2009. He is currently pursuing the Ph.D. degree at Soonchunhyang University, Asan, Korea. His research interest includes Internet of Things, energy management, blockchain.
[Uncaptioned image] Daehee Kim received the B.S. degree in electrical and electronic engineering from Yonsei University, Seoul, Korea, in 2003, and the M.S. and Ph.D. degrees in electrical and electronic engineering from Ko-rea University, Seoul, Korea, in 2006 and 2016, respectively. He is currently an Assistant Professor with the Department of Internet of Things, Soonchunhyang University, Asan, Korea. From 2006 to 2016, he was a Senior Engineer with Samsung Electronics, Suwon, Korea, where he conducted research on WiMAX and LTE systems. His research interest includes the Internet of Things, energy management, blockchain, 5G and security for wireless networks.
\EOD