Parameter Optimization of Single-Diode Model of Photovoltaic Cell Using Memetic Algorithm

This study proposes amemetic approach for optimally determining the parameter values of single-diode-equivalent solar cellmodel. Thememetic algorithm, which combines metaheuristic and gradient-based techniques, has the merit of good performance in both global and local searches. First, 10 single algorithms were considered including genetic algorithm, simulated annealing, particle swarm optimization, harmony search, differential evolution, cuckoo search, least squares method, and pattern search; then their final solutions were used as initial vectors for generalized reduced gradient technique. From this memetic approach, we could further improve the accuracy of the estimated solar cell parameters when compared with single algorithm approaches.


Introduction
Determining the parameter values of photovoltaic (PV) cell models is very important when designing solar cells and estimating their performance.The key parameters that represent the behavior of solar cells include generated photocurrent, saturation current, series resistance, shunt resistance, and ideality factor [1]. Estimating these parameters accurately is essential for precise modeling and accurate performance evaluation of solar cells.
Several models have been proposed to describe the behavior of solar cells using current-voltage (-) relationship [2][3][4].The - curve of a solar cell has nonlinear characteristics determined by the solar cell parameters.These models generally consist of analytical equations based on a physical description that formulate PV-generated current with the technical characteristics and the environmental variables including the operating voltage, the ambient temperature, and the irradiance [5].Among numerous modeling approaches, the single-diode model (SDM) is the most widely utilized solar cell model in the literature.A general SDM includes five parameters: photocurrent, saturation current, diode ideality constant, series resistance, and shunt resistance.
So far various computational intelligence methods, such as genetic algorithm, particle swarm optimization, simulated annealing, and harmony search, have been proposed for optimal estimation of solar cell parameters.Many studies have aimed to overcome the shortcomings of the conventional deterministic algorithms and to investigate the efficiency and applicability of the algorithms.Hybrid methods combining two or more metaheuristic algorithms also have been applied to explore the capability of stochastic artificial intelligence algorithms in estimating solar cell parameters.These algorithms could find relevant parameter values by minimizing the root mean square error (RMSE) as the objective function in the optimization process.
Up to now, metaheuristic algorithms have shown a higher level of applicability in estimating solar cell parameters with fine performance.Nonetheless, we also presume that a memetic approach, which combines the well-developed evolutionary frameworks with gradient-based local search algorithm, can provide an opportunity for better solutions.Through this memetic combination, it can be seen that the accuracy represented by RMSE can be further improved because metaheuristic algorithm can be reinforced by calculus-based method in terms of local search performance and calculus-based method can be reinforced by metaheuristic algorithm in terms of global search performance.
This paper is organized as follows.Optimization formulation of the problem to determine the solar cell parameters is described in Section 2. In Section 3, a memetic implementation, which integrates gradient-based local search into the evolutionary frameworks for better determining the parameters, is described.Then, simulation results of the proposed approach are provided in Section 4, followed by conclusions in Section 5.

Optimization Formulation of Photovoltaic Model
Solar cells are made of various semiconductor materials.The working mechanism of solar cells is essentially based on the PV effect, which is the generation of a potential difference at the P-N junction in regard to visible or other radiations.When a solar cell is exposed to light source, the semiconductor materials capture photons, and then charged carriers are generated.Potential difference and current in the external circuit guide to the separation of carriers in the internal electric field created by the junction and collection at the electrodes.The photogenerated charge carriers can be accordingly captured in the form of an electric current, that is,  ph .Eliminating this effect, a solar cell behaves like a traditional diode that does not rely on any light parameters.The Shockley diode equation is utilized to represent the current flowing through the diode (  ) [5] as follows: where  SD denotes diode saturation current (normal diode current),   denotes electrical potential difference between both ends of the diode,  denotes ideality factor, and   denotes thermal voltage.Here, the thermal voltage can be represented as follows: where  denotes Boltzmann constant (1.380650 × 10 −23 J/K),  denotes ambient temperature (306 K in this study), and  denotes electron charge (1.602176 × 10 −19 C).SDM, which can be visually described in Figure 1, follows the superposition principle [6][7][8].Thus, the terminal current  is equal to  ph subtracting the currents diverting through the diode and resistance as follows: where  sh denotes shunt current,  denotes operating voltage,   denotes series resistance, and  sh denotes shunt resistance.Figure 1 can be transformed into an optimization problem with respect to RMSE once measured data of - relationship is given, as follows: This optimization problem has five decision variables of cell-generated photocurrent  ph , diode saturation current  SD , diode ideality factor , series resistance   , and shunt resistance  sh .The measured - data is given in Table 1 [5] where the first column represents measured voltage data and the second column represents measured current data, which originally came from a commercial (RTC France) 57 mm diameter silicon solar cell performing at the standard irradiance level (1 sun (1000 W/m 2 ) at 306 ∘ K) [9].Also, the - data is graphically shown in Figure 2.

