Next Article in Journal
Nanosheets of CuCo2O4 As a High-Performance Electrocatalyst in Urea Oxidation
Next Article in Special Issue
Virtual Inertia and Mechanical Power-Based Control Strategy to Provide Stable Grid Operation under High Renewables Penetration
Previous Article in Journal
Numerical Evaluation of Sample Gathering Solutions for Mobile Robots
Previous Article in Special Issue
Optimization Design and Analysis for a Single Motor Hybrid Powertrain Configuration with Dual Planetary Gears
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Time-Constrained Nature-Inspired Optimization Algorithms for an Efficient Energy Management System in Smart Homes and Buildings

1
Department of Electrical Engineering, Capital University of Science and Technology, Islamabad 44000, Pakistan
2
School of Engineering, University of Glasgow, Glasgow G12 8QQ, UK
*
Author to whom correspondence should be addressed.
Appl. Sci. 2019, 9(4), 792; https://doi.org/10.3390/app9040792
Submission received: 14 December 2018 / Revised: 10 February 2019 / Accepted: 15 February 2019 / Published: 23 February 2019
(This article belongs to the Special Issue Smart Home and Energy Management Systems 2019)

Abstract

:
This paper proposes two bio-inspired heuristic algorithms, the Moth-Flame Optimization (MFO) algorithm and Genetic Algorithm (GA), for an Energy Management System (EMS) in smart homes and buildings. Their performance in terms of energy cost reduction, minimization of the Peak to Average power Ratio (PAR) and end-user discomfort minimization are analysed and discussed. Then, a hybrid version of GA and MFO, named TG-MFO (Time-constrained Genetic-Moth Flame Optimization), is proposed for achieving the aforementioned objectives. TG-MFO not only hybridizes GA and MFO, but also incorporates time constraints for each appliance to achieve maximum end-user comfort. Different algorithms have been proposed in the literature for energy optimization. However, they have increased end-user frustration in terms of increased waiting time for home appliances to be switched ON. The proposed TG-MFO algorithm is specially designed for nearly-zero end-user discomfort due to scheduling of appliances, keeping in view the timespan of individual appliances. Renewable energy sources and battery storage units are also integrated for achieving maximum end-user benefits. For comparison, five bio-inspired heuristic algorithms, i.e., Genetic Algorithm (GA), Ant Colony Optimization (ACO), Cuckoo Search Algorithm (CSA), Firefly Algorithm (FA) and Moth-Flame Optimization (MFO), are used to achieve the aforementioned objectives in the residential sector in comparison with TG-MFO. The simulations through MATLAB show that our proposed algorithm has reduced the energy cost up to 32.25% for a single user and 49.96% for thirty users in a residential sector compared to unscheduled load.

1. Introduction

Energy utilization efficiency is increasing with increased use of technology and smart appliances in every field of life in the residential, commercial and industrial sectors. At the same time, a reliable and high-quality electrical power system is extremely vital to fulfil the residential energy demand. Meanwhile, there is a rapid increase in demand for global natural resources. Throughout the world, major blackouts occur due to consumer demand and utility supply mismatch and system automation deficiencies. Hence, a transition process from the Traditional Electric Power Grid (TEPG) to the Smart Grid (SG), to integrate communication and information technologies, is the demand of the future. Presently, about 40% of the total generated energy is consumed by residential users, and approximately 30–40% of carbon emission is due to these residential areas [1]. The unnecessary and inefficient use of electrical energy brings sustainability issues to the forefront, such as economic growth, heavy pollution and global warming. Conventionally, the service provider power systems run on fossil fuel and add to global warming with high carbon emissions. Furthermore, in the present power systems, electricity power flow is uni-directional, i.e., from the supply- to the demand-side. Conversely, SG’s purpose is to make the flow of electricity supply and demand bidirectional [2]. Secondly, the search for and integration of new green renewable energy resources are obligatory in such circumstances. The integration of green renewable energy resources needs a broader perspective of design, planning and optimization. Up to this time, different conventional optimization techniques, such as Linear Programming (LP) [3], Non-Linear Programming (NLP) [4], Integer Linear Programming (ILP) [5], Mixed Integer Linear Programming (MILP) [6], Dynamic Programming (DP) [7] and Constrained Programming (CP), have been practised. However, in the present situations, the integration of renewable energy resources is mandatory, and the problems are non-linear and have numerous local optima, making conventional optimization techniques obsolete. In the last decade, bio-inspired modern heuristic optimization techniques have grown in popularity due to their stochastic search mechanisms and avoidance of large convergence time for the exact solution [1].
In this research work, we propose a new meta-heuristic optimization algorithm, named Time-constrained Genetic-Moth-Flame Optimization (TG-MFO), and applied it for efficient energy optimization in smart homes and buildings. We have also explored and analysed five bio-inspired heuristic algorithms for the energy optimization problem, namely the ACO, GA, Cuckoo Search Algorithm (CSA), Firefly Algorithm (FA) and MFO algorithms. For analysis and validation of the proposed algorithm, we applied these algorithms in different consumer scenarios, such as a single home for one day, a single home for thirty days, thirty different sizes of homes for one day and thirty homes for thirty days. Simulation results show that our proposed algorithm reduced the end-user discomfort in terms of appliance waiting time being nearly equal to zero, as compared to the bio-inspired optimization algorithms, along with minimization of total energy cost and minimum PAR. Renewable energy sources are also integrated for further minimization of the total load and its cost.
To achieve this goal, the smart electric grid is modelled as a residential sector comprised of 30 homes having different sizes, different Lengths of Operational Time (LOTs) and appliance power ratings. Appliance power ratings are different due to the home size requirements. For example, a small-sized home runs a one-ton (12,000 BTU) air conditioner compared to a large-sized home that runs 1.5 tons (18,000 BTU) or even more. Some homes have a Renewable Energy Source (RES) and a Battery Storage Unit (BSU). In the considered model, we have forty-eight (48) Operational Time Intervals (OTIs) in a day, by dividing one hour into two-time slots of thirty minutes each. In each OTI, a smart home checks appliances’ power demand, i.e., whether an appliance is ON or OFF. According to the appliances’ ON/OFF status, the Energy Management Controller (EMC) checks the availability of RES and BSU to fulfill the appliances’ power demand. If it is available, the appliance will be ON, and the consumer will not wait for appliance scheduling. If the generation and stored energy are insufficient for running the load, the proposed algorithm will check the time span, in which a user has no problem with appliance scheduling with the lowest energy price (time interval) for running that appliance. In order to achieve this objective, time constraints have been defined for a maximum interval of time in which an appliance has to complete its operation. Consequently, if the utility gives incentives to the user in the form of real-time lower prices in off-peak hours, the end-user will be encouraged to produce his/her own energy from RES and schedule the load accordingly. The rest of the paper is organized as follows: Related work is illustrated in Section 2. Contributions are briefly discussed in Section 3. Section 4 depicts the proposed system model architecture. The problem formulation is described in Section 5, and Section 6 gives the heuristic algorithms. Section 7 presents the simulation results to demonstrate some of the achievements. The paper is concluded in the last section.

2. Related Work

