Next Article in Journal
Attenuation of Temperature Fluctuations on an External Surface of the Wall by a Phase Change Material-Activated Layer
Next Article in Special Issue
Comparison of Training Approaches for Photovoltaic Forecasts by Means of Machine Learning
Previous Article in Journal
A Synthetic Nervous System Controls a Simulated Cockroach
Previous Article in Special Issue
Thermal and Performance Analysis of a Photovoltaic Module with an Integrated Energy Storage System
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Online Identification of Photovoltaic Source Parameters by Using a Genetic Algorithm

by
Giovanni Petrone
1,*,†,
Massimiliano Luna
2,
Giuseppe La Tona
2,
Maria Carmela Di Piazza
2 and
Giovanni Spagnuolo
1
1
Dipartimento di Ingegneria dell’Informazione ed Elettrica e Matematica Applicata, Università degli Studi di Salerno, 84084-Fisciano, Italy
2
Consiglio Nazionale delle Ricerche, Istituto di Studi sui Sistemi Intelligenti per l’Automazione, 90146-Palermo, Italy
*
Author to whom correspondence should be addressed.
Current address: Via Giovanni Paolo II n.132-84084 Fisciano, Salerno, Italy.
Appl. Sci. 2018, 8(1), 9; https://doi.org/10.3390/app8010009
Submission received: 26 November 2017 / Revised: 12 December 2017 / Accepted: 15 December 2017 / Published: 22 December 2017
(This article belongs to the Special Issue Computational Intelligence in Photovoltaic Systems)

Abstract

:
In this paper, an efficient method for the online identification of the photovoltaic single-diode model parameters is proposed. The combination of a genetic algorithm with explicit equations allows obtaining precise results without the direct measurement of short circuit current and open circuit voltage that is typically used in offline identification methods. Since the proposed method requires only voltage and current values close to the maximum power point, it can be easily integrated into any photovoltaic system, and it operates online without compromising the power production. The proposed approach has been implemented and tested on an embedded system, and it exhibits a good performance for monitoring/diagnosis applications.

1. Introduction

The photovoltaic (PV) single-diode model (SDM), shown in Figure 1, is widely used for describing the electrical behavior of a photovoltaic source because it is a good trade-off between model complexity and precision. Such a model is mainly adopted to reproduce the electrical I-V curve of the PV source, and in general, it operates offline with respect to the system under investigation. The SDM is also useful in online applications such as model-based maximum power point tracking (MPPT) and monitoring/diagnosis operation [1,2,3,4].
The five parameters ( I p h , I s , η , R s , R h ) appearing in (1), which is the equation underlying the SDM, are usually calculated by using datasheet information, or experimental data, or a combination of them. Due to the strong nonlinearity and the involved implicit relationships, the calculation of the SDM parameters is a challenging task. In particular, this calculation involves the use of iterative algorithms that have some drawbacks: they are slow and do not guarantee the convergence to the exact solution if a good initial estimate (guess solution) is not available. Therefore, iterative methods for the SDM parameter identification are not suitable to be applied on-line, for example to support MPPT [5].
Some papers highlighted how the variation of the SDM parameters is strictly related to some degradation phenomena occurring inside the PV panel. Such degradation phenomena should be properly monitored and eventually removed to avoid significant losses in the energy production [6,7]. In this scenario, the adoption of online parameter identification procedures, working during the normal operation of the PV source, is very attractive. By comparing the identified values with the ones assumed as the reference and related to the proper operation of the source, the state of health of the PV panels can be detected.
Besides the aging issues, there are some common circumstances where the state of health of the PV panels changes suddenly as for hot-spot phenomena. In these cases, a prompt identification of the SDM parameters’ variations can avoid destroying the PV panels and prevent dangerous situations like triggering a fire. In mismatched PV fields, hot-spot phenomena appear frequently, so that an on-line monitoring of the state of health is highly recommended.
For all the above reasons, several technical contributions have been proposed to perform the online parameter identification of the PV SDM. For example, in [8], a four-parameter formulation of the SDM is used to estimate the I-V curve and the maximum power point (MPP) in real time by using six pairs of voltage-current experimental points close to the MPP, whereas in [2], a software running on a personal computer (PC), which is connected to a testbed system, is used to validate the real-time implementation of such a technique.
In [9], the calculation of the SDM parameter is proposed based on explicit formulas. Specifically, the number of parameters of the SDM is reduced to four (one of the two resistances is neglected) on the basis of a suitable classification of PV panels according to their series to parallel ratio (SPR). In [10], a method that allows identifying the set of five SDM parameters by explicit formulas is given; it always keeps the fifth-order model, but in extreme conditions, it can result in unrealistic negative values of one of these two resistances. Moreover, in [11], suitable parameter translation equations, used to evaluate the SDM parameters under any environmental condition, are tested for several identification methods based on explicit formulas, and the accuracy of the translation procedure is quantitatively assessed for different case studies.
Most of the procedures described in the literature to calculate the SDM parameters require the knowledge of the short circuit current ( I s c ) and the open circuit voltage ( V o c ) in the actual environmental conditions. This information allows simplifying the parameters’ calculation since at such points, the PV voltage and current are equal to zero; thus, some equations can be simplified. On the other hand, in order to maximize the energy production, the PV system is always controlled to work as close as possible to its maximum power point. Therefore, the measurement of I s c and V o c is undesirable, since in such points, the PV source delivers zero power. Moreover, the power converter used to regulate the PV source is often not properly designed to work in the short circuit or open circuit points. Therefore, additional devices and complex procedures should be introduced to perform those measurements. For these reasons, all the SDM parameter identification procedures requiring the I s c and V o c values are mainly effective when run offline, on the basis of previously-acquired sets of measurements.
In recent years, some authors have proposed computational intelligence-based methods for the PV source model parameter identification. The proposed methods range from genetic algorithms (GAs) to differential evolution, and examples of applications to the identification of the five-parameter SDM are given in the literature [12,13]. In the case of GAs, the core idea is to define a population of individuals where each individual is a set of parameter values and then to select the best-fitted individuals as the base for generating a new population, by minimizing an error function. The main advantage of this approach is that it does not require the use of complex equations to evaluate the model parameters.
As well as in any other numerical approaches, although the initial values could be generated randomly, providing a good guess solution significantly helps the algorithm convergence and improves the execution time. On the other hand, an inappropriate selection of the initial values will result in unacceptable parameter values or in non-convergence of the algorithm [14].
Computational intelligence-based algorithms usually require powerful computing platforms to exhibit a reasonable execution time; for this reason, up to now, the embedded implementation of such techniques has been critical, sometimes forcing designers to simplify the objective function or to discard the algorithm. However, powerful embedded platforms have recently been made available on the market, for example field programmable system-on-chip (FPSoC ) and microcontrollers based on 32-bit ARM processor cores, such as the STM32 family.
As for FPSoC, a technical contribution has demonstrated that it is possible to achieve a performance comparable to that of a desktop computer when running a particle swarm optimization (PSO) algorithm [15]. As for the other platform, an STM32 microcontroller has been used for the implementation of a fixed low-order controller [16]; however, to the best of the authors’ knowledge, no implementation of complex optimization algorithms on such a device family has been proposed, yet.
In this paper, a novel approach for the online SDM five-parameter identification, requiring only some measured points close to the MPP, is proposed. In particular, the values of I s c and V o c are properly estimated so as to avoid the loss of power deriving from their measurements. Then, the problem of the appropriate determination of the guess solution is solved by using a set of suitable explicit formulas [10]. Finally, the exact solution is obtained by running a GA. The proposed method has been implemented on a very low-cost (EUR 20.00), high-performance board, namely the NUCLEO-F429ZI, which is based on an STM32 microcontroller by STMicroelectronics (Geneva, Switzerland) . The experimental results demonstrate the validity of the proposed approach.
I p v = f ( V p v , I p v ) = I p h I s [ e ( V p v + I p v R s ) η V t 1 ] V p v + I p v R s R h

