1 Introduction

In present day scenario, many countries are trying to shift their focus from conventional sources of energy to renewable sources of energy because of limited availability and increasing cost of fossil fuels, environmental issues, global warming and many others. Global warming and air pollution are major side effects of fossil fuels. According to research [1,2,3,4,5,6] several countries are now focusing on the use of renewable energy sources to a large extent to meet their increasing power demand and to protect environment. Generally, renewable energy is characterized as the energy which can be obtained from resources which can be replenished on their own. There are many renewable energy sources i.e. solar energy, hydro energy, wind energy, biomass energy, wave energy/marine currents and tidal energy. Sustainable energy sources are all depend on the direct or indirect utilization of solar energy. For future energy needs, the use of renewable energy sources are the only solution, as these are clean and cheap in comparison to non-renewable energy sources. Among all these sources, solar energy is very prominent non-conventional energy source due to its infinite availability, ease of installation, pollution and noise free nature [6, 7]. In the past years due to high initial cost and poor efficiency, solar energy could not be explored commercially. Through continuous research efforts the cost of solar cell has come down and it’s efficiency has improved, hence it has drawn attraction of researchers for further research [7]. By using a device named as PV cell or solar cell, solar energy can be converted directly into electrical energy. There are numerous types of PV cells like amorphous silicon PV cell (a-Si), organic solar cell (OPV), bio-hybrid PV cell, cadmium telluride PV cell (CdTe), dye-sensitized solar cell (DSSC), concentrated PV cell (CVP and HCVP), copper indium gallium selenide solar cells (CI(G)S), photoelectrochemical cell (PEC), crystalline silicon solar cell (c-Si), gallium arsenide germanium solar cell (GaAs), hybrid solar cell, polycrystalline solar cell (multi-Si), thin-film solar cell (TFSC) etc [8].

To analyze the behavior of solar cells, different representative models have been studied. A few of them are single, double and triple diode models. By estimating the parameters of these representative circuits, a designer can easily analyze the behavior of these cells under different operating conditions. Hence, in this paper the parameter extraction using IGWO of single diode model and double diode model for three different cells i.e. thin-film, monocrystalline cell and polycrystalline cell have been carried out.

The reasons for selection of the above three types of PV cells to study effects of temperature and irradiance on them are discussed elsewhere [9, 10]:

  • Solar irradiance and temperature vary throughout the day causing the efficiency of solar cell to vary. Whenever the solar irradiance increases, short circuit current and open circuit voltage also increase resulting in the shift of the maximum power point. To avoid this the position of solar cells can be rearranged according to the situation.

  • Second factor, which affects the efficiency of solar cell is temperature. Photon production speed is boosted up as the temperature increases. This rapidly increases the reverse saturation current and by this band gap reduces. In this manner, this leads to marginal changes in current, but major changes in voltage.

Thus rise in temperature acts as a negative factor. To avoid this the position of solar cells can be rearranged according to the situation.

To construct a PV module, many PV cells are grouped together. Now researchers are focusing not only to reduce the cost of PV cells but also focus to enhance the reliability and efficacy of PV systems [11,12,13,14]. Among numerous numbers of existing models, researchers mainly used single and double diode model because complexity of the network increases exponentially increases as the number of diodes increase [15,16,17]. Single diode model is known for its fast convergence rate, simplicity and acceptable accuracy. Due to these reasons single diode model is commonly used model than others and also known as \(R_S\) or five parameter model. However, it has some limitations regarding to temperature variations. There are five parameters to extract in the single diode model i.e. ideality factor (\(\psi\)), reverse saturation current (\(I_{rsc}\)), photocurrent (\(I_{dmc}\)), series resistance (\(R_{SE}\)) and parallel resistance (\(R_{SH}\)). In double diode model as one more diode is added making the network more complex. As one more diode is used in double diode model, loss in depletion region is occurred due to recombination of carriers [18]. In double diode model, there are seven parameters to be extracted i.e. diode ideality factor (\({\psi }_1\),\({\psi }_2\)), series resistance (\(R_{SE}\)), shunt resistance (\({R_{SH}}\)), reverse saturation current of one diode (\(I_{rsc_1}\)) and second diode (\(I_{rsc_2}\)) and photovoltaic current (\(I_{dmc}\)). Three diode model is also used where accuracy matters more over complexity. For this type of model, number of involved parameters increases upto 10. To find optimum circuit parameters of the PV device, transcendental equations are also required to relate I–V characteristic.

