Next Article in Journal
Analysis of Deformations of the Tunnel Excavation Face via Simplified Calculation Methods
Next Article in Special Issue
Enhancing Document Image Retrieval in Education: Leveraging Ensemble-Based Document Image Retrieval Systems for Improved Precision
Previous Article in Journal
Study of the Effect of Water Content in Deep Eutectic Phases on the Extraction of Fatty Acids from Microalgae Biomass
Previous Article in Special Issue
Non-Invasive Intraoral Stand-Alone Tongue Control System Based on RSIC-V Edge Computing
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

A Novel Real-Time PV Error Handling Exploiting Evolutionary-Based Optimization

by
Asimina Dimara
1,2,*,
Alexios Papaioannou
1,3,*,
Konstantinos Grigoropoulos
1,
Dimitris Triantafyllidis
1,
Ioannis Tzitzios
1,
Christos-Nikolaos Anagnostopoulos
2,
Stelios Krinidis
1,3,
Dimosthenis Ioannidis
1 and
Dimitrios Tzovaras
1
1
Centre for Research and Technology Hellas, Information Technologies Institute, 57001 Thessaloniki, Greece
2
Department of Cultural Technology and Communication, Intelligent Systems Lab, University of the Aegean, 81100 Mytilene, Greece
3
Management Science and Technology Department, International Hellenic University (IHU), 65404 Kavala, Greece
*
Authors to whom correspondence should be addressed.
Appl. Sci. 2023, 13(23), 12682; https://doi.org/10.3390/app132312682
Submission received: 25 October 2023 / Revised: 24 November 2023 / Accepted: 24 November 2023 / Published: 26 November 2023

Abstract

:
The crucial need for perpetual monitoring of photovoltaic (PV) systems, particularly in remote areas where routine inspections are challenging, is of major importance. This paper introduces an advanced approach to optimizing the maximum power point while ensuring real-time PV error handling. The overarching problem of securing continuous monitoring of photovoltaic systems is highlighted, emphasizing the need for reliable performance, especially in remote and inaccessible locations. The proposed methodology employs an innovative genetic algorithm (GA) designed to optimize the maximum power point of photovoltaic systems. This approach takes into account critical PV parameters and constraints. The single-diode PV modeling process, based on environmental variables like outdoor temperature, illuminance, and irradiance, plays a pivotal role in the optimization process. To specifically address the challenge of perpetual monitoring, the paper introduces a technique for handling PV errors in real time using evolutionary-based optimization. The genetic algorithm is utilized to estimate the maximum power point, with the PV voltage and current calculated on the basis of simulated values. A meticulous comparison between the expected electrical output and the actual photovoltaic data is conducted to identify potential errors in the photovoltaic system. A user interface provides a dynamic display of the PV system’s real-time status, generating alerts when abnormal PV values are detected. Rigorous testing under real-world conditions, incorporating PV-monitored values and outdoor environmental parameters, demonstrates the remarkable accuracy of the genetic algorithm, surpassing 98% in predicting PV current, voltage, and power. This establishes the proposed algorithm as a potent solution for ensuring the perpetual and secure monitoring of PV systems, particularly in remote and challenging environments.

1. Introduction

Photovoltaic (PV) systems are a remarkable breakthrough that dazzle with their unparalleled benefits. The energy harnessed by these systems is devoid of any pernicious pollutants and does not impinge on natural resources or threaten the well-being of living beings. In addition, the noiseless and highly reliable PVs are entirely self-sufficient, requiring only nominal maintenance costs [1]. It is no wonder that solar PVs are considered a preeminent source of clean energy, and their prevalence continues to rise because of their groundbreaking advances in both technology and marketability. These strides include an impressive array of cell types, PV efficiency, and electronic capabilities that elevate their prominence and secure their position as a pinnacle of modern technology [2].
Although photovoltaic systems offer a multitude of benefits, it should be noted that their output is subject to fluctuations that are dependent on several factors, including prevailing outdoor conditions such as solar irradiance and temperature, as well as the characteristics of the PV modules, such as photovoltaic cell temperature and connected load [3]. To ensure optimal performance, the connected load must operate at a specific juncture, known as the maximum power point (MPP), where the PV produces the maximum power output. This feat is accomplished by accurately correlating the PV’s characteristics with the environmental variables to achieve maximum point power tracking (MPPT).
The exhaustive testing of all commercially available PV models under different environmental conditions is an arduous and cost-intensive task. Consequently, researchers have exploited mathematical and physical models to simulate, estimate, and forecast the PV’s electrical characteristics based on diverse parameters [4]. The most commonly used models are lumped parameter models with varying numbers of diodes. The single-diode model of the PV cell reigns supreme as the most prevalent model employed today [5]. However, determining the current–voltage correlation of the single-diode photovoltaic is an intricate process that involves solving complex transcendental and nonlinear equations, rendering it a laborious undertaking.
Establishing all pertinent parameters is imperative to accurately model a single-diode photovoltaic model [6]. However, not all parameters and specifications are readily available in the manufacturer’s manual. While data regarding voltage at MPP ( V m p p ), open circuit voltage ( V o c ), current at MPP ( I m p p ), and short circuit current ( I s c ) are commonly provided, other critical PV parameters, such as diode ideality factor (a), parallel resistance ( R p ), reverse saturation current ( I s ), and photogenerated current ( I p h ), may not be easily obtained [6]. Consequently, estimation or modeling using alternative means becomes necessary to determine these unknown parameters. Given the complexity of the process, accurately modeling PV characteristics is essential to ensuring model robustness and reliability.
Estimating photovoltaic parameters is a multifaceted endeavor that relies on diverse numerical, statistical, analytical, and intelligent techniques. Although numerical models rely solely on manufacturer-provided data to estimate PV parameters, analytical and statistical approaches utilize complex non-linear equations to estimate the I–V curve parameters [7]. Intelligent models leverage meta-heuristic algorithms to extract PV parameters, making use of sophisticated techniques to tackle the challenge of PV modeling [8]. Indeed, the extensive literature [9] on extracting PV parameters attests to the formidable nature of this task.
From the perspective of PV estimation, the paramount and pivotal factors are PV modeling and its parameters, as well as the MPPT. In addition, it is crucial to ensure the uninterrupted and continuous functioning of photovoltaics. Integrating all PV parameters and methods to estimate the I–V curve, while also providing techniques for error handling, is a challenging task. The complexity further increases when using fusion and hybrid methods to ensure that the PV modeling output closely approximates the actual PV output, which is essential for optimizing the power process and, subsequently, error handling.
In light of the challenges and concerns mentioned above, this paper proposes a novel approach to address the modeling and optimization of single-diode photovoltaic systems. Specifically, an analytical method is employed to model the photovoltaic system, while a state-of-the-art genetic algorithm is utilized to estimate the electric parameters of the system. The resulting real-time values of V a c t , I a c t , and P a c t are then compared to the predicted values obtained from the genetic algorithm ( V g e n , I g e n , and P g e n ), which provides a means of identifying potential malfunctions or errors in the PV system or its sensing devices. By notifying the end-user of any significant deviations between the predicted and actual values, appropriate actions can be taken to prevent further issues and ensure the smooth and continuous operation of the photovoltaic system [10]. Overall, this approach holds great promise for addressing the challenges associated with accurate PV modeling and error handling in single-diode photovoltaic systems while eliminating the integration of complex IoT systems [11].
Recent studies and advancements in PV modeling have indicated that, for the specific task of estimating the I–V curve and optimizing the power process, the inclusion of certain parameters (e.g., air humidity, wind direction, wind speed) may not yield a significant improvement in accuracy [12]. The selected PV modeling method, while simplified in its consideration of operating conditions, has been validated against real-world data, demonstrating high accuracy and reliability [12]. Moreover, the decision to limit the number of parameters considered in the model is also pragmatic. By focusing on essential factors, the complexity of the model is reduced while minimizing associated costs. Additional parameters would require more sophisticated sensing devices and potentially lead to increased expenses in both installation and maintenance for real-time conditions.
Within this context, the proposed method holds profound significance in the field of PV systems by introducing a novel approach to real-time monitoring and error detection. The fundamental concept revolves around the premise that, under optimal conditions, the PV modeling outputs, which estimate the electricity generation (represented by V g e n , I g e n , and P g e n ), should closely align with the actual measurements of the PV system’s performance ( V a c t , I a c t , and P a c t ). Any substantial deviation between these two sets of values indicates the potential occurrence of errors or malfunctions within the PV system or its sensing devices. Exploiting a GA for parameter estimation, the method enables accurate and low-cost real-time monitoring of PV operations. This not only ensures the flawless functionality of the PV system but also provides a proactive mechanism for identifying and addressing issues promptly, thereby maximizing the overall efficiency and reliability of the photovoltaic installation.
The contributions and novelty of this paper can be summarized as follows:
  • Development of a novel genetic algorithm for MPP optimization in single-diode photovoltaic systems.
  • Integration of the Lambert function into the optimization function of the genetic algorithm to ensure PV constraints are met.
  • Implementation of a real-time PV error detection system to detect and notify the end-user of any potential malfunction or deviation between real and predicted PV values.
