Abstract

In a dynamic shift, lowering reliance on fossil fuels and greenhouse gas emissions is now a top goal. This is accomplished through expanding the usage of renewable energy. Solar photovoltaic (PV) energy is now more than ever at the heart of many cities’ policies. Improving the efficiency of PV systems is a current research goal. The key challenge in rectifying complex systems is to establish a model that correctly reproduces the system’s dynamic behaviour. The goal function and optimization method utilised are indicative of the model parameters’ correctness. This paper presents a mix of differential evolution (DE) and Harris hawk optimisation (HHO). The suggested technique estimates the parameter vector that minimises the objective function to the greatest extent possible. This is for the many diode models. The procedure is validated using experimental data acquired at a known temperature and irradiance. The root mean square error (RMSE) is used to assess the method’s effectiveness. A comparison is made between the objective function of the hybrid approach presented in this publication and previously authorised methods. The strategy utilised is as straightforward as many others stated in our predecessors’ publications, and this applies to both models analysed. When compared to the simple version of the Harris hawk optimizer, this approach allows for more experimentation.

1. Introduction

Energy production, mostly based on fossil fuels, has created a number of concerns in recent years, putting it at the centre of worldwide debate [1]. Long-term, this pattern of energy production will result not only in the depletion of fossil resources but also in a slew of environmental issues [2]. As a result, several governments have chosen to progressively forgo fossil fuels in order to move toward so-called renewable sources, which have the major benefit of being limitless [3].

Solar energy has a promising aspect in comparison to others because of its accessibility and availability [4]. Despite the extreme sensitivity of these systems to external factors [5], it is mostly employed in power generating [6]. As a result, accurate photovoltaic cell models are critical for optimising and controlling PV systems [7]. To represent the electrical behaviour of the PV solar cell, a mathematical model is typically using a single diode [8], the double diode [9], and even the three diode [10]. All these models take into consideration the various environmental conditions, for the proper operation of the different models. The accuracy of PV models is mostly determined by unknown factors. The selection of values indicating the ideal combination of parameters for a solar cell or PV module is often treated as an optimization problem with a reduced objective function. Because of its multidimensional and complicated presentation, traditional approaches have significant constraints in terms of both speed and quantity of variables [7]. The demand for a more effective means of dealing with the aforementioned difficulties is continuously increasing. To tackle optimization problems, metaheuristic algorithms are increasingly being used [7]. The demand for a more effective means of dealing with the aforementioned difficulties is continuously increasing. To tackle optimization problems, metaheuristic algorithms are increasing and can be used.

The modified artificial bee colony (MABC) was established by Jamadi et al. in their study [11], to prevent freshly generated random solutions and to identify unknown parameters of solar cell models. To determine the unknown parameters of solar cell models, Abd Elaziz and Oliva presented [12] and used the improved opposition-based whale optimization algorithm instead of random numbers to prevent freshly created random solutions. Gnetchejo et al. proposed in [13] a GAMS method to solve the estimation’s problem of the solar cells. The Manta-ray foraging optimizer method was utilised by El-Hameed et al. in [14], to identify the intrinsic characteristics of the three diode model of a solar module. The bald eagle search method was used by Nicaire et al. in [15], to extract the intrinsic parameters of the one and two diode model of a solar cell and photovoltaic module. In [16], Ndi et al. estimate single and double diode model parameters using the equilibrium optimizer approach, which is inspired by models used to analyze dynamic and equilibrium states.

Heidari et al. [17] proposed the Harris hawk optimizer (HHO) technique. This method resembles the participative hunting behaviour of Harris’ hawks in the wild. The method calls for numerous hawks to approach a prey, generally a rabbit, from different directions in order to catch it off guard. The HHO is based on the surprise assault of Harris’ hawks and consists of two stages: exploration and exploitation. This technique has yielded intriguing results in parameter estimation [18]. The HHO technique has local search restrictions during the exploration phase. Hybridization, utilising mainly analytical approaches, is a frequent solution for overcoming these restrictions. This approach has proven to be effective in a variety of applications, including internet data clustering [19], power flow [20, 21], cybersecurity [22], mechanism [23], and even in the estimate of diode model parameters [24, 25]. Despite providing excellent results for extracting parameters from the diode model, metaheuristic methods have several drawbacks. BES, for example, is extremely sensitive to beginning settings, HHO has sluggish convergence, and EO has fragile stability. In this work, the Harris hawk optimizer (HHO) approach is used in conjunction with differential evolution (DE) to estimate the parameters of single and double diode models that fully replicate the genuine behaviour of a solar cell. The upgrade consists of including a differential evolution exploration phase to increase the exploration capabilities of HHO. As a consequence, the Harris hawk optimization algorithm, when combined with the differential evolution (HHODE) approach, gives methods for exploring and employing the Harris hawk optimization algorithm, which has been upgraded with the potential of differential evolution.

