Abstract

The whale optimization algorithm (WOA) is a powerful swarm intelligence method which has been widely used in various fields such as parameter identification of solar cells and PV modules. In order to better balance the exploration and exploitation of WOA, we propose a novel modified WOA (MWOA) in which both the mutation strategy based on Levy flight and a local search mechanism of pattern search are introduced. On the one hand, Levy flight can make the algorithm get rid of the local optimum and avoid stagnation; thus, it is able to prevent the algorithm from losing diversity and to increase the global search capability. On the other hand, pattern search, a direct search method, has not only high convergence rate but also good stability, which can boost the local optimization ability of the WOA. Therefore, the combination of these two mechanisms can greatly improve the capability of WOA to obtain the best solution. In addition, MWOA may be employed to estimate parameters in single diode model (SDM), double diode model (DDM), and PV modules and to identify unknown parameters of two different types of PV modules under diverse light irradiance and temperature conditions. The analytical results demonstrate the validity and the practicality of MWOA for estimating parameters of solar cells and PV modules.

1. Introduction

Solar power generation is an emerging renewable energy technology, and photovoltaic system is a type of power generation system that uses the photovoltaic effect of solar cell semiconductor materials to convert sunlight radiation energy into electricity. Moreover, due to its advantages such as safety, reliability, being nonpolluting, and unlimitedness by the distribution of resources, photovoltaic system has been widely used in many fields [1, 2]. Thus, the research on the features of solar cells and photovoltaic modules, which are important components of PV systems, is an ongoing focus of attention. The properties of solar cells and PV modules are usually determined by the current-voltage curve. However, because of its strong nonlinear characteristics, just the current-voltage curve is not sufficient to analyze the changes in the characteristics of the new battery with temperature, light intensity, and so on. Therefore, the modeling and the parameter searching of solar cells and PV systems is one of the hot topics in the current study.

A suitable model and an appropriate parameter extraction method are essential for the simulation, design, evaluation, control, and optimization of PV systems [3]. Currently the models used to characterize the cells include SDM, DDM, and TDM with SDM and DDM being the most commonly used [4]. The methods for extracting parameters can be roughly classified as analytical method [57], method with Lambert W function [8, 9], method of constructing or using special function [10, 11], or method with swarm intelligence algorithm. Among these methods, swarm intelligence algorithms have received great attention in recent years, and, compared with traditional methods, the swarm intelligence algorithm has a simple structure, fewer parameters, and high efficiency, such as particle swarm optimization (PSO) [12], differential evolution (DE) [13], naked mole-rat algorithm (NMR) [14], Harris hawks optimizer (HHO) [15], and slime mould algorithm (SMA) [16]. Furthermore, a large number of studies have focused on using such methods or their variants for modeling and parameter extraction of solar cells and PV modules [1724].

Messaoud et al. [25] used Salp Swarm Algorithm (SSA) for the parameter estimation in SDM and DDM and applied it to three different PV parameter identification problems. Abbassi et al. [26] proposed an efficient method by using SSA to extract DDM parameters of PV cells and an opposition-based learning modified SSA (OLMSSA) [27] for identification of PV cells and modules. Pourmousa et al. [28] considered an improved Lozi Map based Chaotic Optimization Algorithm (ILCOA) for parameter estimation of solar cells. Chen et al. [29] studied a new hybrid teaching learning-based artificial bee colony (TLABC) to obtain solar PV parameter estimates, which combined a teaching-learning-based optimization algorithm (TLBO) with an artificial bee colony (ABC). Li et al. [30] suggested an improved teaching-learning-based optimization (ITLBO) algorithm for estimating the parameters of SDM, DDM, and three photovoltaic modules. Liang et al. [31] proposed an evolutionary multitask optimization algorithm to simultaneously extract parameters from several different PV models. Li et al. [32] gave an enhanced adaptive differential evolution algorithm for PV parameter extraction, which performed well for SDM, DDM, and PV modules. Li and Wu [33] discussed a memetic adaptive differential evolution (MADE) algorithm for the parameter estimation of photovoltaic models. Chen et al. [34] considered a hybrid metaheuristic called biogeography-based heterogeneous cuckoo search (BHCS) algorithm in order to enhance the parameter estimation capability of solar PV models. Yousri et al. [35] proposed novel chaotic heterogeneous comprehensive learning PSO variants, in which the chaotic heterogeneous comprehensive learning PSO is combined with ten different chaos diagrams to adjust model parameters, and they applied this new approach for parameter extraction of PV models. Liang et al. [36] studied a classified perturbation mutation based particle swarm optimization algorithm for the extraction of parameters from five different PV models. Lin [37] proposed an optimization algorithm based on niche particle swarm optimization in parallel computing (NPSOPC) to determine the parameters of photovoltaic models. Jian et al. [38] suggested a logistic chaotic JAYA algorithm (LCJAYA) for parameter identification of PV cells and modules. Zhang [39] discovered a backtracking search algorithm with Levy flight (LGBSA) to estimate parameters in three different PV models. Zhang et al. [40] suggested an orthogonal moth-fighting optimization algorithm (MFO) with local search (NMSOLMFO) to identify the parameters of PV cell models.