2. The Optimized SDM Parameter Identification Method Based on Genetic Algorithm

The method proposed in this paper combines the GA, which is a common method for calculating the five parameters ( I p h , I s , η , R s , R h ) [12,17], with some explicit equations that are also used to calculate the SDM parameters in a direct way [10,11], i.e., without requiring iterative algorithms. Both methods, when applied independently, require the knowledge of the current and voltage values in the MPP and the values of I s c and V o c for the actual environmental condition. In the proposed solution, the measurements of I s c and V o c are replaced by their estimated values to obtain an approximated solution for the five parameters ( I p h , I s , η , R s , R h ). The latter is used as a guess solution in the GA algorithm and also used to constrain the GA research space in a proper way, thus allowing a fast convergence towards the optimal solution. In order to catch the right information about the I-V curvature around the MPP, some additional current and voltage values close to MPP must be measured and used in the GA fitness function to assure a precise evaluation of the SDM parameters.

2.1. Genetic Algorithm Basic Function Description

Although many advanced genetic algorithm tools are available [18,19,20], a basic version of GA has been selected for implementing the proposed method. This choice has been made because the main objective of this paper is to implement the technique on a low-cost digital platform, thus suitably for the online operation. The GA code has been developed in C/C++ starting from the free-download version available in [21] and distributed under the GNU Lesser General Public License license.
The GA starts by randomly generating the individuals of the initial population. The number of individuals (N) is the population size. Each individual represents a solution of the problem to be solved, and the elements composing the individuals are called genes. For the SDM parameter estimation problem, each individual is composed of five genes representing the values of ( I p h , I s , η , R s , R h ); hence, the individual is a vector of five elements. Differently from [21], in the proposed approach, the five genes of one individual of the initial population are initialized with the guess solution, which is computed as discussed in Section 2.4.
The GA evolves by modifying the population emulating the biological evolution; in fact, the new individuals are obtained by means of the following processes:
  • Selector function: the individuals that survive and reproduce are selected by evaluating the cumulative fitness function.
  • Crossover function: the individuals created by the Selector function can swap genes with another individual of the population (i.e., the other parent); therefore, these children inherit genes from both parents. The percentage of individuals created with this function is determined by parameter P C .
  • Mutation function: the individuals created by the Selector function can be subject to a random mutation of their genes. The percentage of individuals created with this function is determined by parameter P M .
  • Elite function: the individuals with the best fitness function in the current population are preserved in the next generation. The number of preserved individuals is specified using parameter N E .
The Crossover, Mutation and Elitefunctions have been implemented as shown in [21]. On the other hand, the Selector function of [21] has been modified so as to speed up the execution on the embedded platform as much as possible, as discussed in Section 4.
On the basis of the values of P C , P M and N E , the individuals move differently in the research space from one generation to another. The GA makes the population evolve until the maximum number of generations ( N g ) is reached. The individual with the best fitness in the last generation will be the optimal solution.