Countless researchers around the world are investigating different technologies in order to fulfill the needs of energy-efficient and intelligent smart homes. Many algorithms have been proposed for optimal use of existing energy resources. In this regard, we illustrate some prior research works in SG.
Yi Peizhong et al. [8] have proposed the Optimal Stopping Rule (OSR) for energy-efficient scheduling of home appliances. The limitation of this work is that OSR runs on a threshold-based strategy. The end-user has to wait until the price comes down below the threshold level. In [9], the authors have proposed an approach to optimize their objective function using the Genetic Algorithm (GA). Electricity prices are varying between on-peak hours and off-peak hours. Therefore, an optimized task scheduling module is used in smart homes, which can reduce the consumption of the entire energy and operation times. Having an optimal scheduling of power, a heuristic-based GA was used for Demand-Response (DR) in Home Energy Management (HEM) systems in [10]. The authors proposed GA-, TLBO- (Teaching Learning-Based Optimization), EDE (Enhanced Differential Evolution) and EDTLA- (Enhanced Differential Teaching Learning-based Algorithm) based approaches, which are used for minimization of the residential total energy cost and maximization of the end-user comfort level.
The problem of optimal scheduling of household appliances has been explored in [11]. The authors used the day-ahead changeable peak pricing technique for the minimization of the consumer’s energy consumption cost using a combination problem approach. This approach enables customers to schedule their household appliance using MKP (Multiple knapsack problem) formulation. In [12], the authors implemented GPSO (Gradient-based Particle Swarm Optimization) for DR in smart homes by considering load and energy price uncertainties. The authors employed GA and BPSO (Binary Particle Swam Optimization) for optimal scheduling of home appliances in [13]. They proposed GAPSO (Genetic Algorithm with Particle Swam Optimization), a hybrid scheme of both these techniques, to obtain better results in terms of reducing PAR, minimization of electricity cost and especially end-user discomfort. Day-Ahead Pricing (DAP) and Critical Peak Pricing (CPP) are used as pricing schemes for single and several days. The authors used GA and TLBO and their hybrid TLGO (Teacher Learning-based Optimization with Genetic algorithm) for appliance scheduling in [14]. They categorized flexible appliances as time flexible and power flexible for proficient energy consumption of consumers in SG. This approach enables energy consumers to schedule their appliances to obtain optimized energy consumption. This approach also maximizes the comfort level of customers with restricted total energy consumption. The authors in [15] discussed the strategy for scheduling appliances in order to reduce carbon emissions along with the reduction of the electricity bill and waiting time. They applied the cooperative multi-swarm PSO technique to achieve their goals; however, they did not consider PAR. The authors implemented the 0/1 multiple knapsack problem with the genetic algorithm to find a good solution in [16]. A simple fitness function is evaluated for each appliance in every time slot to obtain the desired results. The authors proposed a Demand-Side Management (DSM) strategy. This technique is based on a load shifting strategy during peak hours to reduce electricity bills using an Evolutionary Algorithm (EA). The authors discussed the strategy of the load shifting-based generalized technique, from on-peak hours to off-peak hours of a day, to minimize energy cost. This mechanism can support a large number of controlled devices of numerous types to minimize end-user electricity bills.
An adaptive energy model for DSM in smart homes has been proposed by the authors in [17]. Distributed RESs’ usage is optimized using the ACO algorithm. In [18], Kusakana et al. used the TOU pricing model along with the integration of RESs and BSUs to minimize the end-user’s electricity bill and achieve energy consumption balancing. The authors proposed a model to sale extra generated energy back to the utility, as per their prior agreement. For minimization of the end-user electricity bill, Bharathi et al. suggested a model in [19], which works in industrial, commercial and residential areas. For optimization, the authors used GA. They also compared the different EA with GA and found that it gave a maximum decrease of 21.9% in the consumption of energy.
In [20], the authors proposed objective function generalization using the DR program to minimize the residential consumer electricity bill. The authors showed that by shifting the load, unexpected peaks were observed in off-peak hours. They evaluated this later peak formation with multi-CPP and multi-TOU pricing schemes combined with DAP concepts. In [21], in order to lessen the end-user electricity cost and minimize the end-user discomfort, Ogunjuyigbe et al. developed a GA-based optimization technique for scheduling of appliances.
In [22], authors presented a DSM strategy, by shifting the load from on-peak hours to off-peak hours, using DAP signal and Evolutionary Algorithm (EA). However, consumer comfort is not considered. In [23], the authors proposed a Quality of Experience (QoE)-based home energy management system. They gave the priority to the end-user’s frustration. Two algorithms that run the HEM system are: “QoE-aware Cost Saving Appliance Scheduling (Q-CSAS)” for scheduling of controlled load and “QoE-aware Renewable Source Power Allocation (Q-RSPA)” for management of appliances for renewable energy sources’ surplus energy. They reduced energy cost to 30–33% without RES and 43–46% with RESs for the end-user annoyance rates of 1.67–3.36 and 1.70–3.43, respectively. In [24], the authors introduced three heuristic-based algorithms: GA, ACO and BPSO, to maximize user comfort, minimize PAR and minimize electricity cost, as well. In [25], the authors proposed a hybrid GA-PSO, which is a combination of the GA and PSO algorithm, for energy management and obtaining maximum end-user comfort in smart homes. K. Muralitharan et al. [26] presented multi-objective EA for the minimization of electricity bill and appliances waiting time. As soon as the running appliances’ load increases from a threshold, they are switched off. A multi-residential energy scheduling issue with multi-class appliances in a smart grid was discussed in [27]. The authors proposed a PL-generalized Benders algorithm (Property (P) and L-Dual-Adequacy) for bill minimization and bounded user comfort. In [28], the authors proposed a distributed algorithm for shifting the load from on-peak hours to off-peak hours. They used the game theory approach for scheduling the residential load. The Nash equilibrium convergence rate was also accelerated by the Newton technique. PAR and end-user discomfort were minimized.
The aforementioned research works achieved the cost minimization and reduction of PAR at the cost of end-user’s waiting time. Therefore, in this paper, using TG-MFO, we achieved a nearly-zero waiting time along with cost and PAR minimization.
Table 1 depicts the achievements and limitations of the aforementioned research work.

3. Key Contributions

The key contributions of this research work are summarized as follows:
  • We have proposed a new hybrid end-user comfort-based TG-MFO algorithm for an efficient EMS in smart homes.
  • We have explored and analysed the performance of five bio-inspired algorithms for the energy optimization problem in the residential sector.
  • Through simulations, we have shown that using TG-MFO, the energy cost can be reduced up to 49.96% compared to existing methods, with nearly-zero end-user discomfort and PAR up to 60%.
  • We have integrated RESs and BSUs for further minimization of the total load and its cost.
  • We have applied the proposed algorithms on different consumer scenarios, such as:
    (a)
    A single home for one day,
    (b)
    A single home for 30 days,
    (c)
    Thirty different sizes of homes for one day and
    (d)
    Thirty different sizes of homes for 30 days, compared to the existing techniques.
  • We have considered different sizes of homes with different power ratings of appliances and different LOTs as compared to earlier techniques, which are applied on either one home or multiple homes with the same lifestyle.

4. Proposed System Model

4.1. Architecture

In SG, in order to obtain a reliable and efficient operation, DSM is used. Two main objectives of DSM are end-user controlling activities and energy management. A Smart Home (SH) consists of a smart meter along with the EMC, for a reliable bi-directional power and information flow between SG and SH [29]. All appliances, connected sensors, RESs and BSUs are connected to EMC through a Home Area Network (HAN), which is further connected to SG through a Wide Area Network (WAN). Different WAN solutions are available like PLC, Wi-Fi, Wi-Max and GSM [30]. End-users manage their energy consumption activities as per incentives offered by the utilities. In each SH, the end-user puts various parameters of all appliances in EMC. EMC is then responsible for the ON/OFF status of all appliances. Figure 1 shows the proposed system model architecture.

4.2. Appliances’ Categorization and Their Energy Models

TO design an optimized model, we have divided the load according to the end-user’s priorities, as given below.

4.2.1. The Fixed Load

These are those regular appliances whose starting time remains fixed. That is, a consumer can start and stop these appliances any time. Refrigerator and interior lights are examples of Fixed Load (FL). The energy consumed by all fixed appliances in the total time interval of 24 h can be found as in Equation (1) [24].
E f = a p f A P f n = 1 48 ρ f × X f , n × τ f
subject   to : α f τ f β f
where “ a p f ” denotes each fixed appliance, A P f is the set of fixed appliances, ρ f is the power rating, X f , n is the ON (1) and OFF (0) states of the nth fixed appliance, τ f is the LOT, α f is the earliest starting time and β f is the latest ending time of fixed appliances, respectively.
Most of the research works have considered 24 intervals for their energy calculations, which are usually not applicable to all appliances. Usually, an appliance, for example a microwave oven, a clothes dryer, etc., operates for less than an hour. Hence, further dividing an hour into two sub-intervals of thirty minutes each generates a total of forty-eight (48) time slots, which results in accurate manipulation. However, this slightly increased the manipulation time, but that can be ignored.

4.2.2. Elastic Load

