Introduction

The demand for energy in various countries is continuously on the rise as a consequence of factors such as their expanding industries and rapidly expanding populations1,2. Additionally, fuel depletion and environmental pollution are the main drawbacks of traditional fossil fuel resources, which have recently prompted scientists to find a new energy source that can save energy without having any negative effects on the environment3. Therefore, the scientists thought of alternative renewable energy sources, like wind, geothermal, solar, and hydroelectricity, for generating abundant energy without increasing environmental pollution. Among renewable energy sources, solar photovoltaic (PV) has recently won significant interest over the previous decades due to several merits like low computational cost, low operational expenses, high density of power, and low maintenance3,4,5. The PV panel consists of PV cells related in parallel and series. The manufacturing process and environmental conditions like temperature and light intensity influence the panel output3.

There is a significant information gap in the PV module parameters provided by vendors and manufacturers, which stands as an obstacle to accurately simulating the PV modules3. An ideal electrical equivalent circuit for a solar PV cell would include a diode, a current source, and some resistors3. PV cell models are split into three kinds, depending on whether they include two diodes, single diodes, or triple diodes to accurately estimate the cell's I–V curve3. SDM is considered the simplest model because it includes only five unknown parameters; on the contrary, DDM includes seven known parameters and is considered more precise than SDM. TDM includes nine unidentified parameters and is considered the highest accurate model due to its ability to address the effects of grain boundaries and leakage current coefficients3,6. Over the last few decades, estimating those parameters has been classified as a complex non-linear optimization problem7,8,9,10,11. This problem has been extensively tackled in the literature by either traditional techniques or approximation techniques9. The traditional techniques could not accurately solve this problem due to several reasons, like differentiability and convexity, relying substantially on the initial solution, and falling easily in local optima12. Therefore, the metaheuristic algorithms also referred to as approximation techniques, have been adapted to accurately solve this problem for accurately modeling solar PV systems. This interest is due to their ability to accurately solve several complicated problems in a reasonable time13,14,15,16,17,18,19,20. For example, Abdel-Basset et al.21 designed a new metaheuristic optimizer, namely the nutcracker optimizer, for solving continuous optimization problems. This optimizer was validated using three CEC benchmarks and compared to several metaheuristic algorithms. The experimental findings showed its effectiveness. In the same study, this optimizer was applied to some engineering design problems and proved its effectiveness. In addition, this algorithm was applied to some optimization problems, such as the parameter identification of PV22 and Distribution of Fresh Agricultural Products23, and could achieve outstanding outcomes.

In3, the Northern Goshawk Optimization (NGO) algorithm was adapted for extracting the TDM’s unidentified parameters. NGO’s performance was investigated using three different PV modules and compared to several competing optimizers to show its efficacy. According to the experimental outcomes, NGO could perform better than all the others for convergence speed and final accuracy. The tree seed algorithm (TSA) was also applied to tackle this problem under the RMSE as an objective function1. This algorithm was validated using the STM module and compared to some of the recently-published metaheuristics. The comparison shows its effectiveness over the others. In addition, the seagull optimization algorithm (SOA) was hybridized with the memory saving to preserve the historical best solution, the cosine function to equilibrium between exploration and exploitation operators, and the differential mutation strategy to escape out of local minima24. This hybrid variant of SOA was known as HSOA and employed to identify the unknown values of various parameters in SDM and DDM for various PV modules.

The war strategy optimization (WSO) algorithm has been recently applied to solve this problem with the aid of the NR method to enhance the quality of the obtained solutions25. According to the experimental findings, WSO performed better than several metaheuristic algorithms. The Hunger Game search algorithm was combined with the Laplacian strategy and Nelder-Mead simplex to present a new variant, abbreviated LNMHGS, which could achieve equilibrium between exploration and exploitation operators when applied to identify the unknown values of various parameters in three PV models26. In27, the exploitation operator of the teaching–learning-based optimizer was integrated with the exploration operator of the artificial bee colony to design a new optimizer, denoted as TLABC. This optimizer was applied to find the unidentified parameters of both DDM and SDM. Also, it was compared to several rival algorithms to reveal its effectiveness. The heap-based optimizer was also developed to search for the unidentified parameters of three PV models28. In29, chaotic maps were utilized as an alternative to the random number that was generated in order to exchange between generating a random individual within the search space and updating the current position in accordance with the updating core of the SMA. The authors state that the chaotic maps provide SMA with a more effective exploratory pattern. In addition, the Nelder-Mead simplex approach was incorporated into SMA in order to enhance its convergence speed and achieve better results with fewer function evaluations. CCNMSMA was the abbreviation of this version of SMA that was employed to find the unknown parameters of PV models. The generalized normal distribution optimizer was enhanced by utilizing two powerful methods, which led to the development of a new optimizer known as IGNDO30. This optimizer was utilized in the process of estimating the unknown parameters of TDM. In comparison to the results obtained by many other algorithms, it was able to attain remarkable results. However, this technique necessitates a somewhat higher level of computing expense. In addition to this, it still has a problem with sluggish convergence speed because it takes several function evaluations before it can converge to the results that are required. Rawat et al.31 adapted the grey wolf optimizer to identify those unknown parameters. Table 1 reviews some recently proposed metaheuristic algorithms for estimating the unknown parameters of SDM, DDM, and TDM.

Table 1 Some metaheuristic algorithms proposed recently for the parameter estimation of PV models.

The existing metaheuristic optimization techniques for the parameter estimation problem of PV models suffer from at least one of the following drawbacks: Falling into local optima, slow convergence speed, and high computational cost. To alleviate these shortcomings, a new optimization technique based on improving the Kepler optimization algorithm (KOA) using two effective mechanisms, namely the ranking-based update and exploitation improvement mechanisms, for accurately estimating the unknown parameters of the third, single, and double-diode models is presented in this study. The KOA's exploration operator is encouraged by the first mechanism to reduce the likelihood of getting stuck in local optima, and its exploitation operator is strengthened by the second mechanism to accelerate the convergence to the approximation solution.

Recently, the Kepler optimization algorithm (KOA) was introduced to handle continuous optimization problems46. This algorithm was influenced by Kepler's laws on the motion of planets. These laws demonstrate that four variables can influence the path of the planet around the sun. These elements are reflected in a planet's gravitational force, position, mass, and orbital velocity. KOA views each planet as a candidate solution, and during a planet's motion, it may estimate a new solution to the optimization problem. Those planets closest to the sun improve the exploitation operator, while the others attempt to explore the search space. To the best of our knowledge, this algorithm has not yet been applied to finding the unidentified parameters of DDM, SDM, and TDM. Therefore, in this paper, KOA is applied to this problem to reveal its effectiveness. In addition, it is combined with two effective mechanisms to design a new strong variant called HKOA with better performance to extract the near-optimal values for those parameters more accurately. Both KOA and HKOA are validated using six PV modules and contrasted with several state-of-the-art optimizers to reveal their effectiveness. HKOA, according to the experimental findings, is a powerful alternative since it is able to achieve outstanding outcomes for the utilized PV cells and modules in comparison to all rival optimizers. The key contributions to this study are listed below:

  • Developing the newly proposed KOA for finding the unidentified parameters of DDM, TDM, and SDM.

  • Hybridizing KOA with two effective mechanisms to design a new better variant, namely HKOA, with a better ability to accelerate convergence speed and avoid local optima for estimating those unknown parameters with greater precision.

  • Assessing both KOA and HKOA using the RTC France solar cell and five PV modules

  • Comparing both KOA and HKOA to several competitors to reveal their effectiveness.

  • Based on the experimental findings, HKOA is better than all the compared techniques since it could produce significantly different and superior outcomes.

The following sections are structured as: Section "Problem formulation" discusses the PV models’ mathematical model, Section "Kepler optimization algorithm (KOA)" overviews the classical Kepler optimization algorithm, Section "Proposed algorithm" explains the proposed algorithm, Section "Results and discussion" reports and discusses the experimental findings, and Section "Conclusions and Future Works" states the Conclusion and Future work.

Problem formulation

This paper is presented to identify the unknown parameters of three photovoltaic models, including TDM, DDM, and SDM. The mathematical models of those PV models are presented in the rest of this section.

SDM

Figure 1 displays the SDM’s electrical circuit. The output current of SDM can be computed by Kirchhoff’s Current Law (KCL), as defined in the following formula25,27:

$$I={I}_{ph}-{I}_{D}-{I}_{sh},$$
(1)

where \(I\) represents the solar cell’s current, and \({I}_{ph}\) represents the photocurrent47. Diode current, indicated by the symbol \({I}_{D}\), can be computed using the following formula25,27:

$${I}_{D}={I}_{sd}\left({exp}\left(\frac{V+I*{R}_{s}}{n*{V}_{t}}\right)-1\right),$$
(2)

where \({I}_{sd}\) represents the reverse saturation current of the diode, \(V\) indicates the output voltage, Rs refers to the series resistance, and n is the ideality factor. \({V}_{t}\) is estimated by:

$${V}_{t}=\frac{k*T}{q},$$
(3)

where \(T\) is a symbol to refer to the temperature (Kelvin), \(k\) is a symbol used to refer to the Boltzmann constant, and \(q\) is a symbol used to stand for the charge of the electron, \({I}_{sh}\) presented in Eq. (1) is defined by:

$${I}_{sh}=\frac{V+I*{R}_{s}}{{R}_{sh}},$$
(4)

where \({R}_{sh}\) represents the shunt resistance. The following is a general formula that can be used to calculate \(I\):

Figure 1
figure 1

The equivalent circuit diagram for SDM.

$$I={I}_{ph}-{I}_{sd}\left({exp}\left(\frac{q*\left(V+I*{R}_{s}\right)}{n*k*T}\right)-1\right)-\frac{V+I*{R}_{s}}{{R}_{sh}}.$$
(5)

In order to accurately find the I-V characteristic of the SDM, It is necessary to determine the unknown values of the following parameters: \({I}_{ph}, {I}_{sd}, n, {R}_{s}, {and R}_{sh}\). This estimation process could be represented as an optimization problem, and hence the optimization methods could be utilized to solve it.

DDM

DDM was developed to provide a robust substitute for SDM in conditions where the SDM is suboptimal, such as in low irradiance environments48. The DDM is depicted in Fig. 2 and is made up of two diodes. The first diode serves as a rectifier, while the second compensates for recombination current and solar cell imperfections. The mathematical formula that could be used to compute the DDM’s output current is as follows25,27:

$$I={I}_{ph}-{I}_{sd1}\left({exp}\left(\frac{V+I*{R}_{s}}{{n}_{1}*{V}_{t}}\right)-1\right)-{I}_{sd2}\left({exp}\left(\frac{V+I*{R}_{s}}{{n}_{2}*{V}_{t}}\right)-1\right)-\frac{V+I*{R}_{s}}{{R}_{sh}},$$
(6)

where \({I}_{sd1}\) is the current through the first diode and \({I}_{sd2}\) is the current through the second diode. \({n}_{1}\) and \({n}_{2}\) are the ideality factors. There are seven unknown parameters in this formula: \({I}_{ph}\), \({I}_{sd1}\), \({I}_{sd2}\), \({R}_{s}\), \({R}_{sh}\), \({n}_{1}\), and \({n}_{2}\), which need to be accurately estimated to reliably find the I-V characteristic of the DDM.

Figure 2
figure 2

The equivalent circuit diagram for DDM.

TDM

As illustrated in Fig. 3, a photocurrent source, \({I}_{ph}\), a shunt resistor \({R}_{sh}\), three parallel diodes, and a series resistance \({R}_{s}\) make up the TDM. The TDM’s output current could be estimated by:

$$I={I}_{ph}- {I}_{sd1}\left(exp\left(\frac{V+I{*R}_{s}}{{V}_{t}*{n}_{1}}\right)-1\right)- {I}_{sd2}\left(exp\left(\frac{V+I{*R}_{s}}{{V}_{t}*{n}_{2}}\right)-1\right)- {I}_{sd3}\left(exp\left(\frac{V+I{*R}_{s}}{{V}_{t}*{n}_{3}}\right)-1\right)-\frac{V+I*{R}_{s}}{{R}_{sh}},$$
(7)

where \({I}_{sd3}\) is the current through the third diode, and \({a}_{3}\) represents the third diode’s ideality factor. The TDM’s mathematical model has seven unknown parameters that need to be accurately estimated to maximize the performance of the solar cell. These parameters are namely \({I}_{ph}, {I}_{sd1},{I}_{sd2},{I}_{sd3}, {R}_{s},{R}_{sh},{a}_{1}, {a}_{2}, {\mathrm{ and }a}_{3}\). From above, it is clear that various PV models have different numbers of parameters, where SDM has five parameters, DDM has seven, and TDM has nine. The characteristics of each model are different, and hence the optimization algorithm that could find the near-optimal parameter for a model is not necessarily able to have the same performance for the other models. Therefore, in this study, we strive to design an alternative optimization technique with strong exploration and exploitation operators for estimating those unknown parameters for three PV models.

Figure 3
figure 3

The equivalent circuit diagram for TDM.

Kepler optimization algorithm (KOA)

Recently, a new metaheuristic-based technique, namely the Kepler optimization algorithm (KOA), was presented to tackle continuous optimization problems. This algorithm was inspired by Kepler’s laws of planetary motion. These laws have shown that four factors could control the path of the planet around the sun. These factors are represented in the gravitational force, position, mass, and orbital velocity of a planet. KOA considers each planet as a candidate solution, and during the motion of a planet, it could estimate a new solution for the optimization problem. Those planets near the sun maximize the exploitation capabilities, while the others enhance the exploration capabilities. In brief, analogous to the other metaheuristic algorithms, KOA is based on two operators: exploitation and exploration. The KOA’s flowchart is depicted in Fig. 4. The KOA’s mathematical model is discussed in detail next.

Figure 4
figure 4

KOA’s Flowchart.

Step 1: Initialization step

The KOA, in the beginning, distributes \(N\) planets within the search space, where each planet is comprised of \(d\) dimensions. The formula that is used to distribute the planets is mathematically formulated as follows:

$${X}_{i}^{j}={X}_{i,low}^{j}+r\times \left({X}_{i,up}^{j}-{X}_{i,low}^{j}\right), \left\{\begin{array}{c}i=\mathrm{1,2},\dots ,N\\ j=\mathrm{1,2},\dots ,d\end{array},\right.$$
(8)

where \({X}_{i}\) refers to the ith planet; \({X}_{i,low}^{j}\) and \({X}_{i,up}^{j}\) are the search limits of the jth dimension, respectively. \(r\) is a number selected randomly in the range (0, 1). In addition, KOA has some parameters, like the orbital eccentricity (\(e\)) and orbital period (T), that need to be initialized before starting the optimization process. The orbital eccentricity (\(e\)) could be initialized by:

$${e}_{i}=r, i=1,\dots ,N$$
(9)

Finally, T for each \(it\) h planet could be initialized by:

$${T}_{i}=\left|rn\right|, i=1,\dots ,N,$$
(10)

where \(rn\) is a number selected randomly according to the normal distribution.

Step 2: Defining \(\mathbf{F}\)

The planets' motions around the Sun are governed by gravity, which is considered the fundamental force in the universe. The gravity of each planet varies in accordance with its mass. It's important to note that a planet's speed is affected by the Sun's gravity. When a planet is closer to the Sun, its orbital speed increases, and when it is farther away, the speed decreases. The universal law of gravity, which specifies the strength of the pull between the Sun \({\overrightarrow{X}}_{S}\) and any planet \({\overrightarrow{X}}_{i}\), could be defined as follows:

$${{{\varvec{F}}}_{{\varvec{g}}}}_{i}\left(t\right)={e}_{i}\times \mu \left(t\right)\times \frac{{\overline{M} }_{s}\times {\overline{m} }_{i}}{{{\overline{R} }^{2}}_{i}+\varepsilon }+{r}_{1},$$
(11)

where \(\varepsilon\) contains a small value to avoid division by zero, \({r}_{1}\) is a variable including values generated randomly between 0 and 1. \({\overline{M} }_{s}\mathrm{ and} {\overline{m} }_{i}\) denote the normalized values of the mass of both \({X}_{S} {\text{and}} {X}_{i}\), respectively; the mass \({M}_{s}\) and \({m}_{i}\) of both \({X}_{S} {\text{and}} {X}_{i}\) are respectively computed according to Eqs. (14) and (15); \(\upmu\) is a fixed value to represent the universal gravitational constant;\({e}_{i}\) indicates the eccentricity of a planet’s orbit; and \({\overline{R} }_{i}\) represents the normalized value of the Euclidian distance between \({X}_{i}\) and \({X}_{S}\). The Euclidian distance between \({X}_{i}\) and \({X}_{S}\) could be computed by:

$${R}_{i}\left(t\right)={\Vert {X}_{S}\left(t\right)-{X}_{i}\left(t\right)\Vert }_{2}=\sqrt{\sum_{j=1}^{d}{\left({\overrightarrow{X}}_{Sj}\left(t\right)-{\overrightarrow{X}}_{ij}\left(t\right)\right)}^{2}},$$
(12)
$${\overline{R} }_{i} =\frac{{R}_{i}(t)-{\text{min}}(R(t))}{{\text{max}}\left({\text{R}}({\text{t}})\right)-{\text{min}}(R(t))},$$
(13)
$${M}_{s}={r}_{2}\frac{{fit}_{s}\left(t\right)-worst(t)}{\sum_{k=1}^{N}\left({fit}_{k}\left(t\right)-worst\left(t\right)\right)},$$
(14)
$${m}_{i}=\frac{{fit}_{i}\left(t\right)-worst(t)}{\sum_{k=1}^{N}\left({fit}_{k}\left(t\right)-worst\left(t\right)\right)},$$
(15)
$${\mathrm{where}}\;fit_{s} (t) = best(t) = \mathop {\min }\limits_{{k \in \{ 1,2, \ldots ,N\} }} fit_{k} (t) ,$$
(16)
$$worst(t) = \mathop {\max }\limits_{{k \in \{ 1,2, \ldots ,N\} }} fit_{k} (t) ,$$
(17)

where \({r}_{2}\) is a number chosen at random in the range (0, 1). \({M}_{s}\) represents the mass of \({X}_{S}\), and \({m}_{i}\) represents the mass of \({X}_{i}\). \(\mu (t)\) is defined by:

$$\mu \left(t\right)={\mu }_{0}\times {\text{exp}}\left(-\gamma \frac{t}{{T}_{max}}\right),$$
(18)

where \(\gamma\) is a fixed value; \({\mu }_{0}\) includes an initial value; and \(t\) and \({T}_{max}\) represent the current function evaluation and the maximum function evaluations, respectively.

Step 3: Calculating an object’s velocity

A planet's speed is calculated by its distance from the Sun. In other words, a planet's velocity rises as it draws nearer to the Sun and diminishes as it moves farther away. When a planet or other object approaches the Sun, the Sun's gravity is much stronger, so the planet attempts to accelerate in order to avoid being pulled in. In46, this behavior is simulated using the following mathematical model:

$${V}_{i}\left(t\right)=\left\{\begin{array}{ll} \ell \times \left({2{r}_{4}\overrightarrow{X}}_{i}-{\overrightarrow{X}}_{b}\right)+\ddot{\ell}\times \left({\overrightarrow{X}}_{a}-{\overrightarrow{X}}_{b}\right)+\left(1-{R}_{i-norm}\left(t\right)\right)\times \mathcal{F}\times {\overrightarrow{U}}_{1}\times \overrightarrow{{r}_{5}}\times \left({\overrightarrow{X}}_{i, up}-{\overrightarrow{X}}_{i, low}\right), &\quad if \, {R}_{i-norm}(t)\le 0.5\\ {r}_{4}\times L\times \left({\overrightarrow{X}}_{a}-{\overrightarrow{X}}_{i}\right)+\left(1-{R}_{i-norm}\left(t\right)\right)\times \mathcal{F} \times {U}_{2}\times \overrightarrow{{r}_{5}}\times \left({r}_{3}{\overrightarrow{X}}_{i, up}-{\overrightarrow{X}}_{i, low}\right), &\quad Else\end{array}\right.$$
(19)
$$\ell =\overrightarrow{U}\times \mathcal{M}\times \mathcal{L},$$
(20)
$${\mathcal{L}=\left[\mu \left(t\right)\times \left({M}_{S}+{m}_{i}\right)\left(\frac{2}{{R}_{i}(t)+\varepsilon }-\frac{1}{{a}_{i(t)}+\varepsilon }\right)\right]}^\frac{1}{2},$$
(21)
$$\mathcal{M}=\left({r}_{3}\times \left(1-{r}_{4}\right)+{r}_{4}\right),$$
(22)
$$\overrightarrow{U}=\left\{ {\begin{array}{*{20}l} 0 \hfill & {\overrightarrow {{r_{5} }} \le \overrightarrow {{r_{6} }} } \hfill \\ 1 \hfill & {Else} \hfill \\ \end{array} } \right.,$$
(23)
$${\mathcal{F}} = \left\{ {\begin{array}{*{20}l} 1 \hfill & {if \, r_{4} \le 0.5} \hfill \\ { - 1} \hfill & {Else} \hfill \\ \end{array} } \right.$$
(24)
$$\ddot{\ell}=\left(1-\overrightarrow{U}\right)\times \overrightarrow{\mathcal{M}}\times \mathcal{L}$$
(25)
$$\overrightarrow{\mathcal{M}}=\left({r}_{3}\times \left(1-\overrightarrow{{r}_{5}}\right)+\overrightarrow{{r}_{5}}\right),$$
(26)
$$\overrightarrow{U}_{1}=\left\{ {\begin{array}{*{20}l} 0 \hfill & {\overrightarrow {{r_{5} }} \le {{r_{4} }} } \hfill \\ 1 \hfill & {Else} \hfill \\ \end{array} } \right.,$$
(27)
$${U}_{2}=\left\{ {\begin{array}{*{20}l} 0 \hfill & {{r_{3}} \le {{r_{4} }} } \hfill \\ 1 \hfill & {Else} \hfill \\ \end{array} } \right.,$$
(28)

where \(\overrightarrow{{V}_{i}}\left(t\right)\) stands for the \(ith\) object’s velocity, \({r}_{3}\) and \({r}_{4}\) are two numbers selected at random in the range (0, 1); and \(\overrightarrow{{r}_{5}}\) and \(\overrightarrow{{r}_{6}}\) refer to two vectors, including decimal numbers selected at random in the interval (0, 1). \({\overrightarrow{X}}_{a}\) and \({\overrightarrow{X}}_{b}\) are two solutions picked randomly at random from the current solutions; \({M}_{s}\mathrm{ and }{m}_{i}\) refer to the mass of \({\overrightarrow{X}}_{S}\mathrm{ and} {\overrightarrow{X}}_{i}\), respectively; and \({a}_{i}\) is the semimajor axis of the \(ith\) object’s elliptical orbit. \(\mathcal{F}\) includes either 1 or − 1, selected at random, to change the search direction. \({a}_{i}\) is defined by:

$${a}_{i}\left(t\right)={r}_{3}{\times \left[{T}_{i}^{2}\times \frac{\mu (t)\times \left({M}_{s}+{m}_{i}\right)}{4{\pi }^{2}}\right]}^\frac{1}{3}.$$
(29)

Step 4: Escaping from the local optimum

Most objects in the solar system rotate on their axes and orbit anticlockwise around the Sun; however, there are a few exceptions. This behavior is exploited by KOA in order to break out of local optimal zones by switching the search direction at regular intervals with the help of a flag F. This gives the agents a better chance of efficiently searching the entire space.

Step 5: Updating objects’ positions

The planets travel in their elliptical orbits around the Sun. Those planets get closer to the Sun for a while and then away from it during rotation. KOA simulates this behavior in two stages: exploration and exploitation. The exploration operator is simulated in KOA when the Planets are far from the Sun, while the exploitation operator is achieved when the planets are closer to the Sun. In KOA, this behavior is mathematically defined as follows:

$${\overrightarrow{X}}_{i}\left(t+1\right)={\overrightarrow{X}}_{i}\left(t\right)+\mathcal{F}\times {\overrightarrow{V}}_{i}\left(t\right)+\left({{F}_{g}}_{i}\left(t\right)+\left|r\right|\right)\times \overrightarrow{U}\times \left({\overrightarrow{X}}_{S}\left(t\right)-{\overrightarrow{X}}_{i}\left(t\right)\right).$$
(30)

Equation (30) simulates the Sun's gravitational force on the planets, where this equation uses an additional step size based on calculating the distance between the Sun and the current planet multiplied by the gravitational force of the Sun to assist KOA in exploring the regions surrounding the best-so-far solution and finding better solutions in fewer function evaluations. According to46, when a planet is distant from the Sun, its velocity will often represent the exploration operator of KOA. However, the Sun's gravitational pull affects this velocity, allowing the current planet to marginally exploit regions near the best solution. Meanwhile, as a planet gets closer to the Sun, its velocity skyrockets, allowing it to escape the Sun's gravitational pull. If the best-so-far solution, referred to as the sun, is local minima, velocity represents local optimal avoidance, and the Sun's gravitational pull is the exploitation operator to aid KOA in assaulting the best-so-far solution to find better solutions. Increasing the eccentricity of a planet’s orbit increases the strength of the gravitational pull between the planet and the sun when a planet approaches the point closest to the sun. On the contrary, when the planet gets away from the sun, the gravitational pull is gradually weakened. When the eccentricity approaches 0, the gravitational pull is minimized because the orbit will be gradually converted from an elliptical shape into a circle shape, and hence all the points on this orbit might approximately have the same gravitational force. More details for this step are presented in the original reference for KOA46.

Step 6: Updating distance with the Sun

In an additional effort to improve the KOA's search capabilities, the natural variation in the distance to the Sun and planets over time was simulated. When planets are closer to the Sun, the exploitation operator is activated to enhance the convergence rate, whereas when the Sun is distant, the exploration operator is activated to diminish getting stuck in local optima. This principle is imitated using the controlling parameter \(h\), which varies progressively over time. If this parameter is large, the exploration operator is used to broaden the distance between the planets' orbits and the Sun; otherwise, the exploitation operator is utilized to maximize the reward from regions surrounding the best-to-date solution. This principle’s mathematical model could be defined by:

$${\overrightarrow{X}}_{i}\left(t+1\right)={\overrightarrow{X}}_{i}\left(t\right)\times {\overrightarrow{U}}_{1}+\left(1-{\overrightarrow{U}}_{1}\right)\times \left(\frac{{\overrightarrow{X}}_{i}\left(t\right)+{\overrightarrow{X}}_{S}+{\overrightarrow{X}}_{a}\left(t\right)}{3.0}+h\times \left(\frac{{\overrightarrow{X}}_{i}\left(t\right)+{\overrightarrow{X}}_{S}+{\overrightarrow{X}}_{a}\left(t\right)}{3.0}-{\overrightarrow{X}}_{b}\left(t\right)\right)\right),$$
(31)
$$h=\frac{1}{{e}^{\eta r}},$$
(32)

where \(r\) is a number selected randomly in the range (0, 1), while \(\eta\) is defined as follows:

$$\eta =\left({a}_{2}-1\right)\times {r}_{4}+1,$$
(33)

where \({a}_{2}\) represents a cyclic controlling parameter and could be defined as follows:

$${a}_{2}=-1-\left(\frac{t\%\frac{{T}_{max}}{\overline{TC}}}{\frac{{T }_{max}}{TC}}\right),$$
(34)

where \(TC\) represents the number of cycles, and \(\%\) is the modulo operator.

Step 7: Elitism

This step enacts an elitist strategy to guarantee that planets and the Sun are always in the local-best positions obtained even now, as defined in the following mathematical formula:

$${\overrightarrow{X}}_{i, new}(t+1)=\left\{\begin{array}{ll}{\overrightarrow{X}}_{i}(t+1), &\quad if\,f({\overrightarrow{X}}_{i}(t+1)\le f({\overrightarrow{X}}_{i}(t))\\ {\overrightarrow{X}}_{i}\left(t\right), &\quad Else\end{array}.\right.$$
(35)

Proposed algorithm

The accurate estimation of PV parameters is essential for precise modeling, assessment, and control of PV systems. By knowing the near-optimal values of the PV parameters, the performance, efficiency, and reliability of PV systems at different operating conditions can be significantly optimized49,50. Some of the practical benefits that can be obtained from the proper estimation of PV parameters are as follows49,51:

  • Improved design and sizing of PV systems, such as selecting the optimal number and configuration of PV modules, batteries, inverters, etc.

  • Improved MPPT algorithms, which can modify the PV system's operating point to extract the highest power output under any given scenario.

  • Improved fault diagnosis and detection of PV systems, such as identifying and pinpointing the sources of power losses, degradation, or damage in PV modules or components.

  • More accurate prediction and simulation of the PV system behavior, such as estimating the energy yield, environmental impact, power quality, etc.

Therefore, this paper designs a new optimization technique based on integrating the recently presented KOA with two effective mechanisms for accurate estimation of PV parameters for precise modeling, assessment, and control of PV systems. Those mechanisms are used to enhance the exploration and exploitation capabilities of KOA for accurately solving this complicated optimization problem. Generally, in this section, the different steps of KOA, which are represented in initialization, evaluation, ranking-based update mechanism, exploitation improvement mechanism, and KOA’s pseudocode, are extensively described.

Initialization

Before starting the optimization process, the proposed algorithm creates N solutions with nine, five, or seven unknown parameters according to the tackled PV model. These solutions are then initialized at random within the search boundary of each parameter, as described in Eq. (8). The search limit of each unidentified parameter is described in Table 2. These initialized solutions are evaluated according to the objective function discussed later to compute the quality of each solution and extract the solution with the lowest objective value to represent the best-to-date solution.

Table 2 Search limit for each unidentified parameter.

Objective function (OF)

Finding the unknown parameter values that produce the smallest disparity between the measured and simulated current data is a primary goal when solving the PV models’ parameter identification. Therefore, the RMSE metric between measured and current data is utilized as an OF to determine the quality of the parameters obtained by each solution in the hope of finding the near-optimal solution, which could minimize RMSE as small as possible. The OF’s mathematical formula is as follows:

$$RMSE=f\left({\overrightarrow{X}}_{i}\right)= \sqrt{\frac{1}{M}*{\sum_{k=1}^{M}{\left({I}_{m}-I\left({V}_{e}, {\overrightarrow{X}}_{i}\right)\right)}^{2}}},$$
(36)

where \(I\) and \({I}_{m}\) stand for the estimated current and the measured current, respectively. \(M\) refers to the number of measured data points. \({\overrightarrow{X}}_{i}\) contains the values of the unidentified parameters obtained by the \(ith\) solution. For each solution in the population, the estimated current \(I\left({V}_{e}, {\overrightarrow{X}}_{i}\right)\) is computed by the Newton–Raphson method for each set of experimentally-measured points52.

Ranking-based update mechanism (RUM)

In53, a new mechanism called RUM was proposed to weed out the solutions that could not achieve better solutions in a number of successive iterations, and replace them with new solutions generated using some of the updating schemes. Those schemes must be designed in a manner that aids in covering the regions intractable to a metaheuristic algorithm. The main disadvantage of this mechanism is that no specific updating scheme could be used to generate new solutions. Although this is considered a disadvantage, it is also considered an advantage at the same time because it gives the researchers more flexibility in finding the most relevant schemes that could enhance performance. In53, the author employed an updating scheme that aimed to speed up convergence to the best-to-date solution by shifting the less-beneficial solutions to the region between the best solution obtained yet and the current position. This was done in the hope that a better solution could be found in this region. However, this scheme might lead to falling into local optima when handling the problem considered in this study, which needs strong exploratory patterns to be accurately solved. Therefore, in this study, a new updating mechanism is designed to help enhance the convergence speed in addition to diminishing stagnation in local optima. This mechanism is based on two folds. The first fold is based on borrowing the fish aggregating devices (FADs) from MPA to promote the exploration operator. FADs, according to54, are mathematically represented in the following formula:

$${\overrightarrow{{\text{X}}}}_{{\text{i}}}=\left\{\begin{array}{ll}{\overrightarrow{{\text{X}}}}_{{\text{i}}}+CF*\left[{\overrightarrow{X}}_{i,low}+{r}_{2}*\left({\overrightarrow{X}}_{i,up}- {\overrightarrow{X}}_{i,low}\right)\right]\otimes \overrightarrow{{\text{U}}} &\quad if\,r<FADs\\ {\overrightarrow{{\text{X}}}}_{{\text{i}}}+\left[FADs*\left(1-{\text{r}}\right)+{\text{r}}\right]\left({\overrightarrow{{\text{X}}}}_{{\text{r}}1}-{\overrightarrow{{\text{X}}}}_{{\text{r}}2}\right) &\quad Else\end{array},\right.$$
(37)

where \({\overrightarrow{{\text{X}}}}_{{\text{r}}1}\) and \({\overrightarrow{{\text{X}}}}_{{\text{r}}2}\) are two individuals chosen at random from the current individuals, \({{\text{r}}}_{2}\) is the numerical value selected randomly in (0, 1), \(FADs\) was set to 0.2 in MPA, but here is generated randomly between 0 and 1 to avoid parameter tuning burden, \(\otimes\) is element-wise multiplication operator, \(\overrightarrow{{\text{U}}}\) is a binary vector used to determine whether each dimension in the current solution is updated or not, and \({\text{CF}}\) is an adaptive controlling parameter, which is regenerated in each generation by:

$$CF={(1-\frac{t}{{T}_{max}})}^{\left(2\frac{t}{{T}_{max}}\right)}.$$
(38)

The second fold is based on designing updating schemes capable of further exploring the search space for reaching promising regions, which might contain the desired solution. Those updating schemes were based on the levy flight and normal distribution to give variety in the generated step sizes for covering the search space as much as possible. The second fold is mathematically formulated as follows:

$${\overrightarrow{{\text{X}}}}_{{\text{i}}}=\left\{\begin{array}{ll}{\overrightarrow{{\text{X}}}}_{{\text{i}}}+RL*\left({\text{RL}}*{\overrightarrow{X}}_{S}\left(t\right)-{\overrightarrow{{\text{X}}}}_{{\text{i}}}\right) &\quad if\,r<{r}_{2}\\ {\overrightarrow{{\text{X}}}}_{{\text{a}}}+rn*\left({\text{rn}}*{\overrightarrow{X}}_{b}\left(t\right)-{\overrightarrow{{\text{X}}}}_{{\text{r}}1}\right) &\quad Else\end{array}\right.,$$
(39)

where \({\text{RL}}\) is a numerical value generated according to the levy flight. The tradeoff between the first and second fold within our proposed algorithm is achieved at random, as defined in the following equation:

$${\overrightarrow{{\text{X}}}}_{{\text{i}}} = \left\{ {\begin{array}{*{20}l} Eq. (37) \hfill & if\,{{r}} \le {{r_{2}}} \hfill \\ Eq. (39) \hfill & {Else} \hfill \\ \end{array} } \right.$$
(40)

Before starting the optimization process, a variable is generated for each solution to contain the number of successive times it could not achieve a better solution. In the case that the variable of a solution contains a number greater than the threshold value, this solution will be replaced with a new solution generated under Eq. (40).

Exploitation improvement strategy

The method discussed in the previous section is integrated into KOA to further improve its exploration pattern, but its exploitation operator still needs further improvement to achieve better solutions in lower function evaluations. Therefore, in this paper, an additional improvement strategy, namely the exploitation improvement strategy, is proposed to relate the updating process of the current solution with the best solution achieved yet for searching for a better solution as quickly as possible. This strategy’s mathematical model is presented in the following formula:

$${\overrightarrow{{\text{X}}}}_{{\text{i}}}=\left\{\begin{array}{ll}{\overrightarrow{{\text{X}}}}_{{\text{i}}}\otimes \overrightarrow{{{\text{U}}}_{1}}+\left(\frac{\left({\overrightarrow{{\text{X}}}}_{{\text{i}}}+{\overrightarrow{X}}_{S}\left(t\right)\right)}{2}+\left|{\text{rn}}\right|*\left(\frac{\left({\overrightarrow{{\text{X}}}}_{{\text{i}}}+{\overrightarrow{X}}_{S}\left(t\right)\right)}{2}-{\overrightarrow{{\text{X}}}}_{{\text{i}}}\right)\right)\otimes \left(1-\overrightarrow{{{\text{U}}}_{1}}\right) &\quad if\,r<{r}_{2}\\ {\overrightarrow{X}}_{S}\left(t\right)+{{\text{r}}}_{1}*\left({\overrightarrow{X}}_{S}\left(t\right)-{\overrightarrow{X}}_{i}\left(t\right)\right)+(1-{{\text{r}}}_{1})*\left({\overrightarrow{X}}_{a}\left(t\right)-{\overrightarrow{X}}_{b}\left(t\right)\right) &\quad Else\end{array}\right.,$$
(41)

where \({{\text{r}}}_{1}\) is a number selected at random in (0, 1), and \(\overrightarrow{{{\text{U}}}_{1}}\) is a binary vector assigned with 1 and 0 according to a convergence rate (CR) factor estimated in the experiments section to prevent premature convergence that might be caused by the first state in the previous equation. In brief, \(\overrightarrow{{{\text{U}}}_{1}}\) is mathematically defined as follows:

$$\overrightarrow{{{\text{U}}}_{1}}=\left\{\begin{array}{ll}1 &\quad i f \overrightarrow{{\text{R}}}<CR\\ 0 &\quad Else\end{array}\right.,$$
(42)

where \(\overrightarrow{{\text{R}}}\) is a vector including numbers generated at random between 0 and 1. Finally, this strategy and RUM are integrated with the classical KOA in an effective manner to enhance its search potential. In a more sense, the classical KOA is extensively applied at the beginning of the optimization process for covering all the possible regions within the search space that might involve the desired solution. In addition, to further improve the KOA’s exploration operator, the RUM is applied to replace the solutions of KOA that could not achieve better solutions for RK successive iterations. With increasing the current function evaluation, HKOA increases the probability of the exploitation improvement strategy to extensively exploit the regions around the best solution achieved yet for finding the required solution. This optimization procedure is repeated until the termination criterion is met. In brief, the pseudocode of HKOA is listed in Algorithm 1.

Algorithm 1
figure a

Pseudo-code of HKOA.

Results and discussion

This section is presented to assess the HKOA performance for the parameter identification of three PV models for a solar cell called RTC France and five PV modules, including Ultra, PWP, STP6, KKC, and STM. All those PV modules are based on three different PV models: SDM, DDM, and TDM, to investigate the accuracy of the proposed HKOA for estimating the unknown parameters for them. Those PV modules are used in our experiments due to their wide use in the literature and their different characteristics that aid in discovering the stability of the newly proposed algorithms55,56. Those characteristics at STC are the number of cells connected in series in PV modules (\({N}_{s}\)), the open-circuit current–voltage (\({V}_{oc}\)), the maximum output current (\({I}_{m}\)), the maximum output power (\({P}_{m}\)), the short-circuit current point (\({I}_{SC}\)), the maximum output voltage (\({V}_{m}\)), the short-circuit current–temperature factor(\({k}_{i}\)), and the temperature coefficient of open-circuit voltage (\({k}_{v}\)) and are set in our experiments as reported in Table 257.

In our conducted experiments, HKOA was executed 30 independent times on each module to remedy its stochastic nature, and its outcomes are analyzed in terms of several performance metrics, such as standard deviation (SD), best RMSE, average (Avg) RMSE, and Worst RMSE. In addition, the convergence curve is used in the comparison to disclose the convergence speed of each algorithm; the Wilcoxon rank-sum test is used to show the difference between each pair of algorithms; and the computational cost is used to compute the time consumed by each algorithm until completing the optimization process. To reveal the HKOA’s effectiveness, its values for various performance metrics were contrasted with three different categories of optimizers: the first category includes some recently-published metaheuristic techniques, such as pelican optimization algorithm (POA)58, gorilla troops optimizer (GTO)59, dandelion optimizer (DO)60, and classical KOA46; the second category includes two high-performing optimization techniques, such as particle swarm optimization (PSO)61 and LSHADE_cnEpSin (cnEpSin)62; the last category includes some of the high-performing optimization techniques proposed recently for tackling the parameter estimation problem of PV models, including ranking-based whale optimization algorithm (RWOA)55, interior search algorithm (ISA)63, and spider wasp optimizer (SWO)64. The controlling parameters of those rival optimizers were set as suggested in the cited paper, except for \({T}_{max}\) and \(N\), which are set to 25,000 and 25, respectively, to guarantee a fair comparison. The search limit of each unidentified parameter in various PV models is set as stated in Table 3. Ultimately, the experiments in this section were conducted on a computer that possessed the following attributes: 32GB RAM, 2.40GHz Intel(R) Core(TM) i7-4700MQ processor, 64-bit Windows 10 Professional. All algorithms are implemented in MATLAB R2019a.

Table 3 Characteristics of the RTC France solar cell and PV modules.

RTC France solar cell

The unknown parameters of DDM, TDM, and SDM based on the RTC France solar cell are estimated in this section using HKOA to disclose its effectiveness. Information on current and voltage was collected from a commercial silicon RTC France solar cell of 57 mm diameter and operating at a temperature of 33 °C 64.

  1. A.

    Single-Diode model

Table 4 reports the results of various performance metrics after each optimizer was run 30 times on the SDM-based RTC France. This table shows that HKOA is comparable to SWO and better than the others for all performance metrics. The WRS test is also utilized to show that there is a difference between the HKOA’s findings and those of the other algorithms. For each pair of algorithms, the WRS test provides a number called a p-value, which indicates whether there is a difference between each pair of algorithms or not. The p-value of HKOA against each algorithm is reported in Table 4, which shows that HKOA is substantially different from all competitors except SWO. Since HKOA is competitive with SWO in terms of the majority of performance metrics and the WRS test, an additional performance indicator called the convergence curve is used to disclose the HKOA's ability to reach the near-optimal solution faster than the others. This indicator for each algorithm within the whole optimization process is computed and reported in Fig. 5a. Inspecting this figure reveals that HKOA is the best algorithm, where it could reach the smallest RMSE after 10,000, while SWO, which is considered the second-best algorithm, needs around 15,000 to reach the smallest RMSE. This superiority is due to the exploitation improvement mechanism that aids in exploiting the regions around the best-so-far solution, thereby aiding in accelerating the convergence speed of HKOA in comparison to KOA and all compared algorithms. Additionally, P–V and I-V curves based on the best parameters obtained by HKOA are depicted in Fig. 5b,c to show the consistency between the estimated and measured current. Those figures show that the unknown parameters estimated by HKOA could reach current and power that are highly consistent with the measured.

Table 4 Comparison among algorithms using RTC France cell under SDM.
Figure 5
figure 5

Comparison among algorithms under RTC France cell based on SDM.

  1. B.

    Double-Diode model

After each method has been executed thirty times on the DDM-based RTC France, various performance indicators are calculated and provided in Table 5. This table shows that HKOA achieves the highest ranking, followed by cnEpSin in second place, while ISA is considered the worst-performing algorithm. The p-value, which is also included in this table, demonstrates that there is a substantial difference between the outcomes of HKOA and those of its competitors. Also, Fig. 6a depicts the convergence rate for each algorithm to further demonstrate the HKOA’s superiority. From this figure, HKOA could achieve the smallest RMSE after around 10,000 function evaluations, while the compared algorithms until completing the maximum number of function evaluations could not reach a smaller RMSE value than that achieved by HKOA. Therefore, HKOA is considered faster and better than all the compared algorithms when applied to estimate the unknown parameters of the DDM-based RTC France solar cell. Figure 6b,c show that the P–V and I-V estimated by the parameters of HKOA are highly consistent with the measured data.

Table 5 Comparison between HKOA and its competitors using RTC France cell under DDM.
Figure 6
figure 6

Comparison among algorithms under RTC France cell based on DDM.

  1. B.

    Triple-Diode model

In this section, HKOA is applied to identify nine unknown parameters of TDM based on RTC France to further reveal its performance. Table 6 shows the outcomes obtained by various algorithms for this case. This table shows that HKOA is the best-performing algorithm, SWO is the second-best algorithm, and DO is the worst. This table also includes the p-value between HKOA and each rival optimizer; this value indicates that HKOA results are different from those of all other algorithms. The convergence curve for each algorithm is illustrated in Fig. 7a to further illustrate HKOA's superiority. According to this figure, HKOA was able to obtain the lowest RMSE after about 10,000 function evaluations, meanwhile, all rival algorithms were unable to acquire a lower RMSE value than HKOA up until they finished the maximum number of function evaluations. As a result, when used to estimate the unknown parameters of the TDM-based RTC France solar cell, HKOA is thought to be quicker and more accurate than all of the compared algorithms. In addition, Fig. 7b,c are presented to show consistency between the I-V and P–V curves estimated by HKOA against the measured curves. Those figures show that the estimated data is highly identical to the measured data.

Table 6 Comparison among algorithms using RTC France cell under TDM.
Figure 7
figure 7

Comparison among algorithms under RTC France cell based on TDM.

PWP module

In this section, the HKOA’s performance is investigated to identify the unknown parameters of three PV models under a well-known PV module, namely the PWP module.

  1. A.

    Single-Diode model

After each algorithm was executed 30 times on the SDM-based PWP, the results of various performance metrics are shown in Table 7. Based on this data, it is clear that HKOA is superior to all the other optimizers for the majority of the performance metrics. To further demonstrate that the HKOA's outcomes are distinct from those of its competitors, we employ the WRS test. Table 7 reports the p-value of the WRS test between HKOA and each rival algorithm. This value demonstrates that, except for SWO, HKOA is substantially different from its competitors. In addition, the convergence curve is presented in Fig. 8a to show how HKOA gets closer to the best-to-date solution in less time. This figure shows that after fewer than 10,000 function evaluations, HKOA was able to obtain the lowest RMSE. In contrast, some competing algorithms, such as GTO and SWO, at the end of the optimization process could approximate slightly the smallest RMSE value obtained by HKOA. Thus, HKOA is considered to be the best when used to estimate the unknown parameters of the SDM-based PWP module. In addition, Fig. 8b,c depict I-V and P–V curves using the best parameters obtained by HKOA, demonstrating consistency between the measured and calculated current.

Table 7 Comparison among algorithms using PWP under SDM.
Figure 8
figure 8

Comparison among algorithms under PWP module based on SDM.

  1. B.

    Double-Diode model

After each method has been executed thirty times on the PWP based on DDM, various performance metrics are computed and displayed in Table 8. Inspecting this table shows that HKOA is the best, followed by cnEpSin in second place, and ISA is the algorithm with the worst performance. This table also includes the p-value, which demonstrates that there is a difference between the outcomes of HKOA and those of its competitors. The convergence curve shown in Fig. 9a further illustrates the superiority of HKOA. In a more general sense, this figure shows that HKOA had a convergence speed competitive with that of GTO until reaching the function evaluation of 15,000. Afterwards, HKOA could converge faster and achieve an RMSE lower than all the compared algorithms. As a result, HKOA is regarded as the best method for estimating the unknown parameters of the DDM-based PWP module. The I-V and P–V estimated by the HKOA parameters are highly consistent with the measured data, as shown in Fig. 9b,c.

Table 8 Comparison between HKOA and its competitors using PWP under DDM.
Figure 9
figure 9

Comparison among algorithms under PWP module based on DDM.

  1. C.

    Triple-Diode model

In this section, HKOA is utilized to estimate nine unidentified TDM parameters based on the PWP module in order to disclose more about its performance. Table 9 demonstrates the results acquired by various algorithms in this scenario. Based on this table, HKOA is the algorithm with the greatest performance, followed by SWO in second place and DO in last place. This table also includes the p-value between HKOA and each algorithm compared; this value indicates that the results of HKOA are distinct from those of all other algorithms. Figure 10a depicts the convergence curves for each algorithm to further demonstrate HKOA's superiority. This figure shows that after around 12,000 function evaluations, HKOA was able to obtain the lowest RMSE. In contrast, all competing algorithms were unable to obtain a lower RMSE value than HKOA even after completing the maximum number of function evaluations. Thus, HKOA is considered to be faster and more accurate than all of the analyzed algorithms when used to estimate the unknown parameters of the TDM-based PWP module. Moreover, Fig. 10b,c are provided to illustrate the consistency between the I-V and P–V curves estimated by HKOA and the measured curves. These figures demonstrate that the anticipated and measured data are extremely similar.

Table 9 Comparison among algorithms using PWP under TDM.
Figure 10
figure 10

Comparison among algorithms under PWP module based on TDM.

STM6-40 module

This section investigates the efficacy of HKOA for identifying the unknown parameters of three PV models under a well-known PV module called the STM module.

  1. A.

    Single-Diode model

Table 10 displays the findings of used performance metrics after each algorithm was run 30 times on the SDM-based STM. This table demonstrates that HKOA is better than all the competing optimizers. We use the WRS test to further show that the results obtained by the HKOA are unique in comparison to the other algorithms. In Table 10, the p-value that the WRS test calculated when comparing HKOA to its competitors. This value shows that HKOA is significantly different from the other methods statistically. Additionally, the convergence curve is shown in Fig. 11a. This figure demonstrates that HKOA was able to attain the lowest RMSE after fewer than 10,000 function evaluations. Conversely, after completing the optimization process, some rival algorithms, including SWO, might be able to roughly match the least RMSE that HKOA was able to acquire. Therefore, HKOA is thought to be the optimum alternative for estimating the unknown parameters of the SDM-based STM module. I–V and P–V curves are shown in Fig. 11b,c using the best parameters found by HKOA, illustrating the similarity between the estimated and observed current.

Table 10 Comparison among algorithms using STM under SDM.
Figure 11
figure 11

Comparison among algorithms under STM module based on SDM.

  1. B.

    Double-Diode model

Table 11 summarizes the results of 30 times of each algorithm on the DDM-based STM in terms of a variety of performance measures. Based on these results, it appears that HKOA is the most effective algorithm, with RWOA coming in second and ISA coming in last. There is a statistically significant difference between HKOA and its competitors' outcomes, as illustrated by the p-value that is also reported in this table. Figure 12a depicts the convergence curve of each algorithm, further illustrating the HKOA's superiority. Broadly speaking, this figure shows that, after around 5,000 function evaluations, HKOA was able to achieve the lowest RMSE. On the other hand, after approximately 22,000 function evaluations, RWOA can roughly equal the lowest RMSE that HKOA was able to obtain. Consequently, HKOA is the best option for predicting the DDM-based STM module's unknown parameters. Figure 12b,c display the similarity between the measured data and the data estimated by HKOA.

Table 11 Comparison among algorithms using STM under DDM.
Figure 12
figure 12

Comparison among algorithms under STM module based on DDM.

  1. C.

    Triple-Diode model

In this section, HKOA estimates nine unidentified TDM parameters based on the STM module to reveal its performance. Table 12 shows algorithm outcomes in this circumstance. HKOA performs best, followed by SWO, while DO is the worst. The p-value between HKOA and the rival algorithms shows that its results are distinct. Figure 13a shows each algorithm's convergence curves to show HKOA's supremacy. This figure, in general, indicates that HKOA was able to obtain the lowest RMSE following about 12,000 function evaluations. Conversely, following about 17,000 function evaluations, RWOA can roughly match the lowest RMSE that HKOA managed to achieve. For estimating the unknown characteristics of the TDM-based STM module, HKOA is therefore the most effective algorithm. Figure 13b,c illustrate that the HKOA-estimated I-V and P–V curves match the measured curves.

Table 12 Comparison among algorithms using STM under TDM.
Figure 13
figure 13

Comparison among algorithms under STM module based on TDM.

Kyocera KC200GT module

Due to the high accuracy of TDM over both DDM and SDM, in this section and the next two sections, we will further focus on observing the performance of HKOA for estimating its nine known parameters under three different PV modules. After 30 independent trials for each algorithm on the TDM-based KKC, a number of performance indicators are estimated and reported in Table 13. This table illustrates that HKOA ranks first, RWOA is the second best, and POA is the worst algorithm. This table also provides the p-value that compares HKOA's findings to those of each algorithm; this value demonstrates that HKOA's results are unique from those of all other algorithms. Figure 14a illustrates the convergence curves for each algorithm to further affirm HKOA's supremacy; this figure illustrates HKOA's superiority. In addition, Fig. 14b,c are presented to demonstrate that the I-V and P–V curves estimated by HKOA and the measured curves are consistent with one another.

Table 13 Comparison among algorithms using KKC under TDM.
Figure 14
figure 14

Comparison among algorithms under KKC based on TDM.

Ultra 85-P module

To further study the HKOA’s performance over TDM, in this section, an additional PV module called Ultra 85-P is utilized. The findings obtained by various algorithms over this module are displayed in Table 14. The algorithm with the best performance, according to this table, is HKOA, followed by SWO, and POA is the worst. This table also contains the p-value between HKOA and each rival optimizer; this value indicates that HKOA's results are distinct from those of all other algorithms. Figure 15a depicts the convergence curves for each algorithm to further illustrate HKOA's superiority; this figure shows HKOA's superiority. In addition, Fig. 15b,c illustrate the similarity between the I–V and P–V curves estimated by HKOA and the measured curves.

Table 14 Comparison among algorithms using Ultra under TDM.
Figure 15
figure 15

Comparison among algorithms under Ultra 85-P based on TDM.

STP module

Finally, in this section, the STP module is utilized to further study the HKOA's performance over TDM. Table 15 displays the results acquired by various algorithms on this module. According to this table, the algorithm with the greatest performance is HKOA, followed by SWO, while DO is classified as the worst algorithm. This table also includes the p-value between HKOA and each algorithm compared; this value indicates that HKOA's results are distinct from all other algorithms. Figure 16a illustrates the convergence curves for each algorithm to further demonstrate HKOA's superiority; this figure demonstrates HKOA's superiority. Moreover, Fig. 16b,c depict the similarity between the I-V and P–V curves estimated by HKOA and the measured curves.

Table 15 Comparison among algorithms using STP under TDM.
Figure 16
figure 16

Comparison among algorithms under STP based on TDM.

Computational cost

After clarifying the HKOA’s effectiveness in the former sections, it is time to show its efficiency under the computational cost consumed from the beginning of the optimization process to the end. Therefore, the average computational costs for each algorithm within 30 independent times on various PV modules based on TDM are computed and reported in Fig. 17. According to this figure, the computational cost for all algorithms is nearly competitive, except for DO, which consumes nearly a third of the computational cost of the others. Despite that, DO could not be considered a strong alternative for extracting the unknown parameters of various PV models because it has weak performance compared to HKOA. In general, since HKOA could achieve outstanding outcomes in a reasonable time, it is considered a strong alternative for tackling the parameter estimation problem of PV models.

Figure 17
figure 17

Comparison between HKOA and its competitors in terms of computational cost over TDM.

HKOA’s sensitivity analysis

Accurate determination of the best values for the newly proposed controlling parameters, namely RK and CR, is an essential step to maximize the performance of HKOA when applied to dealing with parameter estimation of the PV models. Therefore, extensive experiments were performed on a variety of PV models under a wide range of values, and the results of those experiments are summarized and presented in Fig. 18. Observing this figure illustrates that the HKOA performance is significantly enhanced when RK and CR are 4 and 0.2, respectively. The classical KOA’s parameters are all set according to what is recommended in46. In brief, HKOA’s parameters are listed in Table 16.

Figure 18
figure 18

HKOA’s parameter tuning.

Table 16 HKOA’s parameters.

Conclusions and future works

This paper introduces a new technique for approximating the unidentified parameters of three PV models, namely TDM, DDM, and SDM. This technique is called a hybrid KOA and is based on integrating the recently proposed KOA with two effective mechanisms, namely the ranking-based update and exploitation improvement mechanisms, to enhance its exploration and exploitation capabilities for accurately solving this complex optimization problem. The first mechanism is used to promote the KOA’s exploration operator to diminish getting stuck in local optima, while the second mechanism promotes the exploitation operator to fulfill a better solution in smaller function evaluations. Both KOA and HKOA are verified using the RTC France solar cell and five PV modules, and their effectiveness is determined by comparing them to eight rival algorithms. Experimental findings indicate that HKOA is the most effective method for parameter estimation of TDM, DDM, and SDM since it could produce significantly different and superior results for various tackled PV modules. Although the proposed HKOA could achieve outstanding outcomes for this problem, it still suffers from some shortcomings, such as the parameter tuning problem and a slightly high computational cost, which might affect its performance when applied to other real applications. Therefore, in the future, we will design new search mechanisms based on chaotic maps or opposition-based theory to improve the performance of KOA in terms of reducing the additional control parameters and minimizing high computational requirements. In addition, our future work will investigate the performance of HKOA for several other optimization problems like estimating the unknown parameters of fuel cells, image denoising, image segmentation, image registration, image enhancement, image fusion, and feature selection.