Traditional swarm intelligence algorithms such as PSO and ABC have already performed well in this field. However, the problem of photovoltaic system parameter evaluation is a multimodal problem; hence, there is no way to obtain the global optimal solution due to prematurity of some basic algorithms. According to the principle of no free lunch, it is still necessary to develop an efficient optimizer for accurately extracting model parameters. Subsequently, WOA is considered because of its simple structure, few parameters, strong search ability, and easy implementation; it has been successfully applied in various fields such as reactive scheduling [41], neural networks [42], image segmentation [43] and feature selection [44], and wind speed prediction [45]. Besides, many scholars are also committed to improving its existing shortcomings to develop more effective optimizers; for example, Salgotra et al. [46] utilized opposition-based learning, exponentially decreasing parameters, and elimination or reinitialization of worst particles to enhance the basic WOA. Chen et al. [47] introduced random replacement and double adaptive weight to speed up convergence and improve exploratory convergence direction. Three new versions of the WOA were designed by using nonlinear convergence factors and introducing the concept of chaos in the initialization stage as well as in the calculation of internal weights [48]. Ling et al. [49] used the Levy flight trajectory to improve the disadvantage that the underlying WOA is premature and prone to fall into local optimum. Zhou et al. [50] improved WOA by teaching learning-based algorithm and simplex method and applied it to train multilayer perceptron neural network. Niu et al. [51] developed an optimizer by dynamically combining the conventional WOA with the Levenberg–Marquardt (LM) algorithm and applied it to the alignment star sensor. Luo et al. [52] utilized a ranking-based mutation operation to modify WOA for identify the infinite impulse system. Moreover, WOA and its variants are also utilized for identifying parameters of solar cells and PV modules. Long et al. [53] introduced logistic models and a new refractive-learning strategy based on the refractive principle of light into WOA and proposed a new approach (RLWOA) for parameter estimation in PV models. Xiong et al. [54] developed two prey searching mechanisms to balance exploitation and exploration and proved that the method can effectively avoid premature phenomena for the accurate extraction of parameters from different PV models. Elazab et al. [55] studied a novel whale optimization algorithm for the parameter estimation of SDM, DDM, and TDM of PV modules. Oliva et al. [56] suggested the chaotic whale optimization algorithm (CWOA) for estimating parameters of solar cells. Although a number of studies about WOA have been investigated for the parameter estimation of solar cells and photovoltaic modules, there is room for the improvement of WOA for this problem in both the accuracy and the speed of convergence. Consequently, it is believed that developing an improved optimizer based on WOA is necessary.

Like other swarm intelligence optimization algorithms, in the basic WOA, individuals in the population are constantly approaching the food source as the iteration progresses, causing a gradual loss of diversity in the population. However, the problem of evaluating the parameters of a photovoltaic system is a nonlinear, multimodal problem, so it is highly susceptible to local optimum due to the loss of population diversity when using WOA to solve the problem. Moreover, since WOA relies on a stochastic convergence factor to convert from exploration to exploitation, it also suffers from a weak local search capability. Accordingly, in this paper, a variation strategy using Levy flight and a local search mechanism (pattern search) is introduced to improve the performance of WOA. This modified whale optimization algorithm is referred to as MWOA. Specifically, as the iteration progresses, individuals in the population constantly approach the current optimal solution in order to find the source of food, which makes the search space solution gradually concentrate on the current optimal solution. However, the problem of PV model parameter evaluation is a multimodal problem. In other words, the current solution may not be the global optimum, and the population individuals may miss better solutions when they keep approaching it, which is often said to fall into the local optimum. However, the random step of Levy flight mainly consists of small strides with occasional large ones or long jumps, which allows Levy flight to generate a fraction of the solutions far from the current optimal solution so that MWOA can get rid of local optimum and avoid stagnation.

The random step length of Levy flight is mainly composed of small step lengths, and occasionally there will be large step lengths or long jumps, which allows Levy flight to generate some solutions far away from the current optimal solution [57]. To a certain extent, this can guarantee the quality of the population during the entire evolution process, thereby helping MWOA to get rid of the local optimum and avoid stagnation. Consequently, it can be considered that the introduction of Levy flight can prevent the algorithm from losing its overall diversity and enhance global search capabilities. Since the pattern search mechanism usually searches around the current best solution, it has high stability and good convergence rate. The pattern search algorithm is considered in order to be able to enhance the local search capability of the basic WOA and improve the optimization accuracy. The addition of the two mechanisms has improved the optimization of WOA in terms of its ability to seek out the best solution and the balance between exploration and exploitation of the algorithm. Moreover, MWOA can be employed to identify unknown parameters of SDM, DDM, and PV modules. For two different types of PV modules, MWOA can identify their parameters under various temperature and light irradiance conditions, which demonstrates its validity and practicality.

The structure of this paper is as follows. Section 2 provides the problem formulation of SDM, DDM, and PV module models. MWOA is proposed in detail in Section 3. The experiments are displayed in Section 4. The conclusions are delivered in Section 5.

2. Problem Definition

The problem of parameter identification in solar cells and photovoltaic systems is to determine the parameters in the model by using the measured current and voltage values. However, the equivalence model to simulate the nonlinear current-voltage relationship of solar cells and PV modules mainly includes SDM and DDM, while SDM is commonly adopted in application.

2.1. Solar Cell Model
2.1.1. SDM

SDM is simple and its structure is shown in Figure 1. In Figure 1, there are several major physical parameters including photocurrent , diode current , shunt resistor , shunt resistance , series resistance , and input current . As seen from Figure 1, we can easily know the calculation of output current of SDM, whose expression is shown in the following equation:

According to the Shockley equation, diode current in equation (1) can be expressed as equation (2) while can be given by equation (3):

In equation (2), is output voltage, represents diode reverse saturation current, and means diode ideality factor. Besides, can be written as equation (4) with being Boltzmann constant, , stands for electronic charge, and is the Kelvin temperature of cell. Thus, equation (1) can be rewritten as follows:with five unknown parameters , , , , and .

2.1.2. DDM

Compared to SDM, DDM considers the effect of compound current loss, and its structure is displayed in Figure 2. As its name implies, DDM has two diodes in parallel with the current source. The output current of DDM is written mathematically as where and are, respectively, the diffusion current and saturation current and and are the ideality factors of two diodes. From equation (6), there are seven unknown parameters, , , , , , , and , in DDM.

2.2. PV Module Model

PV module consists of multiple solar cells connected in series and in parallel, as shown in Figure 3. The SDM or DDM for PV modules can be represented by equation (7) or (8), respectively.where and are the number of solar cells in parallel and in series of the PV module, respectively. From the above two formulations, it is clear that the unknown parameters in the two PV module models are the same as those in SDM and in DDM.

2.3. Objective Function

The data of output voltage and output current are actually collected in the problem of parameter identification of PV cells and modules. In the identification process, all that needs to be done is to find the optimal set of values of unknown parameters which minimizes the error between the current calculated based on the simulation model and the actual measured one. Therefore, the root mean square of the error between these two current values is used as an objective function, as shown in equation (9), in this problem [58]. Thus, the problem studied in this paper can be equivalent to finding the optimal value of the objective function in where is the current estimated from the model, is the actual measured current, and is the quantity of current. Furthermore, the estimated current for each model can be obtained according to (5)–(8).

3. Background of WOA

3.1. The Basic WOA

WOA is an intelligent optimization algorithm implemented by simulating the foraging behavior of humpback whales. The algorithm divides the behavior of humpback whales into three parts: encircling prey, bubble-net attacking, and searching for prey.

3.1.1. Encircling Prey

In various solving problems, the optimal solution is not a priori known, so it is assumed that the current optimal solution is the target prey or is close to the prey in WOA. After the prey location is defined, individuals in humpback whale populations will attempt to update their locations in the direction of the prey by where is the number of current iteration and indicates the vector of current prey position. Both and are coefficient vectors given in the following equations:

In equation (11), is the linearly decreasing parametric vector from 2 to 0 while is the random vector within [0, 1]. In equation (12), denotes the absolute value and is the coefficient vector expressed as

3.1.2. Bubble-Net Attacking

Humpback whales swim simultaneously around their prey along a spiral path in a narrow circle, which is known as a bubble-net attack. Their behavior is simulated in WOA by both the contraction bracketing mechanism and the spiral model. In the optimization process, the selection probability of individuals in the population is the same for two ways. Besides, the specific mathematical model is written as follows:where the parameter is the constant used to define the logarithmic spiral shape and is the random number within the interval [−1, 1] while is within [0, 1].

In equation (14), the whale chooses the contraction bracketing mechanism to update its position when . Under this circumstance, the coefficient vector varies with , and its variation is fixed within the interval [−1, 1]. By selecting the contraction bracketing mechanism, the location of new individual will be defined anywhere between the original individual and the prey. When , the spiral model is chosen to update the position of new individual. In this event, the distance between the whale and the prey is firstly calculated, and measures their distance expressed in equation (15). After that, a spiral equation is created between the position of the whale and the prey to simulate the spiral motion of a humpback whale.

3.1.3. Searching for Prey

In the stage of searching for prey, WOA updates the location of the population by the following equation:where is a position vector of a random individual in the current population and is calculated as follows:

At this phase, humpback whales are randomly searched based on the positions of each other. Although the algorithm explores the best agent according to the change of , it is different from the contraction bracketing mechanism in which the module of is greater than 1, which means that whales in the search are forced away from the prey location. In other words, WOA at this stage emphasizes global search.

3.2. Inferences from Literature and Motivation behind this Work

WOA has a strong global search capability because of its efficient location update method. Accordingly, its variants are applied in many fields, such as parameter evaluation [59], feature selection [60, 61], resource scheduling in cloud computing [62], and clustering [63]. The wide application of WOA in various fields directly shows that the algorithm is a developable tool in practical applications [6467].

While the traditional WOA has strong global search capabilities, it also has weak local search capabilities due to its overreliance on stochastic convergence factors to convert exploration to exploitation. Therefore, it is an important task to help the basic WOA improve its local search capabilities. Because of its freedom of local derivative optimization, pattern search has been widely used in solving many optimization problems outside the scope of standard optimization techniques. Furthermore, in this work, pattern search has become a useful tool to improve the local search capabilities of WOA. Typically, in traditional swarm intelligence algorithms, the imbalance between exploration and exploitation is also an important factor affecting the performance of the algorithm. However, Levy flight is a non-Gaussian random walk distribution model that has an indeterminate step length. The method is also highly stochastic and has a trajectory very similar to that of natural biological activity, which can help swarm intelligence algorithms to adjust the balance between exploration and exploitation. Therefore, the mechanism is considered in this study. Moreover, some improved WOAs have been designed and applied to the problem of photovoltaic model parameter evaluation. However, according to the law of no free lunch, it is still necessary to develop more optimizers to make the problem better solved.

4. The Proposed Algorithm

In this section, several mechanisms will be introduced in detail, and the framework of the proposed algorithm will be outlined.

4.1. Basic Preliminaries of the Proposed Algorithm
4.1.1. Levy Flight

Randomization plays a role in both exploration and exploitation as well as both diversification and intensification. In addition, the essence of randomization is a random walking, which is a random process that involves performing a series of consecutive random steps. Levy flight is one of these random processes. Moreover, Levy flight has been employed as an optimization technique to improve the performance of multiple metaheuristic algorithms [6871]. Note that Levy flight is a random walking obeying the Levy distribution defined in the following equation: where is an exponential function that determines the shape of Levy distribution and is a random step, which can be expressed in the following form:with and being parameters subject to normal distribution, i.e., and . The expressions for and are given as follows:where stands for the gamma function.

4.1.2. Pattern Search

It is universally acknowledged that pattern search is a local derivative free optimization method which is ideal for solving many optimizations problems beyond the scope of standard optimization techniques.

The initial process of pattern search begins around a set of points called dots. Then, the grid is made by adding the nearest point to a set of scalar multiples of a vector called pattern. Besides, a point with better fitness is selected from the points in the grid as the initial point for the next iteration. The specific steps in the pattern search are as follows:Step 1: determine the initial point and calculate its fitness .Step 2: calculate other points around the initial point according to equation (22), while calculating their objective fitness . If there is one point better than , perform step 3; otherwise, perform step 4.where indicates the pattern vector in which , with being the dimension of the problem to be solved, and signifies the search step.Step 3: update based on equation (23), where and is used to expand the search space. Then execute step 5.Step 4: update according to equation (24), where and is used to narrow the search space. Then execute step 5.Step 5: if termination condition is not met, continue with step 1; otherwise, stop the iteration and output the optimal point.

4.2. Framework of MWOA

We propose the modified whale optimization algorithm (MWOA) in this paper. The pseudocode of MWOA is shown as follows in Algorithm 1, and Figure 4 displays its flowchart. In MWOA, Levy flight is initially employed to improve the performance of the algorithm to avoid falling prematurely into a local optimum. In summary, MWOA first performs the basic strategy of the original whale optimization algorithm to update the population. Then, Levy flight is operated as follows. According to equation (25), the individual that has undergone Levy variation is obtained and its fitness is calculated concurrently. If is better than , then will be substituted for . In equation (25), means the current optimal solution and is the constant coefficient with a value of 0.75 and .

Initialize the whale’s population X;
Calculate the fitness of each search agent;
Leader_pos = the best search agent;
while (t < maximum number of iterations)
  for each search agent
   Update a, A, C, l and ;
   if ()
    if (|A| < 1)
     Update the position of the current search agent by equation (10);
  else if (|A| ≥ 1)
   Update the position of the current agent by equation (16);
end if
else if ()
   Update the position of the current search agent by equation (14);
  end if
  Carry on the Levy flight for each agents using equation (25);
end for
 Using pattern search to the best agent Leader_pos;
 Check if any search agent goes beyond the search space and amend it;
 Calculate the fitness of each search agent;
 Update Leader_pos if there is a better solution;
t = t + 1;
end while
return Leader_pos;

After performing Levy flight on the entire population, the optimal solution in the current population is picked as the initial point of pattern search. A new solution, , is found by pattern search. Then, compared with the current optimal solution, the better one is chosen. With respect to pattern search, the function patternsearch () in MATLAB is used directly. For the iteration termination condition of the pattern search, it is set to 0.1 times the maximum number of MWOA iterations, and the remaining parameters are default values.

4.3. Time Complexity Analysis

Before analyzing the time complexity of the proposed method, it is first divided into the following steps:Step 1: initialization parameters: initialize the generation counter t, the number of maximum iterations T, the population size N, the dimensionality of the space d, and the boundary of the searching area [lb, ub].Step 2: initialization of random whale populationsStep 3: calculate the fitness of whales and choose the best agentStep 4: update whales: update the whales in the population according to equations (10)–(17).Step 5: Levy flight: get the variant V by performing the Levy flight based on equation (25), and then update the population if the fitness of V is better than the original one. Bring new whales back if there is someone outside the boundaries.Step 6: pattern search: choose the current optimal Leader_pos to perform pattern search mechanism to generate the candidate position and bring it back if it is over the border. Then, update Leader_pos if the fitness of the candidate obtained previously is superior to that of Leader_pos.Step 7: stop or continue the iterative process: repeat step 3 to step 8 until the exit condition is met, and then return Leader_pos.

Next, we proceed to the time complexity analysis. The primary time complexity of MWOA mainly relies on steps 3–7. Thus, the overall time complexity of MWOA (O (MWOA) = O (population initialization) + G (O (fitness evaluation) + O (whales updating)) + O (the Levy flight strategy) + O (the pattern search mechanism)). Considering that the population has n individuals, the time complexity of the initialization is O (nd), and computing the fitness of whales in population is O (G (nd)). Besides, updating the location of the whales is O (G (6nd + 7n)). Thus, the time complexity of the original WOA is O (nd) + O (G(n d)) + O (G (6nd + 7n)). In addition, the time complexity of the Levy flight strategy is O (G (nd + nd + 4n)), while pattern search is O (G (0.1 G + 6)). Therefore, the time complexity of MWOA is approximately equal to O (nd) + O (G (9nd + 11n + 0.1G + 6)). Note that both the proposed MWOA and the classical WOA have a complexity of O (nd) based on the large O notation.

5. Experimental Results and Analysis

To verify the effectiveness of MWOA, parameter identification of solar cells and PV modules is carried out for the two datasets provided in the literature [72]. These two datasets relate to RTC France cell and Photowatt-PWP 201 PV module, and they have been widely used to validate the performance of the new methods [3, 73, 74]. The dataset of RTC France contains 26 pairs of current and voltage values measured under standard test conditions (33°C, 1000 W/m2 light intensity) while that of Photowatt-PWP 201 consisting of 36 polysilicon cells in series includes 25 pairs of data measured under standard test conditions (45°C, 1000 W/m2 light intensity).

In this part, MWOA was implemented by MATLAB R2014a and was conducted in 30 runs independently on each model. Each experiment was terminated by reaching the maximum number (10,000) of iterations. The range of parameters to be identified for SDM, DDM, and PV module is reported in Table 1.

To further check the validity and reliability of MWOA, it was applied to estimate parameters of the two different types of PV modules: thin-film PV module ST40 and monocrystalline silicon PV module SM55. The experimental data are obtained from their product data book, including data under different light intensity and temperatures. In this part of experiment, the maximum iterations and the population size were set to 5000 and 30, respectively.

5.1. Results of RTC France Solar Cell

In this part, the experimental results of MWOA on single diode and double diode solar cells and photovoltaic modules will be given in detail. Among them, because some competing algorithms have relatively good performance on a certain model, it may perform poorly on other models. Therefore, the selected competition algorithm on the three models may be different. However, to ensure fairness, the settings of each algorithm are consistent on the same model.

5.1.1. Results of SDM

Table 2 lists the results including the values of five parameters in SDM and RMSE based on MWOA along with the other seven algorithms for comparison, which are CPSO [75], LMSA [76], EHHO [77], ABSO [3], GOTLBO [78], LWOA [49], and CWOA [79]. Additionally, Figure 5 demonstrates the I-V characteristic (I-VC) and the P-V characteristic (P-VC) of the best SDM obtained based on MWOA. To further reveal the quality of the results, Table 3 lists the absolute errors (IAEs) and the relative errors (REs) between the simulated and the experimental data, while Figure 6 displays the IAE and the RE between these data with their definitions given in equations (26) and (27), respectively. Besides, IAE and RE can more intuitively help readers observe the error between the actual measured data and the data obtained by the simulation experiment at each measurement point, thereby further reflecting the performance of the proposed algorithm.

We can see from Table 3 that, for SDM, MWOA not only performs better than other competing algorithms, but also has more satisfactory optimization accuracy compared to other improved WOA methods. As shown in Figure 6, I-VC and P-VC of the best SDM obtained by the method proposed in this paper are in good agreement with the experimental data over all measured points. Moreover, the IAEs of all simulated currents are less than 8.25668E − 05, and the corresponding REs are within the interval [−1.9962e − 02, 2.1517e − 02]. Above all, we conclude that the actual behavior of solar cells can be accurately described by SDM which is estimable by MOWA.

5.1.2. Results of DDM

For DDM of RTC France, the values of parameters and RMSE obtained based on the seven different algorithms including MWOA are reported in Table 4: SA [80], HS [81], GGHS [81], IGHS [81], LWOA, CWOA, and MWOA. Besides, Figure 7 depicts the comparison of I-VC and P-VC of the estimated DDM based on MWOA with the experimental data. Furthermore, the IAE and the RE of simulated currents are shown in Figure 8 while the specific values of simulated data are provided in Table 5.

It can be evidently seen from the figures and tables mentioned above that MWOA still performs well for DDM although it is slightly inferior to some algorithms. From the perspective of fitness, RMSE obtained by MWOA is worse than ABC and ICHS, only ranking the third place. However, MWOA is much better than the remaining algorithms. I-VC and P-VC of the estimated model are in good agreement with the experimental data. Moreover, all the IAE of simulated currents are less than 2.524E − 02, and all RE are within the interval [−2.0108E − 02, 1.3199E − 01]. All of these results show that it is possible to identify the unknown parameters of DDM with high precision based on MWOA.

5.2. Results of Photowatt-PWP 201 Module

We need to identify five parameters in PV module model, and the results based on the eight algorithms are given in Table 6: Newton, CPSO, EHHO, CARO, LWOA, CWOA MWOA, and the method in [82]. As we can see in the table, MWOA produces the smallest RMSE (2.42508E − 03) among all the algorithms, while CARO and LWOA are, respectively, the second and the third best in terms of RMSE. Moreover, the accuracy of MOWA is much higher than that of the other algorithms, indicating that the improved approach is effective in improving the performance of WOA in the parameter recognition of PV modules. Figure 9 shows the comparison of I-VC and P-VC between the best model constructed by MWOA and the experimental data. From Figure 9, we can see that the fit between these two is high. IAE and RE of the simulated currents are also shown in Figure 10. In the meantime, specific data including currents, powers, and their related IAE and RE are available in Table 7. We can see from the table that all the IAE of the simulated currents are less than 4.84E − 03, while all RE are within the interval [−3.973E − 02, 5.0336E − 02]. Therefore, MWOA is satisfactory for the parameter discrimination of PV module model.

Figure 11 presents the convergence curve of MWOA for three models, which reveals the performance in 30 runs. It is obvious that the proposed method converges faster and better than the original algorithm for parameter identification in SDM, DDM, and PV module. Moreover, compared to the newly published EHHO and another improved WOA called CWOA, MWOA always has the fastest convergence speed and the most prominent accuracy.

Based on the performance of the above MWOA on the three models, it can be found that, in terms of optimization accuracy, MWOA not only is better than other competitive algorithms, but also has a competitive advantage compared to other improved WOAs. Accordingly, there is a reason to say that MWOA is a promising tool in the field of evaluating unknown parameters of photovoltaic models.

5.3. Discussion

It can be known from the above that MWOA introduces two strategies, Levy flight and pattern search. In order to further prove the contribution of these two mechanisms to the proposed algorithm, the maximum (max), minimum (min), mean value (mean), and standard deviation (std) of RMSE are introduced. Table 8 shows the comparison results of MWOA with its variants involving only one of these mechanisms. Among them, the method that only introduces Levy flight is recorded as LWOA, and the method that only involves pattern search is recorded as PSWOA. From Table 8, whether it is the max, min, or mean, MWOA always has the best performance in the three experimental models, which demonstrates that MWOA has the most satisfactory optimization accuracy. What is more, the smallest std indicates that MWOA has the best robustness on the three models. In conclusion, there is no way to achieve the expected results with a single mechanism, but the combination of the two can have better performance.