These are those appliances that can be fully managed, i.e., they can be shifted to any time slot and can also be interrupted at any time keeping in view the minimization of PAR and electricity bill [24]. These include: dish washer, washing machine, spin dryer, electric car, laptop, desktop computer, vacuum cleaner, oven, cook top and microwave oven [31]. The energy consumed by all elastic appliances in the total time interval of 24 h with 48 time-slots can be found as in Equation (2).
E e = a p e A P e n = 1 48 ρ e , n × X e , n × τ e
subject   to : α e τ e β e
where a p e denotes each elastic appliance, A P e is the set of elastic appliances, ρ e is the power rating of elastic appliances, X e , n is the ON (1) and OFF (0) states of the n t e x t t h elastic appliance, τ e is the LOT for each elastic appliance, α e is the earliest starting time and β e is the latest ending time of elastic appliances, respectively. The total energy consumption of the end-user “ E T ” is given by:
E T = E f + E e
where “ E f ” is the fixed appliances total energy and “ E e ” is the total energy of the elastic appliances.

4.3. RES Model

Photovoltaic (PV) cells and wind turbines can be used as local power generators, also known as distributed RESs, on consumer premises. These RESs can be used for the local energy generation, as well as for charging the batteries in BSUs. The RESs’ generated energy, denoted by E R E S , can be calculated as in [32], by approximating a local Gaussian function (Figure 2) as follows:
E R E S ( t , μ , σ ) = 1 σ 2 π e ( ( t μ ) 2 2 σ 2 )
where t denotes the prospection variable (time), μ is the mean or central value and σ is the standard deviation.
The total daily energy generated from RESs must be positive, i.e., greater than zero and on a daily basis, it is given by:
0 E R E S E R E S ( m a x )
where E R E S ( m a x ) is the maximum available RESs’ generated energy capacity. If in any time interval, the RESs’ generated energy exceeds the end-user energy demand E T , i.e.,
E R E S > E T
then it is sold back to the grid as per their prior agreement or can be used for charging batteries in BSUs for later use, particularly during peak hours.

4.4. BSU Model

When RESs’ generated energy exceeds the consumer energy demand, it is stored in the batteries using BSUs, which can be used during on-peak hours or night-time, when RESs are not available. This can be modelled using a binary variable X b a t as:
X b a t = 1 for   charging 0 for   discharging
where X b a t shows the charging and discharging states of the batteries. In this model, we ignore the energy losses during the charging and discharging process.

4.5. Types of Users

Residential users have been categorized as follows.

4.5.1. Non-Active Users

Non-Active Users (NAUs) do not use RESs and/or BSUs. They fulfil their load demand only from the utility grid. They can reduce their electricity bill by transferring their loads to off-peak hours. The consumed energy of NAU is calculated using the following equation:
E N A U = E T
where E N A U is the energy consumption of all non-active users and E T is the total energy consumption of all appliances.

4.5.2. Semi-Active Users

Semi-Active Users (SAUs) may generate their own energy using RESs and get energy from the grid when needed, i.e., when their demand exceeds the RESs’ generated energy or when RESs are not available. That is, the end-user energy demand from the grid will be the total used energy minus their self-generated RES energy. Their consumed energy is calculated using the following equation:
E S A U = E T n = 1 48 E R E S , n
where E S A U is the energy consumption of semi-active users and E R E S is the energy generated from RESs.

4.5.3. Fully-Active Users

Fully-Active Users (FAUs) generate their own energy using RESs and store the extra generated energy in the batteries using BSUs. They obtain energy from the grid when needed, i.e., when their demand exceeds the RESs’ generated energy plus the BSUs’ stored energy. Their energy consumption pattern is calculated using the following equation:
E F A U = E T n = 1 48 E R E S , n ± E B S U , n
where E F A U is the energy consumption of fully-active users, E R E S , n is the nth consumer’s RESs’ generated energy and E B S U , n is consumers’ stored energy using BSUs. Now, if E B S U is positive, this means that RESs are charging the batteries, and if E B S U is negative, this means batteries are discharging and providing energy to the load.

5. Problem Formulation

In this work, we assumed a single home and thirty homes with different power ratings of appliances, as tabulated in Table 2. Our required objectives are:
(a)
Consumers’ high comfort level by reducing appliances’ average waiting time,
(b)
Consumers’ electricity bill minimization,
(c)
Minimization of PAR and
(d)
Integration of RES and BSU in the system for further reduction of end-user waiting time.
These objectives can be achieved by the optimization of the energy consumption profiles of home appliances, using different scheduling techniques. If V T is the maximum energy capacity in every time slot, then the end-user electricity cost along with PAR can be minimized, keeping aggregated energy consumption of cumulative home appliances within the maximum threshold limit of V T .
Mathematically, this constraint can be shown as follows:
E T V T
Here, E T is the total energy demand of the end-user.

5.1. PAR

The peak to average ratio can be minimized, using the scheduling algorithms, which is in favor of both the utility and consumer for maintaining demand-supply balance. It is the ratio of the peak load of the consumer to the average load of the consumer, in every interval of time, and is denoted by μ . Mathematically, it is defined as in [33]:
μ = E m a x 1 T n = 1 T E T , n

5.2. User’s Comfort in Terms of Waiting Time ( τ w )

User’s comfort in terms of waiting time is important for end-users. Waiting time must be minimized to have a high comfort level so that the end-user’s frustration can be avoided. It is that interval of time when a consumer switches on an appliance, and due to the scheduling limitations of the system, he/she has to wait to start its operation. As we have defined the earliest starting time α and the latest ending time β of an appliance, then another parameter η will be the operational starting time of the same switched-on appliance. This is shown diagrammatically in Figure 3. Here, β - α is the time span, defined by the consumer, as given in Table 2. Figure 3 shows that a consumer’s maximum waiting time could be up to η m a x . Since LOT is already defined by the consumer, so at η m a x , the algorithm will have to start the appliance to complete its operation up to the final time β . For example, Dishwasher-1 (Table 2) has a time span of 8 h (from 9:00–17:00) and LOT = 2 h. This means that our proposed algorithm (TG-MFO) must start Dishwasher-1 from 9:00–17:00 to complete its operation of 2 h, with a waiting time ranging from 0–6 h.
Here, LOT is the length of the operational interval of time, in which an appliance completes its task. In the case of fixed appliances, there is no issue of waiting time, as whatever time the consumer wants to switch it on, he/she can do so. Therefore, we do not include fixed appliances in the scheduling problem.
Now, since,
( β α ) L O T
Therefore, the range of waiting time can be α to η m a x , as shown in Figure 3.
Appliances’ normalized waiting time ( τ w ) can be calculated as:
τ w = η α ( β L O T ) α
Equation (14) shows that the normalized waiting time can be from “0” (when η = α ) to “1” (when ( β L O T ) = η ). Table 2 illustrates the typical electricity demand of a single home and multiple homes, with different power ratings and types of appliances, their LOTs and ( α ) and ( β ) constraints [31]. Since different end-users have different habits and life routines, with different sizes and power ratings of appliances, we have assumed four (4) types of homes and randomly selected through the proposed algorithm, to have randomness in the consumed energy when taking multiple (here, 30) homes.

5.3. Objective Function

Mathematically, our objective function can be formulated as follows:
m i n m = 1 48 [ λ 1 × n = 1 N ( E T , n × ζ n ) + ( λ 2 × τ w ) ]
where ζ n is the energy cost in every interval of time. Our proposed objective function aims to reduce electricity cost, while maintaining a higher end-user comfort level by minimization of waiting time. λ 1 and λ 2 are multiplying factors of two portions of the objective function. Their values can be either “0” or “1” so that ( λ 1 + λ 2 ) = 1 [24]. This reveals that either λ 1 and λ 2 could be 0 or 1. That is, if a consumer does not want to participate in the load scheduling process, then his/her multiplying factors will be λ 1 = 1 and λ 2 = 0 in the objective function.

6. Scheduling Algorithms