In short, we provide a unique estimate technique for single diode model (SDM) and double diode model (DDM) parameters that integrates Harris hawk optimization and differential evolution. Differential evolution is being utilised to improve the Harris hawk optimization technique’s exploitation experience. We are testing the proposed work on a well-known dataset, the R.T.C France commercial solar cell dataset, and in the best case, we will be able to compare the proposed method with a number of algorithms to verify its effectiveness, where it may outperform some algorithms while achieving the same results as others. The following section of this manuscript presents the generalities related to the PV solar cell model.

The paper is organised as follows: first, we offer generalities about the PV cell model, and then we detail the approach suggested in this study. This will be followed by a summary of the method’s outcomes and, finally, a conclusion.

2. Models of PV Cell and Objective Function

One of the most widely used models in the literature is the model with the single diode. This model is widely utilised in research because of its behaviour, which is closer to that of a solar cell than the ideal model, and its mathematical computation simplicity [26]. Kirchhoff’s theorem may be used to represent the current I at the solar cell’s output in the following equation:

where is the saturation current, the ideality factor is , the Boltzmann constant is , the electron charge is , the cell temperature is in kelvin, the series resistance is , and the shunt resistance is . According to equation (1), there are five parameters that must be precisely predicted in order to acquire the greatest performance from solar cells. This parameter is .

Figure 1 gives us a simplified representation of this model.

Aside from the model with single diode, the model with double diodes is also often used in literature due to its ability to include the recombination limitations of the previously mentioned model [6]. The equation of this model is given by the following equation:

where and denote the current diffusion and ideality factor, respectively, for the first diode; and represent the saturation current and ideality factor, respectively, of the second diode. Based on equation (2), the parameters of this double diode model (DDM) to be estimated are .

Figure 2 gives us the simplified representation of the model with two diodes.

The mathematical statistical tool we set to reassure ourselves of the optimal estimation of the intrinsic parameters of the cell generating an estimated current close to the measured value is the root mean square error (RMSE). This is given by the following equation [27]:

is the estimated current from the chosen model, and is the measured current either from the manufacturer or empirically through many measurements.

3. Harris Hawk Optimization Associated with Differential Evolution

3.1. Harris Hawk Optimization (HHO)

The Harris hawk optimizer approach (abbreviated HHO) is an algorithm that is based on the cooperative behavior and hunting style of wild Harris hawks [17]. The strategy aims at attacking a prey, usually a rabbit, by several hawks coming from different directions, in order to surprise it. The HHO is built on two steps: exploration and exploitation and is designed after the Harris hawk surprise assault.

HHO’s method can be broken down into two stages, which can be modeled through mathematical equations that present and simulate the process.

Harris’s hawks always perch on a branch to watch and identify their prey during phase 1, which is an exploring phase. The equation is the mathematical expression for the latter:

where is a random number taken between [0, 1], and are the current and next positions of the Harris hawk, respectively, is a random position taken by the Harris hawks, is the average of all positions taken by the Harris hawks, is the position of the rabbit, and are the lower and upper bounds, respectively, is the running iteration, and , , , and are random values taken between [0, 1]. The leakage energy is important in the HHO method as it is the transition element between phase 1 and phase 2. This energy decreases gradually during the leakage and is given by the following equation:

where is the escape energy, which fluctuates between [-2, 2], is the beginning energy, which varies between [-1, 1], is the maximum number of iterations, and is the current iteration. If the energy level is high (), the Harris hawks are on the prowl for escaping prey: this is the exploration phase. If this energy is low (), the Harris’ hawks are attempting to pursue the exhausted fleeing rabbits: this is the exploitation phase, which corresponds to the second phase.

Phase 2 is an exploitation phase in which the Harris hawks use surprise attacks to chase away the encircled fleeing rabbits. The technique used in this level depends on the level of energy left in the fleeing rabbits and the headquarters of the Harris hawks. This escape energy can be symbolized by a random value , between [0, 1]. Thus, the type of siege will depend here on the remaining energy of the fleeing rabbit’s and the escape energy . (i)If and , this demonstrates that the rabbits still have the ability to flee. Harris’ hawks gently circle them to tire them out before attacking them. The siege is carried out carefully in this case, as shown by the following equation:

where and a random number taken between [0, 1]. (ii)If and , the siege then proceeds smoothly, with quick and gradual dips. This suggests that the rabbits have enough energy and that Harris’ hawks are employing complex techniques to chase away evading rabbits. This strategy is described by the following equation:(iii)If and , the siege is then challenging. The bunnies are tired, and the Harris hawks have surrounded them and made a surprise attack. Equation (10) represents the strategy here:(iv)If and , the siege becomes tougher with fast, gradual dips. This indicates that the rabbits are weary, and Harris’ hawks barely encircle the fleeing rabbits before annihilating the prey with a surprise attack

