1 Introduction

There are numerous factors in the world: climate change, increase in carbon emission of industries, decrease in fossil fuels, growing energy demand and blackouts, that cannot be addressed within the scope of existing grid of electricity. Existing grid of electricity is unidirectional in nature whereas the next generation grid, which is popularly known as smart grid, provides bi-directional flow of electrical power and information between the electricity source networks and customers. The new generation grid is called intelligent because it is designed to overcome the shortcomings of the existing grid of electricity. It provides feasible, reliable and environment-friendly electrical power to consumers [1]. Smart grid helps to reduce peak demand of load, which in turn helps to cut down the cost of electricity consumption. On the other hand, it helps in integration of renewable energy sources to the system in an easier way and improves transmission efficiency. Smart grid also helps in quick restoration of electricity after disturbances [2, 3]. Demand side management (DSM) is an aspect of smart grid that provides smart control of load consumption by customers, which in turn helps to shift energy use from peak periods to non-peak periods. Thus, DSM helps in reducing carbon emission, improves efficiency of electricity grid and reduces cost of electricity bill for the consumers or customers. The following services are provided by DSM program: peak clipping; load shifting; strategic conservation; valley filling; flexible load shape and strategic load growth as discussed in [4,5,6]. Load shifting is the mostly used DSM technique.

Among the broad classifications of demand response mentioned in [7], three main demand response programs are ancillary service and economic and emergency demand response schemes. Transfers of electricity to load centres considering the reliability issues that are imposed by industry regulators on utilities are being assisted by ancillary service demand response program [8, 9]. Economic demand response program [10] is employed by utilities to decrease cost of electricity generation during peak hours of load demand of a day. Emergency demand response program [11,12,13] provides financial incentives to include customers in the program so that they can intimate the customer at short notice to shed the non-essential load to prevent blackouts and reduce the overload conditions. Implementation of DSM needs the details of information exchange between the utility operator and the customers. Establishing smooth communication among a large number of generation units and customers is difficult, as a result of which there is a requirement of an entity that can fill the gap and make efficient communication among them. Aggregators [14] do it efficiently and also negotiate with the utility operator for the customers. Though DSM techniques have been discussed widely in [14], the profit of an aggregator is not addressed. In [8,9,10,11,12,13,14] the major focus was in the domain of technical benefits and improvement of DSM, but it is also required to address the monetary benefits related to DSM.

To escalate DSM program in smart grid, different heuristic algorithms are used by researchers in their research works. Ant colony optimization [15] and mutation-based ant colony optimization [16] algorithms are used in DSM to optimize cost of electricity by optimizing load profile. In [17], a heuristic-based evolutionary algorithm has been discussed to solve a DSM problem based on load shifting technique in smart grid in a day-ahead market. Genetic algorithm (GA) [18] is a global search algorithm that depends on survival of the fittest. The technique involves genetic operators: selection, mutation and crossover, to get new and better solutions as compared with the previous generations continuously till the termination criterion is achieved. GA-based DSM is presented for optimum allocation of power usages in smart grid in [19] and to reduce peak to average (PAR) ratio and minimize cost of energy in [20]. Particle Swarm Optimization (PSO) algorithm [21] belongs to the group of Swarm-based algorithms and it is inspired by the social behavior of bird flocking. PSO algorithm is presented to optimize load pattern in order to optimize cost using DSM program in [22, 23] and to get the near-optimal sharing schedule within community to reduce the total electricity cost in [24]. The works described in [15,16,17,18,19,20,21,22,23,24] have contributed remarkably in the area of DSM program but the main focus was on optimization of single-objective problem at a time.

The tri-level structure of the smart grid model is shown in figure 1. Basically, utility operators, aggregators and customers are the three entities of electricity market. Utility system tries to minimize operational cost of electricity generation. Aggregators try to maximize their profit by giving less incentive to the customers, whereas customers try the best to adjust the usages of load in order to earn more incentive from aggregators [25]. As each entity tries to maximize individual profit, there is a need for a multi-objective optimization problem that can fulfill demand of all the entities of electricity market simultaneously. Pareto optimality based on Artificial Immune algorithm is used to optimize multi-objective problems in [25], where it optimizes the profit of all the participants of electricity market. While dealing with multi-objective problems with three or more objective functions, pareto optimality suffers frequently as discussed in [26, 27].

Figure 1
figure 1

Operation framework of the smart grid structure.

Among various meta-heuristic optimization algorithms, PSO [21] is one of the most popular algorithms that effectively solves various optimization problems. PSO is easy to implement and it shows fast convergence. However, PSO has some limitations such as trapping into local optimum, poor global search ability and premature convergence; as a result it cannot effectively solve complex optimization problems whereas mutation operation in the GA [28] ensures that trapping at local optima is avoided. However, it makes the convergence slower. Both GA and PSO algorithm have a couple of advantages and disadvantages.

2 Novelty of the paper