Heuristic means “to discover”, or “to find” or “to hit upon” by experiment, trial and error approaches. The solution of an optimization problem can be found in a realistic interval of time. However, such optimization techniques cannot guarantee the optimal solution. Meta-heuristic means “to find on a higher level” or “to find ahead of” local optimization. This means its performance is superior to straightforward heuristics techniques. All such algorithms use the process of local search and randomization, which further provides a path to global search and optimization.
The problem of scheduling home appliances optimally, using different meta-heuristic algorithms like GA, ACO, FA, MFO and CSA, is discussed in Section 6. Various classical programming techniques like LP, ILP, MILP, DP and CP have already been used by researchers for optimal scheduling of home appliances. The convergence time of these classical techniques is very large due to the exact solution, and to schedule a large number of appliances, they cannot be used. Furthermore, classical algorithms usually show the best results for local optimization, as compared to the global point of view. Therefore, due to their probabilistic nature, bio-inspired meta-heuristic algorithms give good results in the case of local, as well as global solutions.

6.1. GA

GA is in the family of evolutionary algorithms. This algorithm’s name is due to it being inspired the genetic progression of living organisms. It has a quick rate of convergence. GA carries out parallel search operations in the provided solution space, which reduces the chances of being trapped in the local optimal solution. For complex non-linear problems’ formulation, GA is the best option, especially where the global optimization is a challenging job. For any solution deployment, as GA is probabilistic in nature, the optimality is usually not guaranteed [34].
GA initiates a random population known as chromosomes, and then, in every iteration, the generated population is updated. Home appliances are mapped with bits of chromosomes. The fitness function of a given problem is evaluated by the suitability of each chromosome. In every iteration, the population is updated by storing the present local best solution, known as elitism. After elitism, in order to reproduce new chromosomes, two parent chromosomes are chosen using the tournament-based selection technique. Then, on the basis of selected chromosomes, the crossover procedure is performed. New offspring are added to update the present population [35]. Table 3 shows the GA parameters.

6.2. MFO

The nature-inspired algorithm MFO was proposed by Seyedali Mirjalili in 2015 [36]. Moths are butterfly-like insects, having 160,000 plus different species in nature. They have their unique navigation mechanism known as transverse orientation when flying in the moonlight. When they fly in a spiral, they maintain a constant angle related to the moon, ultimately converging in the direction of light. The spiral articulates the searching region, and it assures the exploitation of the optimum solution.
Since MFO is a population-based algorithm, the movement of m moths in n dimensions (variables) is given in the position matrix form as follows:
Q = q 1 , 1 q 1 , n q m , 1 q m , n
The resultant fitness values, for “m” number of moths, are stored in an array. The fitness function (objective) evaluates each moth’s fitness value. Each moth’s position vector, i.e., matrix Q’s first row, is evaluated on the fitness function, and its output is then allocated to its respective moth.
Similarly, a matrix U F is assigned to the corresponding flames as follows:
U f = u 1 , 1 u 1 , n u m , 1 u m , n
Now, in mapping our problem of the optimum scheduling of home appliances, moths act as searching agents, and flames are the optimum positions. In each iteration, a moth searches for an optimum flame, with updates in the next iteration for the best solution by comparing with the previous one. Moths follow the logarithmic spiral for their update positions, where moths start from some initial position, following some limited fluctuating search space, and reach their destination flames. In MFO, the logarithmic spiral is:
S ( X i , P j ) = d i · e b t · c o s ( 2 π t ) + P j
where d i = | P j X i | is the i th moth distance from j th flame, b is the spiral shape defining the constant and the random number t lies between −1 and one. When t = 1 , this means the moth is closest to its destination flame, while t = 1 indicates that its farthest position from the flame. Therefore, the moth is always assumed to be in a hyper-ellipse space, which guarantees the exploitation and exploration of search space. Table 4 depicts the MFO parameters.

6.3. TG-MFO

In this work, we apply the bio-inspired algorithms GA, MFO and their hybrid version TG-MFO. Then, we compare their results with some of the existing techniques like ACO, CSA and FA on randomly-generated data. Then, we apply the strategy of the time constraints of end-users, i.e., for each appliance to switch-ON, we give some time span as the initial and final thresholds for all appliances. A user initiates the operation of an appliance, but usually, it is allowed to remain OFF for a certain time interval, in which the user has no problem or frustration. We apply this time threshold policy, to have a zero end-user waiting time. TG-MFO is based on the hybridization of GA and MFO with time constraints. Initially, MFO is applied on randomly-generated data for the optimization problem to obtain the local best positions for home appliances. Then, GA is applied to compare MFO’s local best solution with the new random data, to find the global best solution in each iteration. The fitness functions are updated accordingly. This process continues until the termination criterion is fulfilled. Figure 4 depicts the steps involved in the TG-MFO implementation process, while, the pseudocode of Algorithm 1 shows the step-by-step working of the proposed TG-MFO algorithm.

6.4. ACO

ACO is a bio-inspired meta-heuristic iteration-based optimization technique. Using pheromone trails, chemicals as signals to other ants left on the ground known as the Stigmergy principle, starting from their nest, in search of food, ants find the shortest routes between their origins to the destination. If an ant wants, with a certain probability, to follow a particular path, it follows the pheromone trail. It reinforces the other ants by laying more pheromone on the same trail. As the movement of ants increases on a route, the amount of pheromone increases. Since pheromones’ nature is volatile, so the shortest path has more pheromone as compared to the longer one. As a result, ants’ movement increases on the shortest route.
Using this principle, ACO is used for the solution of discrete combinatorial search optimized-solution problems. Self-organization and self-healing are the distinguishing properties of ACO. ACO is used for the residential consumer’s energy optimization, which is a novel scheme for such energy management problems [24]. The ACO parameters are given in Table 5.
Algorithm 1: Pseudocode of the proposed TG-MFO algorithm.
Applsci 09 00792 i001

6.5. CSA

The cuckoo search algorithm was proposed by [37] and belongs to the family of bio-inspired meta-heuristic algorithms. It is used to solve the optimization problems using the mating and production behaviour of some cuckoo species and the characteristics of Lèvy flights of some birds and fruit flies. Certain cuckoo species use nests of other birds to lay their eggs, selected randomly, known as host nests. The birds who own these nests may find these eggs and raise the cuckoo’s young. CSA uses certain rules to find the best local solution by mapping pattern of eggs (1,0) with home appliances’ ON-OFF condition, stated as follows:
  • The nest is randomly selected, in which each cuckoo lays one egg at a time.
  • For upcoming production, those nests will be selected having the higher quality eggs.
  • The host bird determines that the cuckoo laid the eggs, while the number of host nests is fixed.
The algorithm starts the discovery of the local best solution from randomly-given eggs (either one or zero) in the host nests. This one or zero shows the ON and OFF states of home appliances to be scheduled in a given time-slot. According to the fitness function, each egg (probable solution) is assessed. This solution will be our objective of minimum cost and PAR with reduced waiting time constrained. The production step is repeated, while discovering the superior eggs with a probability of 0.25. Lèvy flights are carried out to find the global best solution, out of the local best solution [38]. Table 6 gives the CSA parameters.

6.6. FA