2.2. Genetic Algorithm Fitness Function Calculation

The GA fitness function is evaluated by accounting for the deviation from the desired goals. A first error term is the root mean square error (RMSE) of the fitted I-V curve, given M experimental test points. Since the I-V curvature changes significantly around the MPP, the M points must be selected so as to include the MPP. For each test point P i = [ V i , I i ] , the measured current I i must be compared with the current that satisfies the implicit and transcendental SDM equation (1) for V p v = V i . To this aim, the explicit version of (1) can be obtained using the Lambert-W function:
I p v , i = η · V t R s · W ( θ I ) + I p h + I s V p v , i / R h 1 + R s / R h
with:
θ I = R h · R s R h + R s · I s · e R h · R s · I p h + I s + R h · V p v , i η · V t · R h + R s η · V t
In [10,22], many details and useful references about the Lambert-W function can be found. The numerical calculation of the Lambert-W function has been implemented in C language as shown in [23].
Once I p v , i is known for i in { 1 , 2 , , M } , the RMSE of the fitting curve can be computed as:
RMSE = 1 M i = 1 M ( I p v , i I i ) 2
Moreover, to constrain the P-V curve to have its maximum in the MPP, the error on the derivative of the power in the MPP is also calculated, as shown in [24], thus improving the convergence and precision of the genetic algorithm [12]:
E MPP = d P d V | M P P = 1 R h I s η · V t · e V M P P + I M P P · R s η V t 1 + R s R h + R s · I s η · V t · e V M P P + I M P P · R s η V t · V M P P + I M P P
To account for both types of errors, which are independent, they must be combined in quadrature. Furthermore, since the considered genetic algorithm maximizes the objective function, the latter has been made equal to the reciprocal of the overall error:
Fitness = 1 E MPP 2 + RMSE 2
It is worth noting that in [12,17], the fitness function is calculated by selecting test points from I s c to V o c ; in this paper, instead, all the points are concentrated close to the MPP. Figure 2 shows the difference and highlights that the new approach allows reducing the power loss significantly because the system is controlled to operate not too far from the MPP. It is also evident that the distribution of test points must be large enough to easily catch the I-V curvature; thus, the choice of the number and position of test points around the MPP must be made as a trade-off between power loss reduction and precision in the SDM parameters’ identification. This aspect is described in Section 3.1, where some experimental cases are proposed.

2.3. GA Boundary Constraint Definition

In general, the genes assigned to the individuals of a GA population are constrained in ranges depending on the problem to be solved. As explained in [12] and related references, for each SDM parameter, the bounds have been selected by considering the physical constraints, applied to the equivalent electrical circuit of the photovoltaic source shown in Figure 1, as well as typical values found in the literature where experimental tests have been performed to put into evidence the variations of those parameters for the different PV technologies and environmental conditions.
The obtained bounds are shown in Table 1. It is worth noting that, if no further information is available, the GA research space is only confined by such bounds.
The nonlinear equation representing the I-V photovoltaic curve is strongly sensitive to the parameters’ variation; considering that the number of parameter combinations is high, it is very difficult to find the optimal solution when the research space is very large and the multimodality of the objective function increases the probability to be trapped in a local optimum. However, since the operating conditions and the PV technology significantly affect the SDM parameters, this information can be properly exploited to reduce the research domain with respect to that expressed by the physical bounds, thus improving the robustness of the GA to converge towards the global optimum and consequently to enhance the performance of the on-line SDM parameters’ identification method. This concept is qualitatively explained with the help of Figure 3 for a bi-dimensional case (i.e., for two generic parameters P 1 and P 2 ).
The approach used in this paper adopts a guess solution not only to initialize the genes of one individual of the population, but also to preliminarily detect the region of the physical research domain where it is highly probable to find the best solution. Then, the GA evolves by searching the optimal solution only in this region. In particular, every time the SDM parameter identification method is activated, the guess solution P guess = [ I p h g , I s g , η g , R s g , R h g ] is preliminarily calculated, and the new boundary conditions of the GA research space are computed as shown in Table 2.
The real bounds for the parameters having large variations ( I s , R s , R h ) are at least one order of magnitude higher and lower with respect to the guess solution values. In this way, a wide enough range is provided to account for any error in the guess solution, which is computed using approximated explicit equations, as discussed in the next section.

2.4. Guess Solution Calculation