In this paper, a multi-objective demand side management (MODSM) problem based on weighted sum is formulated to maintain fairness among all the participants: utility system, customers and demand response aggregators of electricity market. The multi-objective problem is converted into one objective by giving priorities to different objectives of the participants of electricity market using scalar weights, which helps to reduce the time of computation. In the problem formulated one also needs to ensure reducing PAR load demand and optimizing the cost of electricity bill by allocating load demand and generation profile for a typical day optimally. In order to overcome the drawbacks of both GA and PSO algorithms mentioned in the previous section and to balance between exploration and exploitation, a hybrid GA–PSO algorithm is proposed in this paper to solve the complex MODSM problem. The hybrid GA–PSO algorithm combines the strength of both algorithms and helps to enhance the convergence speed and avoid trapping into local minima. It is the fusion of the concept of velocity and position update rules of PSO algorithm and the concept of selection, crossover and mutation of GA algorithm. To balance between exploration and exploitation a decision parameter: fusion factor, is introduced. It is the deciding factor of the proportion at which new population will be generated from both the techniques, i.e. using PSO and GA.

3 System modelling

For a typical day, a DSM approach based on load shifting for a hierarchical tri-level smart grid structure is considered as shown in figure 1. For the current system, an utility operator, a set of customers and an aggregator to deal with both the entities and to provide DSM service in the electricity market are considered. The utility operator supplies electrical power to the customers. The aggregator holds the position of intermediate level between utility operator and customers and provides bi-directional flow of electricity and information between them [14]. Throughout the day the load demand of a customer varies with respect to time and as per consumption, which is tracked through a smart meter installed at the customer end [29]. The power generated from renewable energy sources varies based on the environmental conditions. It is always required to regulate electricity generation in order to adjust supplied power and load demand.

3.1 Objective of all participants of the tri-level smart grid structure

3.1a Objective of utility operator: Utility operator provides incentives to aggregators for providing DSM service to a set of customers. The utility operator tries to reduce both the cost of electricity generation and the part of its profit given to the aggregator. Thus, objective of utility operator is formulated as [14, 25] follows:


minimize

$$\begin{aligned} {{F}_{UTILITY}}({{g}_{c}})=\sum \limits _{t\in T}{[{{f}_{1}}({{g}_{c,t}})+{\alpha }{{f}_{2}}({{g}_{c,t}})]}, \end{aligned}$$
(1)

where \({{f}_{1}}({{g}_{c,t}})\) is the cost of generation with DSM program; \({\alpha }{{f}_{2}}({{g}_{c,t}})\) is the bonus for aggregator from utility operator and it is expressed as [25]

$$\begin{aligned} {{f}_{bonus}}={\alpha }{{f}_{2}}({{g}_{c,t}})={{\alpha }}\sum \limits _{t\in T}{[{{f}_{0}}({{g}_{c,t}})-{{f}_{1}}({{g}_{c,t}})]}, \end{aligned}$$
(2)

where \({{f}_{0}}({{g}_{c,t}})\) signifies the conventional generation cost without considering DSM program and \({{\alpha }}\) is the bonus coefficient; \({{\alpha }}\) can be varied from zero to one, i.e. \(0\le {{\alpha }}<1\). In (2), \({{\alpha }}\) signifies the percentage of profit that will be given to the aggregator by the utility operator. If \({{\alpha }}\) increases, the bonus drawn by aggregator will also increase.

3.1b Objective of aggregator: The aggregator communicates with the set of customers and encourages them to participate in DSM program. In this process, the aggregator monitors the daily load consumed by the customers and tracks electricity generation profile. The customers get incentive on their electricity bill for the inconvenience faced by them at time of load shifting [14]. The aggregator tries to maximize its profit by drawing more bonus from utility operator and giving less incentive to the customers by convincing them to participate in DSM process. Thus, objective of the aggregator is expressed as [14, 25] follows:


maximize

$$\begin{aligned} {{F}_{AGGRE}}({{g}_{c}},{{l}_{a}})&=\sum \limits _{t\in T}\{{{\alpha }}{{f}_{2}}({{g}_{c,t}})\nonumber \\&\quad -\,[-{{\beta }_{1}}{{({{l}_{a,t}}-{{g}_{t}})}^{2}}+{{\beta }_{2}}]\}, \end{aligned}$$
(3)

where the second part is the amount given to the customers as compensation, which is expressed as [25]

$$\begin{aligned} {{f}_{compensation}}=\sum \limits _{t\in T}{[-{{\beta }_{1}}{{({{l}_{a,t}}-{{g}_{t}})}^{2}}+{{\beta }_{2}}]}, \end{aligned}$$
(4)

where \({{\beta }_{1}}\)and \({{\beta }_{2}}\) are coefficients of compensation \(({{\beta }_{1}}> 0;{{\beta }_{2}}> 0)\); \({{l}_{a,t}}\) is the actual load demand and \({{g}_{t}}\) is the scheduled generation, which includes scheduled power generated from conventional generators and renewable energy sources. It is calculated as \({{g}_{t}}={{G}_{c}}+{{g}_{res,t}}\) where \({{G}_{c}}\) is the power anticipated from traditional generators and considered as fixed for each time instant; \({{g}_{res,t}}\) is the power generated from renewable sources of energy and it is time-varying in nature. The power generated from the renewable energy system will be absorbed first and the remaining power demand will be fulfilled by the conventional generators. In this paper, wind power is used as a source of renewable energy. In (4), \({\beta }\) decides the amount of compensation that can be given to the customers. When the actual load demand follows the scheduled generation completely, i.e. \({{l}_{a,t}}={{g}_{t}}\), \({{f}_{compensation}}\) must be equal to zero.