Fireflies are in the insect family. They live mostly in humid environments. They generate green, yellow and pale-red limited intensity flashing lights chemically. There are more than 2000 different species. Their unique flashing light pattern is used for communication, i.e., to attract partners and probable prey and as a defensive cautionary mechanism. Some female species apply the flashing light mating pattern for the hunting of other species [39].
Like PSO, in FA, inspired by nature, three assumptions are made: (a) all fireflies must be of the same sex, (b) the attractiveness of a firefly is directly proportional to its brightness and inversely proportional to the square of the distance between two fireflies and (c) brightness is calculated by an objective function: the brighter one will attract the less bright ones. The firefly’s flashing light intensity in complete darkness is related to the solution quality. The brighter firefly will attract less bright ones, depending on the brightness intensity, which is calculated as follows:
I ( I o , r i , j ) = I o r i , j 2
where I o is the flashing light intensity at the origin and r i , j is the distance of firefly j from firefly i. Let γ be the coefficient of the firefly’s flashing light absorption in a medium, then, in the above equation, the light intensity I will vary with the distance between fireflies r i , j using the following equation:
I ( I o , γ , r i , j ) = I o e γ r i , j
Both Equations (19) and (20) can be combined using the Gaussian form as follows:
I ( I o , γ , r i , j ) = I o e γ r i , j 2
The following approximation can be used for a slower rate of decrease in the light intensity between the origin and the target.
I ( I o , γ , r i , j ) = I o 1 + γ r i , j 2
As the less bright firefly will be attracted to the brighter firefly, this attractiveness β between two fireflies can now be mapped as:
β ( β o , γ , r i , j ) = β o e γ r i , j 2
where β o is the attractiveness at the zero distance. For β = β o at the zero distance, r i , j = 0 . Therefore, for a characteristic distance of r = 1 γ , Equation (23) becomes: β ( β o , γ , r i , j ) = β o e 1 . The distance between any two fireflies x and y at positions i and j is calculated by:
r i , j = D i s t · ( x i , y j ) = x i y j = k = 1 n ( x i , k y j , k ) 2
The firefly movement towards another firefly has two parts:
(a)
The movement will be for finding a better solution using attractiveness.
(b)
The movement will be random.
x i = x i + ( A t t r a c t i v e n e s s D i s t a n c e ) + R a n d o m n e s s
x i = x i + β o e γ r i , j 2 · ( y j x i ) + α ( R a n d ( ) 0.5 )
where α is the randomness parameter and R a n d is a random number generated lying between zero and one. Two extreme points are that when γ is zero, attractiveness will be constant, and when γ is , attractiveness will almost be zero. Practically, γ lies between zero and , so FA gives good results in finding local, as well as global optima [39]. Table 7 depicts the FA parameters.

7. Results and Discussions

7.1. Consumer Scenarios

In the present work, four types of consumer scenarios were simulated and discussed. In the first case, a single home was taken, and its hourly load, hourly energy cost, PAR and waiting time were determined both in the unscheduled and scheduled (with ACO, CSA, GA, FA, MFO and TG-MFO) environment for a single day. In the second case, a residential building with thirty homes having users with different habits with different LOTs and different power ratings of appliances were considered. Again, their hourly average load, hourly cost, PAR and waiting time were determined both for unscheduled and scheduled (with ACO, CSA, GA, FA, MFO and TG-MFO) scenarios for a single day. In the third case, we considered a single home, found all four of its parameters for unscheduled and scheduled scenarios for a complete month, i.e., thirty (30) days, and found its monthly bill. In the fourth case, a residential building with thirty homes was considered, and we determined its daily average load, daily cost, daily PAR and average waiting time for a complete month, i.e., thirty (30) days, as well as calculated its monthly electricity consumption and electricity bill. In all four cases, the RTP scheme was used.
For the system’s stability, further reduction of electricity consumption and maximum user comfort, RES and BSUs were also integrated. Additionally, for photovoltaic cells’ electricity generation, temperature, solar irradiance, battery charging/discharging rates and its storage system, different assumptions were considered from [40].

7.2. Pricing Signal

Different pricing signals were available. We used the day-ahead real time pricing (RTP) signal in our simulations, as shown in Figure 5.

7.3. The Average Waiting Time

Waiting time is a very important feature of appliance scheduling for optimal energy consumption in the smart grid. To reduce electricity cost, usually, waiting time increases. A user wants to start an appliance, but due to scheduling time constraints, the user has to wait for to start its operation. Our main objective in this work was to minimize the user electricity bill, keeping in view the maximum comfort level of the end-user. Figure 6 shows that we achieved our objective using heuristic techniques for optimal scheduling. The graphs show that TG-MFO outperformed ACO, CSA, GA, FA and MFO in achieving a nearly-zero waiting time for the end-user.

7.4. The Total Electricity Cost

Figure 7 shows the electricity cost for the unscheduled and scheduled (with ACO, CSA, GA, FA, MFO and TG-MFO) load. The results show that the electricity cost of the meta-heuristic algorithms-based scheduled load was very low as compared to the unscheduled load cost. In Figure 7a, the operation of a single home for a single day is considered. In this case, ACO-based scheduling showed better results as compared to all scheduled and unscheduled costs. Similarly, in Figure 7b, the case of a single home for 30 days (one month) is shown, in Figure 7c, that of 30 homes with different LOTs and power ratings for 30 days (one month), and in Figure 7d, the case of 30 homes for 30 days; the scheduled cost was very much as compared to the un-scheduled cost. In all four cases, ACO outperformed all scheduling techniques.

7.5. Hourly Load

Figure 8 shows the total hourly load of a single home and 30 homes with unscheduled and scheduled loads with the bio-inspired algorithms ACO, CSA, GA, FA, MFO and TG-MFO. The results show that as compared to the unscheduled load, meta-heuristic algorithm-based scheduled load was shifted to the off-peak hours, where not only the price was low, but RES was also available, considering the end-user’s time constraints for the maximum comfort level. The figure shows that our proposed algorithm gave comparative results for both single and multiple homes with different sizes, power ratings and LOTs.

7.6. Integration of RES and BSU

In order to minimize the consumed energy for further reduction of the total cost, RES and BSUs were integrated in homes. Figure 9 shows that the day-time load will be supported by RES, while extra energy will be stored in BSUs for running the load in peak hours. It drastically reduced the cost. The figure depicts that our proposed TG-MFO algorithm has intelligently not only shifted the load to day-time off-peak hours for cost minimization, but also reduced the PAR.

7.7. PAR

PAR plays an important role in the optimal scheduling of smart home appliances. Due to high PAR, the utility faces huge peak loads during peak hours, and the rest of the day, most of the generating units remain idle. Therefore, researchers try to reduce PAR for economical load dispatch in smart grids. Figure 10 shows that, in the case of a single home for a single day and thirty homes for a single day, MFO performed better than FA, while in the case of a single home for thirty days and thirty homes for thirty days, FA showed better results than MFO. In our proposed hybrid model, we tried to not only schedule appliances optimally, economically and having maximum end-user comfort, but also gave the lowest PAR, for the benefit of utility, and hence, to further increase the end-user comfort level.
A comparison of the proposed algorithm with state-of-the-art research works in the smart grid environment for energy optimization and end-user comfort is depicted in Table 8. Most of the existing techniques have used trade-offs between user comfort and bill minimization.
Table 9 shows the performance of the proposed TG-MFO algorithm, compared to unscheduled load and scheduled with the GA, MFO, ACO, FA and CSA algorithms.
Table 10 shows the runtime of the proposed algorithms using an Intel (R) Core (TM) i5 processor, with 4.00 GB of installed memory (RAM) and the 32-bit Windows 7 Operating system.

8. Conclusions and Future Work 

In this paper, we mapped GA, MFO and a new efficient and robust hybrid TG-MFO meta-heuristic bio-inspired algorithm for optimal scheduling of home appliances in the smart grid and compared their results with existing techniques of CSA, FA and ACO. We considered a single- and multiple home scenarios in a residential sector. In multiple homes, we took different LOTs and power ratings of appliances to make it more practical. Day-ahead RTP signalling was used for demand response in smart homes. The results show that there was a 6.45%–49.03%, 32.26%–41.10% and 32.25%–49.96% decrease in the total cost with GA, MFO and TG-MFO scheduling, respectively, for single and multiple users. RESs and BSUs were also integrated to obtain a further decrease in the total cost and end-user waiting time. In this work, we tried to not only reduce the total cost, but to achieve a high comfort level of the end-user by minimizing the waiting time of home appliances using the time constraints of a maximum average delay of 0.26–0.62 h. This algorithm can be applied to actual data when and where they are provided. It not only reduces the energy cost, but also increases the stability and reliability of the grid. Future work includes exploration of more bio-inspired algorithms for intelligent and efficient energy optimization, and a multi-objective approach will be applied.

Author Contributions

I.U. wrote the first draft of the manuscript, proposed the idea and topology design method. S.H. provided technical supervision, insights and additional ideas on presentation. Both of the authors equally contributed, revised and approved the manuscript.

Funding