Besides, timeCost records the average CPU time of three versions of WOA after running independently for 30 times on a PC with main frequency of 3.4 GHZ, a memory of 8 GB, and an operating system of Win10 with MATLAB R2016a implementation. It can be seen that although the pattern search algorithm has strong local search capabilities, its introduction has significantly increased the computational cost. Nevertheless, it is worthwhile to spend a certain amount of time as a cost to improve accuracy. However, for large-scale problems, computing time will be an important issue worthy of attention. Therefore, reducing the computational cost without changing the accuracy is still a problem we need to pay attention to in the future.

5.4. Results of ST40 and SM55

To further test the utility of the method proposed in this paper, we apply MWOA to parameter extraction in the two different types of PV modules: thin-film PV module ST40 [84] and monocrystalline silicon PV module SM55 [85]. Both the two PV modules are modeled by SDM and DDM. For each module type, experiments were conducted at different temperatures and different light intensities. When the temperature changes, the light intensity needs to keep constant; conversely, when the light intensity changes, the temperature keeps constant.

The initial range of the photogenic current in this part is determined by the short circuit current and its temperature coefficient under standard test conditions (STC). The calculation of is as follows:where G and T represent the light intensity and the temperature under non-STC, respectively. Thus, the parameter ranges are given in Table 9.

Tables 10 and 11 give the two PV modules’ best parameter values in SDM and DDM extracted by MWOA at different irradiances. In addition, their values of parameters under different temperature conditions are listed in Tables 12 and 13. Furthermore, Figures 12 and 13 present the results of the comparison between the simulated current and experimental data at various irradiances for both SDM and DDM, while comparative results at different temperatures are given in Figures 14 and 15. It can be seen from the figures that the two PV modules’ I-VCs of the two models estimated by MWOA are both in good accordance with the experimental data no matter under different irradiance or temperature conditions.

6. Conclusions and Future Directions

In this paper, we propose a modified whale optimization algorithm for identifying the unknown parameters in the optimal models which characterize solar cells and photovoltaic modules. The new algorithm MWOA is formed by introducing Levy flight strategy and pattern search mechanism. MWOA follows the population update approach of the original WOA to find the current optimal solution which is used as the initial point of pattern search; then, it searches for potential better solutions in the domain of this solution. Meanwhile, it makes use of Levy flight to maintain the diversity of solutions; thus, it enhances the ability to explore the entire search space. These two improvement mechanisms balance the relationship between exploration and exploitation and allow the algorithm to increase the solution accuracy, while they mitigate the possibility of the algorithm falling into local optimization. Moreover, we demonstrate the validity and the utility of the proposed method in the problem of identifying parameters of solar cell and PV modules by analyzing the experimental results.

There are still interesting aspects that can be further explored in future work. Firstly, we have utilized MWOA to obtain satisfactory results in parameter estimation for solar cells and PV modules, and we will investigate its application to other problems including engineering application [86], multithreshold image segmentation [87, 88], bankruptcy prediction [89], engineering design [65, 9093], financial stress prediction [94], constrained practical engineering problems [95], support vector machines [66, 96, 97], extreme learning machine (ELM) [98103], convolutional neural networks [104107], medical image recognition [108], feature selection [66, 109113], feature information fusion [114], social evolution modeling [115], recommender system [116], text clustering [117], and unsupervised band selection [118]. Secondly, since MWOA is a population-based stochastic optimizer that may still encounter population stagnation problems for some more complex datasets, further improvement of the algorithm performance based on other optimization mechanisms is also a meaningful research direction.

Data Availability

The data involved in this study are all public data, which can be downloaded through public channels.

Conflicts of Interest

The authors declare that there are no conflicts of interest regarding the publication of the article.

Authors’ Contributions

Chen Chi, Huiling Chen, and Hailong Huang contributed equally to this work.

Acknowledgments

This study was supported by the National Social Science Fund of China, “Research on the Coordination between Distributive Justice and Economic Efficiency in the Process of New Urbanization” (Project no. 16CTJ012). Thanks are due to Ali Asghar Heidari for his efforts during the preparation of this research.