3.1c Objective of customers: Customers get a comprehensive idea of their electricity consumption from the smart meter data [29]. Consumers may move non-essential loads or essential loads to some extent, in order to draw monetary benefits from the aggregator. It is very clear that DSM implies dissatisfaction to customers and the degree of discomfort increases as the difference between the forecasted and actual load rises. The objective of the set of customers is to maximize its profit and it is formulated as [14, 25] follows:


maximize

$$\begin{aligned} {{F}_{CUSTOMER}}({{l}_{a}})&=\sum \limits _{t\in T}\{[-{{\beta }_{1}}{{({{l}_{a,t}}-{{g}_{t}})}^{2}}\nonumber \\&\quad +\,{{\beta }_{2}}]-{{\gamma }}{{({{l}_{a,t}}-{{l}_{f,t}})}^{2}}\}, \end{aligned}$$
(5)

where \({{\gamma }}{{({{l}_{a,t}}-{{l}_{f,t}})}^{2}}\) is the dissatisfaction of customers, which is expressed as [25]

$$\begin{aligned} {{f}_{dissatisfaction}}=\sum \limits _{t\in T}{{\gamma }}{{({{l}_{a,t}}-{{l}_{f,t}})}^{2}}, \end{aligned}$$
(6)

where \({{\gamma }}\) signifies the in-elasticity coefficient of load demand and \({{\gamma }}> 0\); \({{l}_{a,t}}\) signifies the actual load consumption; \({{l}_{f,t}}\) is the forecasted electricity demand of customers. In (6), large value of \({\gamma }\) corresponds to more discomfort at customer end; \({{f}_{dissatisfaction}}\) is equal to zero when actual load consumption is equal to forecasted load demand.

All the cost coefficients, i.e, bonus coefficient (\({{\alpha }}\)), coefficients of compensation (\({{\beta }}\)) and in-elasticity coefficient (\({{\gamma }}\)), have significant effect on the profit drawn by individual participants of electricity market. The effect of variation of cost coefficients on the profit drawn by utility operators, aggregators and customers is widely discussed in the results section.

3.2 Constraints

Equations (1)–(6) are subject to the following constraints.

3.2a Power balance constraint: The sum of conventional power generated \(({{g}_{c,t}})\) and power generated using renewable energy source \(({{g}_{res,t}})\) must be equal to the total load demand \((l_{t})\), neglecting the transmission losses:

$$\begin{aligned} \sum \limits _{t\in T}{{g}_{c,t}}+\sum \limits _{t\in T}{{g}_{res,t}} = \sum \limits _{t\in T}{l_{t}}. \end{aligned}$$

3.2b Generation capacity constraint: The power provided by the conventional generators and renewable energy source should be within certain limits:

$$\begin{aligned}&{{g}_{res,t(min)}}\le {{g}_{res,t}}\le {{g}_{res,t(max)}}, \\&{{g}_{c,t(min)}}\le {{g}_{c,t}}\le {{g}_{c,t(max)}}, \end{aligned}$$

where \({{g}_{res,t(min)}}\) and \({{g}_{c,t(min)}}\) are the minimum limits of power obtained from renewable energy source and conventional generators, respectively; \({{g}_{res,t(max)}}\) and \({{g}_{c,t(max)}}\) are maximum limits of power obtained from renewable energy source and conventional generators, respectively.

3.2c Load demand capacity constraint: The aggregated load demand \(({{l}_{at}})\) must be within certain limits:

$$\begin{aligned} {{l}_{t(min)}}\le {{l}_{a,t}}\le {{l}_{t(max)}}, \end{aligned}$$

where \({{l}_{t,(min)}}\) and \({{l}_{t,(max)}}\) are minimum and maximum limit of load demand, respectively.

3.3 PAR ratio

When it comes to system performance, PAR ratio (PAR) [25] is an important factor to analyse the system behaviour. PAR is expressed as

$$\begin{aligned} PAR = \frac{Loa{{d}_{peak}}}{Load{}_{avg}}, \end{aligned}$$
(7)

where \(Loa{{d}_{avg}}\) is the average load demand and \(Load{}_{peak}\) is the peak load demand. When the peak load is reduced and the portion of decrease in load is shifted to other off-peak periods, it results in decrease in PAR. As a result, generation cost reduces. Reducing PAR and illustrating its effect on reduction of generation cost is one of the objectives of the current work. It is explained in tabular form in the results section.

4 Problem formulation

4.1 MODSM

All the participants of electricity market try to get benefit from the use of DSM program [30] in the system. For utility operators, it can reduce the cost of operation of electricity generation. The aggregator can maximize its profit and the customers can get significant reduction in electricity bill. Thus, to provide unbiased preference to all the participants, a multi-objective problem is formulated. For a typical day (24 h), the MODSM problem [25] can be expressed as follows:


minimize

$$\begin{aligned} {{F}_{UTILITY}}({{g}_{c}})&=\sum \limits _{t\in T}{[{{f}_{1}}({{g}_{c,t}})+{{\alpha }}{{f}_{2}}({{g}_{c,t}})]}, \end{aligned}$$
(8)
$$\begin{aligned} -{{F}_{AGGRE}}({{g}_{c}},{{l}_{a}})&=\sum \limits _{t\in T}[-{{\alpha }}{{f}_{2}}({{g}_{c,t}})\nonumber \\&\quad -\,{{\beta }_{1}}{{({{l}_{a,t}}-{{g}_{t}})}^{2}}+{{\beta }_{2}}], \end{aligned}$$
(9)
$$\begin{aligned} -{{F}_{CUSTOMER}}({{l}_{a}})&=\sum \limits _{t\in T}[{{\beta }_{1}}{{({{l}_{a,t}}-{{g}_{t}})}^{2}}-{{\beta }_{2}}\nonumber \\&\quad +\,{{\gamma }}{{({{l}_{a,t}}-{{l}_{f,t}})}^{2}}]. \end{aligned}$$
(10)

4.1.1 Constraints

Equations (8)–(10) are subject to the following constraints:

$$\begin{aligned}&\sum \limits _{t\in T}{{g}_{c,t}}+\sum \limits _{t\in T}{{g}_{res,t}} = \sum \limits _{t\in T}{l_{t}}; \\&\quad {{g}_{res,t,(min)}}\le {{g}_{res,t}}\le {{g}_{res,t,(max)}}; \\&\quad {{g}_{c,t(min)}}\le {{g}_{c,t}}\le {{g}_{c,t(max)}}; \\&\quad {{l}_{t(min)}}\le {{l}_{a,t}}\le {{l}_{t(max)}}. \end{aligned}$$

4.2 Significance of weighted function and formulation of single objective

Each participant of the electricity market has individual objective as shown in (8)–(10) and these objectives are interrelated. Therefore, all the objectives must be fulfilled simultaneously in order to achieve the collective goal. A weighted function is defined as \({{\lambda }_{i}}{{f}_{i}}(X)\) for ith objective, where \({{\lambda }_{i}}\) is a scalar quantity and shows the weight allocated to the respective objective function. The current problem of multi-objective is combined to a single objective function [31] using weights \({{\lambda }_{i}}\) and functions \({f}_{i}\). It helps to reduce computational time. Therefore, the sum of objectives is represented as follows:


minimize

$$\begin{aligned} {{F}_{total}}({{g}_{c}},{{l}_{a}})&={{\lambda }_{1}}{{F}_{UTILITY}}({{g}_{c}})\nonumber \\&\quad +{{\lambda }_{2}}[-{{F}_{AGGRE}}({{g}_{c}},{{l}_{a}})]\nonumber \\&\quad +{{\lambda }_{3}}[-{{F}_{CUSTOMER}}({{l}_{a}})], \end{aligned}$$
(11)

where the range of \({{\lambda }_{i}}\) is \(0<{{\lambda }_{i}}\le 1\) and \({{\lambda }_{1}}+{{\lambda }_{2}}+{{\lambda }_{3}}=1\). Magnitude of weights can be selected based on the choice of giving relative importance to the objectives of the multi-objective problem. For the selection of values of weights different approaches are suggested in [27, 32], which are basically techniques to arrange objectives based on their priorities and preferences. To address the problem shown in (11) a hybrid GA–PSO algorithm is proposed for optimization, which is discussed in the next section.

5 Hybrid GA–PSO algorithm

5.1 Classical PSO and GA

PSO algorithm [21] is based on the social behavior of birds flying in flocks. The candidates (i.e., particles) of a group communicate among themselves to improve the chance of getting the best position of a bird in the flock [33]. Each particle follows the best fitness value in the search space and records as \({{B}_{P}}(\tau )\), i.e. local best position of the bird, and the best fitness obtained so far of the flock, \({{B}_{G}}(\tau ),\) i.e. global best position of the bird [34]. Some drawbacks of PSO algorithm are slow convergence rate, less accuracy of convergence and falling into local minima point. GA developed by John Holland is based on Darwinian evolutionary theory [18]. It is a global search algorithm. The technique involves genetic operators: selection, mutation and crossover, to get new and better solutions until the termination criterion is achieved. Mutation operation in the GA [28] ensures that trapping at local optima is avoided. However, it makes the convergence slower. Both GA and PSO algorithms have a couple of advantages and disadvantages. In this work, a combination of both algorithms is proposed to extract better outcome.

5.2 GA–PSO-based hybrid algorithm

A hybrid GA–PSO algorithm is proposed in this paper. The proposed algorithm helps in improving convergence accuracy and increases global convergence rate. Exploitation and exploration are two significant features in any meta-heuristic algorithm. The proposed algorithm provides a good balance between these two features in the solution space. The proposed optimization algorithm is basically a fusion of the concept of velocity and position update rules of PSO algorithm and the concept of selection, crossover and mutation of GA algorithm.

5.2a Fusion factor: In this proposed algorithm an additional parameter: fusion factor \(\zeta \), is introduced. \(\zeta \) is the deciding factor of the proportion at which new population will be generated from both the techniques, i.e. using PSO and GA. The fusion factor can be varied from 0 to 1. After various trials on setting the value of \(\zeta \) for the current problem \(\zeta \) is set to 0.5, which signifies equal mixing of both the techniques in order to get the best possible result. \(\zeta P\) number of particles have undergone velocity, position update operation of PSO and (P\(\zeta P\)) number of particles have undergone selection, crossover and mutation operations of GA.

5.2b Description of entire process: The entire process can be represented as follows. In the search space, P number of particles are randomly generated. \({{g}_{c}}\) and \({{l}_{a}}\) are two design parameters of the current objective function (11), which represent the particles position in the search space. For each particle, fitness is calculated using (11). If current fitness is greater than \(f({{B}_{P}}(\tau ))\), particle corresponding to best fitness is taken as \({{B}_{P}}(\tau )\). Further, if current fitness is greater than \(f({{B}_{G}}(\tau ))\) then the overall best value of the particle is considered as \({{B}_{G}}(\tau )\). After this, velocity and position of \(\zeta P\) number of particles are updated [23] using (12) and (13):

$$\begin{aligned} V(\tau +1)&=\xi V(\tau )+{{c}_{a1}} {{x}_{1}} ({{B}_{P}}(\tau )-Y(\tau ))\nonumber \\&\quad +\,{{c}_{a2}} {{x}_{2}} ({{B}_{G}}(\tau )-Y(\tau )), \end{aligned}$$
(12)
$$\begin{aligned} Y(\tau +1)&=Y(\tau )+V(\tau +1), \end{aligned}$$
(13)

where \({\xi }\) represents inertia weight factor; \({{c}_{a1}}\) and \({{c}_{a2}}\) represent the acceleration constants; \({{x}_{1}}\) and \({{x}_{2}}\) are chosen randomly between 0 and 1. A larger value of \({\xi }\) results in less exploitation and more exploration. Similarly, a small value of \({\xi }\) results in less exploration and more exploitation. Exploration and exploitation are two important factors of any optimization algorithm and excessive attention on one may affect the other. In order to balance between exploration and exploitation and to improve global search speed, the parameter \({\xi }\) is configured to linearly decrease with iteration count [33]. Thus, \({\xi }\) is expressed as follows:

$$\begin{aligned} \xi ={{\xi }_{\max }}-\frac{{{\xi }_{\max }}-{{\xi }_{\min }}}{\tau _{\max }} {\tau }, \end{aligned}$$
(14)

where \({\xi }_{max}\) and \({\xi }_{min}\) represent the final value and initial value of weight factor, respectively; \(\tau \) is current iteration; \({\tau }_{max}\) is the maximum iteration. For the current system the parameters \({{\xi }_{\max }}\), \({{\xi }_{\min }}\) [35] are taken to be 0.9, 0.4, respectively, in (14) and the values of \(c_{a1}\), \(c_{a2}\) are both set at 1.5 in (12).

(P\(\zeta \) \(P\)) number of particles are selected for crossover and mutation operation. In crossover, a pair of chromosomes is randomly selected as parent chromosomes and portions of the two parents from the current generation are combined to create two offsprings in order to provide improved solutions. Here, single-point crossover is used where the location of swapping is decided randomly. Crossover rate \((r_c)\) signifies the percentage of offsprings generated from parents. Here \(r_c\) is set at 0.8, as large crossover rate means faster convergence. Mutation is a more random process than crossover. The mutation rate \((r_m)\) is set to a very small value, since larger mutation rate may result in premature convergence. Mutation of a chromosome helps produce and include essential features to the existing chromosome in order to get new population. For each chromosome a random number (u) is generated. If \(u\le {r_m}\), the chromosome gets mutated. Here, \(r_m\) is set at 0.001.

Further, the set of particles obtained by PSO and GA is considered as the new set of population and the process is replayed until termination criterion is reached. Figure 2 shows a flowchart of the proposed hybrid GA–PSO algorithm. The detailed algorithm is illustrated in the next section.

Figure 2
figure 2

Flowchart of hybrid GA–PSO algorithm.

5.2c Algorithm of the proposed hybrid GA–PSO technique:

  1. 1.

    Input: Initialize the number of iterations and population (P) with random position and velocity vectors, generation \(({{g}_{c}})\) and load demand \(({{l}_{a}})\) pattern of a typical day as positions of particles.

  2. 2.

    BEGIN ALGORITHM.

  3. 3.

    \(\quad \quad \quad \quad{\textit{/* Start Iteration */}}\).

  4. 4.

    For each particle calculate fitness using (11).

  5. 5.

    Particle with best fitness is set as \({{B}_{P}}(\tau )\) (local best). If current fitness is better than \({{B}_{P}}(\tau )\), \({{B}_{P}}(\tau )\) gets updated to current fitness.

  6. 6.

    Current fitness of particle is compared to particle’s previous best so far, i.e. \({{B}_{G}}(\tau )\)(global best). If current fitness is better than \({{B}_{G}}(\tau )\), \({{B}_{G}}(\tau )\) gets updated to current fitness.

  7. 7.

    Generate new generation of particles with the help of following steps:

    • \(\zeta P\) number of particles are generated while updating velocity of particles using (12) and position of particles using (13), where \(\zeta \) is fusion factor.

    • The remaining number of particles, i.e. (P\(\zeta \) \(P\)), is generated using basic GA operators: crossover and mutation.

  8. 8.

    The new set of particles created by PSO and GA operators are considered as new population and used to calculate fitness using step 4.

  9. 9.

    Steps 5, 6 and 7 are repeated until termination condition (i.e., until \({\tau }\) = \({\tau }_{(max)}\) ) is satisfied.

  10. 10.

    Output: An optimized set of design parameters as position of the flock is obtained as output.

  11. 11.

    END ALGORITHM.

6 Mapping of proposed hybrid GA–PSO technique for cost optimization

In this section, a mapping of hybrid GA–PSO technique for cost optimization is discussed. Here, hybrid GA–PSO works as an optimization tool to find the best solution in the search space. Electricity generation and load profile of a particular day are used as design variables. Searching for optimized profile of generation and load pattern using DSM for a particular day to optimize cost of electricity and to provide incentive to all the participants of the electricity market simultaneously is the objective of the proposed hybrid algorithm.

  • Initialize the maximum number of population (P) and maximum number of iterations \({\tau _{\max }}\) for the smart grid model. Also, define the parameters \({{\xi }_{\max }}\), \({{\xi }_{\min }}\), \(c_{a1}\), \(c_{a2}\) and \(\zeta \).

  • At the starting of the algorithm a few random values of the particles, i.e. generation and load pattern, are produced randomly in a specified range (\({{g}_{c,t(min)}}\le {{g}_{c,t}}\le {{g}_{c,t(max)}}, \,{{l}_{t(min)}}\le {{l}_{a,t}}\le {{l}_{t(max)}}\)) for the DSM problem for 24 hours.

  • For each design variable (generation \(({g}_{c})\) and load \(({l}_{a})\)) fitness is calculated using (11), which is the MODSM problem. In each iteration, fitness is monitored and updated towards the optimized performance.

  • In each iteration, particle with best fitness of particle is considered as \({{B}_{P}}(\tau )\). Current fitness is compared to \({{B}_{P}}(\tau )\). If current fitness \(>{{B}_{P}}(\tau )\), \({{B}_{P}}(\tau )\) is updated to current fitness.

  • Particle’s overall previous best is known as \({{B}_{G}}(\tau )\).

    If current fitness \(>{{B}_{G}}(\tau )\), \({{B}_{G}}(\tau )\) is updated to current fitness.

  • \(\zeta P\) number of particles are generated while updating velocity of particles using (12) and position of particles using (13).

  • The remaining number of particles, i.e. (P\(\zeta P\)), is generated using basic GA operators: crossover and mutation.

  • The principal goal of the hybrid GA–PSO technique is to minimize the electricity cost of generation. The hybrid GA–PSO algorithm provides optimized design variables (i.e., optimized generation and load profile) as global best. Thus, the solution will achieve a global optimal solution.

7 Significance of hybrid GA–PSO algorithm on DSM in smart grid

In this paper, DSM program is formulated as a multi-objective problem based on weighted sum. The population-based meta-heuristic optimization technique hybrid GA–PSO is used as an optimization tool. The hybrid GA–PSO does not suffer from falling into local minima point. It also helps in improving convergence accuracy and to increase global convergence rate. Achieving a suitable trade-off between exploration and exploitation is an essential task, which provides fairness to them. The proposed algorithm can optimize energy generation and load demand for a selected day at the same time. This optimized profile of generation and load pattern can further help to reduce PAR, cost of electricity generation and to lower electricity bill. In the process, it can help to reward all the participants of the electricity market: utility operators, aggregators and customers.

8 Simulation and results

The proposed algorithm is executed in NI LabVIEW©2015 in a system with processor i5-3230M CPU @ 2.60 GHz. The cost function is simulated for 15 times with an iteration count of 100 for each optimization algorithm. The number of population is set at 50.

8.1 Analysis for cost optimization for DSM

To validate the proposed optimization algorithm, the cost optimization of a smart grid model is used. For a typical day, for reference load and electricity generation profile, UK Grid Watch data [25] is used in this paper. Here day-ahead load demand and generation data of 24 hours is forecasted and fed to the system for further processing. Average electricity price of 0.18 \(\pounds \)/kWh is considered as flat pricing, which signifies that electricity price is constant throughout the day. A model is considered from [36] and for the conventional generators a quadratic cost function is considered, which is expressed as

$$\begin{aligned} C({{g}_{ct}})=2+3({{g}_{ct}})+1.2{{({{g}_{ct}})}^{2}}. \end{aligned}$$
(15)

The output power of wind turbines is calculated as [37]