This research received no external funding.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Sesana, M.M.; Salvalai, G. Overview on life cycle methodologies and economic feasibility for nZEBs. Build. Environ. 2013, 67, 211–216. [Google Scholar] [CrossRef]
  2. Lo, C.H.; Ansari, N. The progressive smart grid system from both power and communications aspects. IEEE Commun. Surv. Tutor 2012, 14, 799–821. [Google Scholar] [CrossRef]
  3. Javeed, F.; Arshad, N. On the Use of Linear Programming in Optimizing Energy Costs. In Proceedings of the International Workshop on Self-Organizing Systems, Vienna, Austria, 10–12 December 2008; pp. 305–310. [Google Scholar]
  4. Huang, Y.; Tian, H.; Wang, L. Demand response for home energy management system. Int. J. Electr. Power Energy Syst. 2015, 73, 448–455. [Google Scholar] [CrossRef]
  5. Ma, K.; Yao, T.; Yang, Y.; Guan, X. Residential power scheduling for demand response in smart grid. Int. J. Electr. Power Energy Syst. 2016, 78, 320–325. [Google Scholar] [CrossRef]
  6. Naraharisetti, P.K.; Karimi, I.A.; Anand, A.; Lee, D. A linear diversity constraint application to scheduling in microgrids. Energy 2011, 36, 4235–4243. [Google Scholar] [CrossRef]
  7. Fuselli, D.; de Angelis, F.; Boaro, M.; Squartini, S.; Wei, Q. Action dependent heuristic dynamic programming for home energy resource scheduling. Int. J. Elect. Power Energy Syst. 2013, 48, 148–160. [Google Scholar] [CrossRef]
  8. Yi, P.; Dong, X.; Iwayemi, A.; Zhou, C.; Li, S. Real-time opportunistic scheduling for residential demand response. IEEE Trans. Smart Grid 2013, 4, 227–234. [Google Scholar] [CrossRef]
  9. Sianaki, O.A.; Hussian, O.; Tabesh, A.R. A Knapsack Problem Approach for Achieving Efficient Energy Consumption in Smart Grid for End-user Life Style. In Proceedings of the IEEE Conference on Innovative Technologies for an Efficient and Reliable Electricity Supply, Waltham, MA, USA, 27–29 September 2010; pp. 159–164. [Google Scholar]
  10. Javaid, N.; Hussain, S.M.; Ullah, I.; Noor, M.A.; Abdul, W. Demand Side Management in Nearly Zero Energy Buildings Using Heuristic Optimizations. Energies 2017, 10, 1131. [Google Scholar] [CrossRef]
  11. Kumaraguruparan, N.; Sivaramakrishnan, H.; Sapatnekar, S. Residential task scheduling under dynamic pricing using the multiple knapsack method. In Proceedings of the International Conference on, Innovative Smart Grid Technologies, Washington, DC, USA, 16–20 January 2012; pp. 1–6. [Google Scholar]
  12. Huang, Y.; Wang, L.; Guo, W.; Kang, Q.; Wu, Q. Chance Constrained Optimization in a Home Energy Management System. IEEE Trans. Smart Grid 2018, 9, 252–260. [Google Scholar] [CrossRef]
  13. Javaid, N.; Ahmed, F.; Ullah, I. Towards Cost and Comfort Based Hybrid Optimization for Residential Load Scheduling in a Smart Grid. Energies 2017, 10, 1546. [Google Scholar] [CrossRef]
  14. Manzoor, A.; Javaid, N.; Ullah, I.; Abdul, W. An Intelligent Hybrid Heuristic Scheme for Smart Metering based Demand Side Management in Smart Homes. Energies 2017, 10, 1258. [Google Scholar] [CrossRef]
  15. Ma, K.; Shubing, H.; Jie, Y.; Xia, X.; Xinping, G. Appliances scheduling via cooperative multi-swarm PSO under day-ahead prices and photovoltaic generation. Appl. Soft Comput. 2018, 62, 504–513. [Google Scholar] [CrossRef]
  16. Khuri, S.; Back, T.; Heitkotter, J. The Zero/One Multiple Knapsack Problem and GA. In Proceedings of the 1994 ACM Symposium on Applied Computing, Phoenix, AZ, USA, 6–8 March 2011; pp. 188–193. [Google Scholar]
  17. Ogwumike, C.; Short, M.; Denai, M. Near-Optimal Scheduling of Residential SH Appliances using Heuristic Approach. In Proceedings of the 2015 IEEE International Conference on Industrial Technolog, Seville, Spain, 17–19 March 2015; pp. 3128–3133. [Google Scholar]
  18. Kusakana, K. Energy management of a grid-connected hydrokinetic system under ToU tariff. Energy 2017, 101, 1325–1333. [Google Scholar]
  19. Bharathi, C.; Rekha, D.; Vijayakumar, V. Genetic Algorithm Based Demand Side Management for Smart Grid. Wirel. Pers. Commun. 2017, 93, 481–502. [Google Scholar] [CrossRef]
  20. Muratori, M.; Rizzoni, G. Residential demand response: dynamic energy management and time-varying electricity pricing. IEEE Trans. Power Syst. 2016, 31, 1108–1117. [Google Scholar] [CrossRef]
  21. Ogunjuyigbe, A.S.O.; Ayodele, T.R.; Akinola, O.A. User satisfaction-induced demand side load management in residential buildings with user budget constraint. Appl. Energy 2017, 187, 352–366. [Google Scholar] [CrossRef]
  22. Logenthiran, T.; Srinivasan, D.; Shun, T.Z. Demand Side Management in Smart Grid Using Heuristic Optimization. IEEE Trans. Smart Grid 2012, 3, 1244–1252. [Google Scholar] [CrossRef]
  23. Pilloni, V.; Floris, A.; Meloni, A.; Atzori, L. Smart Home Energy Management Including Renewable Sources: A QoE-driven Approach. IEEE Trans. Smart Grid 2018. [Google Scholar] [CrossRef]
  24. Rahim, S.; Javaid, N.; Ahmad, A. Exploiting heuristic algorithms to efficiently utilize energy management controllers with renewable energy sources. Energy Build. 2016, 129, 452–470. [Google Scholar] [CrossRef]
  25. Ahmad, A.; Khan, A.; Javaid, N. An Optimized Home Energy Management System with Integrated Renewable Energy and Storage Resources. Energies 2017, 10, 549. [Google Scholar] [CrossRef]
  26. Muralitharan, K.; Sakthivel, R.; Shi, Y. Multiobjective optimization technique for demand side management with load balancing approach in smart grid. Neurocomputing 2016, 177, 110–119. [Google Scholar] [CrossRef]
  27. Moon, S.; Lee, J.W. Multi-Residential Demand Response Scheduling with Multi-Class Appliances in Smart Grid. IEEE Trans. Smart Grid 2018, 9, 2518–2528. [Google Scholar] [CrossRef]
  28. Li, C.; Yu, X.; Yu, W.; Chen, G.; Wang, J. Efficient computation for sparse load shifting in demand side management. IEEE Trans. Smart Grid 2017, 8, 250–261. [Google Scholar] [CrossRef]
  29. Albu, M.M.; Snduleac, M.; Stnescu, C. Syncretic use of smart meters for power quality monitoring in emerging networks. IEEE Trans. Smart Grid 2017, 8, 485–492. [Google Scholar] [CrossRef]
  30. Saxena, N.; Grijalva, S. Dynamic secrets and secret keys based scheme for securing last mile smart grid wireless communication. IEEE Trans. Ind. Inform. 2017, 13, 1482–1491. [Google Scholar] [CrossRef]
  31. Zhang, D.; Evangelisti, S.; Lettieri, P.; Lazaros, G. Economic and environmental scheduling of smart homes with microgrid: DER operation and electrical tasks. Energy Convers. Manag. 2015, 89, 228–249. [Google Scholar] [CrossRef]
  32. Monteiro, C.; Santos, T.; Jimenez, L.A.F.; Rosado, I.J.R.; Olarte, M.S.T. Short-Term Power Forecasting Model for Photovoltaic Plants based on Historical Similarity. Energies 2013, 6, 2624–2643. [Google Scholar] [CrossRef]
  33. Liu, Y.; Yuen, C.; Huang, S. Peak-to-Average Ratio Constrained Demand-Side Management With Consumer’s Preference in Residential Smart Grid. IEEE J. Sel. Top. Signal Proc. 2014, 8, 1084–1097. [Google Scholar] [CrossRef]
  34. Mardle, S.; Pascoe, S. An overview of Genetic Algorithms for the Solution of Optimization Problems. CHEER 1999, 13, 16–20. [Google Scholar]
  35. Aslam, S.; Iqbal, Z.; Javaid, N. Towards Efficient Energy Management of Smart Buildings Exploiting Heuristic Optimization with Real Time and Critical Peak Pricing Schemes. Energies 2017, 10, 2065. [Google Scholar] [CrossRef]
  36. Mirjalili, S. Moth-flame optimization algorithm: A novel nature-inspired heuristic paradigm. Knowl.-Based Syst. 2015, 89, 228–249. [Google Scholar] [CrossRef]
  37. Yang, X.S.; Deb, S. Cuckoo search via Lévy flights. In Proceedings of the World Congress on Nature & Biologically Inspired Computing, Coimbatore, India, 9–11 December 2009; pp. 210–214. [Google Scholar]
  38. Aslam, S.; Javaid, N.; Khan, F.A.; Alamri, A.; Almogren, A.; Abdul, W. Towards efficient energy management and power trading in a residential area via integrating grid-connected microgrid. Sustainability 2018, 10, 1245. [Google Scholar] [CrossRef]
  39. Yang, X.S. Firefly algorithms for multimodal optimization, in Stochastic Algorithms: Foundations and Applications. Lect. Notes Comput. Sci. 2009, 5792, 169–178. [Google Scholar]
  40. Cirocco, L.; Belusko, M.; Bruno, F. Optimization of Storage for Concentrated Solar Power Plants. Challenges 2014, 5, 473–503. [Google Scholar] [CrossRef]