Utilization of metaheuristic algorithms for extraction of the representative models of solar panels have been addressed in past researches.Usually these approaches employ an objective function that is based on the minimization of the error of predicted and experimental values of current and voltage of PV panels at several data points. While exercising the optimal solutions different representative models can be utilised. In these approaches the fundamental data are not easily available at open and short circuit operating conditions, hence authors of [11] used a piece-wise I–V curve fitting method known as compound method to obtain differential values at these operating points. Authors of reference [19] extracted parameters of solar cell by using experimental IV characteristics of Si and Multi-junction solar cells. Authors presented comparative analysis of three different optimization methods based on Newton-Raphson method and Levenberg-Marquardt algorithm and the last method was based on gradient search. Some of the optimization approaches like [19] are based on the initial guess and calculation of the gradient, hence a high probability is there when an optimization routine results in a local solution. To over come this, multi point search solution techniques are employed. The application of Artificial Bee Colony (ABC) algorithm was explored by Diego Oliva et al. [20]. To extract parameters of solar panel Flower Pollination Algorithm (FPA) [21] was applied and explained nicely. Readers are further directed to the reference [15, 22] for reading the literature reviews on solar cell modelling and parameters estimation methods. The objective function given in [23] is used to minimize by a modified version of ABC algorithm which is highly effective version. The authors also compared the results with many other algorithms proving their algorithm much faster and accurate. Applications of Whale Optimization Algorithm (WOA) and its improved versions were explored in references [24, 25]. In these approaches opposition theory and different prey hunting mechanisms have been applied for enhancing the optimization capabilities of the WOA. Authors of [26] presented an objective function based on three important points and showcased that an approximate characteristics of PV panel can be obtained with the help of this analysis. Authors of this manuscript are motivated with the fact that these data are not abundant and practically not available for designers during the installation and commissioning of the panels. Further, the applications of metaheuristics in diverse fields such as in references [27,28,29,30,31,32,33] motivated authors to conduct this study with GWO improved variant.

In this paper, Intelligent Grey Wolf Optimizer (IGWO) is applied to solve parameter extraction process of solar panel by using two different representative models namely single diode and double diode models with three different films. The work is considered as an extension work of already published by Saxena et al. [34]. IGWO is a recently developed new variant of GWO. In IGWO, opposition based learning and a sinusoidal truncated function have been incorporated with conventional GWO to increase the search capability for better exploitation and exploration. With a sinusoidal truncated function, the search capability is increased and faster convergence can be achieved by using opposition based learning. With implementation of IGWO, it is possible to minimize the error sum in both single and double diode models. A comparison of IGWO with GWO and their variants is also presented in the paper. Fast convergence rate and optimality of the results are the main motivation behind the selection of IGWO compared to GWO.

After successful implementation of IGWO on some standard benchmark problems and a problem that is highly nonlinear and stochastic in nature as strategic bidding, authors are motivated to apply IGWO on parameter extraction process of solar panel representative models. Following are the major research contributions of the manuscript:

  1. 1.

    An objective function that comprises of the error data points of short circuit, open circuit condition and maximum power point is evolved and modelled for three films and two representative models namely single diode and double diode models.

  2. 2.

    To compare various variants of GWO algorithm in extraction process of representative models and present analysis of the performance by exhibiting statistical attributes of the independent runs and convergence property analysis.

  3. 3.

    To compare the performance of the algorithms using different statistical analysis that includes paired t test, Wilcoxon rank-sum analysis and two sample t test and analyze the performance of the algorithm.

Remaining part of this manuscript is organized as follows: in Sect. 2 brief details of solar cell modelling and numerical data are presented, in Sect. 3 formulation of objective function is presented. Section 4 explains the details of native GWO and implementation steps of IGWO. In Sect. 5 results of the implementation of IGWO on solar cell parameter extraction process are explained and exhibited. The conclusion and future directions of the research work are shown in conclusion section.

2 Solar cell modelling and numerical data

It is very essential to understand a specific model which portrays the electrical conduct of solar cells. There are numerous proposed and developed equivalent circuit models out of which single diode model and double diode models are used commonly.

2.1 Single diode model

A single diode model is considered mostly due to its accuracy, fast convergence rate and simplicity (Figs. 1, 2, 3, 4).

Fig. 1
figure 1

Representative equivalent circuit of PV module (single-diode model)

Single diode model’s I–V characteristic can be shown mathematically as [35]:

$$\begin{aligned} {{I_O}} = {I_{dmc}} - {I_{rsc}}\bigg [exp\bigg ({\frac{q({V}+{I}{R_{SE}})}{{\psi }k{N_S}T}}\bigg )-1\bigg ]-\bigg (\frac{{V}+{I_{O}}{R_{SE}}}{R_{SH}}\bigg ) \end{aligned}$$
(1)

For design and process of optimization, deep understanding of the parameters of PV cell is important. There are three cases at three crucial points:

Case-1 V=\(V_{OC}\) and \(I_{O}=0\) at open circuit point, then Eq. (1) reduces to:

$$\begin{aligned} I_{dmc} = {I_{rsc}} \bigg [exp\bigg (\frac{q{V_{OC}}}{{\psi }k{N_S}T}\bigg )-1\bigg ] + \frac{V_{OC}}{R_{SH}} \end{aligned}$$
(2)

Case-2 \(V=0\) and \(I_{O}=I_{SC}\) for short circuit point, then from Eq. (1) we get:

$$\begin{aligned} I_{dmc} = I_{SC} + {I_{rsc}} \bigg [exp\bigg (\frac{q{R_{SE}}{I_{SC}}}{{\psi }k{N_S}T}\bigg )-1\bigg ] + \frac{{R_{SE}}{I_{SC}}}{R_{SH}} \end{aligned}$$
(3)

