Keywords

1 Introduction

At a power generating station, the load demand is not sufficed by a single generating entity. Rather a conglomerate of such entities fulfil the total demand. Moreover to produce the same amount of power, each unit is incurred with its own cost function (price bid). Economic load dispatch (ELD) works on the fact that not all generating units incur the same amount of cost to suffice same amount of load, rather same are relatively more costly than others for equal amount of production. So, aptly allocating a certain share of the entire demand could actually lower the fuel cost. The total load demand is distributed among various generators which in turn affects the estimation, invoicing, unit commitment and numerous related functions [1]. The total generation of power has to comply with the total current demand. To address this, the ELD could be further categorized into two variations depending upon the nature of load demand. The constant load, classical static economic load dispatch (SELD) ignores practical constraints because every load consuming area does not have a constant all day load demand characteristics but its nature depends upon the prevalent climatic factors, location and attributes of job undertaken by the inhabitants [2, 3]. In opposition to this, a dynamic economic load dispatch (DELD) efficiently handles the practical constraint [4]. In DELD, we forecast the demand for the upcoming hours and accordingly distribute the load among different generations to optimize the production. Energy management strategy (EMS) of microgrids falls in DELD category of cost minimization but is more complicated than SELD. To begin with, microgrid can be imagined as a collection of distributed energy resources (DERs) and loads within a confined geographical area. DERs include fossil-fuelled generators, various renewable energy sources (RES) depending upon the availability of the microgrid location, micro-turbines, fuel cells, energy storage systems (ESS) such as battery and flywheel, etc. [5] It is because of the individual modelling and constraints associated with these DERs that economic dispatch of microgrid becomes a complex and cumbersome process for power engineers. Microgrid basically operates in two modes; either islanded or utility connected [6]. It is quite obvious that the utility-connected mode is more reliable and efficient as the microgrid can sell/buy power from the utility depending upon the surplus/deficit production of power from its DERs. Also utility-connected microgrid can rely on the grid in case one of its DER fails thus preventing from an unwanted and major shutdown of the system.

The last decade has witnessed a lot of research in the microgrid energy management area. Matrix real coded GA (MRCGA) and imperialist competitive algorithm (ICA) were used by authors in [7, 8] to minimize the generation cost of a grid-connected microgrid, wherein various cases were studied to analyse the capability of algorithms in handling tight operating ranges of DERs, variable loads and fluctuating electricity price. Cuckoo search algorithm (CuSA) yielded better results than PSO and DE when both SELD and DELD were performed by author in [9]. An islanded microgrid system was considered for DELD which consisted of two wind turbines (WT) to be separately modelled based on wind speed. Authors performed pareto-optimal front-based economic-emission dispatch on a utility-connected microgrid system using adaptive modified PSO (AMPSO) in [10] and GAMS in [11].

2 Objective Function Formulation

The objective function consists of generation cost function and emission cost function for a microgrid mathematically stated as follows [12]:

$$ MinF(P_{i}^{t} ) = \sum\limits_{i = 1}^{ng} {F_{g} (P_{i}^{t} ) + \sum\limits_{g = 1}^{n} {F_{e} (P_{i}^{t} )} } $$
(1)

where \(F(P_{i}^{{}} )\) is operating cost of microgrid with ng number of DG units. Generation cost is \(F_{g} (P_{i}^{{}} )\), and \(F_{e} (P_{i}^{{}} )\) is emission cost of the DGs, respectively. \(P_{i}\) is the output power from the ith DG. t is the hour which varies from 1 to 24.

Again generation cost is summation of fuel costs, operation and maintenance cost and depreciation cost [12], i.e.

$$ F(P_{{_{i} }}^{t} ) = F_{fc,i} (P_{i}^{t} ) + F_{{_{o\& m,i} }} (P_{i}^{t} ) + F_{{_{dc,i} }} (P_{i}^{t} ) + c_{{{\text{GRID}}}}^{t} *P_{{{\text{GRID}}}}^{t} $$
(2)

