1. Introduction
The continuous effects of climate change and environmental contamination have motivated a growing interest in the use of renewable energies to replace conventional energy sources based on fossil fuels. Within renewable energies, photovoltaic (PV) energy offers interesting advantages: long life cycle, lack of mobile parts, low maintenance costs, modularity, among others [
1]; that is why the installed PV capacity has been growing in the last years [
2]. In a PV system, one of the most important elements is the generator; therefore, it is important to have models of this element to reproduce its electrical behavior when they operate under homogeneous and non-homogeneous conditions [
3]. These models are used in different applications like the sizing of PV generators, the power, and energy production estimation, the analysis, and evaluation of maximum power point tracking techniques, model-based diagnosis, and other applications [
4]. A PV generator can be connected in different configurations, nonetheless, series-parallel (SP) is one of the most used configurations. In an SP generator, two or more modules are connected in series to form a string and two or more strings are connected in parallel to form the generator. As a consequence, all the strings have the same voltage and can be analyzed independently [
5]. It is worth noting that each module is formed by one or more submodules connected in series and each submodule has a bypass diode connected in antiparallel. When the irradiance and temperature of all the submodules in the generator are the same, it can be said that the generator operates under homogeneous conditions [
6]. In these conditions, the whole generator can be represented by the single-diode model (SDM) scaled in voltage, according to the number of modules in the string, and scaled in current, according to the number of strings in parallel [
7]. In this case, the current vs. voltage (I–V) curve has a single knee and the power vs. voltage (P-V) curve has a single maximum power point (MPP), which can be easily tracked. In real applications, the PV generator is commonly shaded, or partially shaded, by surrounding objects, passing clouds, or other objects. Hence, the operating conditions (i.e., irradiance and temperature) of the shaded submodules are different than the operating conditions of the rest of the submodules [
8]. In this case, it is said that the generator operates in nonhomogeneous conditions and the generator’s I–V curve may present multiple knees, which is translated into multiple MPPs in the P-V curve [
9]. To model a PV generator operating in nonhomogeneous conditions, it is necessary to consider that each submodule in a module is represented by the SDM. In this way, it is possible to include the effects of the nonhomogeneous conditions in the electrical behavior of the generator [
10]. Therefore, the generator can be analyzed as an equivalent circuit that is obtained by connecting strings in parallel, where each string is formed by a set of submodules connected in series [
11,
12].
In the literature, most of the models use the SDM to represent each submodule and they use the LambertW function [
13] to obtain an explicit equation of the submodule’s current as a function of its voltage [
7,
14,
15,
16]. Then, each string formed by N submodules and a blocking diode is modeled independently by a system of N + 1 nonlinear equations, where the unknowns are the voltages of the blocking diode and the N submodules [
7,
14,
15,
16]. Solving the system of nonlinear equations of each string, it is simple to calculate the string current and finally the generator’s current. However, the evaluation of the LambertW function implies a high computational cost for the solution to the system of nonlinear equations associated with each string. For example, in [
7] the modeling of a PV array based on the use of the Lambert W-function to obtain an explicit relationship between the voltage and current of any PV module is presented. In addition, the non-linear equations that describe the PV array are solved by means of explicit symbolic calculation of the inverse of the Jacobian matrix. A similar solution was published in [
14], where a new formulation of the one-diode model of the PV module is solved using the LambertW function with the terminal voltage expressed as an explicit function of the current, this approximation resulting in a reduction of simulation calculation time. Another solution was presented in [
16], where a model of the PV field is presented by means of a set non-linear equations characterized by a sparse Jacobian matrix, which requires a moderate computational burden, both in terms of memory use and processor speed. Optimization methods for estimating the PV module parameters are presented as a suitable option to overcome the drawbacks of deterministic and iterative methods. In addition, optimization methods are not only used in PV area for estimating parameters, since the reconfiguration of PV modules to mitigate the effect of partial shading conditions in PV arrays is currently one of the most studied topics [
17]. The model proposed in [
18] uses the implicit equation that describes the current-voltage relationship in the SDM. From such an equation, is it possible to construct a system of N + 2 implicit equations to model each string, where the unknowns are the string current and the N + 1 voltages of the N submodules and the blocking diode. Then, solving each string it is possible to calculate the generator’s current as in the other models. In [
18] the system of N + 2 implicit equations is solved by using the Trust-Region Dogleg (TRD) algorithm, which is a deterministic optimization method. However, the authors in [
18] do not formulate the solution of the system of N + 2 implicit equations as an optimization problem with restrictions; moreover, the authors do not provide any justification for the selection of TRD for solving the optimization problem nor evaluate other deterministic and metaheuristic optimization algorithms. Finally, those works [
7,
14,
15,
16,
18] are focused on the model, i.e., the system of nonlinear equations, and not in the optimization algorithms used to solve such models. Therefore, from those papers it is not clear which type of optimization methods should be used to reduce the calculation time.
This paper formulates the solution of the system of N + 2 implicit equations, associated with each string, as an optimization problem with restriction for the N + 2 unknowns, i.e., string current and the voltages of the N modules and the blocking diode. Moreover, the paper evaluates four optimization algorithms, two deterministic and two metaheuristics, to solve the problem and generate the I–V and P-V curves of generators with different sizes. The two deterministic algorithms are TRD and Levenberg-Marquardt (LMA), which are widely used to solve optimization problems in different areas; while the two metaheuristic optimization algorithms are Weighted Differential Evolution (WDE) and Symbiotic Organism Search (SOS), which have been recently used for PV applications. The evaluation of the optimization algorithms is performed with simulations of small, medium, and large generators in homogeneous and non-homogeneous conditions. Finally, experimental results are used to evaluate the different optimization algorithms for a small PV generator. In light of the previous analysis, the main advantages of the proposed procedure are listed as follows:
A solution of the system of N + 2 implicit equation as an optimization problem with restrictions, which can be used to explore other optimization methods to reduce the model’s solution time.
Performance comparison of metaheuristic and deterministic optimization algorithms for solving the problem provides guidelines to continue exploring other optimization methods to reduce the computation time.
A novel application of the algorithms of weighted differential evolution and search for symbiotic organisms to solve the implicit model of series-parallel photovoltaic arrays is presented.
The rest of the paper is organized as follows:
Section 2 describes the implicit model used in this paper,
Section 3 introduces the optimization problem and the operating principle of the optimization algorithms,
Section 4 and
Section 5 show the simulation and experimental results, respectively, and
Section 6 closes the paper with the conclusions.
4. Simulations Results
This section introduces the simulation results for small, medium and large generators, i.e., PV generators formed by a single string with 6, 36 and 72 series-connected submodules, respectively. All the simulated generators are formed by Trina Solar TMS-PD05 de 270 W [
38] modules, which are composed of three series-connected submodules. Moreover, the bypass diodes of the three submodules in this section are GF3045T [
39]. It is worth noting that the generators considered in this section only have one string. This is because for generators with M strings each string is independently solved, which is equivalent to solve one string M times and then to sum the currents of all the strings to calculate the array current. The SDM parameters in STC are calculated, with the procedure proposed in [
40], from the module datasheet information. Then, the parameters are adjusted for a module temperature of
C (
C) and an irradiance of 1 kW/m
2 (
kW/m
2), by following the procedure proposed in [
31], obtaining the following values:
A,
A,
, and
. Afterward, the bypass diode parameters are calculated from the datasheet information as follows:
A and
. The irradiance condition of each submodule in the generator is represented by using the linear dependence on
with the submodule irradiance. Therefore, the irradiance reduction in a submodule produced by some kind of shading is represented by a coefficient
that multiplies
and varies between 0 and 1. Thus the reduction of
is proportional to the reduction of the submodule irradiance. The
coefficients of all the string submodules are grouped in a vector (
) that represents the shading conditions of the string. The solutions obtained with the four optimization methods used in this paper are compared with the solution of the equivalent electrical circuit (EEC) of each generator. Those EECs for the small, medium, and large generators are implemented in Simulink of Matlab; hence, the errors calculated for the optimization algorithms are calculated concerning the EEC solution.
4.1. Small Generator
This generator is formed by two modules connected in series that correspond to six submodules. This low power generator may be used in grid-connected applications, by using a microinverter, or in stand-alone applications to charge a battery or to feed a set of lights. The simulation results of this generator operating under homogeneous (i.e.,
) and partial shading (i.e.,
) conditions are introduced in
Figure 4 and
Figure 5, respectively. Those figures show the I–V curves and the error in the current calculation for all the implemented optimization methods, which use the stop criteria shown in
Table 2. Moreover, the evaluation criteria of the simulation results (see
Table 3) are: the computation time, the root mean square error (RMSE), and the number of evaluations of the objective function (
).
In
Figure 4a it can be observed that all the implemented optimization methods can reproduce the I–V curve of a small string (six submodules) under homogeneous conditions. Additionally, the errors in the string current calculation are similar for the different methods, as shown in
Figure 4b and
Table 3. When the generator operates in partial shading conditions, three of the four algorithms (TRD, LMA, and SOS) can solve the system of implicit equations for all the voltages to reproduce the I–V with similar errors (see
Figure 5 and
Table 3). However, the WDE algorithm presents significant errors in the current calculation for voltages between 20 V and 55 V, as it is evidenced in
Figure 5 and
Table 3. Therefore, WDE is not a suitable algorithm to solve the model of a small generator in partial shading conditions. Note that under homogeneous and partial shading conditions the computation time and number of cost function evaluations (
) of the deterministic optimization methods (TRD and LMA) are significantly less than the computation time and
of the metaheuristic algorithms (WDE and SOS), as shown in
Table 3. Moreover, the RMSE values of the methods able to solve the optimization problem provide similar errors in the I–V curve reproduction.
4.2. Medium Generator
In this case, the generator is formed by one string with 12 modules (36 submodules) connected in series, which is a typical configuration for a residential application with a string inverter (e.g., ABB UNO-7.6-TL-OUTD). For this generator, the stop criteria of the optimization algorithms are modified concerning the previous subsection, as shown in
Table 4, to improve the performance of the algorithms.
The medium generator I–V curves for homogeneous and partial shading conditions are presented in
Figure 6 and
Figure 7, respectively; while the computation time, RMSE and
are introduced in
Table 5. Moreover, the vectors that define the homogeneous (
) and partial shading conditions (
) have 36 elements and are defined as follows: all elements in
are 1 and
has 24 elements equal to 0.8, 6 elements equal to 0.6, and 6 elements equal to 0.2.
The results in
Figure 6 and
Figure 7 and
Table 5 show that the deterministic methods (TRD and LMA) solve the system of equations of the string for homogeneous and partial shading conditions. Additionally, the RMSE values for the I–V curves are the same for both deterministic methods (less than 0.1 A); nevertheless, computation times of TRD are less than the computation times of LMA for both homogeneous and partial shading conditions. In general, metaheuristic methods present greater errors and computation times than the deterministic methods in the I–V curve’s calculation. For homogeneous conditions, the current errors are concentrated in medium and high generator voltages (from 250 V to 400 V), as shown in
Figure 6; those errors generate RMSE values between 13% and 60% greater than the ones of the deterministic methods. Whilst for partial shading conditions, the RMSE values of the metaheuristic methods between 15.3 and 21.3 times greater than the RMSE values of the deterministic methods, and the errors occur in the entire range of the generator voltage (see
Figure 7). As observed, the computation times of the metaheuristic algorithms are two orders of magnitude greater than the computation times of the deterministic methods, which is also reflected in the number of cost function evaluations (
). Finally, the results in
Table 5 indicate that the implemented metaheuristic optimization methods are not suitable for solving the implicit model of a medium PV generator.
4.3. Large Generator
This generator is formed by a single string with 24 modules (72 submodules) connected in series, which can be found in industrial applications or high-power generators that use inverters whit maximum input voltages of 1 kV (e.g., Sunny Tripower 20000TL). The stop criteria are the same shown in
Table 4 and the vectors that define homogeneous (
) and partial shading (
) conditions have 72 elements defined as follows: all elements in (
) are 1 and (
) has 30 elements equal to 0.8, 30 elements equal to 0.6, and 12 elements equal to 0.2. The generator I–V curves and the errors in the current calculation are shown in
Figure 8 and
Figure 9 for homogeneous and partial shading conditions, respectively; while the computation time, RMSE and
are presented in
Table 6.
Once more, the results in
Figure 8 and
Figure 9 and
Table 6 indicate that the deterministic optimization methods (TRD and LMA) are capable to reproduce the I–V curves for the evaluated conditions with RMSE less than 0.10 A. In homogeneous conditions, the computation time of LMA is 12.9% less than the one of TRD; while in partial shading conditions the computation time of TRD is 15.5% less than the computation time of LMA. Moreover, the values of
for TRD and LMA have similar behavior to the computation time. The metaheuristic algorithms show errors and computation time greater than the deterministic algorithms in the reproduction of the I–V curves in the evaluated operating conditions. For homogeneous conditions (see
Figure 8) the biggest errors are present in high voltages; as consequence, the RMSE values of the metaheuristic methods are significantly greater (between 132% and 700%) than the deterministic algorithms. In partial shading conditions (see
Figure 9) the errors are in the whole voltage range, making the RMSE values of the metaheuristic methods between 24.2 and 31.9 times the RMSE values of the deterministic methods. Additionally, the computation time of the metaheuristic algorithms is two orders of magnitude greater than the one of the deterministic algorithms, which is similar to the differences in
(see
Table 6). After the evaluation of the four optimization algorithms for small, medium and large PV arrays, it seems that metaheuristic optimization methods do not worth their evaluations because the evaluated deterministic optimization methods outperform the evaluated metaheuristic methods. However, those results could not be obtained if the comparison is not performed; therefore, we consider that the evaluation is proposed in the paper is valid, since it is necessary to explore different optimization methods to reduce the computation time of the model. Such a reduction is important for applications like reconfiguration, energy production estimation, evaluation of MPPT techniques, among others.
5. Experimental Results
The performance of the optimization methods was validated with experimental data, which were obtained with the test bench shown in
Figure 10 This test bench if formed by a PV with Matlab, a programmable electronic load BK Precision 8500, and a Trina Solar TMS-PD05 de 270 W [
38] PV module. The PV module is the same one used in the simulations (formed by 3 submodules); however, the SDM parameters of the submodules (
A,
nA,
,
and
) and the bypass diodes (
A and
are calculated from experimental I-V curves. The experimental validation considers two cables AWG 12 of 28.96 m each, which introduce losses that can be represented by resistance in series with the module of 313 m
. Therefore, such resistance was included in the
parameter of each submodule; thus, the ohmic losses introduced by the cables are lumped in the
of the submodules.
The small generator used for the experimental validation was formed by one string of three submodules, which was evaluated for homogeneous (C-1) and partial shading (C-2) defined by the vectors (
) = [0.4 0.4 0.4] and (
) = [0.620 0.598 0.210], respectively. Moreover, the stop criteria used for the optimization algorithms were the same ones defined in
Table 2. The experimental results for conditions C-1 and C-2 are summarized in
Figure 11 and
Table 7.
Figure 11 introduces the I–V curves obtained with the experimental test bench, the four optimization algorithms (TRD, LMA, WDE, and SOS), and the equivalent electrical circuit (EEC) for conditions C-1 and C-2; while
Table 7 shows the computation time, RMSE values, and
for the different methods.
In general, the experimental results agree with the simulation results obtained for small generators (
Section 4.1) regarding computation time and current errors. On the one hand, in homogeneous conditions (C-1), the four optimization algorithms generate I–V curves that fit the experimental data with practically the same RMSE values. Moreover, the error in the current calculation for condition C-1 increases for high voltages (circles in
Figure 11b), which agrees with the behavior shown in the simulation results for small generators (see
Figure 4b). On the other hand, in partial shading conditions (C-2) three algorithms (TRD, LMA and SOS) reproduce the experimental I–V curves with the same RMSE values. However, the WDE presents significant errors in the current calculation for medium voltages (blue x in
Figure 11b), which agree with the simulation results in
Figure 5 of
Section 4.1 (small generators). The behavior of the computation time in the experimental validation is similar to the one presented in simulation results. The computation time of the metaheuristic algorithms are, approximately, two orders of magnitude greater than the deterministic algorithms. Additionally, the computation time of the deterministic methods was less than the EEC in a proportion similar to the one presented above. The computation time of the four optimization algorithms is reflected in the
values, which are similar to the values in the simulation results. Finally,
Table 7 shows that the smallest errors were obtained with the EEC model, which verifies the usefulness of this model to be used as the reference in the simulation results.
6. Conclusions
The solution of the implicit model of a PV generator in SP configuration as an optimization problem has been proposed and solved with deterministic and metaheuristic algorithms. The implicit model of an NxM SP generator (M strings with N submodules each) is formed by M systems of N + 2 implicit equations, where each system of equations corresponds to one string and it can be solved independently. Moreover, in a system of N + 2 implicit equations, the unknowns correspond to the N submodules voltages, the blocking diode voltage, and the string current. To solve a system of N + 2 implicit equations, the paper proposes an objective function and defines the upper and lower restrictions for the unknowns. Finally, the paper evaluates two deterministic optimization algorithms (TRD and LMA) and two metaheuristic algorithms (WDE and SOS) to solve the optimization problem and generate the I–V curves of small, medium, and large generators.
The proposed objective function and the performance of the four evaluated methods were validated with simulation and experimental results. The simulations show that the deterministic optimization methods can solve the optimization problem for small, medium and large generators operating in homogeneous and partial shading conditions; therefore, with these algorithms, it is possible to reproduce the generator I–V curves. Moreover, simulation results show that the metaheuristic algorithms are not able to solve the optimization problem in all cases. On the one hand, SOS correctly reproduces the I–V curves for small generators under homogeneous and non-homogeneous conditions and medium generators in homogeneous conditions. Nevertheless, for the other simulation scenarios, the errors were significant. On the other hand, WDE only solved the optimization problem for small generators under homogeneous conditions; while the errors were large for the other cases concerning the deterministic methods. We believe that metaheuristic algorithms performed worse because due to the random selection of parameter values instead of the nature of the selected algorithms (weighted differential evolution and search for symbiotic organisms). This could even be explained based on the No Free Lunch Theorems (NFL) for Optimization. Additionally, experimental results confirm simulation results for small generators in homogeneous and non-homogeneous conditions, where all the methods correctly reproduce the I–V curves except for WDE under partial shading conditions. Moreover, experimental results illustrate the usefulness of the EEC model as a reference for simulation results.
Finally, the results suggest that the solution of the implicit model of SP generators should be performed with deterministic algorithms, which suggests the necessity of evaluating other metaheuristic optimization methods to solve the proposed problem and reduce the computation time. Those presented results should be used to evaluate different solutions for energy yield calculations or economic analysis of a PV system; hence as future work, an addition to the presented algorithms with energy predictions or economic calculations will be considered.