from Eqs. (2) and (3), we get,

$$\begin{aligned} I_{rsc} = \frac{{I_{SC}} + {\frac{{R_{SE}}I_{SC}}{{R_{SH}}} - \frac{V_{OC}}{R_{SH}}}}{{exp\Big (\frac{q{V_{OC}}}{{\psi }k{N_S}T}\Big )}-exp\Big (\frac{q{R_{SE} {I_{SC}}}}{{\psi }k{N_S}T}\Big )} \end{aligned}$$
(4)

Substituting Eqs. (4) into (2),

$$\begin{aligned} I_{dmc} = \frac{\Big ({I_{SC}} + {\frac{{R_{SE}}I_{SC}}{{R_{SH}}} - \frac{V_{OC}}{R_{SH}}}\Big ) \Big [exp\Big (\frac{q{V_{OC}}}{{\psi }k{N_S}T}\Big )-1\Big ]}{{exp\Big (\frac{q{V_{OC}}}{{\psi }k{N_S}T}\Big )}-exp\Big (\frac{q{R_{SE} {I_{SC}}}}{{\psi }k{N_S}T}\Big )} + \frac{V_{OC}}{R_{SH}} \end{aligned}$$
(5)

Case-3 \(V=V_{MPP}\) and \(I_O=I_{MPP}\) at Maximum Power point, Eq. (1) reduces in:

$$\begin{aligned} I_{MPP} = I_{dmc} - I_{rsc}\Bigg [exp\bigg ( \frac{q(V_{MPP}+R_{SE} I_{MPP})}{{\psi }k{N_S}T}\bigg )-1\Bigg ] - \frac{V_{MPP}+{R_{SE}}{I_{MPP}}}{R_{SH}} \end{aligned}$$
(6)

2.2 Double diode model

By adding one more diode parallel to the existing diode is another model to show solar cell electrical conduct. Although it increases the network complexity but results in higher efficiency.

Fig. 2
figure 2

Representative equivalent circuit of PV module (double-diode model)

Mathematical representation of double diode model can be shown as:

$$\begin{aligned} I_O = I_{dmc} -I_{D1} - I_{D2} - \frac{V + I{R_{SE}}}{R_{SH}} \end{aligned}$$
(7)

where \(I_{D1}\) and \(I_{D2}\) are shockley diode equations for first and second diode respectively, Eq. (7) can be rewritten as:

$$\begin{aligned} I_O= I_{dmc} -{I_{{rsc}_1}}\Big [exp\Big (\frac{q(V+{R_{SE}}{I_O})}{{{\psi }_1}k{N_S}T}\Big )-1\Big ] - {I_{{rsc}_2}}\Big [exp\Big (\frac{q(V+{R_{SE}}{I_O})}{{{\psi }_2}k{N_S}T}\Big )-1\Big ] - \frac{V+{R_{SE}}{I_O}}{R_{SE}} \end{aligned}$$
(8)

Here we consider three cases at three crucial points which are:

Case-1 \(V=V_{OC}\) and \(I_O=0\) at open circuit point, then from Eq. (8) we can get:

$$\begin{aligned} I_{dmc} = {I_{{rsc}_1}}\Big [exp\Big (\frac{q{V_{OC}}}{{{\psi }_1}k{N_S}T}\Big )-1\Big ] + {I_{{rsc}_2}}\Big [exp\Big (\frac{q{V_{OC}}}{{{\psi }_2}k{N_S}T}\Big )-1\Big ] + \frac{V_{OC}}{R_{SH}} \end{aligned}$$
(9)

Case-2 when \(V=0\) and \(I_O=I_{SC}\) at short circuit point, therefore Eq. (8) can be rewritten as :

$$\begin{aligned} I_{dmc} = I_{SC} + {I_{{rsc}_1}}\Big [exp\Big (\frac{q{R_{SE}}{I_{SC}}}{{{\psi }_1}k{N_S}T}\Big )-1\Big ] + {I_{{rsc}_2}}\Big [exp\Big (\frac{q{R_{SE}}{I_{SC}}}{{{\psi }_2}k{N_S}T}\Big )-1\Big ] + \frac{{R_{SE}}{I_{SC}}}{R_{SH}} \end{aligned}$$
(10)

from Eqs. (9) and (10) we find:

$$\begin{aligned} I_{{rsc}_2} = \frac{{I_{SC}}+{\frac{{R_{SE}}{I_{SC}}}{R_{SH}}}-\frac{V_{OC}}{R_{SH}}-{I_{{rsc}_1}}\Big [exp\Big (\frac{q{V_{OC}}}{{{\psi }_1}k{N_S}T}\Big )-exp\Big (\frac{q{R_{SE}}{I_{SC}}}{{{\psi }_1}k{N_S}T}\Big )\Big ]}{{exp\Big (\frac{q{V_{OC}}}{{{\psi }_2}k{N_S}T}\Big )}-exp\Big (\frac{q{R_{SE} {I_{SC}}}}{{{\psi }_2}k{N_S}T}\Big )} \end{aligned}$$
(11)