In the subsequent sections of this paper, a comprehensive analysis of photovoltaic (PV) output power estimation and fault diagnosis is presented. Section 2 addresses the extensive research conducted in this field, highlighting its significance in the renewable energy domain. In Section 3, a detailed examination of the various methodologies utilized for PV modeling, MPP optimization, and PV error handling is provided. The ensuing section, Section 4, showcases the outcomes of the aforementioned methodologies. Finally, the paper ends with a discussion and conclusive section encapsulating the key takeaways and insights gleaned from the research conducted.

2. Related Work

A model that can estimate, simulate, or predict a single-diode PV’s energy production must be accurate and efficient while monitoring the MPPT. PV models consist of non-linear characteristics between current (I) and voltage (V). It is of ultimate importance to minimize errors when estimating the I–V curve. The higher the estimation, the better the model. Notwithstanding, even if the PV modeling is accurate, there are many other errors that might occur with the PV systems. The PV system fails due to abnormal module power operation, sensor problems, and other issues. Tracking those errors and reporting them to stakeholders is crucial for a continuous PV operation.
As presented in the work of [13], to accurately predict the output of a PV, the estimation must be associated with outdoor environmental parameters. Weather data were periodically retrieved (i.e., every 5 min) for two years. The selected outdoor values monitored are ambient temperature ( T a ), relative humidity ( R H ), wind speed ( W S ), and global horizontal irradiance ( G H I ). Moreover, the respective PV parameters were monitored for the same time interval and period of time and are the maximum PV power output ( P m a x ), the temperature of the PV modules ( T m ), and the plane of array irradiance ( P O A ). P m a x was correlated with all the weather variables to indicate their association. The lowest error was produced when the model consisted of R H , W S , and T a . Therefore, it is suggested to forecast PV power using those variables.
According to [14], the MPPT may be estimated through the curve of the solar array by comparing power (P) and static conductance (G). Their model generates fluctuating power and is compared to the PV’s array of actual instantaneous power. The error produced is used to modify the static conductance while reaching the MPP. Moreover, the generated error is applied to change the power reference until it attains a limit cycle near the MPP. Their model ensures that the MPPT operates accurately between 10% and 100% nominal power. As stated in [15], to estimate the PV parameters for better PV accuracy, the proper circuit model must be indicated. A flexible particle swarm optimization (FPSO) algorithm is exploited. The FPSO’s ordinary movement is altered to boost its accuracy. The FPSO is compared to many other widely used algorithms, like the bird mating optimizer and particle swarm optimization. As stated above, the non-linear characteristics of the PV cells result in a continuous fluctuation of their values. Consequently, the proper modeling of the PV and its parameters is of key importance.
As addressed in the work of [16], it is crucial that the PV’s operations be continuous without faults or disruptions. The MPPT enhances the efficiency of the modules through DC–DC power optimizers. However, there are still many errors that might occur to the PV systems, like single component failure and plants out of service. As a result, PV auditing and monitoring are essential for diagnostic and maintenance purposes. PV monitoring is deployed through a day-ahead PV output prediction while faults are diagnosed. Moreover, a thorough examination is applied to the PV forecast through its performance indexes. In [17], it is reported that the I–V and P–V parameters and characteristics of a single-diode model affect the PV’s operation. The authors divide the voltage and PV current output through an intermediate parameter. They simulate the PV’s operation and analyze how each parameter affects the PV output and the error degree. The decomposition of voltage and current in the I–V simplifies the estimation of PV parameters while demonstrating the effect on MPP.
As far as monitoring PV techniques are concerned in [18], a novel method for smoothing photovoltaic power fluctuations using a hybrid storage system and optimized charging/discharging cycles is presented. The approach incorporates machine learning-based PV failure detection, reducing supercapacitor operation and computation time compared to traditional methods, as validated in experiments. In [19], the application of remote sensing (RS) technology in various stages of solar PV system development is explored, including potential estimation, array detection, fault monitoring, and cross-cutting areas. The comprehensive review highlights RS as a crucial tool for effective resource assessment, data analysis, and health monitoring, offering valuable support for PV system planning, management, and decision-making. Finally, in [20], a real-time fault detection and performance monitoring system for PV systems is presented. Using various sensors, the system identifies issues such as encapsulation failure and module corrosion. It employs a one-diode model, Python software, and a database generated from field testing to detect faults, providing users with easy-to-understand error messages and remote access for efficient PV system management and maintenance.
Based on all the above, it may be observed that, while significant progress has been made in modeling and monitoring single-diode PV systems, there remains a notable research gap concerning the integration of accurate parameter estimation, real-time error detection, and efficient MPPT mechanisms. The existing literature has predominantly focused on individual aspects, such as parameter estimation techniques, environmental parameter correlations, and fault detection systems. However, there is a need for a holistic approach that combines these elements to enhance the robustness and reliability of PV models. This paper aims to bridge this research gap by proposing a comprehensive methodology. The objectives include the development of a novel genetic algorithm for accurate MPPT optimization, the integration of the Lambert function to ensure adherence to PV constraints, and the implementation of a real-time error detection system. The proposed approach seeks to address the challenges associated with accurate modeling and error handling in single-diode PV systems, offering a more complete and effective solution for continuous and fault-free PV operation.

3. Methodology

3.1. Single-Diode PV Modeling

A PV module consists of a number of PV cells connected in series to increase the voltage output and a number of PV cells connected in parallel to increase the current output. PV modules can generate electricity autonomously or combine with more PV modules in series or in parallel to form a PV array that generates a greater amount of electricity. The equivalent circuit of a PV module can be observed in Figure 1.
The output current of a PV module can be calculated by the following calculation using Kirchhoff’s first law [21]:
I = N p I p h N p I d I p ,
where I is the output current of the PV module, N p is the number of cells connected in parallel, I p h is the photogenerated current, I p is the current flowing in the parallel resistance of the PV module R p , and I d is the diode’s current, as described by Shockley [22]:
I d = I s e ( V d n V t ) 1 ,
where I s is the diode’s saturation current, V d is the diode’s voltage, n is the diode’s ideality factor, and V t is the diode’s thermal voltage, which is calculated as follows:
V t = k T N s q e ,
where k is the Boltzmann constant [23], T (in Kelvin) is the diode’s temperature, N s is the number of PV cells connected in series, and q e is the elementary charge. Combining (1) with (2) and (3), the output current of the photovoltaic module is:
I = N p I p h N p I s e ( q e ( V + I R s ) n k T N s ) 1 V + I R s R p ,
where V is the output voltage of the PV module and R s is the series resistance of the PV module.
Combining more than one PV module, a PV array can be formed, which constitutes the electrical power generator unit of a PV power station. The way that PV modules are connected defines the output voltage and the output current of the PV array. If there are n PV modules connected in series and m PV modules connected in parallel, then the output voltage and the output current of the PV array are given, respectively, by the following equations.
V a r r a y = n V ,
I a r r a y = m I ,
where V and I are the output voltage and current, respectively, of a single PV module. The number of parameters used in this model are summarized in Table 1.

3.2. Maximum Power Point Tracking

The output power of a PV module is given by Joule’s law [24] and the I–V and P–V diagrams are presented in Figure 2 and Figure 3:
P = V I ,
where P, V, and I are the output power, voltage, and current of the PV module, respectively. According to (4), (6) can be rewritten as follows:
P = N p I p h V N p I s V e ( q e ( V + I R s ) n k T N s ) 1 V 2 + I R s V R p ,
The PV module’s output voltage and current of the photovoltaic module have a maximum value depending on irradiance and temperature. The voltage’s maximum value results when no electric loads are connected to the module’s output (open-circuit situation), and the current’s maximum value results when the module’s output is short-circuited (short-circuit situation). The equations that connect the short circuit current (output current’s maximum value) and the open circuit voltage (output voltage’s maximum value) with irradiance and temperature are [25].
I s c = I s c ( G , T ) = G G S T I s c , S T + μ I s c ( T T S T )
V o c = V o c ( G , T ) = V o c ( T ) + n V t ln ( G G S T ) ,
where
V o c ( T ) = V o c , S T + μ V o c ( T T S T ) ,
where the following apply:
  • G S T = 1000 W/m 2 , T S T = 25 C, I s c , S T , V o c , S T are the standard test values for irradiance, temperature, short circuit current, and open circuit voltage, respectively.
  • G, T, I s c , V o c are the actual values for the irradiance, temperature, short circuit current, and open circuit voltage, respectively.
  • μ I s c , μ V o c are the temperature coefficients for current and voltage, respectively.
The power output of the photovoltaic module is maximized, according to (4). The solution has only one global maximum point, the maximum power point (MPP), and it depends on irradiance and temperature. The electric qualities at MPP are named maximum power voltage ( V m p p ), maximum power current ( I m p p ), and maximum power ( P m p p ).
Output current, output power, and, therefore, MPP are proportional to the photo-current I p h , which is heavily dependent on radiation and temperature, according to the following equation:
I p h = G G S T I p h , S T + μ I s c ( T T S T ) ,
where I p h , S T is the photocurrent under standard test conditions. The equations that combine the saturation current I s , series resistance R s , and the parallel resistance R p with irradiance and temperature can be illustrated as follows [25]:
R p = R p ( G ) = G S T C G · R p , S T C ,
R s = R s ( G , T ) = T T S T C 1 0.217 · ln G G S T C · R s , S T C ,
I s = I s ( G , T ) = 1 + R s R p · G S T G · I s c V o c R p e x p V o c n V t e x p G S T G · I s c / R s n V t ,
where R s , S T C and R P , S T C are the series and parallel resistance at standard conditions, respectively, pointing out why the MPP varies in radiation and temperature.
To ensure that the PV module always produces the practicable maximum power, a converter is connected to its output. This converter controls the output voltage of the PV module to maximize the output power, according to (4) and (7). The output current can be given by (4).
If the converter is connected to the output of a combination of PV modules, then the voltage, current, and power of the PV modules are given by the following equations:
V m o d m p p = V m p p n ,
I m o d m p p = I m p p m ,
P m o d m p p = P m p p n m ,
where V m o d m p p , I m o d m p p , and P m o d m p p are the output voltage, current, and power of the PV module. V m p p , I m p p , and P m p p are the voltage, current, and power of the combination of the PV module. n and m are the number of PV modules connected in series and parallel, respectively.

3.3. Power Optimization Process

As mentioned in the previous section, all the PV parameters (e.g., I p h , V o c , I s c , R p , R s ) are associated with temperature and irradiance and are calculated based on PV single-diode modeling. A genetic algorithm is implemented and developed to estimate the expected (MPP) PV values according to irradiance and temperature. In essence, the genetic optimization algorithm, as detailed below, heuristically finds the MPP as well as the electric qualities at this point with regard to monitored outdoor values.

3.3.1. Fitness Function

The optimization problem consists of maximizing the power of the photovoltaic, which can be mathematically expressed as
max I [ 0 , I s c ] , V [ 0 , V o c ] { P } , subject to ( 4 )
Alternatively, the fitness function can be defined as
min { P } , P = f V , I = V · I , f : A R ,
where input values are chosen from within the allowed set, A, as illustrated below:
V [ 0 , V o c ] I [ 0 , I s c ]
and concurrently meet the appropriate constraints and requirements, namely (4), which can be also reformed to
I N p I p h N p I s e ( q e ( V + I R s ) n k T N s ) 1 V + I R s R p = 0 ,
Exploiting the Lambert function [26,27], (4) can be modified as follows [28]:
I = B R s · W o A · R s c 1 · B · e V + R s ( A + I p h ) c 1 · B + I p h + A V R p c 1 ,
where B = n · V t , A = N p · I s , I p h = N p · I p h , and c 1 = 1 + R s R p . In that way, the PV module voltage is expressed as a function of the PV current, and constraint (20) is integrated into the fitness function. The argument of the Lambert function may take extremely large numbers due to the exponential term, leading to overflow errors in a common programming language. To overcome that problem, a technique proposed in [28] has been utilized that exploits logarithmic and exponential properties. In [28], various methods to implement the Lambert function have been compared, concluding that the “Hybrid” approach was the most accurate, providing the entire I–V curve.
According to the above modifications, the fitness function depends only on V, and (19) can be reformed as
min ( P ) = f ( V ) , f V gen = V g e n · I g e n ( V g e n ) , f : [ 0 , V o c ] R
The parameters required for the genetic algorithm to be implemented are provided in Table 2.

3.3.2. Genetic Algorithm Modeling

The genetic algorithm (GA) is a metaheuristic algorithm that was proposed by John Holland and his contributors in the 1970s [29] and is inspired by the Darwinian theory of natural selection processes [30].
Genetic algorithms are commonly used to produce high-quality solutions to search and optimization problems relying on biological-inspired operators such as selection, crossover, and mutation. The basic elements of GAs are chromosome representation, fitness selection, and the biologically inspired operators mentioned above [31]. Usually, chromosomes are represented by a string of bits. Every chromosome contains a sequence of bits or genes, where each gene has two variant forms, 0 and 1. All chromosomes form the size of the population, and they represent different points in the solution space. The population is repeatedly replaced by the processed chromosomes using genetic operators. When all the genetic operators are applied, the population forms a new generation, and that happens constantly until the algorithm reaches the iterations that were specified by the user at an initial phase. The fitness function is a performance indicator used to evaluate how well the chromosomes are [32].
To set up the GA, all the operators are individually examined and designed depending on the solution of the problem, which is to calculate the MPPT of a PV system according to some weather conditions as well as the current and voltage that lead to the maximum power. The pseudocode for the total GA procedure is presented in Algorithm 1.
Algorithm 1 Genetic Algorithm for Minimizing f ( V ) = V · I g e n ( V )
1:
Initialize population P with random solutions
2:
Evaluate the fitness of each solution in P using (22)
3:
while termination condition not met do
4:
    Select parents from P based on their fitness
5:
    Apply crossover to create offspring
6:
    Apply mutation to the offspring
7:
    Evaluate the fitness of the new offspring
8:
    Replace old population with a combination of parents and offspring
9:
end while
10:
Output: Best solution found in P

3.3.3. Encoding of Voltage

The encoding of chromosomes is the initial step in solving a problem through genetic algorithms. There are various encoding methods for GA algorithms, such as binary, permutation, value, and tree encoding. However, the encoding process is often problem-dependent, and in this work, binary encoding is used as the appropriate method. In essence, during binary encoding, each chromosome is represented by a string of bits, 0 or 1, where each chromosome bit represents a specific characteristic of the problem.
Intending to specify the length of the chromosome or the number of bits the string consists of, the domain of the objective function (i.e., the set of possible values of the independent variable) has to be defined as well as the desired decimal precision for the problem. Then, the number of bits can be calculated from the following equation [33]:
2 l 1 ( u b l b ) 10 D e c i m a l s 2 l ( u b l b ) 10 D e c i m a l s + 1 l log 2 [ ( u b l b ) 10 D e c i m a l s + 1 ] ,
where l is the number of bits required for the representation, D e c i m a l s are the decimals of precision, and u b and l b represent the upper bound and lower bound of the possible permitted values, respectively. Assuming the voltage (V) value lies in the range of [0, 20] volts and one decimal of precision is required, the number of bits to represent a chromosome can be computed according to the previous equation as follows:
l log 2 [ ( 20 0 ) 10 1 + 1 ] l 7.65 l = 8
Taking into consideration the constraints in terms of voltage range and decimals of precision, each chromosome can be represented by a string of bits, as depicted in Figure 4. This string of bits is also called a genotype.

3.3.4. Decoding of Voltage

The decoding process is necessary in order to obtain a continuous value for the dependent variable (V), which is also required for the calculation of the objective function. The phenotype or the voltage’s (V) decoded value ( V d e c ) can be retrieved using a set of equations [33].
p r e c i s i o n = ( u b l b ) 2 l 1
The above (23) computes the precision of each bit that is used in (24) to eventually calculate the phenotype or decoded value of (V).
V d e c = n = 0 l 1 B i t p o s i t i o n = n 2 n · p r e c i s i o n + l b
Substituting ( u b , l b , l)) in (23), the precision is
p r e c i s i o n = ( 20 0 ) 2 8 1 = 7.84 · 10 2
For the chromosome in Figure 4, the phenotype can be calculated according to (24), as follows
V g e n = V d e c = 2 3 + 2 5 · p r e c i s i o n + l b = 40 · 7.84 · 10 2 + 0 = 3.136

3.3.5. Selection

During every generation, some chromosomes of the existing population are selected to later breed a new population through the crossover procedure. Chromosomes compete with each other through a fitness-based process, where the ones that better fit the fitness function are more likely to be selected to proceed. It should be noted that every chromosome can be selected more than once. Among the most popular methods that measure the fitness of the solutions to select the chromosomes is tournament selection [34], which was used in this paper.
During tournament selection, an individual from a population of chromosomes is selected. Specifically, during this process, a number of chromosomes that are randomly picked from the total population are evaluated according to their fitness, and the best solution is selected to perform crossover. This process repeats as many times as the population size. The tournament size or the participants’ pool size indicates the tolerance to weak individuals since a smaller number of participants means that weak chromosomes experience a higher chance of being selected as winners of the tournament.

3.3.6. Crossover

In order to generate new offspring, the genetic information of two parents (chromosomes) is combined using the crossover genetic operator. This is the most common way to stochastically generate new chromosomes from the existing population. There are various methods for performing crossover, such as the two-point crossover that was used in this paper [35].
During the two-point crossover method, two different random integers between [0, l] are generated to specify the two crossover points for the parent chromosomes. The bits that lie between these points are swapped between the parent chromosomes, resulting in two child chromosomes, each of which carries a portion of genetic information from both parents (Figure 5).
However, not all parents’ chromosomes undertake the crossover process. After selection has occurred, two chromosomes (parents) are selected to perform the crossover. A given crossover probability p c [ 0 , 1 ] is defined at the very beginning and specifies whether the crossover will be carried out. The crossover will be performed under the condition that a random number generator providing numbers between [0, 1] will generate a number smaller than p c . All chromosomes are selected successively in a set of two until the entire population is selected.

3.3.7. Mutation

In genetic algorithms, mutation is a unary genetic operator, where, in contrast to the crossover operator, it is applied only to one chromosome and is used in order to preserve the genetic diversity of chromosomes in a population from one generation to the next.
Mutation modifies the chromosome by altering one or more genes in a chromosome. These modifications can lead to a new generation with a population of chromosomes with better solutions than the previous ones. The mutation is carried out as an evolution process according to the probability of mutation p m [ 0 , 1 ] defined during a trial phase.
There are various methods for performing the mutation operator, the most common of which is called the flip bit [35] method, which involves a probability given by a random number generator that a bit in a chromosome will be flipped from its original state. This occurs for every bit in the sequence of the chromosome. If the probability is smaller than p m , then the particular bit that is examined will be flipped. In Figure 6, an example of a flip mutation is depicted where only the fifth bit of the chromosome is flipped.

3.4. PV Error Handling

The comparison between the voltage and current predicted by the genetic optimization algorithm ( V g e n , I g e n ) in Section 3.3 and the actual voltage and current ( V a c t , I a c t ) involves a meticulous process, as depicted in the following flow chart (see Figure 7). This flow chart illustrates the systematic evaluation of the PV module’s or PV array’s operation by quantifying the error between predicted and actual values. The process begins with the extraction of predicted values ( V g e n , I g e n ) and actual values ( V a c t , I a c t ) from the genetic optimization algorithm and experimental measurements, respectively.
The next step involves the subtraction of actual values from predicted values, resulting in the computation of the error for both voltage and current. This error is then compared against a predefined constant c, typically set experimentally to 0.1 for enhanced precision. The decision block assesses whether the error exceeds the established threshold. If the error surpasses the threshold, the system flags the occurrence of an anomaly or deviation from expected performance. In case the error is within the acceptable range, the system proceeds to the output phase, indicating that the PV module or array is operating within the desired parameters. This systematic comparison and error analysis serve as a critical step in validating the effectiveness and accuracy of the genetic optimization algorithm in predicting the electrical characteristics of the photovoltaic system.
The overall process encapsulated in this flow chart ensures a comprehensive assessment of the algorithm’s performance, enabling researchers and engineers to identify and address discrepancies between predicted and actual values, thereby refining the modeling and optimization of the photovoltaic system (Figure 7).
This flow chart provides a visual representation of the systematic comparison and error analysis between predicted and actual values in the context of photovoltaic system modeling and optimization. The pseudocode for the PV error-handling algorithm is presented below (Algorithm 2).
Algorithm 2 PV Error Handling
1:function handlePVError( V g e n , I g e n , V a c t , I a c t , threshold)
2:▹ Calculate error for voltage and current
3:     e r r o r _ V V g e n V a c t
4:     e r r o r _ I I g e n I a c t
5:▹ Check if error exceeds the predefined threshold
6:    if  | e r r o r _ V | > threshold or | e r r o r _ I | > threshold then      
7:▹ Anomaly detected, flag the occurrence
8:         s y s t e m _ s t a t u s “Anomaly Detected”
9:    else
10:▹ System operates within desired parameters
11:         s y s t e m _ s t a t u s “Normal Operation”
12:    end if
13:▹ Output the results
14:    return  s y s t e m _ s t a t u s , e r r o r _ V , e r r o r _ I
15:end function

3.5. Overall Architecture

The overall methodology, as depicted in Figure 8, details the process of comparing and validating actual values with predicted values in the context of PV system modeling and optimization. The essential parameters guiding this model are thoughtfully cataloged in Table 3, offering a comprehensive overview of the variables involved in the comparison process. All crucial parameters, including I g e n , V g e n , P g e n , I a c t , V a c t , and P a c t , play a distinct role in the validation procedure. I g e n and V g e n represent the output current and voltage, respectively, calculated from the genetic algorithm, providing predicted values for the installed PV system. Similarly, P g e n signifies the output power generated by the PV system, as determined by the genetic algorithm. On the other side, I a c t , V a c t , and P a c t denote the measured values of output current, voltage, and power from the PV system meters, offering a real-world reference for the system’s performance.
The comprehensive procedure unfolds as follows: leveraging data from sensors and meters and exploiting the single-diode model, the GA produces the predicted values ( V g e n , I g e n , P g e n ). Simultaneously, the actual output voltage, current, and power ( V a c t , I a c t , P a c t ) are retrieved from the meters embedded within the PV system. These actual and predicted values then undergo a comparison through the PV error-handling algorithm, as explicated in the preceding section. This algorithm systematically assesses the deviation between actual and predicted values, considering predefined thresholds for error, typically set experimentally to enhance accuracy. The outcome of this analysis provides invaluable insights into the efficacy of the genetic algorithm in modeling and optimizing the PV system, allowing researchers and engineers to refine and improve the accuracy of their models.
The overall procedure is described in Algorithm 3.
Algorithm 3 Real-time PV Error Handling
Require:  I g e n , V g e n , P g e n , I a c t , V a c t , P a c t
1:
function RealTimeErrorHandling( I g e n , V g e n , P g e n , I a c t , V a c t , P a c t )
2:
    for each parameter p a r a m in { I , V , P }  do
3:
         e r r o r abs ( p a r a m g e n p a r a m a c t )                        ▹ Calculate absolute error
4:
        if  e r r o r exceeds predefined threshold then
5:
           Alert: High deviation in p a r a m values
6:
        end if
7:
    end for
8:
    Return: Analysis results and insights
9:
end function

4. Results

In this section, the results of the proposed method are presented. Initially, the performance and accuracy of the proposed GA applied to model single-diode PV systems under various illuminance conditions are addressed. The PV parameters used in the experiments are outlined, and the sensors and meters used are presented while detailing the overall procedure that involves measuring real PV values, expected MPP values through the GA, and the subsequent comparison. The GA’s accuracy is investigated by altering parameters affecting PV output, such as temperature and irradiance. Additionally, the GA’s key hyperparameters, including population size, number of generations, crossover and mutation probabilities, are thoroughly tested to optimize its performance. The accuracy and efficiency of the GA are further compared with other optimization algorithms, showcasing the GA’s efficacy in solving complex PV optimization problems. The results highlight the GA’s ability to provide accurate predictions and its suitability for real-time PV monitoring and optimization, making it a valuable tool for practical applications.

4.1. Experimental Set Up

In this experimental set-up, diverse illuminance conditions were applied to assess the performance of PV systems, with the parameters of the utilized PVs detailed in Table 4. The table provides a comprehensive overview of critical PV parameters essential for accurate modeling and optimization. The experiment’s focus is on understanding how the PVs respond to varying illuminance levels, shedding light on their efficiency and robustness under different environmental scenarios. By systematically varying illuminance conditions, the study aims to capture the nuanced behavior of the PV systems and evaluate their real-world adaptability. The parameters outlined in Table 4, such as the diode ideality factor (n), series resistance ( R s ), and photogenerated current ( I p h , S T ), play pivotal roles in determining the system’s response to changing illuminance. The ensuing analysis and results will provide valuable insights into the dynamic behavior of PV systems, contributing to a broader understanding of their performance in varying environmental contexts.

Sensors and Meters

The comprehensive modeling procedure involves acquiring crucial measurements from an array of devices, meters, and sensors to accurately assess the performance of PV systems. The key objective is to identify potential errors in PV operations by comparing real PV values with the expected MPP values. Real PV values are determined through the utilization of meters and MPPT, while the expected PV values are estimated using a genetic algorithm.
For an accurate simulation of PV system operation, the GA relies on input values from various outdoor sensors and PV modeling. These inputs include temperature measurements obtained through type J thermocouples [36] attached to the PV collectors, providing insights into temperature variations during operation. Additionally, an optical sensor [37] is employed to simultaneously monitor the brightness of the surrounding area, contributing to a comprehensive understanding of the environmental conditions affecting PV performance. A pyrometer sensor is incorporated to measure solar radiation, offering reliable data on solar energy incidence.
Simultaneously, the monitoring system utilizes a multimeter to track the voltage and current values of the PV collectors, providing real-time data on electrical parameters. Simultaneously, a wattmeter is employed to monitor the power produced by the solar cells, offering insights into the overall energy generation of the PV system. To convert analog signals into digital values for precise measurements, an analog-to-digital converter (ADC) is employed, facilitating the retrieval of accurate and digitized data. The final digital outputs include the actual electric qualities, namely V a c t (voltage), I a c t (current), and power P a c t , forming the basis for the subsequent analysis and comparison with the expected values generated by the genetic algorithm. This meticulous data acquisition process ensures a comprehensive and accurate assessment of the PV system’s real-time performance and aids in the identification of any deviations or errors in its operation.

4.2. Genetic Algorithm Tests

In this section, the focus is on the comprehensive exploration of GA tests and their impact on the modeling accuracy of PV systems under various conditions. The population size and number of generations, pivotal parameters in GAs, are investigated to optimize convergence and computational efficiency. Results from performance tests will present the influence of these parameters on the GA’s execution time and convergence ability. Additionally, the critical selection of crossover and mutation probabilities is addressed through experimental tests, revealing their relationship and impact on the algorithm’s performance. This analysis will lead to the identification of an optimal combination of hyperparameters for the GA crossover probability. Subsequently, the accuracy of the GA is thoroughly examined through tests where irradiance and temperature variations are introduced.

4.2.1. Population Size and Number of Generations