Memetic Implementation
Memetic computing is a branch in computer science which considers complicate structures as the combination of heterogeneous operators, named memes, whose evolutionary interactions contribute to intelligent structures for problem solving [10,11].For recent decades, memetic algorithms have been widely applied in the large-scale complex optimization problems.The problem of balance between global and local search, that is, balance between computational intelligence and gradient-based search algorithm, has been explored under a multiobjective optimization setting in [12,13].In [14], a memetic algorithm was presented to analyze the evolutionary artificial neural network for training of a medical application.For a large-scale combinatorial optimization problem, a parallel memetic algorithm with selective local search was proposed in [15].In [16][17][18], memetic algorithms were applied to solve scheduling and planning problems such as vehicle routing and path planning.A fast adaptive memetic algorithm for a design of controller of engineering drives was presented in [19], and a compact memetic differential algorithm has been developed for a robot control in [20].In [21], a differential evolution-based hybrid algorithm was provided to solve the optimization problem in flow-dynamic design.In [22] a novel memetic algorithm scheme was proposed by combining metaheuristic algorithm and gradientbased technique to find better solutions for an economic load dispatch problem with valve-point loading.
In order to explore the opportunity of better solution in determining solar cell parameters using the memetic combination proposed in this study, various metaheuristic algorithms, such as genetic algorithm, simulated annealing, particle swarm optimization, harmony search, and cuckoo search, as well as mathematical approaches, such as least squares method and pattern search, have been performed, which have shown the good level of performances among all the existing relevant approaches in literature.
Once good parameter values for the PV cell model are obtained using the above-mentioned various algorithms, the values can be further polished using gradient-based techniques.In this study, we adopted generalized reduced gradient (GRG) method as the gradient-based local search technique.
The GRG algorithm was first developed by Abadie and Carpentier [23] as an extension of the reduced gradient method to solve a general constrained nonlinear programming problem, which can be stated as follows [24]: Minimize  (x) , x ∈  ⊆  ⊆   subject to ℎ  (x) = 0,  = 1, . . .,    (x) ≤ 0,  =  + 1, . . .,    ≤   ≤   ,  = 1, . . ., , (5) where x = ( 1 ,  2 , . . .,   ) is a vector of  variables, (x) is the objective function, ℎ  (x) is the th equality constraint, and   (x) is the th inequality constraint ( < ). is the whole search space and  is the feasible search space.The   and   denote the lower and upper bounds of the variable   , respectively.It is assumed that all problem functions (x), ℎ  (x), and   (x) are twice continuously differentiable.
GRG transforms inequality constraints into equality constraints by introducing slack variables.Hence all the constraints are of equality form and can be represented as follows: where x contains both original variables and slacks.Variables are divided into dependent variables x  and independent ones x  (or basic and nonbasic variables, resp.): The names of basic and nonbasic variables are from linear programming.Similarly, the gradient of the objective function, bounds, and the Jacobian matrix may be partitioned as follows: Let x 0 be an initial feasible solution, which satisfies equality constraints and bound constraints.Note that basic variables must be selected so that   (x 0 ) is nonsingular.
The reduced gradient vector is determined as follows: The search directions for the independent and the dependent variables are given by A line search is performed to find the step length  as the solution to the following problem: Minimize  (x 0 + d) The optimal solution  * to the problem gives the next solution: A more detailed description of the GRG method can be found in [25].Table 1 shows corresponding currents calculated by various algorithms, and Figure 3 shows the errors between calculated and measured currents from various algorithms.As observed in the figure, the magnitude of the errors abruptly increases after around 0.4 V. Presumably this is because representing rapid change is more difficult than representing monotonic change.The measured current abruptly drops after around 0.4 V as seen in Figure 2.
The above-enumerated algorithms found good PV parameter values with small RMSE.However, is it possible to further improve the solution quality?The memetic algorithm, which combines metaheuristic and gradientbased algorithms, may answer to this question because the memetic algorithm can complement the weakness of metaheuristic algorithm by using gradient-based algorithm.Thus, we can obtain even better solutions if we introduce gradient-based algorithm to the metaheuristic algorithm.
The gradient-based algorithm (GRG in this study) by itself cannot find good solution unless it starts with good and feasible initial vector.Otherwise, it will get stuck in a local optimum or will diverge instead of converging.For this PV parameter optimization problem also, finding good solutions using gradient-based algorithm requires proper feasible initial vector, which is not very easy and tedious task.Thus, the result vectors from metaheuristic or other mathematical algorithms can be used as the proper initial vectors for the gradient-based algorithm.
The results from the memetic approach were tabulated in Table 3.As seen in the table, some initial vectors could be further improved while others could not because of getting stuck in local optimal (LO).SA + GRG could improve RMSE from 0.02165 to 0.00209; GA2 + GRG could improve RMSE from 0.02158 to 0.00432; PS + GRG could improve RMSE from 0.01741 to 0.00261; however, NLS1 + GRG, PSO + GRG, LS + GRG, NLS2 + GRG, HS + GRG, RADE + GRG, and CS + GRG could not improve RMSE any further because they already reached local optima where there is no room to escape using the local search technique.Here, the computation time of GRG part is less than one second, so it does not become a burden.
Figure 4 shows the errors between calculated and measured currents from various memetic approaches.As observed in the figure, the magnitude of the errors is less than single algorithm approach.While CS found the best RMSE of 0.00269 in single algorithm approach, PS + GRG International Journal of Photoenergy could find the better RMSE of 0.00261, and SA + GRG could find even better RMSE of 0.00209.While the above approach used the constant ambient temperature (306 ∘ K or 32.85 ∘ C), the sensitivity of the ambient temperature was also tested under various operation (weather) conditions between −5 ∘ C and 40 ∘ C. SA + GRG produced the computation results as shown in Table 4.As seen in the table,  ph and   are fluctuating,  SD is increasing,  is decreasing, and  sh is almost constant.

Conclusions
In this study, a memetic approach has proposed for optimally determining the parameter values of single-diode-equivalent solar cell model.The memetic approach considered various metaheuristic and mathematical algorithms and combined them with GRG technique.The results validated the performance of the memetic approach, which further improved the quality of solutions originally obtained by various algorithms.
The proposed memetic approach in this work can be also further applied to more complicated and realistic PV models with various module types [32] in the future.And theoretically the balance between global search and local search can be a good future research topic because too much exploited solutions do not appear to be good initial vectors for local search algorithms.In addition, parameter-setting-free technique [33,34] can be also incorporated in metaheuristic approach in order to eliminate tedious algorithm parameter setting task.

Figure 1 :
Figure 1: Single-diode-equivalent circuit model of solar cell.

Figure 2 :
Figure 2: Experimental - curve of a PV module.

Table 1 :
Measured - data and computation results.

Table 3 :
Optimal parameter values from memetic algorithms.

Table 4 :
Sensitivity analysis of ambient temperature.