substituting Eqs. (11) into (9):

$$\begin{aligned} I_{dmc}= & {} {I_{{rsc}_1}}\Big [exp\Big (\frac{q{V_{OC}}}{{{\psi }_1}k{N_S}T}\Big )-1\Big ] \nonumber \\&\quad +\frac{{I_{SC}}+{\frac{{R_{SE}}{I_{SC}}}{R_{SH}}}-\frac{V_{OC}}{R_{SH}}-{I_{{rsc}_1}}\Big [exp\Big (\frac{q{V_{OC}}}{{{\psi }_1}k{N_S}T}\Big )-exp\Big (\frac{q{R_{SE}}{I_{SC}}}{{{\psi }_1}k{N_S}T}\Big )\Big ]}{\Big [ {exp\Big (\frac{q{V_{OC}}}{{{\psi }_2}k{N_S}T}\Big )}-exp\Big (\frac{q{R_{SE} {I_{SC}}}}{{{\psi }_2}k{N_S}T}\Big )\Big ] {\Big [exp\Big (\frac{q{V_{OC}}}{{{\psi }_2}k{N_S}T}\Big )-1\Big ]}^{-1}} + \frac{V_{OC}}{R_{SH}} \end{aligned}$$
(12)

Case-3 \(V=V_{MPP}\) and \(I_O=I_{MPP}\) at maximum power point, then from Eq. (8) we obtain:

$$\begin{aligned} I_{MPP}= & {} I_{dmc}-{I_{{rsc}_1}}\Big [exp\Big (\frac{q(V_{MPP}+{R_{SE}}I_{MPP})}{{{\psi }_1}k{N_S}T}\Big )-1\Big ] \nonumber \\&\quad -{I_{{rsc}_2}}\Big [exp\Big (\frac{q(V_{MPP}+{R_{SE}}I_{MPP})}{{{\psi }_2}k{N_S}T}\Big )-1\Big ] - \frac{V_{MPP}+{R_{SE}}I_{MPP}}{R_{SH}} \end{aligned}$$
(13)

2.3 Numerical data

In this work, three types of solar cell modules i.e. monocrystalline, polycrystalline and thin-film are considered. Table 1 shows the typical data which is given by the designer. It is obvious to describe that at standard test condition of 1000 \(\mathrm{W/m}^2\) and 25 \(^{\circ }\)C temperature, designer gives the data of voltage and current at three crucial points.

Table 1 Electrical parameters for PV cells at standard test conditions

3 Objective function

The main objective of our optimization problem is to find out the values of different parameters of PV modules considered. These values must satisfied the standard values given in Table 1 at all the three crucial points. For single diode model three parameters are extracted through data-sheet information i.e. \(\psi\), \(R_{SE}\) and \(R_{SH}\). Parameters \(I_{rsc}\) and \(I_{dmc}\) can be calculated from Eqs. (4) and (5) respectively. In double diode model five parameters i.e. \(\psi _1\), \(\psi _2\), \(R_{SE}\), \(R_{SH}\) and \(I_{rsc_1}\) are extracted and two parameters i.e. \(I_{rsc_2}\) and \(I_{dmc}\) can be calculated from Eqs. (11) and (12) respectively.

Single diode model

Case-1 As depicted in Eq. (2) the error corresponds to open circuit is given by:

$$\begin{aligned} {err}_{OC} = {I_{rsc}} \bigg [exp\bigg (\frac{q{V_{OC}}}{{\psi }k{N_S}T}\bigg )-1\bigg ] + \frac{V_{OC}}{R_{SH}} - {I_{dmc}} \end{aligned}$$
(14)

Case-2 As depicted in Eq. (3) the error corresponds to short circuit is given by:

$$\begin{aligned} {err}_{SC} =I_{SC} + {I_{rsc}} \Big [exp\Big (\frac{q{R_{SE}}{I_{SC}}}{{\psi }k {N_S}T}\Big )-1\Big ]+{\frac{{R_{SE}}I_{SC}}{R_{SH}}}-{I_{dmc}} \end{aligned}$$
(15)

Case-3 As depicted in Eq. (3) the error corresponds to Maximum Power Point can be be given by:

$$\begin{aligned} {err}_{MPP} = I_{dmc} - I_{rsc}\Bigg [exp\bigg ( \frac{q(V_{MPP}+R_{SE} I_{MPP})}{{\psi }k{N_S}T}\bigg )-1\Bigg ] - \frac{V_{MPP}+{R_{SE}}{I_{MPP}}}{R_{SH}} - I_{MPP} \end{aligned}$$
(16)

Double diode model

Case-1 As depicted in Eq. (9) the error corresponds to open circuit can be given by:

$$\begin{aligned} {err}_{OC} = {I_{{rsc}_1}}\Big [exp\Big (\frac{q{V_{OC}}}{{{\psi }_1}k{N_S}T}\Big )-1\Big ] + {I_{{rsc}_2}}\Big [exp\Big (\frac{q{V_{OC}}}{{{\psi }_2}k{N_S}T}\Big )-1\Big ] + \frac{V_{OC}}{R_{SH}} - I_{dmc} \end{aligned}$$
(17)