$$\begin{aligned} {{P}_{wind}}=0.5{{C}_{w}}(\eta ,\phi )\rho {{A}_{d}}v_{w}^{3}, \end{aligned}$$
(16)

where air density \(\rho \) and the swept area \({{A}_{d}}\) are set at 1.225 kg/m\(^3\) and 1257 m\(^2\), respectively; \(v_{w}\) is wind speed; \({{C}_{w}}\) is performance coefficient and it can be calculated using the blade pitch angle \(\phi \) and the blade tip speed ratio \(\eta \). The parameters of wind turbine are considered as mentioned in [37].

Due to various factors like pressure and temperature of air, humidity, seasons, etc., the wind speed varies throughout the day. Thus power generated from it also varies throughout the day. The maximum and rated wind speed are set at 30 and 15 m/s, respectively. If wind speed is more than the maximum wind speed, for the safety reasons, the wind turbines will be stopped forcefully, as severe wind speed stresses the blades of the turbine. When wind speed is less than the maximum wind speed but more than the rated wind speed, the power generated form wind turbine will be the rated power and it will remain constant. For a typical day, power generation from the wind turbines \((g_{res,t})\) is forecasted in Figure 3 as discussed in [25]. Initially, the electricity generated from the wind turbines will be absorbed. The power generated from conventional generators will be used to compensate the remaining portion of demand of electrical power. For supply of wind power 2500 number of wind turbines are used with a capacity of 2.75 MW each [25].

Figure 3
figure 3

Projected wind power for a typical day.

For the simulation of the current system the bonus coefficient \(({\alpha })\) is chosen as 0.6 in (2), which shows that 60% of the profit of the utility operator will be given as incentive to the DR aggregator. The compensation coefficients are set as follows: \({{\beta }_{1}}\) = 2, \({{\beta }_{2}}\) = 80 in (4) and in-elasticity coefficient \({{\gamma }_{c}}\) = 3 in (6). It is considered that 20% of load can be varied for customers.

Figure 4 shows the optimized conventional generation pattern for a specific day with PSO and hybrid GA–PSO algorithms. At off-peak hours, peak generation increases from 20.8 to 21.8 GW on using classical PSO and it further increases to 23.33 GW on using the proposed hybrid GA–PSO algorithm. On the other hand, at peak hours, peak generation decreases from 29.5 to 28.95 GW on using PSO whereas, on using hybrid GA–PSO, it further decreases to 28.61 GW. Thus, for the current system, the proposed hybrid GA–PSO algorithm effectively optimizes the generation profile as compared with classical PSO while minimizing the cost.

Figure 4
figure 4

Optimized conventional generation pattern of a typical day with PSO and hybrid GA–PSO.

Figure 5 illustrates the forecasted load profile and optimized load profile for the selected day using PSO and hybrid GA–PSO algorithms. After optimization using PSO, it is noticed that, during the off-peak period, peak load demand increases from 23 to 23.45 GW \((1.92\%\) more) and during the peak period, peak load demand decreases from 34.2 to 33.07 GW (3.3% less). However, using proposed hybrid GA–PSO algorithm, it is noticed that during the off-peak period, peak load demand increases from 23 to 24.1 GW \((4.56\%\) more) and during the peak period, peak load demand decreases from 34.2 to 32.60 GW (4.67% less). Therefore a part of load demand is shifted from peak period to the off-peak period, which shows smart distribution and efficient utilization of load demand throughout the day for the smart grid model. The comparative analysis clearly shows that for the same system improved results can be obtained using the proposed hybrid GA–PSO algorithm than those by the classical PSO algorithm.

Figure 5
figure 5

Optimized load demand pattern of a typical day with PSO and hybrid GA–PSO.

Table 1 shows that with the proposed hybrid GA–PSO algorithm, utility system can make a savings of 163,000 \(\pounds \), aggregator can get a profit of 380,034 \(\pounds \) and there is a saving of 1501.46 \(\pounds \) amount in electricity bill for the customers. Table 1 summarizes that all the participants of electricity market draw profit simultaneously when the proposed hybrid GA–PSO algorithm is applied to the MODSM problem.

Table 1 Profit made by different participants of electricity market using hybrid GA–PSO algorithm.

Table 2, demonstrates the comparative study of PAR, total generation and average generation in reference profile and using classical PSO and proposed hybrid GA–PSO algorithms. For a fixed load demand, the load shift from peak period to off-peak period results in significant decease in generation cost. Particularly for the current system, the simulated results reveal that the PAR reduces from 1.151 to 1.14 in case of PSO and it further reduces to 1.133 using the proposed hybrid GA–PSO algorithm. As a result, cost of electricity generation reduces from 29.37 (M\(\pounds )\) to 29.34 (M\(\pounds )\) using PSO and it further reduces to 29.206 (M\(\pounds )\). Therefore, the analysis shows the effectiveness of the proposed hybrid GA–PSO algorithm over PSO in terms of system performance.

Table 2 System performance with PSO and hybrid GA–PSO algorithms.

8.2 Performance analysis