Figure 1. A typical overview of a house with smart appliances. EMC, Energy Management Controller.
Figure 1. A typical overview of a house with smart appliances. EMC, Energy Management Controller.
Applsci 09 00792 g001
Figure 2. (a) Gaussian function representing the approximate PV cells’ energy generation (Wh) [32]. (b) RES-generated energy E R E S for a single home.
Figure 2. (a) Gaussian function representing the approximate PV cells’ energy generation (Wh) [32]. (b) RES-generated energy E R E S for a single home.
Applsci 09 00792 g002
Figure 3. Starting time, ending time, LOT and waiting time.
Figure 3. Starting time, ending time, LOT and waiting time.
Applsci 09 00792 g003
Figure 4. Flowchart for the proposed algorithm Time-constrained Genetic (TG)-MFO.
Figure 4. Flowchart for the proposed algorithm Time-constrained Genetic (TG)-MFO.
Applsci 09 00792 g004
Figure 5. Day-ahead real-time pricing signal.
Figure 5. Day-ahead real-time pricing signal.
Applsci 09 00792 g005
Figure 6. Average waiting time for a single home and 30 homes.
Figure 6. Average waiting time for a single home and 30 homes.
Applsci 09 00792 g006
Figure 7. Total cost for un-scheduled, and GA, MFO, ACO, CSA, FA and TG-MFO Scheduled load (a) Total cost for a single home for 1 day. (b) Total cost for single home for 30 days. (c) Total cost for 30 homes for 1 day. (d)Total cost for 30 homes for 30 days.
Figure 7. Total cost for un-scheduled, and GA, MFO, ACO, CSA, FA and TG-MFO Scheduled load (a) Total cost for a single home for 1 day. (b) Total cost for single home for 30 days. (c) Total cost for 30 homes for 1 day. (d)Total cost for 30 homes for 30 days.
Applsci 09 00792 g007
Figure 8. The hourly load for un-scheduled and GA-, MFO-, ACO-, CSA-, FA- and TG-MFO-scheduled load. (a) The hourly load for a single home. (b) The hourly load for 30 homes.
Figure 8. The hourly load for un-scheduled and GA-, MFO-, ACO-, CSA-, FA- and TG-MFO-scheduled load. (a) The hourly load for a single home. (b) The hourly load for 30 homes.
Applsci 09 00792 g008
Figure 9. Energy demand curves of the scheduled and the un-scheduled load along with RES and BSUs.
Figure 9. Energy demand curves of the scheduled and the un-scheduled load along with RES and BSUs.
Applsci 09 00792 g009
Figure 10. PAR for un-scheduled and GA-, MFO-, ACO-, CSA-, FA- and TG-MFO-scheduled load. (a) PAR for a single home. (b) PAR for 30 homes.
Figure 10. PAR for un-scheduled and GA-, MFO-, ACO-, CSA-, FA- and TG-MFO-scheduled load. (a) PAR for a single home. (b) PAR for 30 homes.
Applsci 09 00792 g010
Table 1. Critical analysis of the related work. OSR, Optimal Stopping Rule; TLBO, Teaching Learning-Based Optimization; DAP, Day-Ahead Pricing; GPSO, Gradient-based Particle Swarm Optimization; TLGO, Teacher Learning-based Optimization with Genetic algorithm; CPP, Critical Peak Pricing; CP, Constrained Programming.
Table 1. Critical analysis of the related work. OSR, Optimal Stopping Rule; TLBO, Teaching Learning-Based Optimization; DAP, Day-Ahead Pricing; GPSO, Gradient-based Particle Swarm Optimization; TLGO, Teacher Learning-based Optimization with Genetic algorithm; CPP, Critical Peak Pricing; CP, Constrained Programming.
Mechanisms/TechniquesObjectives/RequirementsAchievementsLimitations
Threshold based OSR [8]Minimization of electricity bills.Reduced cost.Threshold-based cost minimization.
GA [9]Minimization of electricity bills.Reduced electricity bill.No PAR is considered.
GA, TLBO [10]Minimization of PAR and electricity bills.Reduced cost and PAR with RES.No end-user comfort priority.
MKPwith DAP [11]Minimization of total energy and electricity bill.Reduced power consumption and electricity bill.Less end-user comfort level.
GPSO with DR [12]Minimization of PAR and electricity bills.PAR and minimization of electricity bill.No end-user comfort level and no RES and congestion problem.
MKP with GA, PSO and GAPSO [13]Minimization of total energy and electricity bill.Minimization of electricity bill.Less end-user comfort level and no RES.
GA and TLGO algorithm [14]Cost minimization plus congestion control.Minimization of electricity bill.Waiting time increased.
PSO [15]Optimization of the appliances.Carbon emission, bill and waiting time minimization.Less end-user comfort level and no RES.
0/1 MKP and GA [16]Minimization of PAR and electricity bills.Minimization of PAR and peak load shifting.Less end-user comfort level and no RES.
ACO [17]Distributed RES usage is optimized.Minimization of PAR and peak load shifting.End-user comfort has been compromised.
TOU along with RES and BSUs [18]To minimize the end-user electricity bill.Energy consumption balancing.User comfort has been compromised.
GA-based DSM [19]Bill minimization for industrial, commercial and residential consumers.Compared with EA, 20.9% reduction in bill.End-user comfort has been compromised.
DR with CPP and ToU [20]Objective function generalization using the DR program to minimize bill.Minimized residential consumer electricity bill.End-user comfort is ignored.
GA [21]Bill minimization keeping consumers’ maximum satisfaction.Managed the load as per end-user budget.PAR has been compromised.
EA with DAP [22]Energy bill minimization.Bill is minimized.User comfort has been compromised.
Q-CSAS and Q-RSPA [23]Energy bill minimization.Bill is minimized.User comfort has been compromised.
GA, ACO and BPSO [24]Cost minimization plus congestion control.Minimization of electricity bill.Less end-user comfort level.
GA-PSO [25]Bill minimization keeping consumers’ maximum satisfaction.Minimized electricity bill.Less end-user comfort.
Multiobjective EA [26]Minimization of electricity bill and appliances waiting time.Minimized electricity bill and appliances waiting time.Appliances’ interruptions increased.
PL-generalized Benders algorithm [27]Multi-residence and multi-class appliance.Bill minimized with upper and lower bounds on user comfort.No RESs and BSUs are integrated.
Game theory, Nash equilibrium [28]Used distributed algorithm, minimization of PAR and discomfort.PAR and end-user discomfort have been minimized.No RES integration.
Table 2. Appliances and their running time constraints [31]. LOT, Length of Operational Time.
Table 2. Appliances and their running time constraints [31]. LOT, Length of Operational Time.
S. No.ApplianceCategoryPower Rating ρ e , n (KW)Starting Time ( α )Ending Time ( β )Time-Span ( β α ) (h)LOT (h)
1Fridge-1Fixed0.300242424
2Interior Lighting-1Fixed0.841824066.0
3Dish Washer-1Elastic2.00917082.0
4Washing Machine-1Elastic0.60912031.5
5Spin Dryer-1Elastic2.51318051.0
6Cook Top-1Elastic3.00809010.5
7Oven-1Elastic5.01819010.5
8Microwave-1Elastic1.70809010.5
9Laptop-1Elastic0.11824062.0
10Desktop-1Elastic0.31824063.0
11Vacuum Cleaner-1Elastic1.20917080.5
12Electrical Car-1Elastic3.51808143.0
1Fridge-2Fixed0.2500242424
2Interior Lighting-2Fixed0.91924077.0
3Dish Washer-2Elastic1.91115042.0
4Washing Machine-2Elastic0.51014042.0
5Spin Dryer-2Elastic2.01016062.0
6Cook Top-2Elastic3.50910010.5
7Oven-2Elastic5.41720031.5
8Microwave-2Elastic1.90709020.8
9Laptop-2Elastic0.091623073.0
10Desktop-2Elastic0.281420062.0
11Vacuum Cleaner-2Elastic1.41016061.5
12Electrical Car-2Elastic3.31609174.0
1Fridge-3Fixed0.500242420
2Interior Lighting-3Fixed0.6217061313
3Dish Washer-3Elastic2.51016062.5
4Washing Machine-3Elastic0.80814061.8
5Spin Dryer-3Elastic2.51319061.0
6Cook Top-3Elastic3.20709020.5
7Oven-3Elastic5.31618021.5
8Microwave-3Elastic1.91014041.0
9Laptop-3Elastic0.21624082.5
10Desktop-3Elastic0.41820021.0
11Vacuum Cleaner-3Elastic1.31112010.5
12Electrical Car-3Elastic3.41607115.0
1Fridge-4Fixed0.400242418
2Interior Lighting-4Fixed0.719081313
3Dish Washer-4Elastic2.30819114.0
4Washing Machine-4Elastic0.91114031.0
5Spin Dryer-4Elastic2.01420061.0
6Cook Top-4Elastic3.51012021.2
7Oven-4Elastic5.51011010.8
8Microwave-4Elastic1.91014041.5
9Laptop-4Elastic0.151123124.0
10Desktop-4Elastic0.40924156.0
11Vacuum Cleaner-4Elastic1.51116051.2
12Electrical Car-4Elastic4.01022124.0
Table 3. GA parameters.
Table 3. GA parameters.
S.No.ParameterValue
1Population size200
2Crossover probability0.8
3Mutation probability0.2
4Maximum number of generations800
Table 4. MFO parameters.
Table 4. MFO parameters.
S. No.ParameterValue
1Number of moths and flames12
2Max. No. of Iterations1000
3Lower bound L b −100
4Upper bound U b 100
Table 5. ACO parameters.
Table 5. ACO parameters.
S. No.ParameterValueS. No.ParameterValue
1No. of Ants124Evaporation rate5
2Pheromone intensity factor α 1 25Trail decay factor0.5
3Visibility intensity factor β 1 66Max. iterations600
Table 6. CSA parameters.
Table 6. CSA parameters.
S. No.ParameterValue
1Number of host nests12
2Number of iterations1000
3Discovery rate−100
Table 7. FA parameters.
Table 7. FA parameters.
S. No.ParameterValue
1Randomness parameter ( α )0.2
2Attractiveness ( β )2
3Absorption coefficient ( γ )1
Table 8. Comparison of TG-MFO with the state-of-the-art work.
Table 8. Comparison of TG-MFO with the state-of-the-art work.
TechniquesNo. of Homes/DaysCost ReductionWaiting Time
K. Ma et al. [5] 34%1.76 h
Y. Peizhong et al. [8]30 days20%7.64 h
TLGO [14] 33%1.83 h
TLBO 31.5%2.14 h
GA 31%2.37 h
Ogunjuyigbe et al. [23] 9.6 (dis-satisfaction level)
20.2=
30.9=
Pilloni et al. [25] 33%1.65 to 1.70 (Annoyance rate)
K. Muralitharan et al. [28]10 Home appliances38%73.32 s
11 76.28 s
12 86.83 s
13 94.39 s
14 107.58 s
TG-MFO (Proposed)1 home for 1 day32.25%0.62 h
1 home for 30 days19.39%0.48 h
30 homes for 1 day43.98%0.38 h
30 homes for 30 days49.96%0.26 h
Table 9. Comparison of the un-scheduled load with GA, MFO, ACO, CSA, FA and TG-MFO.
Table 9. Comparison of the un-scheduled load with GA, MFO, ACO, CSA, FA and TG-MFO.
TechniquesNo. of Homes/DaysCost ($)%Cost ReductionWaiting Time (h)PAR% PAR Change
Un-Single home for 1 day6.24.58
ScheduleSingle home for 30 days366
30 homes for 1 day5823.84
30 homes for 30 days8476
GASingle home for 1 day5.806.45%1.754.198.5%
ScheduledSingle home for 30 days33209.28%7.41
30 homes for 1 day34041.58%1.452.1344.5%
30 homes for 30 days432049.03%6.76
MFOSingle home for 1 day4.232.26%2.813.8216.6%
Scheduledsingle home for 30 days29619.12%4.62
30 homes for 1 day49015.8%4.671.2168.5%
30 homes for 30 days499241.10%4.61
TG-MFOSingle home for 1 day4.232.25%0.622.0249.8%
Scheduledsingle home for 30 days29519.39%0.48
30 homes for 1 day32643.98%0.381.4861.4%
30 homes for 30 days424149.96%0.26
ACOSingle home for 1 day4.429.03%2.742.3448.9%
ScheduledSingle home for 30 days24533.06%5.02
30 homes for 1 day24258.41%1.481.3764.3%
30 homes for 30 days321262.10%1.39
CSASingle home for 1 day4.3829.35%2.464.266.9%
ScheduledSingle home for 30 days33608.19%5.21
30 homes for 1 day23958.93%6.822.6730.4%
30 homes for 30 days429549.32%1.18
FASingle home for 1 day5.216.12%4.542.4546.5%
ScheduledSingle home for 30 days33807.65%2.38
30 homes for 1 day39831.61%1.171.8352.3%
30 homes for 30 days485242.75%2.32
Table 10. Runtime of the proposed algorithm in four different scenarios.
Table 10. Runtime of the proposed algorithm in four different scenarios.
Proposed AlgorithmNo. of Homes/DaysRun Time (s)
TG-MFOSingle home for 1 day47.65
Single home for 30 days123.02
Thirty homes for 1 day129.18
Thirty homes for 30 days841.65

Share and Cite

MDPI and ACS Style

Ullah, I.; Hussain, S. Time-Constrained Nature-Inspired Optimization Algorithms for an Efficient Energy Management System in Smart Homes and Buildings. Appl. Sci. 2019, 9, 792. https://doi.org/10.3390/app9040792

AMA Style

Ullah I, Hussain S. Time-Constrained Nature-Inspired Optimization Algorithms for an Efficient Energy Management System in Smart Homes and Buildings. Applied Sciences. 2019; 9(4):792. https://doi.org/10.3390/app9040792

Chicago/Turabian Style

Ullah, Ibrar, and Sajjad Hussain. 2019. "Time-Constrained Nature-Inspired Optimization Algorithms for an Efficient Energy Management System in Smart Homes and Buildings" Applied Sciences 9, no. 4: 792. https://doi.org/10.3390/app9040792

APA Style

Ullah, I., & Hussain, S. (2019). Time-Constrained Nature-Inspired Optimization Algorithms for an Efficient Energy Management System in Smart Homes and Buildings. Applied Sciences, 9(4), 792. https://doi.org/10.3390/app9040792

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

Article Metrics

Back to TopTop