Case-2 From Eq. (10) short circuit point error is:

$$\begin{aligned} {err}_{SC} = I_{SC} + {I_{{rsc}_1}}\Big [exp\Big (\frac{q{R_{SE}}{I_{SC}}}{{{\psi }_1}k{N_S}T}\Big )-1\Big ] + {I_{{rsc}_1}}\Big [exp\Big (\frac{q{R_{SE}}{I_{SC}}}{{{\psi }_2}k{N_S}T}\Big )-1\Big ] + \frac{{R_{SE}}{I_{SC}}}{R_{SH}} - I_{dmc} \end{aligned}$$
(18)

Case-3 From Eq. (13) maximum power point error is:

$$\begin{aligned} {err}_{MPP}= & {} I_{dmc}-{I_{{rsc}_1}}\Big [exp\Big (\frac{q(V_{MPP}+{R_{SE}}I_{MPP})}{{{\psi }_1}k{N_S}T}\Big )-1\Big ] \nonumber \\&\quad -{I_{{rsc}_2}}\Big [exp\Big (\frac{q(V_{MPP}+{R_{SE}}I_{MPP})}{{{\psi }_2}k{N_S}T}\Big )-1\Big ] - \frac{V_{MPP}+{R_{SE}}I_{MPP}}{R_{SH}} - I_{MPP} \end{aligned}$$
(19)

Now sum of the square of errors is taken as the main objective function for optimization.

$$\begin{aligned} ERR={{err}^2_{OC}} + {{err}^2_{SC}} +{{err}^2_{MPP}} \end{aligned}$$
(20)

4 Brief overview of GWO and development of intelligent grey wolf optimizer (IGWO)

In this section, details of applied algorithm GWO and its recently developed variant IGWO are presented.

4.1 Grey wolf optimizer

It is a contemporary population-based swarm intelligence process. Mirjalili et al. [38] proposed this method, which is motivated by grey wolf behavior. In nature, grey wolves have the qualities of hunting mechanism and leadership hierarchy and GWO imitates these advantages. Grey wolves belong to canidae family. Usually, on an average 5-12 members of grey wolves prefer to live in a group. The wolves are classified in four categories: Alpha wolves are the dominant wolves in all four categories and are also the decision makers. After alpha wolves, beta wolves come in second position as per their dominance. Beta wolves are used to assist alpha wolves in decision making or in other activities of group. The order given by the alpha and beta wolves are followed by the delta wolves. In the hierarchy, the last position is occupied by omega wolves. They play role of scapegoat in wolf pack. Some applications of GWO have been covered in references [39,40,41]

Fig. 3
figure 3

As per dominance uptodown hierarchy of grey wolves

The important procedures elaborated in the algorithm are as follows:

4.1.1 Encircling the prey

Mathematical representation of the prey encircled by the grey wolves can be given as:

$$\begin{aligned} \overrightarrow{N}= & {} |\overrightarrow{M}.\overrightarrow{Y}_p(t)-\overrightarrow{Y}(t)| \end{aligned}$$
(21)
$$\begin{aligned} \overrightarrow{Y}(t+1)= & {} {\overrightarrow{Y}_p(t)}-{\overrightarrow{K}}.{\overrightarrow{N}} \end{aligned}$$
(22)

where current iteration is represented by t, \(\overrightarrow{Y}\) is position vector of grey wolf, coefficient vectors are \(\overrightarrow{K}\) and \(\overrightarrow{M}\), and \(\overrightarrow{Y}_p\) is the position vector of the prey. We can calculate the vectors \(\overrightarrow{K}\) and \(\overrightarrow{M}\) as follows:

$$\begin{aligned} \overrightarrow{K}= & {} 2{\overrightarrow{c}}.{\overrightarrow{r}_1}-\overrightarrow{c} \end{aligned}$$
(23)
$$\begin{aligned} \overrightarrow{M}= & {} 2.\overrightarrow{r}_2 \end{aligned}$$
(24)

where control vector \(\overrightarrow{c}\) decreases linearly from 2 to 0 and \(r_1\) and \(r_2\) are the random numbers.

4.1.2 Hunting the prey

It is not possible to find proper location of prey in the search space. Hence, to require the social hierarchy three best solutions (\({\alpha }, {\beta }\) & \({\delta }\)) are kept. This fact can be visualized by following mathematical equations :

$$\begin{aligned} {\overrightarrow{N}}_{\alpha }= & {} |{{\overrightarrow{M}}_1}{\overrightarrow{Y}_{\alpha }} - {\overrightarrow{Y}}| ,\quad {\overrightarrow{N}}_{\beta } = |{{\overrightarrow{M}}_2}{\overrightarrow{Y}_{\beta }} - {\overrightarrow{Y}}| , \quad {\overrightarrow{N}}_{\delta } = |{{\overrightarrow{M}}_3}{\overrightarrow{Y}_{\delta }} - {\overrightarrow{Y}}| \end{aligned}$$
(25)
$$\begin{aligned} {\overrightarrow{Y}_x}= & {} {{\overrightarrow{Y}_{\alpha }}}-{\overrightarrow{A}_x}.({\overrightarrow{D}_{\alpha }}), \quad {\overrightarrow{Y}_y}= {{\overrightarrow{Y}_{\beta }}}-{\overrightarrow{A}_y}.({\overrightarrow{D}_{\beta }}), \quad {\overrightarrow{Y}_z}= {{\overrightarrow{Y}_{\delta }}}-{\overrightarrow{A}_z}.({\overrightarrow{D}_{\delta }}) \end{aligned}$$
(26)
$$\begin{aligned} {\overrightarrow{Y}}_{(t+1)}= & {} \frac{({\overrightarrow{Y}_x}+{\overrightarrow{Y}_y}+{\overrightarrow{Y}_z})}{3} \end{aligned}$$
(27)

According to alpha wolves above equations represent position updation, where the distances of the prey are \({\overrightarrow{N}_{\alpha }}\), \({\overrightarrow{N}_{\beta }}\) and \({\overrightarrow{N}_{\delta }}\) from \({\alpha }\), \({\beta }\) and \({\delta }\) wolves respectively and positions of \({\alpha }\), \({\beta }\) and \({\delta }\) wolves are \({\overrightarrow{Y}_x}\), \({\overrightarrow{Y}_y}\) and \({\overrightarrow{Y}_z}\) respectively.

4.1.3 Attacking prey

Accountability of this stage is for exploitation and it can be controlled by linear decrement in \(\overrightarrow{c}\). Grey wolves are empowered by using linear decrement in \(\overrightarrow{c}\) to assault the prey, while it stops moving. By changing \(\overrightarrow{c}\) we can control the fluctuations in \(\overrightarrow{K}\) i.e. there are more fluctuations in \(\overrightarrow{K}\) if the value of \(\overrightarrow{c}\) is higher.

Fig. 4
figure 4

Flow of IGWO

4.2 IGWO

IGWO is a recently developed variant of GWO [34]. To increase the search capacity two modifications have been applied for superior exploration and exploitation. The first one is for better exploitation and exploration, in which control parameter is incorporated by using the sinusoidal truncated function. In the second modification, opposition based learning is used to provide better exploration.

4.2.1 Control vector updation

In IGWO, direction and position control parameter \(\overrightarrow{c}\) is varied as a truncated sinusoidal function rather than to decrease linearly as per Eqs. (28) and (29). Grey wolves quit moving after hunting, this action is imitated by linear decrement in \(\overrightarrow{c}\). During hunting, the values of \(\overrightarrow{c}\) are higher in first half where as in second half values of \(\overrightarrow{c}\) decrease very rapidly as compared with the classical GWO which is shown in Fig. 5. With the higher values of \(\overrightarrow{c}\) the search capability increases during hunting and it mimics the following behavior more efficiently.

$$\begin{aligned} \kappa& {}= {\pi }{\times }{\frac{Current \ Iteration}{Maximum \ Iteration}} \end{aligned}$$
(28)
$$\begin{aligned} c& {}= 2 {\times } \Big [{1- {sin^2}{\Big ({\frac{\kappa }{2}}}\Big )}\Big ] \end{aligned}$$
(29)
Fig. 5
figure 5

By using sinusoidal truncated function variation of control parameter

4.2.2 Opposition based learning

In optimization methods, search starts from some initial guess or from a random point. If the initial point is near to the optimal solution then convergence can be achieved faster. On the other hand, if the chosen initial point is far away from the optimal location the convergence takes more time. Hamid R. Tizoosh introduced an opposition based learning approach in 2005 [42]. The search for the solution is done in every direction simultaneously. The basic concepts of opposition based learning are stated below:

Definition 1

Let a real number is y\(\epsilon\)[a,b], then the opposite number of y is defined by:

$$\begin{aligned} \overline{y} = a+b-y \end{aligned}$$
(30)

Definition 2

Let a point in Q dimensional space is A=(\({y_1},{y_2},....,{y_Q}\)), where \(y_{t} \epsilon R\), \(\forall \ t \epsilon\) {1,2,...,Q} and bounded by [a,b], the opposite points matrix can be given by \(\overrightarrow{A} = [{\overrightarrow{y_1}, \overrightarrow{y_2}, \overrightarrow{y_3},......,\overrightarrow{y_Q}}]\). Hence

$$\begin{aligned} \overrightarrow{y_i} = [a_t+b_t - y_t] \end{aligned}$$
(31)

4.3 Discussion

Unlike previous published approaches on GWO, the variant IGWO show cases the importance of bridging mechanism between the exploration and exploitation phase. The similar researches have been carried in references [43, 44]. However, a chaotic mechanism has been proposed by the authors in [45]. These algorithms have successfully showcased the impact of proper bridging between exploration and exploitation phases. Along with this, implication of opposition theory has also been showcased in [46].These examples are sufficient scientific proof that an adaptive bridging between diversification and intensification phases and some initial population diversification through opposition based learning can substantially enhance the optimization virtues of algorithm.

5 Results