In this section, the performance of the proposed algorithm is validated with the help of cost convergence analysis of the current system mentioned in the previous section. Figure 6 demonstrates the comparative analysis of cost convergence behaviour of the current system in the presence of the proposed hybrid GA–PSO algorithm and a few well-known optimization algorithms: PSO [21] and GA [18]. It is observed that in the presence of the proposed hybrid GA–PSO algorithm, the cost function converges faster and reaches the optimal solution within a few number of iterations as compared with PSO and GA algorithms. Thus, the cost convergence profile proves that the proposed hybrid GA–PSO algorithm is very efficient as compared with other existing optimization algorithms.

Figure 6
figure 6

Cost convergence characteristics with different optimization algorithms.

Since global optimum solution may not be possible every time with optimization algorithms [38], in order to highlight the global optimal quality of the algorithm, the MODSM problem is simulated for 15 times with an iteration count of 100 for each optimization algorithm on the current system. Table 3 shows the simulated best result, worst result and mean value of the 15 individual trials. The results clearly show that the proposed hybrid GA–PSO algorithm gives better result in terms of better mean value than PSO and GA algorithms.

Table 3 Performance analysis of optimization algorithms for demand side management problem in smart grid.

To show the effectiveness of the current approach to improve the performance of current system, a comparative study has been made among a few well-known optimization algorithms: PSO [22] and Artificial Immune algorithm [25] in Table 4. In [39] a well-known algorithm, i.e. PSO, is used to implement DSM and in [25], the Artificial Immune algorithm is used using Pareto optimality to solve the DSM program. Specifically, PAR has decreased by 5.33%, 0.87%, 1.74% on using AIA, PSO, hybrid GA–PSO algorithms, respectively. As a result % decrease in cost of electricity generation is 0.19%, 0.1% using AIA, PSO algorithms, respectively whereas hybrid GA–PSO algorithm provides around 0.56% decrease in cost of electricity generation, which is a significant amount as compared with other techniques. Total and average generation of electricity are decreased in all cases but significant percentage decrease is observed using hybrid GA–PSO, which is around 0.9% and 0.94%, respectively. Therefore, Table 4 shows the superiority of the proposed hybrid GA–PSO algorithm as compared with other existing algorithms.

Table 4 Comparative analysis among different techniques of optimization.

8.3 Analysis considering the effect of cost coefficients

The bonus coefficient \((\alpha )\) signifies the portion of the utility operator savings that will be shared with the demand response aggregator in order to implement DSM in smart grid.

Bonus coefficient (\(\alpha \)) can be varied from 0 to 1; \(\alpha \) = 0 signifies no bonus is given to the aggregator and \(\alpha \) = 1 signifies 100% incentive is given to the aggregator. From Figure 7 it is clear that the aggregator gets zero bonus at \(\alpha \) = 0, i.e. utility operator keeps the total savings, and the aggregator gets maximum bonus when \(\alpha \) is 100%, i.e. utility operator savings is nil in this case. In this range, as value of \(\alpha \) increases, bonus given to aggregator also increases gradually.

From figure 7, it is evident that due to increase in \(\alpha \), there is no significant change in electricity bill reduction at customer end as it is completely independent of \(\alpha \).

Figure 7
figure 7

Significance of bonus coefficient among all three participants of electricity market.

Figure 8 shows that at the same level of demand adjustment a smaller compensation coefficient \(({{\beta }_{1}})\) means more compensation will be given to customers, i.e. more saving in electricity bill. \({{\beta }_{1}}\) is varied from 1 to 10 by keeping other coefficients fixed as mentioned earlier, since \({{\beta }_{1}}> 0\). As \({{\beta }_{1}}\) increases, electricity bill reduction decreases. Therefore, customers get higher benefits at lower level of \({{\beta }_{1}}\).

Figure 8
figure 8

Effect of compensation coefficient on savings of electricity bill.

Figure 9 shows how the variation (1–10) of in-elasticity coefficient (\(\gamma \)) effects the reduction in electricity bill. As \(\gamma \) increases, savings of electricity bill reduces. Small value of \(\gamma \) signifies less discomfort to customers, so that customers can save electricity bill more.

Figure 9
figure 9

Effect of in-elasticity coefficient on savings of electricity bill.

9 Conclusion

In this paper, a multi-objective optimization approach is proposed to reduce PAR load demand ratio and to make savings on electricity bill of a day-ahead market in smart grid using DSM. The hybrid GA–PSO algorithm is proposed for optimal allocation of the generation and load profile for a typical day in the electricity market. The results of the proposed hybrid GA–PSO algorithm are validated and compared to those from other optimization techniques. The simulation results prove that the proposed technique optimally allocates generation and load profile for the typical day and effectively reduces PAR; as a result, the cost of generation of electricity reduces. Moreover, with the proposed approach, all the participants of the smart grid for a day-ahead market get monetary benefits due to optimized pattern of load and generation, i.e. utility operator reduces the operational cost, aggregator makes profit and customers save money on their electricity bill simultaneously. The result also illustrates the effect of variation of bonus, compensation and in-elasticity coefficient on individual profit of different participants of the electricity market and savings in electricity bill. From the result, it is very clear that the proposed approach shows better performance and it draws significant and better response of the MODSM program as compared with some existing approaches.