3.2. Differential Evolution (DE)

Differential evolution (DE) is a sophisticated stochastic optimization approach that is very simple to understand. It is mainly based on the mutation process which is a key element to explore the areas of the search space [28]. DE relies on the differences between pairs of randomly selected objective vectors. It is this process that makes it efficient and more powerful.

Mutation, crossover, and selection processes enhance the random solutions. Like a result, it is commonly given as follows: (i)Initialization

The initialization procedure consists at generation , to randomly generate the population with being the dimension of the decision variable and the population size. After initialization, there follows in turn a mutation, then crossover, and finally, selection. (ii)Mutation

At generation , the algorithm creates a mutant vector for each vector by mutation operation. Depending on how the vector is generated, there are five frequently used mutation strategies, among which equation (14):

where , , , , and represent random quantities taken from the set , denotes the best individual of a population at generation . The difference vector is boosted by the scaling factor , which is greater than zero. (iii)Crossover

After mutation, the DE algorithm performs the crossover which consists of generating a test vector from and . This crossover method is defined by the following equation:

where is a random quantity taken between [0, 1], the crossover rate which is the probability that copies or , and an integer quantity taken at random in the interval .

The Harris’s hawk examines and finds its prey in a hunting area during the exploration phase, due to its keen vision. This is not always simple, since it might take many minutes or even hours. DE mutation operators are introduced into the exploration phase as a result of this scenario. At this step of HHO, each Hawk is put in a random spot and waits for the prey to be detected in one of two scenarios. Thus, the hybrid HHODE algorithm manages a global population shared between HHO and DE.

Figure 3 shows the flowchart of this method proposed.

4. Results

The suggested algorithm’s efficiency was compared to that of a commercial R.T.C France silicon solar cell. Irradiance of 1000 W/m2 and a temperature of 33°C are the test parameters for this encounter. The simulation’s results are the average of 20 runs. The number of iterations to reach the termination condition is set at 3000. Experiments were run on a machine with an Intel Core [email protected] CPU, 8 GB RAM, and Windows 10-64 bits installed. MATLAB R2013a was used to develop the suggested approach.

The boundaries are specified in order to identify the unknown PV cell characteristics. Table 1 gives all the bounds (lower and upper) of this simulation. The lower and upper bounds used here are the same as those used in works found in the literature, such as [6, 15, 18] and others. Thus, we have the photocurrent which varies between [0 1] (A), the diode’s saturation current [0 1] (μA), the ideality factor [1 2], the series resistance [0 0.5] (), and the shunt resistance [0 100] ().

For an efficient verification of our algorithm, we use the measured current and voltage data presented in the work of Easwarakhanthan et al. [29]. This data has been used numerous times in the literature to test algorithms for estimating intrinsic parameters. We use 26 pairs of data from the commercial silicon solar cell from R.T.C France. This data was repeated in the works of researchers such as Niu et al. (2014) in [30], Yuan et al. (2015) in [31], Jamadi et al. (2016) in [11], Oliva et al. (2017) in [32], Merchaoui et al. (2018) in [9], Gnetchejo et al. (2019) in [6], Ridha (2020) in [33], and Nicaire et al. (2021) in [15]. We did not design an experimental bench but just retrieved the data already available to evaluate our proposed method.

4.1. Case of the SDM

The HHODE approach was compared to six other methods in order to emphasize its performance. HHO [18], the equilibrium optimizer (EO) [16], the political optimizer (PO) [18], modified particle swarm optimization (MPSO) [34], the modified artificial bee colony (MABC) [11], and the brain storm optimization algorithm [35] were all based on these comparable methodologies.

Table 2 shows the results of the suggested hybrid technique for identifying the five parameters of the one-diode model, as well as work done under the same conditions and with the same data. The decision parameter for the validation of our algorithm is the mean square error. It appears from this comparative study that the proposed hybrid method has a much lower root means square error () than the basic algorithm, the Harris hawk optimization (). This demonstrates the superiority of the proposed method over the baseline method with an RMSE closer to zero. From Table 3, we also deduce the superiority of the hybrid HHODE method over methods such as the political optimizer (PO), the modified particle swarm optimization (MPSO), the modified artificial bee colony (MABC), and the brain storm optimization (BSO). This demonstrates a higher level of precision in parameter extraction for the single diode model than the hybrid model of Harris hawk optimization and differential evolution. However, it must be noted that, despite the superiority and established accuracy of the proposed method, it remains less accurate than equally recent algorithms such as the equilibrium optimiser (EO), which presents a root mean square error of the order of . The latter presents more accurate and reliable results than the hybrid method we propose.