The selection of the population size is a crucial process for the GA because it directly influences the convergence of the algorithm [38]. As a result, population size has an impact on the GA’s ability to reach the optimal solution [39]. According to the findings in the literature, a small population mars the quality of chromosomes, and a large population size (i.e., more than 100) is only a computational waste [40]. Nonetheless, to determine the appropriate population and the number of generations (iteration times), tests were carried out, as shown in Table 5. The crossover probability was set to 0.75, and the mutation probability was set to 0.01, as suggested in the literature [41]. It could be suggested that the experiments indicate that a population size of 60 is efficient for the GA. Furthermore, a small generation number will maintain the quality of the solutions and keep the execution time rather low.
Some experiments have been conducted to measure the computational difficulty of the algorithm and to associate some of the genetic hyperparameters (population size and generations) with the execution time while keeping crossover and mutation probabilities intact. According to Table 5, and observing how the execution time varies as the population and generations increase, it can be observed that the execution time is linearly proportional to the size of the population. Moreover, the slope of the straight lines in Figure 9 indicates that the execution time is also linearly proportional to the number of generations. Combining the impact of those two hyperparameters on the execution time and considering that the genetic algorithm is heuristic and crossover/mutation operators occur at nearly the same time, the algorithm has a complexity of O ( n 2 ) .
As depicted in Figure 9, there is an observable relationship between the population size and the execution time of the GA. Furthermore, there is also a proportional relationship between execution time, generation size, and population size. Regarding the tests developed, the aforementioned relationships are estimated by the following:
y 1 = 0.0484 x 0.0095 y 2 = 0.0245 x 0.0065 y 3 = 0.0122 x 0.012 y 4 = 0.0059 x 0.0075 ,
where x is the population size and y is the execution time in seconds, where y 1 , y 2 , y 3 , y 4 correspond to generation sizes 10, 20, 30, 40, respectively.

4.2.2. Crossover and Mutation Probability

The crossover probability and the mutation probability are also very important parameters for the GA [30]. They should be selected after a trial phase where various combinations must be tested. The proposed GA was tested for many combinations. The results are presented in Figure 10, the two red lines indicate the lowest value of the objective function and the value of the fitness function when the algorithm stops. When there is one line, the GA converges to the minimal point.
To start with, two rather rare combinations were selected where crossover probability and mutation were equal and set to 0.5 and 1.0. In the first case, it is observed that the GA does not converge until generation 100, and the algorithm often has high picks. This is due to the high rate of both selected probabilities. In the second case, where the probabilities are set to 1.0, it may be observed that the algorithm seems to be mixed up and going all over the search space.
Subsequently, to test the effect of the crossover probability on the GA, the mutation probability is kept fixed and equal to p m = 0.8 . As it may be observed in Figure 11, the GA never converges with a high mutation probability, regardless of the p c value. The GA had sharp fluctuations during the 100-generation deployment. It is suggested that a high rate of mutation disorganizes the GA.
Moreover, to test the effect of the mutation probability on the GA, the crossover is kept fixed and equal to p c = 0.8 . In contrast to the previous case where the p m was high, when the p c is high, the GA generally performs better (Figure 12). Furthermore, the lower the p m , the better. A p m greater than 0.05 starts to deteriorate the GA’s ability to converge to the optimal solution.
To sum up, the best performance of the suggested GA is observed when p c = 0.8 and p m = 0.01 . Therefore, this is the combination that is used for the GA because it ensures that the GA will find the best solution while quickly converging.

4.3. GA Accuracy

After specifying the crossover and mutation probability and setting the decimal precision to two, some experiments have been performed to measure the accuracy of the genetic algorithm. Specifically, by modifying the parameters that mostly contribute to the PV output (temperature and irradiance), the genetic algorithm was executed and the predicted values of the electric quantities were compared to the real ones, as measured by the meters. Holding irradiance at a constant value and modifying temperature, three tables of results were formed for three different values of irradiance, namely ( 214.72 , 500, 1000). The results can be easily depicted in Table 6, Table 7, Table 8 and Table 9. In most cases, the genetic algorithm is more than 98% accurate.
It is worth mentioning that, in Table 6, for a low irradiance value ( 214.72 ), it can be easily observed that, as temperature increases, the accuracy of the algorithms decreases. In particular, when the temperature equates 50   C , the real value diverges from the predicted one by 18 % . That noticeable deviation between the real and predicted values is not attributed to the genetic algorithm but to the PV modeling. PV parameters depend on temperature and irradiance but are usually not taken into account in the equations to simplify the modeling process, leading to less accurate solutions when irradiance or temperature diverge a lot from the standard conditions. Various PV modeling methods are proposed in [25].
On the contrary, in Table 7, when the irradiance value (500 W/m 2 ) is closer to that of the standard conditions, better results were obtained, while the precision in every quantity of electrics does not fall below 96%. Similar results can be illustrated in Table 7, where accuracy remains above 95 % . Due to the fact that electric quantities (voltage and current) can be predicted with an error less than 10 % , except for cases of extreme values of irradiance and temperature, an error could be raised when real and predicted values diverge more than 10 % . It should also be remembered that, with more analytical and detailed PV modeling, the genetic algorithm could yield better results, even in extreme cases.

4.4. PV Error Generation

The end-user can be informed of the PV’s state from the real-time analytics platform implemented to provide valuable information about the PVs. In particular, beyond other crucial and informative visualizations, the end-user also has the ability to constantly view the real-time ground truth and predicted values of the electric quantities and check if any abnormal activity is observable. Two different cases of normal and abnormal PV activity can be illustrated in Figure 13 and Figure 14, respectively. It should also be mentioned that, in cases of abnormal activity, pop-up notifications also appear on the user’s screen.

4.5. Comparing Proposed Fitness Function with MPC-Based Methods

It has been proposed that MPC-based MPPT algorithms are of high accuracy and robustness [30]. With this technique, the MPPT is tracked by correcting V and I values until d P d V = 0 . Exploiting the Lambert function and finding I(V), as in (21), the above equation can be reformed and is illustrated as
d P d V = d ( V · I ) d V = I ( V ) + V · d I ( V ) d V = 0
Using the above (25), a fitness function to find the MPP was formed and is expressed as follows:
f V gen = | I ( V ) + V · d I ( V ) d V | , f : [ 0 , V o c ] R
The genetic algorithm was also tested with the above fitness function, and there were no substantial deviations between the results using the fitness function defined in (22). However, d I ( V ) d V should be calculated, making the above fitness function much more complex than the proposed solution in this paper. Speaking of complexity, d I ( V ) d V can be calculated using the Lambert function and (21), as follows:
d I ( V ) d V = V t R s · W o ( I s · R s ) ( 1 + R s R s h ) · V t · e V + R s ( I s + I p h ) ( 1 + R s R s h ) · V t + ( I p h + I s V R s h ) 1 + R s R s h
To summarize, the solution proposed in this paper is not only less complex than other solutions to track the MPP, but the genetic algorithm also offers the flexibility to use another technique (e.g., MPC, as above) by modifying the fitness function.

4.6. Genetic Algorithm Performance Test Compared with Other Optimization Algorithms

There are a multitude of numerical optimization algorithms in the literature that perform in various ways [42]. Their performance varies depending on their formulation (e.g., convergence velocity, optimum perception, constraint handling). There are three main categories of optimization algorithms: evolutionary algorithms, gradient-based algorithms, and non-gradient-based algorithms [43]. During the design process of a problem, the appropriate algorithm must be selected to formulate a plausible solution. The meticulous choice of the optimization algorithm is critical for the robustness of every problem-solving process. As a result, the created genetic algorithm (i.e., evolutionary) is compared to two other algorithms belonging to the other categories and one belonging to the same category.
The first one is a gradient-based algorithm, sequential least squares programming (SLSQP) [44]. SLSQP exploits the Han–Powell quasi-Newton method with an update of the B-matrix [44]. It is a commonly used algorithm that handles problem constraints with efficacy. The other one is a non-gradient-based algorithm, COBYLA [45]. COBYLA does not account for bounds and is a non-derivative optimizer [45]. Therefore, the created GA will be examined both with a gradient and with a non-gradient algorithm using the boundary constraints of the PV configuration. As far as the evolutionary algorithm is concerned, in 2020, Ravipudi Venkata Rao proposed the Rao algorithms (i.e., Rao-1, Rao-2, Rao-3), which are metaphor-free optimization methods using best/worst solutions and random interactions for quick convergence [46]. They require only two parameters—population size and maximum evaluations—streamlining the tuning process by omitting complex parameters from previous metaphor-based approaches. All the algorithms are tested for their performance compared to real PV values and the same input parameters (i.e., irradiance, temperature). Moreover, two ways of handling constraints are compared: the one used by GA exploiting the Lambert function, and the other used by SLSQP, COBYLA, and Rao (1, 2, 3), which uses the domain of (4).
The comparison results in Table 8, Table 9, Table 10 and Table 11 reveal that the GA, SLSQP, and COBYLA algorithms yield nearly identical results across different temperatures and output parameters. This uniformity underscores the accuracy of the constraint handling, particularly the use of the Lambert function in the GA. Despite the algorithms’ similar performance, the GA stands out as a preferable choice due to its configurability. The GA offers more flexibility in selecting various objective functions and constraints, providing adaptability to solve a unique problem. This versatility in configuration is a significant advantage, allowing the GA to address a wide range of optimization scenarios effectively. As for the time required for each algorithm to achieve convergence, the results indicate that the GA consistently demonstrates a slightly more efficient convergence across varying temperatures (0 °C, 25 °C, and 50 °C) compared to the SLSQP, Cobyla, and Rao-1, Rao-2, and Rao-3 algorithms. The advantage of the GA in convergence time suggests its robust performance in optimizing the given parameters, highlighting its potential as an effective optimization method for the specified conditions.
Furthermore, the GA’s ease of application becomes evident in comparison to model predictive control techniques [47]. The GA’s straightforward implementation and ability to handle diverse problem formulations make it a practical and accessible choice for optimization tasks in this context. In contrast to the Rao algorithms, the GA consistently demonstrates slightly better performance across all tested conditions. This superiority, combined with the GA’s configurability and ease of use, positions it as the method of choice for optimizing the given system.