where fuel cost is \(F_{fc,i} (P_{i}^{t} )\), operation and maintenance cost is \(F_{{_{o\& m,i} }} (P_{i}^{t} )\), and \(F_{{_{dc,i} }} (P_{i}^{t} )\) is the depreciation cost of ith DG source represented as a function of their respective power outputs \(P_{i}^{{}}\). \(c_{{{\text{GRID}}}}^{t}\) is market price of electricity bought/sold by the grid at tth hour.

The objective function mentioned in (1) are bound to some constraints such as:

$$ \sum\limits_{i = 1}^{n} {P_{i}^{t} + P_{{_{{{\text{GRID}}}} }}^{t} } = P_{{{\text{load}}}}^{t} $$
(3)
$$ P_{i,\min }^{t} \le P_{i}^{t} \le P_{i,\max }^{t} $$
(4)
$$ - P_{{i,{\text{GRID}},\min }}^{t} \le P_{{{\text{GRID}}}}^{t} \le P_{{i,{\text{GRID}},max}}^{t} $$
(5)

3 Hybrid Grey Wolf Optimizers

This paper implements GWO and hybrid MGWO-SCA-CSA for performing EMS on microgrid systems. The mathematical modelling of these algorithms is detailed below.

3.1 Grey Wolf Optimizer (GWO)

GWO [13] mimics the hunting behaviour of the wolves while devouring its prey. A pack of 10–12 wolves maintains a hierarchy among themselves. The leader wolf is said to be alpha (α). It guides the pack but might not be the strongest in the pack. Next in rank is beta (β) whose prime duty is maintaining discipline in the pack and assisting alpha to reach the prey. Delta (δ) comes third in rank and may be considered as a scapegoat. Rest all the wolves fall in the omega (Ω) category and comes last in the pack. In the GWO algorithm, the best three solutions are α, β and δ. Rest of the solutions are Ω. The hunting procedure of the wolves can be mathematically represented as:

$$ \left. \begin{gathered} \vec{D}_{\alpha } = \left| {\vec{C}_{1} .\vec{X}_{\alpha } - \vec{X}} \right| \hfill \\ \vec{D}_{\beta } = \left| {\vec{C}_{2} .\vec{X}_{\beta } - \vec{X}} \right| \hfill \\ \vec{D}_{\delta } = \left| {\vec{C}_{3} .\vec{X}_{\delta } - \vec{X}} \right| \hfill \\ \end{gathered} \right\} $$
(6)

And the position updating procedure of the wolves is given as:

$$ \left. \begin{gathered} \vec{X}_{1} = \vec{X}_{\alpha } - \vec{A}_{1} .(\vec{D}_{\alpha } ) \hfill \\ \vec{X}_{2} = \vec{X}_{\beta } - \vec{A}_{2} .(\vec{D}_{\beta } ) \hfill \\ \vec{X}_{3} = \vec{X}_{\delta } - \vec{A}_{3} .(\vec{D}_{\delta } ) \hfill \\ \end{gathered} \right\} $$
(7)
$$ \vec{X}_{{({\text{iter}} + 1)}} = \frac{{\vec{X}_{1} + \vec{X}_{2} + \vec{X}_{3}^{{}} }}{3} $$
(8)

The value of vectors A and C can be calculated as:

$$ \begin{gathered} \vec{A} = 2.\vec{a}.\vec{r}_{1} - \vec{a} \hfill \\ \vec{C} = 2.\vec{r}_{2} \hfill \\ \end{gathered} $$
(9)

Wolves move away from the current prey if absolute value of vector A is more than 1 and is forcefully pulled towards the prey when absolute value of vector A is more than 1. ‘a’ decreases linearly from 2 to 0 iteration-wise using the formula

$$ a = 2*\left( {1 - \frac{{{\text{iter}}}}{{{\text{Max}}\_{\text{iter}}}}} \right) $$
(10)

3.2 Modified GWO

To eliminate the possibility of the solution getting trapped within the position of the Ω wolves, authors in [14] proposed that a few number of Ω wolves also take part in the hunting procedure along with the δ wolves. The hunting equation will therefore differ from earlier GWO algorithm by:

$$ \left. \begin{gathered} \vec{D}_{\alpha } = \left| {\vec{C}_{1} .\vec{X}_{\alpha } - \vec{X}} \right| \hfill \\ \vec{D}_{\beta } = \left| {\vec{C}_{2} .\vec{X}_{\beta } - \vec{X}} \right| \hfill \\ \vec{D}_{\delta } = \left| {\vec{C}_{3} .\vec{X}_{\delta } - \vec{X}} \right| \hfill \\ \vec{D}_{\Omega } = \left| {\vec{C}_{4} .\vec{X}_{\Omega } - \vec{X}} \right| \hfill \\ \end{gathered} \right\} $$
(11)

The position updating procedure will be performed including the δ in the family of wolves as:

$$ \left. \begin{gathered} \vec{X}_{1} = \vec{X}_{\alpha } - \vec{A}_{1} .(\vec{D}_{\alpha } ) \hfill \\ \vec{X}_{2} = \vec{X}_{\beta } - \vec{A}_{2} .(\vec{D}_{\beta } ) \hfill \\ \vec{X}_{3} = \vec{X}_{\delta } - \vec{A}_{3} .(\vec{D}_{\delta } ) \hfill \\ \vec{X}_{4} = \vec{X}_{\Omega } - \vec{A}_{4} .(\vec{D}_{\Omega } ) \hfill \\ \end{gathered} \right\} $$
(12)
$$ \left. \begin{gathered} \vec{X}^{\prime\prime}_{3} = \frac{{\vec{X}_{3} + \vec{X}_{4} }}{2} \hfill \\ \vec{X}_{{({\text{iter}} + 1)}} = \frac{{\vec{X}_{1} + \vec{X}_{2} + \vec{X}^{\prime\prime}_{3} }}{3} \hfill \\ \end{gathered} \right\} $$
(13)

Hereafter, the hybridization will be done with GWO and not GWO as the results of MGWO were obviously found better and promising than GWO.

3.3 Modified GWO-SCA-CSA

Hybrid MGWO-SCA-CSA is the amalgamation of MGWO, SCA and CSA in which the mathematical implications of SCA [15] is done in the hunting method of grey wolves as follows:

$$ \left. \begin{gathered} \vec{D}_{\alpha } = \textit{rand}*\sin (\textit{rand})*\left| {\vec{C}_{\alpha } .\vec{X}_{\alpha } - \vec{X}} \right|\; {\text{if}}\,\textit{rand} > 0.5 \hfill \\ \vec{D}_{\alpha } = \textit{rand}*\cos (\textit{rand})*\left| {\vec{C}_{\alpha } .\vec{X}_{\alpha } - \vec{X}} \right|\quad {\text{otherwise}} \hfill \\ \end{gathered} \right\} $$
(14)

Similarly, we calculate the hunting vectors Dβ, Dδ and DΩ. Crow search algorithm (CSA) [16] is a recently developed optimization technique which imitates the memory-based sly nature of the crows to hide their food from other crows and also steal food from others. The flight length (fl) of the crow broadens or concise the search space, while the awareness probability (AP) helps in the transition from exploration to exploitation stage. The iteration updating step of MGWO, i.e. (13) is changed to:

$$ \left. \begin{gathered} \vec{X}_{{({\text{iter}} + 1)}} = \vec{X} + fl*rand*\left\{ {(\vec{X}_{1} - \vec{X}) + (\vec{X}_{2} - \vec{X}) + (\vec{X}^{\prime\prime}_{3} - \vec{X})} \right\}/3\quad {\text{if}}\quad AP > rand \hfill \\ \vec{X}_{{({\text{iter}} + 1)}} = \vec{X} + fl*rand*(\vec{X}_{1} - \vec{X})\quad {\text{otherwise}} \hfill \\ \end{gathered} \right\} $$
(15)

AP decides whether to consider all the alpha, beta, delta and omega wolves for updation process or to rely on the alpha (leader) wolf only. To reduce the cumbersome task of tuning a parameter, AP which is a probabilistic value changes in every using the formula:

$$ AP = 1 - \left( {\frac{{1.01*{\text{iter}}^{3} }}{{{\text{Max}}\_{\text{iter}}^{3} }}} \right) $$
(16)