In this section, simulation results for three different solar cells are analyzed with the application of IGWO algorithm. Both single and double diode models are running 30 times autonomously in this contextual study. Performance of IGWO is compared with other variants of GWO namely Modified Grey Wolf Optimizer (MGWO) [47], Grouped Grey Wolf Optimizer (GGWO) [48], Improved modified Grey Wolf Optimizer (ImGWO) [49], Modified Grey Wolf Optimizer (mGWO) [50] and Oppositional based Grey Wolf Optimizer (OGWO) [51].

5.1 Results for single diode model

The single diode model is simulated for extraction of parameters. For fair comparison, values of maximum iterations and search agents are kept same in all optimization techniques. Three parameters (\(R_{SE}\), \(R_{SH}\) and \(\psi\)) are extracted by using the algorithm, while the rest two parameters (\(I_{dmc}\) and \(I_{rsc}\)) are calculated from the mathematical relation they share with the extracted parameters. The convergence curve of IGWO and the variants of GWO for monocrystalline cell are shown in Fig. 6, which shows the behavior of the algorithm. From this figure it can be concluded that IGWO converge faster than other algorithms. The parameter values extracted for monocrystalline cell, polycrystalline cell and thin films are shown in Table 2. The error analysis is depicted in Table 4 in terms of its mean, standard deviation, minimum (best) and maximum (worst) values, which are obtained from the optimization process. The mean value of error obtained from IGWO drops down to \(10^{-15}\) which is the best obtained result as compared to other variants and the standard deviation values are also optimal which is clear from Table 4. Low value of standard deviation which is a good indicator shows better solution quality. The scatter diagram shows that the parameter values shifts over a reasonably wide range. The scatter diagram of the optimal solutions for 30 run of these parameters is shown in Fig. 7. The scatter plot is pairs of numerical data, with one variable along each axis, to look for a relationship between them and if the variables are correlated, the points will fall along a line or curve.

Fig. 6
figure 6

Convergence curve of monocrystalline-film by single diode model

Fig. 7
figure 7

Scatter diagram using various algorithm for single-diode model of monocrystalline cell

Fig. 8
figure 8

Convergence curve of polycrystalline-film by single diode model

Fig. 9
figure 9

Scatter diagram using various algorithm for single-diode model of polycrystalline cell

Fig. 10
figure 10

I–V characteristics for a monocrystalline cell b polycrystalline cell, c Thin-film of Single diode model

The same optimization study is carried out for polycrystalline and thin film solar cells. The results of both polycrystalline and thin film cells are obtained under similar conditions as applied on monocrystalline PV cell. The convergence curve of polycrystalline solar cell is shown in Fig. 8 and the scatter of the optimal solutions of all the algorithms are shown in Fig. 9. The mean value of polycrystalline solar cell is \(8.5081E-12\) and the value of standard deviation is \(4.2902E-11\) which are optimal for IGWO according to Table 4. The optimal values are shown in boldface. The convergence curve and scatter diagram of thin film PV cell are represented in Figs. 11 and 12 respectively. The optimal mean value of thin film is \(7.0430E-15\) and standard deviation is also the best for IGWO. The I–V characteristics of single diode model for all three films are shown in Fig. 10, which describe that these I–V characteristics satisfy the standard test conditions.

Fig. 11
figure 11

Convergence curve for thin-film by single diode model

Fig. 12
figure 12

Single diode model’s scatter diagram using various algorithm of thin-film cell

Table 2 Parameters values for single diode model

5.2 Double diode model

In double diode model, five parameters (\(\psi _1\), \(\psi _2\), SE, \(R_{SH}\) and \(I_{rsc_1}\)) are extracted by using IGWO algorithm and the rest two parameters (\(I_{rsc_2}\) and \(I_{dmc}\)) are determined by the mathematical relations, they share with the extracted parameters. The parameters obtained for all three PV cells i.e. monocrystalline, polycrystalline and thin-film are given in Table 3. Table 4 represents the comparison of error analysis of IGWO with other variants of GWO. The mean and SD values are not the best in case of monocrystalline cell but these are not far from those obtained for the optimal solution. The convergence curve of monocrystalline solar cell is shown in Fig. 13 which depicts the behavior of IGWO in comparison with other GWO variants.

Fig. 13
figure 13

Monocrystalline film result comparison of double diode model

Fig. 14
figure 14

Polycrystalline convergence curve result comparison of double diode

Fig. 15
figure 15

Thin-film convergence curve result comparison of double diode

Fig. 16
figure 16

I–V characteristics for a monocrystalline cell b polycrystalline cell c thin-film of double diode model

Similarly, the optimization performance is studied on polycrystalline and thin-film solar cell. The mean and standard deviation values of polycrystalline PV cells show optimal solution but for thin film mean and standard deviation values are not optimal. These values are not very far from those obtained for optimal solution which shows that IGWO handles optimization satisfactorily. The convergence curve for polycrystalline cell is shown in Fig. 14 which shows that the convergence rate of IGWO is much better than other algorithms. For thin film, convergence curve is shown in Fig. 15. The mean and standard deviation values are at acceptable level compared to other algorithms. The I–V characteristics of double diode model are shown in Fig. 16 for all three films.