4.7. Results and Discussion

The proposed methodology combines advanced computational techniques, experimental measurements, and error-handling strategies to model and optimize photovoltaic (PV) systems. The integration of a GA with a single-diode model forms the basis of the modeling approach. The ensuing discussion delineates the key aspects and implications of this methodology.
The utilization of a GA involves a meticulous examination of its performance and sensitivity to various parameters. The GA’s efficacy is contingent upon optimal hyperparameter tuning, particularly concerning population size, generation number, crossover probability, and mutation probability. The comprehensive error handling and validation procedure establishes a robust mechanism for comparing predicted and actual PV system outputs. The integration of a predefined error constant facilitates a quantitative assessment of the algorithm’s performance. The discussion on the error-handling algorithm emphasizes its utility in identifying discrepancies and guiding further refinement of the genetic algorithm.
The integrated procedure, harmonizing GA predictions with actual measurements, offers a holistic perspective on PV system modeling. The step-by-step approach, encompassing sensor data, GA predictions, and metered values, ensures a comprehensive evaluation. The methodology’s practical implications lie in its ability to not only optimize PV system performance but also provide a systematic framework for continuous improvement.
While the proposed methodology exhibits promising results, it is not without limitations. The simplified single-diode model may introduce inaccuracies, especially in extreme conditions. Future research could explore more intricate PV models to enhance accuracy. Additionally, the sensitivity of the GA to initial conditions warrants further investigation for robust real-world applicability.

5. Conclusions

In this paper, a novel evolutionary algorithm has been presented for real-time PV power optimization, introducing a comprehensive system that monitors and maintains the health of PV installations. The system provides a holistic overview of outdoor environmental conditions, continuously monitors PV voltage, power, and current, and predicts PV values in real time. Alerts and notifications are sent to stakeholders and end-users, enhancing the practical utility of the system.
The power optimization process underwent a thorough analysis, leading to the development of a finely tuned GA. Through a systematic trial-and-error phase, optimal GA parameters were determined— p c = 0.8 , p m = 0.01 , and a population size of 60—resulting in a remarkable accuracy exceeding 98% when compared to actual PV values. This underscores the effectiveness of the proposed GA in optimizing PV power output.
To ensure the operational integrity of PV modules or arrays, a robust comparison between actual and predicted voltage and current was implemented. The proposed error-handling procedure demonstrated efficiency during experimentation, promptly alerting end-users to potential PV malfunctions. A comparative analysis with other algorithms affirmed the accuracy of the genetic algorithm, boasting a 99% success rate and offering flexibility in parameter configuration.
Looking ahead, future work will involve the comprehensive testing of additional PV parameters and diverse outdoor conditions to further enhance system efficiency. The refinement and analysis of the PV modeling approach will be prioritized to ensure the accuracy of PV error handling. Exploring alternative PV modeling techniques and conducting user satisfaction research will contribute to continual improvements, ensuring the system’s effectiveness and enhancing the user experience.

Author Contributions

Conceptualization, A.D.; Methodology, A.D., A.P., K.G. and D.T. (Dimitris Triantafyllidis); Software, A.D., A.P., D.T. (Dimitris Triantafyllidis) and I.T.; Validation, A.D., A.P., K.G., D.T. (Dimitris Triantafyllidis), I.T., C.-N.A., S.K., D.I. and D.T. (Dimitrios Tzovaras); Investigation, A.D. and A.P.; Resources, S.K.; Data curation, K.G., D.T. (Dimitris Triantafyllidis), I.T., C.-N.A., S.K., D.I. and D.T. (Dimitrios Tzovaras); Writing–original draft, A.D., A.P., K.G., D.T. (Dimitris Triantafyllidis), I.T., C.-N.A., S.K., D.I. and D.T. (Dimitrios Tzovaras); Writing–review & editing, A.D., A.P., K.G., D.T. (Dimitris Triantafyllidis), I.T., C.-N.A., S.K., D.I. and D.T. (Dimitrios Tzovaras); Visualization, K.G., D.T. (Dimitris Triantafyllidis), I.T., C.-N.A., S.K., D.I. and D.T. (Dimitrios Tzovaras); Supervision, A.D., A.P. and S.K.; Project administration, A.D. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

Data are contained within the article.

Acknowledgments