The guess solution is obtained by means of the explicit equations shown in the following and is used as an approximated solution for the SDM parameters. More details are given in [11,25] and the related references.
I p h g I s c
I s g = C 0 · T 3 e E g k T
η g = V o c V t · ln I p h g I s g + 1
R s g = x η g V t V M P P I M P P
R h g = x η g V t I p h g I M P P I s g · e x 1
where V t = k T q is the thermal voltage of the PV junction, E g is the material bandgap and C 0 is the temperature coefficient. The latter quantity is computed using the following equations:
C 0 = I s c 0 · e γ 0 T 0 3 ; γ 0 = V o c 0 α v V o c 0 T 0 α I I s c 0 3 T 0 E g 0 k T 0 2 + E g 0 k T 0
The subscript “0” stands for a reference condition, which usually corresponds to standard test conditions (STC).
The auxiliary variable x is calculated by using the Lambert-W function again:
x = W V M P P 2 I M P P I p h g e V M P P V M P P 2 η g V t η g 2 V t 2 η g I s g V t + 2 V M P P η g V t V M P P 2 η g 2 V t 2
As the previous equations show, datasheet information concerning the operation in standard test conditions (STC) and the thermal coefficients α I and α V is needed to calculate the SDM parameters. Moreover, the values of I s c , V o c V M P P , I M P P and the PV cell temperature T at the current environmental condition must also be provided.
It is worth noting that I s c and V o c appear only in (7) and (9), respectively. In the proposed method, to avoid the measure of I s c and V o c in the actual operating conditions, the following approximation will be used for silicon-based PV panels:
I s c = β I · I M P P β I [ 1.05 ÷ 1.20 ] V o c = β V · V M P P β V [ 1.10 ÷ 1.35 ]
The ranges of β I and β V have been selected as suggested in [26,27]. As a reference, average values for the silicon-based PV panels studied in [5,9,11] are β I = 1.10784 and β V = 1.29541 . On the other hand, the dye-sensitized solar cells (DSSCs) and polymer PV modules (PPM) studied in [28] exhibit slightly higher values: β I = 1.13158 , β V = 1.48414 for DSSCs and β I = 1.25053 , β V = 1.49043 for PPM. Hence, the ranges of β I and β V should be slightly increased for non-silicon PV panels.

3. Validation of the GA-Based SDM Parameter Identification Method

This section presents the results obtained by compiling and running on a desktop PC (Intel i5-3470 quad-core processor, running at 3.2 GHz) the code written in C language to implement the GA and to calculate the guess solution. The aim is to test the code, to tune the genetic algorithm parameters and to validate the approach. A further section is dedicated to the details about the embedded system implementation.
The procedure has been applied to the experimental data of a Sunowe Solar SF125x125-72-m(l) PV panel. The related datasheet parameters are given in Table 3.
Figure 4 shows the experimental data used to test the proposed SDM parameter identification procedure. The white curves are the measured I-V curves, acquired in different irradiance and temperature conditions. The black points are the test points selected to be used by the proposed SDM parameter identification procedure. Specifically, the case related to Test #1 is discussed hereinafter, whereas the cases related to Tests #2 and #3 will be explained in Section 4.
The module temperature (T) is measured by a sensor placed at the backside of the PV panel. This quantity is used in the identification procedure for calculating the guess solution. In the absence of such a sensor, T can be estimated by using the ambient temperature, as described in [25].
The guess solution for the first experimental case has been calculated by using Equations (7)–(11) with β I = 1.2 and β V = 1.35 . The corresponding parameters are reported in Table 4.
It is worth noting that different guess solutions can be calculated by changing the values of β I and β V within their respective ranges. The choice of the best guess solution can be made by evaluating the corresponding fitness with (6). For the case of Table 4, the fitness value is reported in the last column.
In order to appreciate the benefit of using a restricted research space for the SDM parameter identification, the genetic algorithm has been launched twice: using the physical bounds of Table 1 and using the real boundary conditions of Table 2, calculated on the basis of the guess solution reported in Table 4. When the real boundary conditions are used, the guess solution is also included as an individual of the initial population; thus, a further improvement is obtained in the GA convergence.
The parameters of the GA have been set as reported in Table 5; they have been selected on the basis of the fitness function behavior. In order to show the different behavior, Figure 5 shows the trend of the best individual’s fitness with respect to the number of generations for the two above-mentioned scenarios: using only the physical bounds (Figure 5a) and using the real boundary constraints and the corresponding guess solution (Figure 5b). The figure is related to the case Test #1, but it is also representative of the other two cases. The improvement is evident in terms of the higher fitness value and faster convergence.
Once the GA has returned the best solution, the latter has been used to reconstruct the I-V and P-V curves of the PV panel. Then, the reconstructed curves have been compared with the ones obtained using the guess solution and with the experimental data. The plots are shown in Figure 6, which refers to the case Test #1. As expected, the guess solution does not fit the experimental data in the regions far from the MPP since approximated values of I s c and V o c have been used. Instead, the best solution returned by the GA allows reproducing the correct I-V curvature since the information coming from the M experimental test points has been exploited.
Finally, in Table 6, the best GA solution is compared with the guess solution: R h and I s are the parameters that have been affected by the main variations after the refinement of the guess solution performed by the GA.

3.1. Test Point Selection

The maximum variation of the I-V curvature occurs in proximity to the MPP, while the I-V curve is almost linear near I s c and V o c . Thus, the number and positions of the test points must be chosen as a trade-off between the minimum distance from the MPP (reduced power loss) and the right I-V curvature identification (high precision in the SDM parameter calculation). As a reference, the authors of [7] focused on the identification of R s , and they suggested selecting test points up to 60 % ÷ 75 % of I M P P . On the other hand, a 15% voltage reduction to the left of V M P P is usually enough to enter the other nearly linear portion of the I-V curve. Since the PV source is usually controlled by regulating the PV voltage, it is very simple to acquire the PV voltage and current by increasing (or decreasing) the control voltage reference in a step-by-step manner, thus moving with high precision around the MPP. For the case under study, the test points are equally spaced by Δ V = 1 V . To cover the desired range, N = 8 points are enough, and 4 V is the maximum distance from the MPP.
As highlighted in the previous sections, the main benefit of the proposed approach is the reduction of the power loss during the measurement of the test points. For the case under study, in the worst case, the power delivered during the acquisition of the test points is only 11% less than the one delivered in the MPP, as shown in Figure 7.