Table 3 Parameters values for double diode model
Table 4 Comparative analysis of error in objective function of representative models between IGWO and other variants of GWO

This study can be summarized by the following points:

  1. 1.

    Single and double diode models of three solar cells are considered for parameter optimization. The comparative error analysis for single and double diode models are shown in Table 4. For single diode model mean and standard deviation values are optimal for all three PV cells, on the other hand for double diode model, polycrystalline cell has the optimal mean and standard deviation values.

  2. 2.

    For monocrystalline PV cell, mean value of double diode model is \(1.0760E-11\) which is near to the best mean value of GWO i.e. \(8.1409E-12\). Similarly, for double diode thin film PV cell, mean value is \(1.0726E-11\) which is close to the optimal solution of ImGWO i.e. \(9.5102E-12\). Hence for both PV cells results obtained using IGWO are comparable to results obtained using other methods.

5.3 Execution time analysis

As per Fig. 17, it can be easily seen that execution time of algorithms with IGWO is competitive. However, in the cases of internal loop chaotic algorithm takes more time. The execution time is calculated as the mean value of 30 independent runs of each algorithm and simulations are performed on intel Core (TM) i5-9400 cpu, 8 GB Ram computing machine. From the analysis it can be said that sinusoidal bridging and opposition based learning mechanism help IGWO to get acceleration in exploitation phase.

Fig. 17
figure 17

Execution time analysis

5.4 Validation of the results: statistical methods

It is quite empirical to state that metaheuristic algorithms possess randomness in nature and hence, the clear interpretation cant be drawn from the results of independent runs. It may be possible that for one instance particular algorithm gives better results and in next instances it fails. In such situations, various statistical tests can be conducted. In this section results of those statistical tests are presented that includes Wilcoxon Rank-sum test.

Results of Wilcoxon Rank-sum test has been depicted in Table 5 . The column entries of table are the p values associated with the rank-sum test when competitor algorithm is compared with IGWO. Results of independent runs (30) are stored in an array for each algorithm and compared separately with the results of IGWO. p values less than 0.05 indicates that a significant difference exists between compared algorithm and IGWO, hence , it can be said that if IGWO is performing better in one set of runs in an optimization process it will produce same results and outperforms the competitor for another sets of optimization process. We observed that the p values for this test are less than 0.05 for both representative models and for all algorithms.

Table 5 Comparative rank-sum analysis algorithms for extraction of single and double diode models
Table 6 Comparative analysis of algorithms for t-test
Table 7 Comparative analysis of algorithms for t-test2

SD(Mono), SD(Poly) SD(Thin) are the results of representative models single diode realization with Monocrystalline, Polycrystalline and thin films. The same is applicable for double diode representative models. p values that favors IGWO optimization efficacy are depicted in bold face. Further, the t test has also been conducted for the competitor algorithms.

Table 6 presents paired sample t test where a comparison between the results of independent runs of IGWO is carried out with other algorithms, the null hypothesis is that both the algorithms produces results that have normal distribution with mean equal to zero and unknown variance. The results where the p values are less than 0.05 and H values 1 are affirmative cases where a clear distinction can be obtained between IGWO and other variants.

Table 7 presents analysis of ttest 2 (two sample t test) where the indicated two samples are the results accumulated by IGWO in different independent runs and competing samples are from different algorithms. Null hypothesis states that the data used in two samples come from independent random samples from normal distributions with equal means and equal but unknown variances, the results indicated in the table depicts the hypothesis value and p values of the test H values 1 and p values less than 0.05 are affirmative cases where IGWO is outperforming other algorithms.

6 Conclusion

This paper has proposed an application of a recently developed version of GWO termed as IGWO. Optimal extraction of parameters of solar cells has been done using experimental values of signature voltage and currents at three different crucial points of I–V characteristic of solar cells. Implementation details of the developed algorithm and its results obtained from optimization processes have been exhibited to show case supremacy of the developed version over some recently developed version of GWO. Following are the noteworthy contributions of this manuscript:

  1. 1.

    An objective function that comprises minimum data sheet information based on only three operating conditions is employed and solved with the help of different optimizers for extracting the parameters of representative models of solar panel.

  2. 2.

    Three configurations of films have been considered to perform simulation studies. We observe that the performance of IGWO is satisfactory as compared with other optimizers.

  3. 3.

    The effectiveness of IGWO is shown by the convergence curve of error values of PV cells by using single and double diode model as compared to other variants.We observe that mechanism of opposition based learning as well as bridging through sinusoidal operator help the algorithm from local minima entrapment and provide a boost in convergence.

  4. 4.

    It has also been observed through execution time analysis that this accuracy is not compromised with the execution time as the execution time is competitive as compared with all competitors. Further, the statistical analyses in form of rank-sum test, ttest and sample ttest have also been included to showcase the optimization efficacy of the algorithm.

To extract parameter values of PV cells with new objective function by considering multiple points and testing of IGWO on more challenging problems like protein structure prediction, AGC regulator design and Model Order Reduction are kept for future scope.