This work is partially supported by the PRECEPT project, funded by the EU H2020 under grant agreement No. 958284. The authors express their sincere gratitude to Batzelis Efstratios for his valuable contribution in enhancing our understanding of the Lambert function in photovoltaic modeling. His assistance has been instrumental in advancing our research in this area, and we are truly grateful for his guidance and support.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Kingsley-Amaehule, M.; Uhunmwangho, R.; Nwazor, N.; Okedu, K.E. Smart Intelligent Monitoring and Maintenance Management of Photo-voltaic Systems. Int. J. Smart Grid 2022, 6, 110–122. [Google Scholar]
  2. Jaiswal, S.P.; Shrivastava, V.; Palwalia, D.K. Opportunities and challenges of PV technology in power system. Mater. Today Proc. 2021, 34, 593–597. [Google Scholar] [CrossRef]
  3. Rasheed, M.; Shihab, S.; Rashid, T.; Ounis, T.D. Parameters Determination of PV Cell Using Computation Methods. J. Al-Qadisiyah Comput. Sci. Math. 2021, 13, 1. [Google Scholar] [CrossRef]
  4. Limouni, T.; Yaagoubi, R.; Bouziane, K.; Guissi, K.; Baali, E.H. Accurate one step and multistep forecasting of very short-term PV power using LSTM-TCN model. Renew. Energy 2023, 205, 1010–1024. [Google Scholar] [CrossRef]
  5. Rasheed, M.; Alabdali, O.; Shihab, S. A New Technique for Solar Cell Parameters Estimation of The Single-Diode Model. J. Phys. Conf. Ser. 2021, 1879, 032120. [Google Scholar] [CrossRef]
  6. Nayak, B.; Mohapatra, A.; Mohanty, K.B. Parameter estimation of single diode PV module based on GWO algorithm. Renew. Energy Focus 2019, 30, 1–12. [Google Scholar] [CrossRef]
  7. Rasheed, M.; Shihab, S.; Rashid, T. The Single Diode Model for PV Characteristics Using Electrical Circuit. J. Al-Qadisiyah Comput. Sci. Math. 2021, 13, 131. [Google Scholar] [CrossRef]
  8. Mazzeo, D.; Matera, N.; De Luca, P.; Baglivo, C.; Congedo, P.M.; Oliveti, G. A literature review and statistical analysis of photovoltaic-wind hybrid renewable system research by considering the most relevant 550 articles: An upgradable matrix literature database. J. Clean. Prod. 2021, 295, 126070. [Google Scholar] [CrossRef]
  9. Rasheed, M.; Alabdali, O.; Hassan, H.H. Parameters Extraction of a Single-Diode Model of Photovoltaic Cell Using False Position Iterative Method. J. Phys. Conf. Ser. 2021, 1879, 032113. [Google Scholar] [CrossRef]
  10. Houssein, E.H.; Zaki, G.N.; Diab, A.A.Z.; Younis, E.M. An efficient Manta Ray Foraging Optimization algorithm for parameter extraction of three-diode photovoltaic model. Comput. Electr. Eng. 2021, 94, 107304. [Google Scholar] [CrossRef]
  11. Korkas, C.; Dimara, A.; Michailidis, I.; Krinidis, S.; Marin-Perez, R.; Martínez García, A.I.; Skarmeta, A.; Kitsikoudis, K.; Kosmatopoulos, E.; Anagnostopoulos, C.N.; et al. Integration and Verification of PLUG-N-HARVEST ICT Platform for Intelligent Management of Buildings. Energies 2022, 15, 2610. [Google Scholar] [CrossRef]
  12. Ayadi, F.; Colak, I.; Genc, N.; Bulbul, H.I. Impacts of wind speed and humidity on the performance of photovoltaic module. In Proceedings of the 2019 8th International Conference on Renewable Energy Research and Applications (ICRERA), Brasov, Romania, 3–6 November 2019; IEEE: Piscataway, NJ, USA, 2019. [Google Scholar]
  13. Kim, G.G.; Choi, J.H.; Park, S.Y.; Bhang, B.G.; Nam, W.J.; Cha, H.L.; Park, N.; Ahn, H.K. Prediction model for PV performance with correlation analysis of environmental variables. IEEE J. Photovoltaics 2019, 9, 832–841. [Google Scholar] [CrossRef]
  14. Lopez-Santos, O.; Garcia, G.; Martinez-Salamero, L.; Giral, R.; Vidal-Idiarte, E.; Merchan-Riveros, M.C.; Moreno-Guzman, Y. Analysis, design, and implementation of a static conductance-based MPPT method. IEEE Trans. Power Electron. 2018, 34, 1960–1979. [Google Scholar] [CrossRef]
  15. Ebrahimi, S.M.; Salahshour, E.; Malekzadeh, M.; Gordillo, F. Parameters identification of PV solar cells and modules using flexible particle swarm optimization algorithm. Energy 2019, 179, 358–372. [Google Scholar] [CrossRef]
  16. Leva, S.; Mussetta, M.; Ogliari, E. PV module fault diagnosis based on microconverters and day-ahead forecast. IEEE Trans. Ind. Electron. 2018, 66, 3928–3937. [Google Scholar] [CrossRef]
  17. Li, G. Analysis of errors in model parameters for photovoltaic panel. Aust. J. Electr. Electron. Eng. 2019, 16, 281–288. [Google Scholar] [CrossRef]
  18. Arévalo, P.; Benavides, D.; Tostado-Véliz, M.; Aguado, J.A.; Jurado, F. Smart monitoring method for photovoltaic systems and failure control based on power smoothing techniques. Renew. Energy 2023, 205, 366–383. [Google Scholar] [CrossRef]
  19. Chen, Q.; Li, X.; Zhang, Z.; Zhou, C.; Guo, Z.; Liu, Z.; Zhang, H. Remote sensing of photovoltaic scenarios: Techniques, applications and future directions. Appl. Energy 2023, 333, 120579. [Google Scholar] [CrossRef]
  20. Joseph, E.; Vijaya Kumar, P.M.; Mahinder Singh, B.S.; Ching, D.L.C. Performance Monitoring Algorithm for Detection of Encapsulation Failures and Cell Corrosion in PV Modules. Energies 2023, 16, 3391. [Google Scholar] [CrossRef]
  21. Yin, J.; Wang, Y.; Wang, W.; Gao, W. Experimental Verification of Kirchoff First-law in the Manipulation of Sub-Possonian Photocurrent. In Laser Spectroscopy-Proceedings of the XIII International Conference; World Scientific: Singapore, 1998. [Google Scholar]
  22. Shockley, W.; Queisser, H.J. Detailed balance limit of efficiency of p-n junction solar cells. J. Appl. Phs. 1961, 32, 510–519. [Google Scholar] [CrossRef]
  23. Daussy, C.; Guinet, M.; Amy-Klein, A.; Djerroud, K.; Hermier, Y.; Briaudeau, S.; Bordé, C.J.; Chardonnet, C. Direct determination of the Boltzmann constant by an optical method. Phys. Rev. Lett. 2007, 98, 250801. [Google Scholar] [CrossRef] [PubMed]
  24. Marafona, J.; Chousal, J.A.G. A finite element model of EDM based on the Joule effect. Int. J. Mach. Tools Manuf. 2006, 46, 595–602. [Google Scholar] [CrossRef]
  25. Ibrahim, H.; Anani, N. Variations of PV module parameters with irradiance and temperature. Energy Procedia 2017, 134, 276–285. [Google Scholar] [CrossRef]
  26. Corless, R.M.; Gonnet, G.H.; Hare, D.E.; Jeffrey, D.J.; Knuth, D.E. On the LambertW function. Adv. Comput. Math. 1996, 5, 329–359. [Google Scholar] [CrossRef]
  27. Rodríguez, J.D.B.; Ramos-Paja, C.A.; Mejía, E.F. Modeling and parameter calculation of photovoltaic fields in irregular weather conditions. Ingeniería 2012, 17, 37–48. [Google Scholar]
  28. Batzelis, E.I.; Anagnostou, G.; Chakraborty, C.; Pal, B.C. Computation of the Lambert W function in photovoltaic modeling. In Lecture Notes in Electrical Engineering; JB Metzler: Berlin, Germany, 2020; pp. 583–595. [Google Scholar]
  29. Holland, J.H. Genetic algorithms. Sci. Am. 1992, 267, 66–73. [Google Scholar] [CrossRef]
  30. Mirjalili, S. Genetic Algorithm. Evolutionary Algorithms and Neural Networks; Springer: Cham, Switzerland, 2019; pp. 43–55. [Google Scholar]
  31. Mitchell, M.; Crutchfield, J.P.; Das, R. Evolving cellular automata with genetic algorithms: A review of recent work. In Proceedings of the First International Conference on Evolutionary Computation and Its Applications (EvCA’96), Moscow, Russia, 20–22 May 1996; Volume 8. [Google Scholar]
  32. Katoch, S.; Chauhan, S.S.; Kumar, V. A review on genetic algorithm: Past, present, and future. Multimed. Tools Appl. 2020, 80, 8091–8126. [Google Scholar] [CrossRef]
  33. Beligiannis, G.N.; Moschopoulos, C.; Likothanassis, S.D. A genetic algorithm approach to school timetabling. J. Oper. Res. Soc. 2009, 60, 23–42. [Google Scholar] [CrossRef]
  34. Blickle, T. Tournament selection. Evol. Comput. 2000, 1, 181–186. [Google Scholar]
  35. Spears, W.M. Adapting crossover in evolutionary algorithms. In Evolutionary Programming; MIT Press: Cambridge, MA, USA, 1995. [Google Scholar]
  36. Manjhi, S.K.; Kumar, R. Performance assessment of K-type, E-type and J-type coaxial thermocouples on the solar light beam for short duration transient measurements. Measurement 2019, 146, 343–355. [Google Scholar] [CrossRef]
  37. Panambur, K.S.; Desai, S.; Singh, A.K.; Thoben, K. A Hybrid Approach for Digital Representation of Sensors in Real- Time Applications. Procedia Manuf. 2020, 52, 14–19. [Google Scholar] [CrossRef]
  38. Stone, M. Cross-validatory choice and assessment of statistical predictions. J. R. Stat. Soc. Ser. B Methodol. 1974, 36, 111–133. [Google Scholar] [CrossRef]
  39. Dimara, A.; Anagnostopoulos, C.; Krinidis, S.; Tzovaras, D. Personalized thermal comfort modeling through genetic algorithm. Energy Sources Part A Recover. Util. Environ. Eff. 2021, 4, 1–22. [Google Scholar] [CrossRef]
  40. Lambora, A.; Gupta, K.; Chopra, K. Genetic algorithm-A literature review. In Proceedings of the 2019 International Conference on Machine Learning, Big Data, Cloud and Parallel Computing (COMITCon), Faridabad, India, 14–16 February 2019; IEEE: Piscataway, NJ, USA, 2019. [Google Scholar]
  41. Hassanat, A.; Almohammadi, K.; Alkafaween, E.A.; Abunawas, E.; Hammouri, A.; Prasath, V.S. Choosing mutation and crossover ratios for genetic algorithms—A review with a new dynamic approach. Information 2019, 10, 390. [Google Scholar] [CrossRef]
  42. Wendorff, A.; Botero, E.; Alonso, J.J. Comparing Different Off-the-Shelf Optimizers’ Performance in Conceptual Aircraft Design. In Proceedings of the 17th AIAA/ISSMO Multidisciplinary Analysis and Optimization Conference, Washington, DC, USA, 13–17 June 2016. [Google Scholar]
  43. Warsito, B.; Yasin, H.; Prahutama, A. Particle swarm optimization versus gradient based methods in optimizing neural network. J. Phys. Conf. Ser. 2019, 1217, 012101. [Google Scholar] [CrossRef]
  44. Fu, Z.; Liu, G.; Guo, L. Sequential quadratic programming method for nonlinear least squares estimation and its application. Math. Probl. Eng. 2019, 2019, 3087949. [Google Scholar] [CrossRef]
  45. Gressling, T. 100 Quantum machine learning (QAI). In Data Science in Chemistry; De Gruyter: Berlin, Germany, 2020; pp. 504–510. [Google Scholar]
  46. Rao, R. Rao algorithms: Three metaphor-less simple algorithms for solving optimization problems. Int. J. Ind. Eng. Comput. 2020, 11, 107–130. [Google Scholar] [CrossRef]
  47. Shadm, M.B.; Balog, R.S.; Abu-Rub, H. Model predictive control of PV sources in a smart DC distribution system: Maximum power point tracking and droop control. IEEE Trans. Energy Convers. 2014, 29, 913–921. [Google Scholar] [CrossRef]