For the R.T.C France solar cell, Figure 4 displays the I-V calculated and measured parameters of the single diode model. The blue dot curve gives us the measured current-voltage characteristic, and the red solid line curve shows the current-voltage characteristic estimated by the HHODE hybrid algorithm under the test conditions mentioned above. The estimated and measured curves are virtually perfectly superimposed. This is because the difference between the measured and estimated values is nearly zero.

Figure 5 depicts the method’s convergence to the best solution after 3000 iterations. After more than 500 iterations, we can see that the approach is rapidly and significantly converged to the ideal answer. The search for the best solution then becomes invariant. The main limitation of this method is that it has a large number of randomly chosen coefficients that very often lead to skipping regions of optimal solutions. The energy that escapes can also quickly alter the convergence to the optimal solutions.

4.2. Case of the Double Diode Model

In order to highlight the performance of the HHODE method, it has been compared to six competitive methods. These compared methods were the basis of the atom search optimization (ASO) [18], the political optimizer (PO) [18], the salp swarm algorithm (SSA) [18], the slime mould algorithm (SMA) [36], the equilibrium optimizer (EO) [16], and the bald eagle search (BES) [15].

The results obtained by the proposed hybrid method for estimating the parameters of the double diode model and work carried out under the same conditions, with the same data, are presented in Table 3. The decision parameter is the same as for the single diode model. The comparative study shows that, for a two-diode model, the proposed hybrid method is more accurate and reliable () than many algorithms found in the literature such as the atom search optimization (ASO), the political optimizer (PO), and the salp swarm algorithm (SSA). Nevertheless, it is interesting to note that despite this noted accuracy in parameter estimation, the HHODE method is less reliable than methods such as the slime mould algorithm (SMA), the equilibrium optimizer (EO), and the bald eagle search (BES) to mention only the latter, which are more advanced than the proposed method.

The predicted (red solid line) and experimental (blue dashed line) current-voltage characteristics of the R.T.C. France solar cells for a double-diode model are shown in Figure 6. The blue dot curve represents the observed current-voltage characteristic, whereas the red solid line curve represents the current-voltage characteristic calculated by the HHODE hybrid algorithm under the abovementioned test circumstances. It can be observed that the estimated and measured curves are virtually perfectly superposed. This is because the difference between measured and estimated values is close to zero.

The findings obtained by the HHODE technique, like those obtained by the one-diode model, are subject to some constraints. The fundamental issue is that it contains a large number of randomly generated coefficients, which frequently result in bypassing portions of ideal solutions, and the energy that escapes can quickly change the convergence to optimal solutions.

5. Conclusion

In this work, we provide a new hybrid technique for determining the best values for solar PV cell properties by combining the Harris hawk optimisation (HHO) algorithm with differential evolution (DE). A number of scenarios were created to demonstrate the algorithm’s performance, including single and dual diode PV cell models. The current-voltage characteristics of the observed and computed data illustrate the great accuracy of the proposed approach. The accuracy and validity of the PV cell parameter extraction methodology are proven and contrasted using simulation results after 20 tests. It has the advantage of being more accurate than many of the algorithms reported in the literature. The method is validated using real-world data from the commercial RTC France cell. Its accuracy is proven by comparing its RMSE to a variety of metaheuristic techniques. All analysed instances achieve a high level of accuracy ( for SDM and for DDM). As a consequence, a correlation of the simulated I-V curves with the observed characteristics confirms the HHODE’s accuracy and application to parameter estimation and problem solving in other power systems.

Nomenclature

:Crossover rate
:Length of dilemma
:Escape energy
:Initial energy
:Vector’s amplifier
:Output current of the solar cell
:Estimated current
:Measured current
, , :Saturation current of the diode
:Photo-current of the solar cell
:Boltzmann constant
:Lower bound
:Levy flight
:Length of the current vector
:Population size
, , :Ideality factor
:Electron charge
:Remaining energy of the fleeing rabbit
, , , , :Random values
RMSE:Root mean square error
:Series resistance
:Shunt resistance
:Temperature
:Current iteration
:Maximum number of iterations
:Upper bound
Uit:Test vector
Vit:Mutant vector
Xt, Xt+1:Current and next position of Harris hawk
Xrand:Random position of Harris hawk
Xmean:Average of all positions
Xrabbit:Position of rabbit
xit:Population
xbestt:Best individual of a population.

Data Availability

All data are contained in the article.

Conflicts of Interest

The authors state that they have no known rivals, financial interests, or personal ties that may appear to affect the work presented in this paper.