The pseudo code of MGWOSCACSA is mentioned below:

figure a

4 Results and Analysis

System Description. GWO, MGWO and proposed MGWOSCACSA, coded in MATLAB2013a environment installed in a desktop with core i3 processor and 4 GB RAM, were used as optimization tools to minimize the overall generation cost of a grid-connected microgrid system. The system parameters and constants of the subject microgrid system, which consisted of three fossil-fuelled generators and one each of microturbine (MT), fuel cell (FC), photo voltaic system (PV) and wind turbine (WT), were gathered from [12]. The codes were executed with 50 population size and 1000 iterations to maintain an unbiased comparative analysis with the algorithms mentioned in literature.

Analysis of Results. Four cases were evaluated viz. grid-connected mode, without RES, islanded mode and fixed base load mode of microgrid operation, and the generation costs obtained are listed in Table 1. Among the four cases evaluated, it was obvious that the grid-connected mode (Case 1) which is the most efficient mode of microgrid operation, turned out to be the cheapest one with $882.5. The second case did not consider the RES, and hence, the generation cost rose up to $1701 due to the increase in contribution of emission cost of the fossil-fuelled DERs. The generation cost of the system in islanded mode of operation turned out to be $1111 as yielded by the proposed MGWOSCACSA. Case 4 is fixed base load scenario where the most efficient and least pollutant emission DER (in this case FC) is fixed to generate the base load (25 kW), and the generation cost is evaluated. This turned out to be the second cheapest case with generation cost $962. Figures 1 and 2 show the hourly load sharing of Case 1 and Case 2, respectively. The increase in the participation of grid and the fossil-fuelled generators in Case 2 increased the emission cost, and hence, the generation cost of the system is maximum in Case 2.

Table 1 Comparative analysis (in $)
Fig. 1
figure 1

Hourly output of DERs for Case 1 using MGWOSCACSA

Fig. 2
figure 2

Hourly output of DERs for Case 2 using MGWOSCACSA

Fig. 3
figure 3

Cost convergence graph of case 1

Fig. 4
figure 4

Cost convergence graph of case 2

Comparative analysis of Optimization tools. All of GWO, MGWO and MGWOSCACSA were executed for 30 individual trials, and their best results are reported in Table 1. Figures 3 and 4 depict the cost convergence curve of all the three optimization techniques used to minimize the generation cost of the microgrid system for Cases 1 and 2, respectively. It can be seen from Figs. 3 and 4 that for all the scenarios proposed MGWOSCACSA yielded the minimum cost among all the optimization tools reported in literature and studied. The maximum time taken by MGWOCSASCA taken to attain the minimum generation cost was 48 s which is much less than the results reported in [12]. It can be seen that MGWOSCACSA converged pretty early yielding best solution for both the cases. Statistical analysis viz. Wilcoxon’s signed rank test was also performed for the proposed algorithm. Let H0 be the hypothesis that there is no significance difference between the methods used to evaluate the generation cost, and all the results discussed so far are obtained using one technique. And let H1 be the reverse hypothesis that contradicts H0. As per Wilcoxon’s signed rank test if p-value of the superior algorithm is less than 0.05, the hypothesis H0 stands obsolete. It can be seen from Table 2 that the p-value for all the cases and scenarios studied is much less than 0.05. This means that there are at least two methods involved to minimize the generation costs out of which proposed MGWOSCACSA is the superior one. Minimum value of standard deviation and maximum hits (93–96%) to the best solution also claim the consistency and robustness of the proposed approach.

Table 2 Statistical analysis of MGWOSCACSA

5 Conclusion

Four different modes of operation were evaluated to minimize the overall generation cost of a grid-connected microgrid system. It was seen that grid-connected mode was the cheapest and also can be considered to be the most reliable mode of operation, whereas excluding RES increases both the generation cost and pollutants emission in atmosphere. Proposed MGWOSCACSA proved to be the superior algorithm in terms of efficiency, consistency, robustness and less computational time when compared to the algorithms reported in the literature as wells as GWO and MGWO. Owing to these capabilities, MGWOSCACSA may be implemented to solve much complex constrained engineering problems.