Figure 1. PV module equivalent circuit.
Figure 1. PV module equivalent circuit.
Applsci 13 12682 g001
Figure 2. I–V curve.
Figure 2. I–V curve.
Applsci 13 12682 g002
Figure 3. P–V curve.
Figure 3. P–V curve.
Applsci 13 12682 g003
Figure 4. Chromosome encoding.
Figure 4. Chromosome encoding.
Applsci 13 12682 g004
Figure 5. Two-point crossover example.
Figure 5. Two-point crossover example.
Applsci 13 12682 g005
Figure 6. Flip mutation example.
Figure 6. Flip mutation example.
Applsci 13 12682 g006
Figure 7. Flow chart of PV error handling.
Figure 7. Flow chart of PV error handling.
Applsci 13 12682 g007
Figure 8. PV error-handling conceptual architecture.
Figure 8. PV error-handling conceptual architecture.
Applsci 13 12682 g008
Figure 9. Relationship between population size, generations, and execution time.
Figure 9. Relationship between population size, generations, and execution time.
Applsci 13 12682 g009
Figure 10. Experimental tests for GA performance setting crossover probability and mutation equal to 0.5 and 1.0.
Figure 10. Experimental tests for GA performance setting crossover probability and mutation equal to 0.5 and 1.0.
Applsci 13 12682 g010
Figure 11. Crossover and mutation tests with mutation fixed to p m = 0.8 .
Figure 11. Crossover and mutation tests with mutation fixed to p m = 0.8 .
Applsci 13 12682 g011
Figure 12. Crossover and mutation tests with crossover fixed to p c = 0.8 .
Figure 12. Crossover and mutation tests with crossover fixed to p c = 0.8 .
Applsci 13 12682 g012
Figure 13. UI example when PV values are normal.
Figure 13. UI example when PV values are normal.
Applsci 13 12682 g013
Figure 14. UI example when PV values are not normal.
Figure 14. UI example when PV values are not normal.
Applsci 13 12682 g014
Table 1. PV modeling parameters.
Table 1. PV modeling parameters.
ParametersDescriptionUnitParameter Range
N p No. of cells connected in
parallelVert in a PV module
unitless>0
N s No. of cells connected in
series in a PV module
unitless>0
I p h Photo-generated currentA0 to saturation current
I s Diode’s saturation currentA 10 14 10 17 A/ μ m 2
I d Diode’s currentA 10 9 to 2
V t Diode’s thermal voltageV2 mV–30 mV
R p Parallel resistanceOhm0 to smallest resistance
R s Series resistanceOhm0.2 Ohm to 20 Ohm
kBoltzmann constantJ/K 1.381 · 10 23 J/K
nDiode’s ideality factorunitless1–2
IPV’s output currentA 0 I N p I s c N p
VPV’s output voltageV 0 V N s V o c N s
PPV’s output powerW 0 P n N p N s
q e Elementary chargeC 1.602 · 10 19 C
μ I s c , μ V o c Temperature coefficients for
current and voltage, respectively
( I / C, V / C)0.04 to 0.5, −0.3 to −0.5
G , G S T Solar irradiance and irradiance
at standard conditions (1000 W/m 2 )
W/m 2 <1000 W/m 2 , 1000 W/m 2
T , T S T Temperature of PV module and standard
test values for temperature (25 C)
C25 C to 50 C, 25 C
V o c , V o c , S T Voltage of PV module and standard
test values for temperature (25 C)
V 0 V o c N s V o c , s t N s
I s c , I s c , S T Current of PV module and standard
test values for temperature (25 C)
A 0 I s c N p I s c , s t N p
Table 2. Parameters for the genetic algorithm.
Table 2. Parameters for the genetic algorithm.
ParametersDescription
p m mutation probability
p c crossover probability
p o p u l a t i o n number of chromosomes
g e n e r a t i o n number of generations
D e c i m a l s decimal precision of the
encoded value ( V g e n )
f V gen = V g e n · I g e n ( V g e n ) , f : [ 0 , V o c ] R ) fitness function
Table 3. Parameters to compare actual values from predicted.
Table 3. Parameters to compare actual values from predicted.
ParametersDescritpionUnit
I g e n Output current of installed PVs
as calculated from genetic algorithm
A
V g e n Output voltage of installed PVs
as calculated from genetic algorithm
V
P g e n Output power of installed PVs
as calculated from genetic algorithm
W
I a c t Output current of installed PVs
as measured from meters
A
V a c t Output voltage of installed PVs
as measured from meters
V
P a c t Output power of installed PVs
as measured from meters
W
Table 4. Parameters of the PVs used in the experiments.
Table 4. Parameters of the PVs used in the experiments.
PV ParameterValueUnit
n0.988unitless
R p 249.678Ohm
R s 0.384Ohm
I s c , S T 5.17A
I p h , S T 5.178A
V o c , S T 43.99V
μ I s c 0.00415 I / C
μ V o c −0.03616 V / C
N s 72unitless
I s 1.784 × 10 10 A
Table 5. GA performance tests on the population and the generation size.
Table 5. GA performance tests on the population and the generation size.
GenerationPopulationExecution Time (s)Convergence
10100.0528/10
200.11010/10
400.22910/10
20100.1129/10
200.22910/10
400.47710/10
40100.23710/10
200.48410/10
400.97110/10
80100.47910/10
200.95110/10
401.92810/10
Table 6. GA accuracy tests with irradiance 214.72 W/m 2 .
Table 6. GA accuracy tests with irradiance 214.72 W/m 2 .
Irradiance 214.72 W/m 2
Temperature 0 C
Real ValuesGeneticErrorAccuracy %
I m p p A0.9901.01223−0.0222398
V m p p V33.54034.5158−0.9758297
P m p p W33.234.93794−1.7379495
Temperature 25 C
I m p p A1.0001.02635−0.0263597
V m p p V29.93.32.42978−2.4997892
P m p p W29.93033.28430−3.3543589
Temperature 50 C
I m p p A1.0251.03863−0.0136399
V m p p V25.81030.37843−4.5684382
P m p p W26.45031.5519−5.1019481
Table 7. GA accuracy tests with irradiance 500 W/m 2 .
Table 7. GA accuracy tests with irradiance 500 W/m 2 .
Irradiance 500 W/m 2
Temperature 0 C
Real ValuesGeneticErrorAccuracy %
I m p p A2.442.360110.0798997
V m p p V38.5837.229441.3505696
P m p p W94.1387.865576.2644293
Temperature 25 C
I m p p A2.412.391440.0185699
V m p p V35.9634.89841.061697
P m p p W86.8183.457433.3525796
Temperature 50 C
I m p p A2.462.418560.0414498
V m p p V31.1332.58600−1.45695
P m p p W76.5778.81119−2.2411997
Table 8. GA accuracy tests with irradiance 1000 W/m 2 .
Table 8. GA accuracy tests with irradiance 1000 W/m 2 .
Irradiance 1000 W/m 2
Temperature 0 C
Real ValuesGeneticErrorAccuracy %
I m p p A4.8004.745470.0545399
V m p p V40.11039.280880.8291298
P m p p W192.550186.406236.1437697
Temperature 25 C
I m p p A4.8304.779660.0503499
V m p p V36.22036.63148−0.4114899
P m p p W174.984175.08602−0.10202100
Temperature 50 C
I m p p A4.7904.82245−0.0324599
V m p p V32.53033.81646−1.2864696
P m p p W155.820163.07818−7.2581895
Table 9. Output results of SLSQP, COBYLA and Rao (1,2,3) algorithms.
Table 9. Output results of SLSQP, COBYLA and Rao (1,2,3) algorithms.
Test Results
Irradiance 1000 W/m2
Temperature 0 °C
Real ValuesGASLSQPCobylaRao-1Rao-2Rao-3
Impp4.804.754.723.824.744.734.73
Vmpp40.1139.2839.4943.6539.4539.4839.48
Pmpp192.55186.41186.48166.79187.20186.50186.50
Temperature 25 °C
Impp4.834.784.783.304.804.794.79
Vmpp36.2236.6336.6342.1236.5936.6236.62
Pmpp174.98175.09175.10138.78175.02175.08175.08
Temperature 50 °C
Impp4.794.824.822.874.814.824.82
Vmpp32.5333.8233.8240.6833.7833.8133.81
Pmpp155.82163.08163.10116.88162.95163.09163.09
Table 10. Execution time comparison of optimization algorithms (in milliseconds).
Table 10. Execution time comparison of optimization algorithms (in milliseconds).
Temperature ( C)GASLSQPCobylaRao-1Rao-2Rao-3
0100105108120106107
259095951159697
5098105105105104105
Table 11. Comparison results of SLSQP, COBYLA, and Rao (1,2,3), based on the outputs.
Table 11. Comparison results of SLSQP, COBYLA, and Rao (1,2,3), based on the outputs.
GA %SLSQP %Cobyla %Rao-1 %Rao-2 %Rao-3 %
Temperature 0 °C
Impp999880999999
Vmpp989892989898
Pmpp979686969696
Temperature 25 °C
Impp999969989898
Vmpp999984999999
Pmpp10010080100100100
Temperature 50 °C
Impp999960999999
Vmpp969675969696
Pmpp959575969696
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Dimara, A.; Papaioannou, A.; Grigoropoulos, K.; Triantafyllidis, D.; Tzitzios, I.; Anagnostopoulos, C.-N.; Krinidis, S.; Ioannidis, D.; Tzovaras, D. A Novel Real-Time PV Error Handling Exploiting Evolutionary-Based Optimization. Appl. Sci. 2023, 13, 12682. https://doi.org/10.3390/app132312682

AMA Style

Dimara A, Papaioannou A, Grigoropoulos K, Triantafyllidis D, Tzitzios I, Anagnostopoulos C-N, Krinidis S, Ioannidis D, Tzovaras D. A Novel Real-Time PV Error Handling Exploiting Evolutionary-Based Optimization. Applied Sciences. 2023; 13(23):12682. https://doi.org/10.3390/app132312682

Chicago/Turabian Style

Dimara, Asimina, Alexios Papaioannou, Konstantinos Grigoropoulos, Dimitris Triantafyllidis, Ioannis Tzitzios, Christos-Nikolaos Anagnostopoulos, Stelios Krinidis, Dimosthenis Ioannidis, and Dimitrios Tzovaras. 2023. "A Novel Real-Time PV Error Handling Exploiting Evolutionary-Based Optimization" Applied Sciences 13, no. 23: 12682. https://doi.org/10.3390/app132312682

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