4. Performance Evaluation of the Embedded GA-Based Method

The platform chosen for the embedded implementation of the proposed GA-based parameter identification algorithm is the NUCLEO-F429ZI board by STMicroelectronics. Despite being a very low-cost board (EUR 20.00), it encompasses an STM32F429ZI microcontroller that is based on a high-performance Cortex-M4 32-bit RISC (Reduced Instruction Set Computing) core by ARM (Cambridge, United Kingdom), operating at up to 180 MHz and capable of up to 225 DMIPS. Such a microcontroller is equipped with 2 MB of Flash memory and 256 kB of SRAM. It features a rich variety of internal peripherals, among which three 12-bit, analog to digital converters (ADCs) and two expansion connectors that allow using a wide choice of specialized shields. Suitable signal conditioning circuits have been set up to extend the ADC voltage range; the obtained measurement system exhibits a 100-V voltage range and a 10-A current range. A virtual serial port over a USB connection has been used to print debug messages and statistics. The need to generate the 48-MHz clock for the USB port has imposed a maximum working frequency of 168 MHz for the microprocessor. Nonetheless, a frequency of 180 MHz can be used if the USB communication is not required.
After the validation on a desktop PC described in Section 3, the functions written in C language to implement the GA and to calculate the guess solution have been integrated into a previously implemented digital controller for the switching converter of the PV panel. Figure 8 shows the functional scheme and the flowchart of the enhanced digital controller, which encompasses a voltage controller, a perturb and observe (P&O) MPPT algorithm and the proposed online parameter identification algorithm. With reference to Figure 8b, the white blocks represent the typical flowchart of the perturb and observe algorithm, whereas the gray blocks allow performing the I-V scan and activating the online parameter identification procedure. In Figure 8b, Tp is the period of the MPPT algorithm, thus it is in the order of magnitude of milliseconds. The on-line identification method can be managed by an interrupt service routine activated by an additional timer having a periodicity of hours or minutes, depending on the objective of the monitoring procedure.
The whole C project has been compiled with no relevant modifications for the STM32 microprocessor and experimentally tested. When the parameter identification procedure is triggered, for example by a timer or on demand, the MPPT algorithm is temporary disabled, and the PV operating point is driven to the left of the MPP at V p v V M P P M 2 Δ V . Then, the I-V curve is scanned and the voltage and current values corresponding to the M operating points close to the MPP are stored in memory. Subsequently, the guess solution and the real bounds are calculated. Once the GA has been configured, it is launched, and the MPPT algorithm is reactivated. It is worth noting that the time spent calculating the best solution of the SDM parameters does not affect the control dynamics of the DC/DC converter since this task runs concurrently with the MPPT algorithm until a new request of the SDM parameter identification is triggered.
The experimental validation has been performed on the same Sunowe Solar PV panel of Section 3 in the other two operating conditions (Tests #2 and #3). The white curves of Figure 4 are the whole I-V curves measured offline, whereas the black points are the M test points acquired online by the embedded system.
The guess solutions and the best solutions returned by the GA for the two experimental cases are shown in Table 7. Once again, these solutions have been used to reconstruct the I-V and P-V curves of the PV panel in the two considered operating conditions. Then, the reconstructed curves have been compared with the ones obtained using the guess solution and with the experimental data referred to each test case. The plots are shown in Figure 9 and Figure 10 and show that the best solutions returned by the GA allows a correct I-V curve reproduction.
As for the numerical results returned by the GA, there is no difference in comparison with the execution on the desktop PC because the C compiler for the STM32 microcontroller supports the double data type. The execution time on the microcontroller, instead, is very different from that on the desktop PC. Aiming to reduce it as much as possible, the Selector function of the GA available in [21] has been suitably modified. In particular, to pick up the individuals that survive and reproduce, the original function used a linear search over a vector holding the values of the cumulative fitness function. The worst-case computational complexity of the linear search is O ( n ) . Instead, in the proposed approach, a binary search algorithm is used, which has a worst-case computational complexity of O ( l o g ( n ) ) . Table 8 reports the average execution time of the GA in different conditions and shows that an appreciable speed gain has been obtained. Overall, the obtained execution time of the GA using the binary search on the STM32 microcontroller is under 10 min, thus more than adequate for on-line monitoring/diagnosis applications.

5. Conclusions

An SDM parameters’ identification method has been discussed in this paper. The proposed approach combines the simplicity of an explicit method, used for calculating an approximated solution, with the exploring capability of the genetic algorithm; the latter is adopted for finding the best solution in a properly selected research space. Accurate results have been achieved without using the direct measurement of short circuit current and open circuit voltage that are typically used in other parameter identification methods. Since the proposed method requires only voltage and current values close to the maximum power point, it can be easily integrated into any photovoltaic system, and it operates online without compromising the power production. The combined method has been implemented and tested on a very low-cost STMicroelectronics NUCLEO-F429ZI, exhibiting good performance and confirming the potential of such a kind of embedded system for achieving the online monitoring/diagnosis of PV plants.

Acknowledgments

This work was supported by the fund: “Fondo di Ateneo per la Ricerca di Base” (FARB projects) of the University of Salerno.

Author Contributions

Giovanni Petrone and Massimiliano Luna conceived the methodology and developed the simulations, they also contributed to write the paper, to perform the experiments and to analyze data; Giuseppe La Tona worked to develop the software and to the perform the tests; Maria Carmela Di Piazza and Giovanni Spagnuolo contributed to develop the methodology, to write the paper and validate the data of the experimental tests.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Manganiello, P.; Ricco, M.; Petrone, G.; Monmasson, E.; Spagnuolo, G. Optimization of Perturbative PV MPPT Methods Through Online System Identification. IEEE Trans. Ind. Electron. 2014, 61, 6812–6821. [Google Scholar] [CrossRef]
  2. Blanes, J.M.; Toledo, F.J.; Montero, S.; Garrigós, A. In-Site Real-Time Photovoltaic I-V Curves and Maximum Power Point Estimator. IEEE Trans. Power Electron. 2013, 28, 1234–1240. [Google Scholar] [CrossRef]
  3. Wang, W.; Liu, A.C.F.; Chung, H.S.H.; Lau, R.W.H.; Zhang, J.; Lo, A.W.L. Fault Diagnosis of Photovoltaic Panels Using Dynamic Current-Voltage Characteristics. IEEE Trans. Power Electron. 2016, 31, 1588–1599. [Google Scholar] [CrossRef]
  4. Batzelis, E.I.; Kampitsis, G.E.; Papathanassiou, S.A. Power Reserves Control for PV Systems With Real-Time MPP Estimation via Curve Fitting. IEEE Trans. Sustain. Energy 2017, 8, 1269–1280. [Google Scholar] [CrossRef]
  5. Cannizzaro, S.; Di Piazza, M.C.; Luna, M.; Vitale, G. Generalized classification of PV modules by simplified single-diode models. In Proceedings of the 2014 IEEE 23rd International Symposium on Industrial Electronics (ISIE), Istanbul, Turkey, 1–4 June 2014; pp. 2266–2273. [Google Scholar]
  6. Bastidas-Rodriguez, J.D.; Franco, E.; Petrone, G.; Ramos-Paja, C.A.; Spagnuolo, G. Model-Based Degradation Analysis of Photovoltaic Modules Through Series Resistance Estimation. IEEE Trans. Ind. Electron. 2015, 62, 7256–7265. [Google Scholar] [CrossRef]
  7. Sera, D.; Mathe, L.; Kerekes, T.; Teodorescu, R.; Rodriguez, P. A low-disturbance diagnostic function integrated in the PV arrays’ MPPT algorithm. In Proceedings of the IECON 2011—37th Annual Conference of the IEEE Industrial Electronics Society, Melbourne, Australia, 7–10 November 2011; pp. 2456–2460. [Google Scholar]
  8. Toledo, F.; Blanes, J.M.; Garrigós, A.; Martínez, J.A. Analytical resolution of the electrical four-parameters model of a photovoltaic module using small perturbation around the operating point. Renew. Energy 2012, 43, 83–89. [Google Scholar] [CrossRef]
  9. Cannizzaro, S.; Di Piazza, M.C.; Luna, M.; Vitale, G. PVID: An interactive Matlab application for parameter identification of complete and simplified single-diode PV models. In Proceedings of the 2014 IEEE 15th Workshop on Control and Modeling for Power Electronics (COMPEL), Santander, Spain, 22–25 June 2014; pp. 1–7. [Google Scholar]
  10. Accarino, J.; Petrone, G.; Ramos-Paja, C.A.; Spagnuolo, G. Symbolic algebra for the calculation of the series and parallel resistances in PV module model. In Proceedings of the 2013 International Conference on Clean Electrical Power (ICCEP), Alghero, Italy, 11–13 June 2013; pp. 62–66. [Google Scholar]
  11. Di Piazza, M.C.; Luna, M.; Petrone, G.; Spagnuolo, G. Translation of the Single-Diode PV Model Parameters Identified by Using Explicit Formulas. IEEE J. Photovolt. 2017, 7, 1009–1016. [Google Scholar] [CrossRef]
  12. Bastidas-Rodriguez, J.; Petrone, G.; Ramos-Paja, C.; Spagnuolo, G. A genetic algorithm for identifying the single diode model parameters of a photovoltaic panel. Math. Comput. Simul. 2017, 131, 38–54. [Google Scholar] [CrossRef]
  13. Zagrouba, M.; Sellami, A.; Bouaïcha, M.; Ksouri, M. Identification of PV solar cells and modules parameters using the genetic algorithms: Application to maximum power extraction. Sol. Energy 2010, 84, 860–866. [Google Scholar] [CrossRef]
  14. Di Piazza, M.C.; Vitale, G. Photovoltaic Sources: Modelling and Emulation; Green Energy and Technology; Springer: London, UK, 2013. [Google Scholar]
  15. Molanes, R.F.; Garaj, M.; Tang, W.; Rodriguez-Andina, J.J.; Farina, J.; Tsang, K.F.; Man, K.F. Implementation of Particle Swarm Optimization in FPSoC devices. In Proceedings of the 2017 IEEE 26th International Symposium on Industrial Electronics (ISIE), Edinburgh, UK, 19–21 June 2017; pp. 1274–1279. [Google Scholar]
  16. Ben Hariz, M.; Bouani, F.; Ksouri, M. Implementation of a fixed low order controller on STM32 microcontroller. In Proceedings of the International Conference on Control, Engineering & Information Technology (CEIT’14), Sousse, Tunisia, 22–25 Mar 2014; pp. 244–252. [Google Scholar]
  17. Ismail, M.S.; Mahlia, T.M.I.; Moghavvemi, M. Characterization of PV panel and global optimization of its model parameters using genetic algorithm. Energy Convers. Manag. 2013, 73, 10–25. [Google Scholar] [CrossRef]
  18. Global Optimization Toolbox. Available online: https://www.mathworks.com/products/global-optimization.html (accessed on 28 November 2017).
  19. GPdotNET–Artificial Intelligence Tool. Available online: https://gpdotnet.codeplex.com (accessed on 28 November 2017).
  20. A Java-Based Evolutionary Computation Research System. Available online: http://cs.gmu.edu/~eclab/projects/ecj/ (accessed on 28 November 2017).
  21. Genetic Algorithm C++ Code. Available online: http://people.sc.fsu.edu/~jburkardt/cpp_src/simple_ga/simple_ga.html (accessed on 28 November 2017).
  22. Petrone, G.; Spagnuolo, G.; Vitelli, M. Analytical model of mismatched photovoltaic fields by means of Lambert W-function. Sol. Energy Mater. Sol. Cells 2007, 91, 1652–1657. [Google Scholar] [CrossRef]
  23. Keith Briggs: Software—C and Python Codes. Available online: http://keithbriggs.info/software.html (accessed on 19 December 2017).
  24. Lo Brano, V.; Ciulla, G. An efficient analytical approach for obtaining a five parameters model of photovoltaic modules using only reference data. Appl. Energy 2013, 111, 894–903. [Google Scholar] [CrossRef]
  25. Petrone, G.; Ramos-Paja, C.A.; Spagnuolo, G. Photovoltaic Sources Modeling; John Wiley & Sons: Chichester, UK, 2017. [Google Scholar]
  26. Noguchi, T.; Togashi, S.; Nakamoto, R. Short-current pulse-based maximum-power-point tracking method for multiple photovoltaic-and-converter module system. IEEE Trans. Ind. Electron. 2002, 49, 217–223. [Google Scholar] [CrossRef]
  27. Orozco-Gutierrez, M.L.; Spagnuolo, G.; Ramirez-Scarpetta, J.M.; Petrone, G.; Ramos-Paja, C.A. Optimized Configuration of Mismatched Photovoltaic Arrays. IEEE J. Photovolt. 2016, 6, 1210–1220. [Google Scholar] [CrossRef]
  28. Cannizzaro, S.; Di Piazza, M.C.; Luna, M.; Vitale, G.; Calogero, G.; Citro, I. Parameter Identification and Real-Time J-V Curve Reconstruction of Polymer PV and Dye-Sensitized Cells Using Non-Iterative Algorithm. In Proceedings of the 29th European PV Solar Energy Conference and Exhibition (EUPVSEC 2014), Amsterdam, The Netherlands, 22 September 2014; pp. 1548–1553. [Google Scholar]
Figure 1. Equivalent circuit of the single-diode model.
Figure 1. Equivalent circuit of the single-diode model.
Applsci 08 00009 g001
Figure 2. Test points’ selection (TP) for calculating the fitness function
Figure 2. Test points’ selection (TP) for calculating the fitness function
Applsci 08 00009 g002
Figure 3. The difference of physical boundary conditions (continuous box) and real boundary conditions (dashed boxes).
Figure 3. The difference of physical boundary conditions (continuous box) and real boundary conditions (dashed boxes).
Applsci 08 00009 g003
Figure 4. Experimental I-V curves of the Sunowe Solar SF125x125-72-m(l) PV panel, in different environmental conditions.
Figure 4. Experimental I-V curves of the Sunowe Solar SF125x125-72-m(l) PV panel, in different environmental conditions.
Applsci 08 00009 g004
Figure 5. Best fitness value vs. the number of generations for different runs of the genetic algorithm. (a) With physical bounds; (b) with real boundary conditions and the guess solution.
Figure 5. Best fitness value vs. the number of generations for different runs of the genetic algorithm. (a) With physical bounds; (b) with real boundary conditions and the guess solution.
Applsci 08 00009 g005
Figure 6. Comparison of the I-V and P-V photovoltaic curves for Test #1. (a) Photovoltaic I-V curves; (b) photovoltaic P-V curves.
Figure 6. Comparison of the I-V and P-V photovoltaic curves for Test #1. (a) Photovoltaic I-V curves; (b) photovoltaic P-V curves.
Applsci 08 00009 g006
Figure 7. Zoom of the P-V photovoltaic curves for Test #1.
Figure 7. Zoom of the P-V photovoltaic curves for Test #1.
Applsci 08 00009 g007
Figure 8. Photovoltaic system with the MPPT and online parameter identification technique. (a) Functional scheme of the proposed digital controller; (b) flowchart of the perturb and observe algorithm integrated with the parameter identification procedure.
Figure 8. Photovoltaic system with the MPPT and online parameter identification technique. (a) Functional scheme of the proposed digital controller; (b) flowchart of the perturb and observe algorithm integrated with the parameter identification procedure.
Applsci 08 00009 g008
Figure 9. Comparison of the I-V and P-V photovoltaic curves for Test #2. (a) Photovoltaic I-V curves; (b) photovoltaic P-V curves.
Figure 9. Comparison of the I-V and P-V photovoltaic curves for Test #2. (a) Photovoltaic I-V curves; (b) photovoltaic P-V curves.
Applsci 08 00009 g009
Figure 10. Comparison of the I-V and P-V photovoltaic curves for Test #3. (a) Photovoltaic I-V curves; (b) photovoltaic P-V curves.
Figure 10. Comparison of the I-V and P-V photovoltaic curves for Test #3. (a) Photovoltaic I-V curves; (b) photovoltaic P-V curves.
Applsci 08 00009 g010
Table 1. Single-diode model (SDM) parameters physical bounds.
Table 1. Single-diode model (SDM) parameters physical bounds.
Parameter I p h (A) I s (A) η R s ( Ω ) R h ( Ω )
Lower Bound0 10 10 0.5 0.01 10
Upper Bound1.5 I s c , m a x 10 2 510 100 , 000
Table 2. SDM parameters’ real boundary conditions.
Table 2. SDM parameters’ real boundary conditions.
Parameter I p h (A) I s (A) η R s ( Ω ) R h ( Ω )
Lower Bound 0.9 · I p h g 0.01 · I s g max ( 0.5 , η g 1 )max ( 0.01 , 0.1 · R s g )max ( 10 , 0.1 · R h g )
Upper Bound 1.1 · I p h g 100 · I s g min ( 5 , η g + 1 )min ( 10 , 10 · R s g )min ( 10 5 , 100 · R h g )
Table 3. Sunowe Solar SF125x125-72-m(l) 180-W PV panel.
Table 3. Sunowe Solar SF125x125-72-m(l) 180-W PV panel.
ParameterValueParameterValue
I s c 5.32 A V o c 44.8 V
I M P P 5.03 A V M P P 35.8 V
α I 0.04 % / C α V 0.35 % / C
N O C T = 45 ± 2 C .
Table 4. Guess solutions for the SDM parameters in Test #1.
Table 4. Guess solutions for the SDM parameters in Test #1.
Parameter I p h (A) I s (A) η R s ( Ω ) R h ( Ω )Fitness
Test #1 5.61 5.58 × 10 8 1.05 0.833 51.5 1.56
Table 5. Genetic algorithm parameters.
Table 5. Genetic algorithm parameters.
ParameterValueParameterValue
Population size N = 150 Elite individuals N E = 1
Number of generations N g = 2500 Crossover percentage P C = 80 %
Number of testing points M = 8 Mutation percentage P M = 40 %
Table 6. SDM parameters’ comparison for Test #1.
Table 6. SDM parameters’ comparison for Test #1.
Parameter I p h (A) I s (A) η R s ( Ω ) R h ( Ω )Fitness
Guess solution (A) 5.61 5.58 × 10 8 1.05 0.833 51.5 1.56
Best GA solution (B) 5.19 4.45 × 10 6 1.40 0.922 3953 80.59
Variation (B/A) 0.92 79.7 1.33 1.11 76.7 51.67
Table 7. SDM parameters comparison for Tests #2 and #3.
Table 7. SDM parameters comparison for Tests #2 and #3.
ParameterParameter I p h (A) I s (A) η R s ( Ω ) R h ( Ω )Fitness
Test #2Guess solution (A) 3.07 3.56 × 10 9 1.09 1.9 102 2.23
Test #2Best GA solution (B) 2.78 3.56 × 10 7 1.36 1.37 4405 85.33
Test #2Variation (B/A) 0.90 100 1.25 0.72 43.2 38.26
Test #3Guess solution (C) 1.62 5.96 × 10 10 1.13 4.1 206 5.24
Test #3Best GA solution (D) 1.46 5.30 × 10 9 1.13 0.876 740.2 25.96
Test #3Variation (D/C) 0.90 8.89 1.004 0.214 3.59 4.95
Table 8. Execution time of the genetic algorithm.
Table 8. Execution time of the genetic algorithm.
PlatformSearch AlgorithmTimeVariation
Desktop PClinear search1430 ms-
Desktop PCbinary search1381 ms 3.4 %
STM32linear search609,251 ms-
STM32binary search573,903 ms 5.8 %

Share and Cite

MDPI and ACS Style

Petrone, G.; Luna, M.; La Tona, G.; Di Piazza, M.C.; Spagnuolo, G. Online Identification of Photovoltaic Source Parameters by Using a Genetic Algorithm. Appl. Sci. 2018, 8, 9. https://doi.org/10.3390/app8010009

AMA Style

Petrone G, Luna M, La Tona G, Di Piazza MC, Spagnuolo G. Online Identification of Photovoltaic Source Parameters by Using a Genetic Algorithm. Applied Sciences. 2018; 8(1):9. https://doi.org/10.3390/app8010009

Chicago/Turabian Style

Petrone, Giovanni, Massimiliano Luna, Giuseppe La Tona, Maria Carmela Di Piazza, and Giovanni Spagnuolo. 2018. "Online Identification of Photovoltaic Source Parameters by Using a Genetic Algorithm" Applied Sciences 8, no. 1: 9. https://doi.org/10.3390/app8010009

APA Style

Petrone, G., Luna, M., La Tona, G., Di Piazza, M. C., & Spagnuolo, G. (2018). Online Identification of Photovoltaic Source Parameters by Using a Genetic Algorithm. Applied Sciences, 8(1), 9. https://doi.org/10.3390/app8010009

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop