Introduction

In recent years, the substantial rise in global energy demand has been primarily driven by the continuous growth of the world population. However, using fossil fuels to obtain energy increases the emission of CO2 and greenhouse gases. CO2and greenhouse gases cause global warming and climate change1,2. The Paris Agreement was announced in 2015 to combat climate change. This global agreement accelerated the usage of renewable energy systems such as solar, wind, and geothermal energy3.

SPPs, one of the main RESs, convert solar irradiance to electrical energy via solar cells. MPPT represents a critical control strategy in PV energy systems, aimed at continuously harvesting the maximum attainable power under varying environmental conditions. This is achieved by precisely modulating the PV array’s operating parameters—typically voltage or current—to ensure alignment with the system’s MPP on the P–V characteristic curve. By effectively matching the PV generator’s I–V operating point to the load profile, MPPT algorithms significantly enhance overall energy conversion efficiency4.

In literature, MPPT algorithms are categorised into three categories: Conventional algorithms, meta-heuristic algorithms, and learning based algorithms. Conventional algorithms are traditional algorithms that are FOCV5, FSCC6, P&O7, and INC8. However, these algorithms produce oscillations around MPP. Moreover, meta-heuristic and intelligent algorithms include GWO9, FL type-110, type-211, type-312, Hybrid FL Algorithm13, PSO14, Flower Pollination15, GA16, Cuckoo Search Algorithm17, Arithmetic Optimisation18, Adaptive Snake Algorithm with P&O19, Hill Climbing Algorithm20, GWO with WOA21. Learning based algorithms use ANN22,23, a type of RNN: LSTM24, ANFIS25, and GEP with ANFIS26. In Table 1, MPPT algorithms in the literature have been examined, and the innovations they brought to the literature have been explained.

In this paper, a comprehensive comparative evaluation of widely used MPPT algorithms for grid-connected PV systems is conducted. Conventional (P&O, INC), metaheuristic (GWO, PSO), intelligent (FL) and learning based (, ANN, LSTM, BiLSTM, and ANFIS) approaches are systematically examined under different operating conditions, including sinusoidal irradiation and PSC scenarios. The algorithms are evaluated in terms of THD, and computational complexity. In addition, practical implementation aspects such as typical hardware requirements, inference latency, memory usage, and real-time deployability are explicitly considered to assess the feasibility of deploying each algorithm on embedded control platforms. Although THD is primarily associated with the output quality of the inverter, it is indirectly influenced by the dynamic behavior of MPPT algorithms. MPPT techniques that induce rapid or unstable voltage and current variations can introduce fluctuations at the inverter input, which may propagate to the output stage and increase the harmonic content. For this reason, THD is incorporated in this study as a secondary yet relevant performance metric to capture the impact of MPPT dynamics on overall power quality. By jointly considering algorithmic performance, operating conditions, and hardware constraints, this work provides a holistic assessment framework and practical guidelines for selecting appropriate MPPT algorithms in grid-connected PV applications.

Table 1 MPPT literature Analysis.

The main contributions and contents of this research can be summarised as follows:

  • Theoretical modelling and simulation of a grid-connected PV system are performed.

  • The contribution of this paper is the evaluation of a wide range of MPPT controllers, from conventional methods like P&O and INC to meta-heuristic methods such as GWO, FL, and PSO, and learning based approaches including ANN, LSTM, BiLSTM, and ANFIS, aiming to compare their performance under sinus irradiance test, and PSC, thereby supporting the scientific community in enhancing the efficiency and reliability of solar energy conversion systems.

  • ANN, LSTM, BiLSTM, and ANFIS models are trained using synthetic irradiance and temperature datasets to evaluate their predictive capabilities in the sinus irradiance test, and PSCs.

  • The core contribution of this study is a thorough comparative analysis of the selected MPPT controllers, focusing on critical performance metrics including efficiency, oscillation amplitude, relative power loss, relative power gain, and computational complexity. In addition to primary metrics such as efficiency, oscillation amplitude, relative power loss, relative power gain, and computational complexity, this study also evaluates THD. The study identifies learning-based MPPT algorithms as promising solutions for robust and accurate power point tracking in PV systems.

The paper structure is organised as follows: The Introduction is given in the section “Introduction”. The general overview of the grid-connected PV system and its parts (PV panel, boost converter, inverter, and MPPT algorithms) are presented in the section “Methods”. In the section “MPPT algorithms”, the MPPT algorithms used in this paper are explained. Section “Results and discussion” presents results and discussion of the performance of MPPT algorithms based on efficiency, oscillation, THD, relative power loss, relative power gain, and computational complexity. The conclusion is given in the section “Conclusion”.

Methods

Theoretical background

The general overview of grid-connected PV systems is shown in Fig. 1. The system has five main parts: PV panels, boost converter, inverter, inductive filter, and grid.

Fig. 1
figure 1

PV Panel System.

PV panel

The equivalent circuit of a PV cell is illustrated in Fig. 2. A PV cell consists of semiconductor materials that convert solar energy into electrical energy. When sunlight strikes the surface of a solar cell, it excites electrons, causing electricity to flow through the semiconductor. Solar panels are composed of multiple interconnected solar cells working together to increase voltage or current output. The electrical behaviour of a solar panel is often modelled using the equivalent circuit of a single PV cell. This equivalent circuit typically includes one or more diodes, as well as series and parallel resistances.

Fig. 2
figure 2

Equivalent Circuit of a PV Cell.

Equation (1) shows the output current of the PV panel.

$$\:{I}_{s}={I}_{ph}-{I}_{SD}\left[\text{exp}\left(\frac{q\left({V}_{{PV}}+{I}_{s}{R}_{s}\right)}{{nkT}}\right)-\:1\right]-\:\frac{{V}_{pv}+{I}_{s}{R}_{s}}{{R}_{p}}$$
(1)
Sinus irradiance test

The output power of solar panels depends on solar radiation and panel temperature. In this context, two different solar radiation profiles are generated to test the algorithms. As the first profile, a sinusoidal solar radiation test is employed. This test represents the typical daily increase in solar radiation under normal environmental conditions. Figure 3 illustrates the sinus irradiation test curve60,61,62.

Fig. 3
figure 3

Sinus Irradiation Test Curve.

Partial shading condition

PSC is one of the most significant factors affecting power efficiency in solar systems. This condition occurs when shadows are cast on solar panels for any reason. Objects such as clouds, trees, buildings, etc., can cast shadows on solar panels, reducing the solar radiation falling on the solar panel and reducing efficiency. Furthermore, sudden PSC can disrupt the ability of the algorithm to extract maximum power, reducing efficiency. Therefore, MPPT algorithms must be prepared for PSCs63. In the current study, a 4-second artificial solar irradiation curve is created, and PSC is assumed in the system in all parts. The temperature is constant at 25 \({}^{ \circ }{\text{C}}\). The Typical Solar Irradiance Curve with PSC is demonstrated in Fig. 464.

Fig. 4
figure 4

Typical Solar Irradiance Curve with PSC.

I–V characteristic and P-V curves of the PV panel are illustrated in Fig. 5. The PV panel parameters are provided in Table 2.

Fig. 5
figure 5

PV Panel Voltage–Current and Voltage–Power Graphs.

Table 2 PV panel Parameters.

Boost converter

The main idea of a boost converter is to step up the output voltage to a higher voltage level. The general overview of the boost converter is demonstrated in Fig. 6. The parameters calculation of the boost converter is given in Eqs. (2)–(5). The parameters of the boost converter are given in Table 3.

$$\:D=1-\frac{Vpv}{Vo}$$
(2)
$$\:L=\frac{Vpv\times\:D}{{f}_{s}\times\:{\varDelta\:I}_{L}}$$
(3)
$$\:{C}_{0}=\:\frac{{I}_{0}\times\:D}{{f}_{s}\times\:{\varDelta\:V}_{0}}$$
(4)
$$\:R=\frac{{{V}_{0}}^{2}}{P}$$
(5)
Fig. 6
figure 6

Boost Converter.

In Table 3, boost converter design parameters are presented.

Table 3 Boost converter Parameters.

Inverter

Inverters play a critical role in PV energy systems by converting the DC output of solar panels into AC, which is necessary for compatibility with the conventional electrical grid. This DC–AC conversion is typically facilitated through high-frequency switching elements such as IGBTs and diodes. The inverter topology employed in this study is illustrated in Fig. 7, and its principal electrical specifications are detailed in Table 4.

Fig. 7
figure 7

Inverter Topology.

Table 4 Inverter Parameters.

Inductive filter

In grid-connected PV systems, inductive filters are essential for suppressing high-frequency harmonics produced by inverter switching operations. These harmonics, if left untreated, can deteriorate power quality and lead to noncompliance with grid standards. The inductive filter also contributes to smoothing the output waveform, thereby ensuring more stable voltage and current delivery to the grid. In this simulation, an L-branch type inductive filter is employed. Inductance (L) of the inverter is 0.0027578 H65.

Calculations of the performance metrics

The THD and efficiency calculations of the algorithms used in this study are formulated in Eqs. 68 respectively.

$$\:\text{T}\text{H}\text{D}\:=\frac{{I}_{H}}{{I}_{F}}$$
(6)
$$\:{I}_{H}=\sqrt{{I}_{2}^{2\:}+\:{I}_{3}^{2}+\dots\:+\:{I}_{n}^{2}}$$
(7)
$$\:\text{E}\text{f}\text{f}\text{i}\text{c}\text{i}\text{e}\text{n}\text{c}\text{y}\:=\:[\frac{1}{{T}_{s}}\:\times\:\:{\int\:}_{t-{T}_{s}}^{t}1-(\frac{\left|Ideal\:Power-Tracked\:Power\right|}{Ideal\:Power})]\:\times\:\:100\%$$
(8)

Other performance metrics of relative power loss and relative power gain is formulated in Eq. 966, and Eq. 1067, respectively.

$$\:\text{R}\text{e}\text{l}\text{a}\text{t}\text{i}\text{v}\text{e}\:\text{P}\text{o}\text{w}\text{e}\text{r}\:\text{L}\text{o}\text{s}\text{s}\:=\frac{{P}_{pv,\:\:ideal\:}-\:{P}_{pv,\:\:real}}{{P}_{pv,\:\:ideal\:}}\:\times\:100\:\%$$
(9)
$$\:\text{R}\text{e}\text{l}\text{a}\text{t}\text{i}\text{v}\text{e}\:\text{P}\text{o}\text{w}\text{e}\text{r}\:\text{G}\text{a}\text{i}\text{n}\:=\frac{{P}_{pv,proposed\:}-\:{P}_{pv,\:base}\:\:}{{P}_{pv,\:base}}\:\times\:100\:\%$$
(10)

MPPT algorithms

The output power of PV panels depends on both solar irradiation and temperature, which continuously fluctuates over time. Without an MPPT algorithm, the boost converter may fail to maintain the correct duty cycle, leading to inefficient power conversion and unstable output. MPPT algorithms dynamically adjust the converter’s duty cycle in real time to ensure operation at the MPP68.

Conventional algorithms

Conventional algorithms are the first algorithms for MPPT. They consist of simple mathematical equations and operations for the decision process. Therefore, the decision-making time of the algorithms is short. Although they have a simple structure, their sensitivity for deciding the true MPP is insufficient. Hence, the output power of the system oscillates around MPP, and the overall efficiency is low. Moreover, they cannot adapt to varying environmental conditions. Changing temperature and irradiance values make the decision process of algorithms difficult.

P&O algorithm

The P&O algorithm is one of the commonly used MPPT algorithms in PV systems. This algorithm mainly depends on observing the output power of the system by perturbing the panel voltage and current. The output power is calculated over a time period, called the sample time. At the beginning of the algorithm, a small perturbation power value is calculated to provide a comparison with the next value. In a sample time, if the difference between the present and previous value\(\:\:(\varDelta\:P)\) is zero, the algorithm decides a non–changing perturbation. That means, the algorithm does not change the duty cycle \(\:\left(D\right)\). If the algorithm detects a change between the present and previous power values, the voltage perturbation is observed. When the change of the perturbed voltage \(\:(\varDelta\:V)\) is negative, the algorithm increases the duty cycle\(\:.\:\)Conversely, if the change of the perturbed voltage is positive, the algorithm decreases the duty cycle69. The P&O algorithm is denoted in Fig. 8.  The operating step size of the P&O algorithm is determined as 1e-05 s.

Fig. 8
figure 8

P&O Algorithm.

INC algorithm

INC is a widely used and practical MPPT algorithm, especially suitable for rapidly changing environmental conditions. The algorithm begins by sensing the voltage and current of the PV panel. It then computes the instantaneous changes in voltage (\(\:\varDelta\:V\)) and current (\(\:\varDelta\:I\)) by comparing the current values with the previous ones. Using these, the algorithm calculates the instantaneous conductance (\(\:I/V\)) and its derivative (\(\:\raisebox{1ex}{$\varDelta\:I$}\!\left/\:\!\raisebox{-1ex}{$\varDelta\:V$}\right.\)). If there is no change in voltage (\(\:\varDelta\:V=0\)), the algorithm evaluates \(\:\varDelta\:I\) to determine the direction of movement. A positive \(\:\varDelta\:I\) indicates that the operating point is to the left of the MPP, prompting the algorithm to decrease the voltage (i.e., reduce the duty cycle). Conversely, a negative \(\:\varDelta\:I\) implies the operating point is to the right of the MPP, so the voltage is increased. If the derivative of the conductance (\(\:\raisebox{1ex}{$\varDelta\:I$}\!\left/\:\!\raisebox{-1ex}{$\varDelta\:V$}\right.\)) equals the negative of the instantaneous conductance (\(\:\raisebox{1ex}{$-I$}\!\left/\:\!\raisebox{-1ex}{$V$}\right.\)), the MPP is reached, and the duty cycle remains unchanged. If \(\:\raisebox{1ex}{$\varDelta\:I$}\!\left/\:\!\raisebox{-1ex}{$\varDelta\:V$}\right.\)> \(\:\raisebox{1ex}{$-I$}\!\left/\:\!\raisebox{-1ex}{$V$}\right.\), the algorithm increases the voltage; otherwise, it decreases to70. The INC algorithm is illustrated in Fig. 9. Working step size of INC algorithm is determined as 1e-05 s.

Fig. 9
figure 9

INC Algorithm.

Meta-heuristic algorithms

Meta-heuristic methods are inspired by the natural behaviour of humans, animals, and plants. These algorithms are more complex than conventional algorithms. They include more sensitive mathematical operations. However, they require specifically designed parameters for each system although these algorithms can have better power efficiency than conventional algorithms71.

GWO algorithm

The GWO algorithm is inspired by the natural hunting behaviour of grey wolves. There are four wolves, each with a task in the hierarchy. First wolves are called the alpha (), second wolves are called the beta \(\:\left(\beta\:\right)\), third wolves are called the delta \(\:\left(\delta\:\right)\), fourth wolves are called the omega (\(\:\omega\:)\). The algorithm starts by determining the first two possible solutions for the alpha and beta wolves. Delta and omega wolves are responsible for providing solutions for alpha and beta. This algorithm has some stages, such as encircling prey, hunting, and attacking prey. Firstly, wolves try to encircle the global optimum power point (prey). Secondly, wolves start to move prey by learning from each other72. Finally, the fitness function reviews all results, adjusts the system to the best possible state, and prepares the following positions of the wolves. The fitness function finds the best MPP as shown in Eq. 11.

$$\:{P}_{pv}={V}_{pv}\times\:{I}_{pv}$$
(11)

The flowchart of the GWO algorithm is illustrated in Fig. 10, and the parameters used in the algorithm are given in Table 5.

Fig. 10
figure 10

GWO Algorithm.

Table 5 GWO algorithm Parameters.
FL algorithm

FL is one of the most widely used meta-heuristic MPPT techniques due to its simplicity and robustness under varying environmental conditions. In this method, the numerical inputs—typically voltage and current—are first transformed into linguistic variables through a process known as fuzzification, using predefined membership functions73. These functions map crisp input values (i.e., precise numerical data) to fuzzy sets with degrees of membership ranging from 0 to 1. Each input parameter has a membership function that defines terms such as “negative big,” “negative medium,” “zero,” “positive small,” and so on. The inference engine then evaluates the fuzzy rules and determines the appropriate fuzzy output based on a rule base. Finally, through the defuzzification process, the fuzzy output is converted back into a crisp control value, which is used to adjust the duty cycle of the converter to reach the GMPP74. The FL algorithm derives its decision-making ability from membership functions. The number of these functions and their correct parameterization are crucial. Incorrectly parameterized membership functions lead to a decrease in the algorithm’s efficiency75. Figure 11 describes the structure of the FL algorithm, and Table 6 gives the parameters used in the FL algorithm.

Fig. 11
figure 11

FL Algorithm.

Table 6 FL algorithm Parameters.
PSO algorithm

The PSO algorithm is inspired by the regular behaviour of bird flocks. Birds flock together and intelligently position themselves and behave in a way that solves their own problems within the flock. Additionally, birds within flocks can further optimize their own positions by taking inspiration from each other. Inspired by these behaviors, the PSO algorithm aims to improve the position of each particle by taking into account each other’s positions, which is called swarm intelligence76. At the beginning, as in every algorithm, the initial positions of the particles are determined, and these positions are candidates for the solution. In MPPT algorithms, these particles generally represent the duty cycle value. These particles optimize their positions both within themselves and within the swarm77. Additionally, each particle has its own speed to reach the optimum result. The Weight parameter determines how much of the particles’ previous speeds are preserved. The Iteration coefficient determines how often this optimization process will be repeated at each sample time78. By determining these parameters, the particles change their positions by taking into account the increase and decrease of the output power and the positions of each other. However, these specified parameters need to be explicitly set for each system. In the conventional PSO algorithm, it is of great importance to determine these parameters appropriately for each system79, which is one of the most significant drawbacks of conventional PSO algorithms, as systems with variable output power, such as solar panels, require algorithms that can adapt to changing conditions. To address this issue, algorithms that optimize parameters already appear in the literature80. The flow diagram of the PSO algorithm is given in Fig. 12, and the parameters used in the study are indicated in Table 7.

Fig. 12
figure 12

Flow diagram of the PSO algorithm.

Table 7 PSO algorithm Parameters.

Learning based algorithms

Learning-based approaches are primarily motivated by the capability to predict the MPP under varying climatic conditions, such as changes in solar irradiation.They are inspired by human neurons, which are used as layers in the systems. Before the process, data from panels and the environment are used to train the operation. After that, layers apply mathematical operations for elimination and estimation processes81. In this study, the dataset used for training and evaluating learning–based MPPT algorithms is generated from a PV energy conversion system consisting of a solar PV panel and a DC–DC boost converter. The input features of the dataset are the solar irradiance and cell temperature, which represent the environmental operating conditions of the PV system. The output variable is the optimized PV voltage corresponding to the maximum power point, obtained by controlling the duty cycle of the boost converter. By operating the system under a wide range of irradiance and temperature scenarios, a comprehensive dataset is constructed to capture the nonlinear mapping between environmental inputs and the optimal PV operating voltage. The control part diagram used in the study is given in Fig. 13. Also, \(\:{K}_{p\:}\)and \(\:{K}_{i}\) presented in Table 8.

Fig. 13
figure 13

Control Part Diagram.

Table 8 PI controller Parameters.
ANN algorithm

The central concept behind ANN algorithms is inspired by the functioning of the human brain. ANN consists of interconnected layers of artificial neurons that process and transmit information, mimicking biological neural structures. These networks typically include three types of layers: input, hidden, and output. The input layer receives data from external sources and passes it to the hidden layers, where most computations and pattern recognition occur. The output layer delivers the final result based on the processing in the hidden layers. During operation, each input is multiplied by a corresponding weight, and the weighted sum is then passed through an activation function in the hidden neurons, which determines whether a neuron becomes “activated” based on its input. In feed-forward neural networks, the information flows in only one direction—from input to output—without feedback loops82. ANNs are well-suited for processing large datasets, as they can make rapid decisions by learning complex relationships between inputs and outputs. However, without adequate training data, the network may produce incorrect predictions or overgeneralizations. Therefore, ANN models require extensive and diverse datasets to ensure accurate and reliable performance. In this study, the inputs to the ANN include irradiance, temperature, panel current, and panel voltage, while the output is the power. The control logic then adjusts the system parameters accordingly. Figure 14 presents the structure of the ANN and Table 9 provides the parameters.

Fig. 14
figure 14

ANN Algorithm.

Table 9 ANN algorithm training Parameters.
LSTM algorithm

LSTM is one of the most widely used types of RNNs. LSTM networks are specifically designed to overcome the limitations of traditional RNNs, such as memory overflow and vanishing gradients. An LSTM network typically consists of four layers: a sequence input layer, an LSTM layer, a fully connected layer, and a regression layer83. Within the LSTM layer, each memory cell includes three gates: the forget gate, the input gate, and the output gate. These gates regulate the flow of information through the network using sigmoid (σ) and tanh activation functions. The primary innovation of LSTM over traditional RNNs lies in the forget gate, which selectively removes irrelevant past data from memory. This mechanism helps reduce the system’s memory requirements and prevents the accumulation of unnecessary historical data, which could otherwise lead to inaccurate predictions84. Furthermore, LSTM-based MPP forecasting can improve system efficiency by minimising memory usage and reducing dependency on irrelevant past data. This approach directly addresses one of the significant disadvantages of RNNs—storing excessive outdated information85. However, although the LSTM algorithm deletes some past data from memory, it still remains insufficient for long-term prediction issues such as power monitoring. Moreover, due to their deep sequential structures, LSTM-based networks are computationally intensive and may pose challenges for real-time deployment in resource-constrained environments. Their “black-box” nature also limits interpretability and exposes them to risks of overfitting or underfitting depending on training conditions. In particular, it is stated that the LSTM algorithm has problems in complex and long-term power tracking with multiple timesteps. New algorithms have been developed to solve these problems encountered in the LSTM algorithm86. In this study, the inputs to the LSTM network are defined as temperature and irradiance, while the output is the panel voltage. A control unit then uses the LSTM’s output to determine the optimal duty cycle. The LSTM algorithm is illustrated in Fig. 15, and the parameters used in the algorithm are given in Table 10.

Fig. 15
figure 15

LSTM Algorithm.

Table 10 LSTM algorithm training Parameters.
BiLSTM algorithm

The BiLSTM algorithm is a bidirectional application of the LSTM algorithm. By applying the LSTM algorithm in both forward and backward directions, more optimized results are achieved, and faster learning is possible during long-term data tracking87. While the forward LSTM algorithm provides benefits for predicting future situations, the backward LSTM algorithm maximizes the efficiency of the decision to be made at the output by taking inspiration from past situations88. The BiLSTM algorithm also improves system performance in unexpected situations by increasing the system’s learning content. A high degree of learning data is particularly advantageous in cases of PSC in solar systems89. However, the weight parameter must be updated at the same rate in the predictions, because continually using the same weight parameter makes the system vulnerable to extreme situations90. Figure 16 illustrates the operation performed in a cell of the BiLSTM algorithm, and Table 11 illustrates the parameters of the BiLSTM algorithm used in this study.

Fig. 16
figure 16

BiLSTM Algorithm.

Table 11 BiLSTM algorithm training Parameters.
ANFIS algorithm

The ANFIS algorithm is a hybrid approach that integrates ANN with FL, thereby leveraging the complementary advantages of both methodologies. By integrating the pre-trained nature and deep decision-making capability of ANN with the rule-based decision-making strength of FL, ANFIS emerges as a powerful and effective algorithm91. The ANFIS algorithm begins with optimizing parameters using an ANN. Therefore, the ANFIS algorithm includes input, hidden, and output layers similar to the ANN algorithm or MPPT in solar panel systems, irradiation, temperature, voltage, and current can be used as input layers. The algorithm’s output can be voltage, current, or duty cycle92. After the ANN operation, which is evaluated through membership functions. Membership functions can be of various types; for example, a trimf is used in this study. The ANFIS algorithm, with its detailed decision-making and ability to work with large datasets, is used to solve many problems93. Additionally, the FL algorithm has a high ability to perform well in uncertain issues. This feature, combined with ANN’s training ability, creates a perfect synergy94. The ANFIS algorithm is illustrated in Fig. 17, and the parameters used in this study are illustrated in Table 12.

Fig. 17
figure 17

ANFIS Algorithm.

Table 12 ANFIS algorithm training Parameters.

Results and discussion

Figure 18 demonstrates a MATLAB simulation model of a grid-connected PV system including MPPT algorithms.

Fig. 18
figure 18

Simulation Model for Grid-Connected PV System.

All algorithms are simulated for 4 s in MATLAB/Simulink, as shown in Fig. 18, using a sample time of 1e-05 s. The overall performance, efficiency, THD values, and duty-cycle plots of the algorithms are presented in Fig. 19 for the sinusoidal solar radiation test, and in Fig. 20 for the PSC. Among these parameters, the performance metric represents the comparison between the ideal output power of the system and the power output obtained in the simulation. The efficiency value indicates how accurately each algorithm is able to track the MPP; the THD values represent the total harmonic distortion occurring in the system’s inverter; and the duty-cycle values show the duty cycle at which the IGBT in the system is driven by the microcontroller during MPP tracking.

Additionally, the efficiency, THD, relative power loss and relative power gain values presented in Tables 13 and 14 are calculated using Eqs. (6)-(10). The relative power loss values indicate how much power the system loses during operation, whereas the relative power gain value shows the improvement achieved by each algorithm compared to the one with the lowest efficiency, which is designated as the base algorithm in the table. The computational complexity value indicates how much processing power each algorithm requires, expressed in terms of low, medium, or high.

According to the results summarized in Table 13, under the sinusoidal irradiation test condition, the conventional P&O and INC algorithms exhibit efficiencies of 98.28% and 98.30%, respectively. In contrast, the metaheuristic and intelligence-based approaches demonstrate superior performance, with GWO and PSO achieving the highest efficiency of 99.53%, followed closely by BiLSTM (99.51%), ANFIS (99.43%), ANN (99.36%), and LSTM (99.31%). The FL-based method yields the lowest efficiency at 95.23%. In terms of power quality, the THD values remain within a narrow range for all algorithms. The lowest THD levels are observed for GWO, ANN, LSTM, and ANFIS at 4.21%, while the P&O, INC, and FL methods exhibit slightly higher THD values of 4.31%. These results indicate that advanced optimization and learning-based MPPT techniques can marginally improve harmonic performance. Regarding steady-state oscillations, conventional methods such as P&O and INC suffer from relatively large oscillation amplitudes of approximately 4 kW, whereas FL exhibits the highest oscillation at 4.5 kW. In contrast, intelligent and metaheuristic approaches significantly reduce oscillations, with ANN, LSTM, BiLSTM, and ANFIS limiting power fluctuations to around 240 W, and GWO and PSO achieving oscillation levels of 260 W and 250 W, respectively. The relative power loss analysis further confirms the superiority of advanced techniques. The FL method experiences the highest power loss at 4.77%, while P&O and INC incur losses of 1.72% and 1.70%, respectively. In comparison, GWO and PSO achieve the minimum relative power loss of 0.47%, followed by BiLSTM (0.49%), ANFIS (0.57%),  ANN (0.64%), and LSTM (0.69%). Correspondingly, the relative power gain is maximized for GWO and PSO at 4.51%, with BiLSTM (4.49%) and ANFIS (4.41%) also providing substantial gains over the baseline FL approach. Finally, from a computational complexity perspective, P&O and INC are classified as low-complexity methods, making them suitable for low-cost implementations. GWO and PSO exhibit medium computational complexity, offering a favorable trade-off between performance and implementation effort. In contrast, FL, ANN, LSTM, BiLSTM, and ANFIS are categorized as high-complexity algorithms, which may impose higher computational and hardware requirements despite their enhanced tracking performance.

According to the results reported in Table 14, under PSC, all MPPT algorithms exhibit a general improvement in efficiency compared to uniform irradiation scenarios; however, notable performance disparities persist among conventional, metaheuristic, and learning-based methods. The conventional P&O and INC algorithms achieve identical efficiencies of 98.64%, whereas the FL-based approach demonstrates a comparatively lower efficiency of 97.10%. In contrast, advanced techniques deliver superior performance, with ANFIS attaining the highest efficiency of 99.51%, followed closely by BiLSTM (99.44%), LSTM (99.42%), GWO and PSO (99.49%), and ANN (99.29%). From a power quality perspective, the THD values remain consistently low across all methods, indicating stable converter operation under PSC. The minimum THD values of 3.86% are achieved by GWO, PSO, and BiLSTM, while ANN and ANFIS present slightly higher yet comparable THD levels of 3.88%. Conventional P&O, INC, and FL methods exhibit marginally higher THD values, reaching up to 3.96% in the case of FL, though still within acceptable limits. The steady-state oscillation analysis reveals significant differences in dynamic behavior. Conventional algorithms such as P&O and INC continue to suffer from large oscillation amplitudes of approximately 4 kW, with the FL method exhibiting the highest oscillation level of 4.5 kW. Conversely, metaheuristic and intelligent algorithms markedly suppress power oscillations, limiting steady-state fluctuations to 260 W for GWO, 250 W for PSO, and approximately 240 W for ANN, LSTM, BiLSTM, and ANFIS. This substantial reduction highlights the robustness of learning-based approaches in tracking the global maximum power point under PSC. The relative power loss assessment further corroborates these findings. The highest power loss is observed for the FL algorithm at 2.90%, whereas P&O and INC incur losses of 1.36%. In contrast, ANFIS achieves the minimum relative power loss of 0.49%, followed by GWO and PSO at 0.51%, and BiLSTM and LSTM at 0.56% and 0.58%, respectively. These reduced loss values directly translate into enhanced energy harvesting performance under nonuniform irradiation conditions. Consistently, the relative power gain analysis indicates that advanced methods significantly outperform the baseline FL approach. ANFIS provides the highest relative power gain of 2.48%, followed by BiLSTM (2.40%), LSTM (2.38%), and GWO/PSO (2.46%). ANN also demonstrates a notable improvement with a relative gain of 2.25%, while conventional P&O and INC offer limited gains of 1.58%. Finally, in terms of computational complexity, P&O and INC remain low-complexity algorithms suitable for simple and cost-sensitive applications. GWO and PSO are classified as medium-complexity methods, offering an effective compromise between performance and computational burden. In contrast, FL, ANN, LSTM, BiLSTM, and ANFIS exhibit high computational complexity, which may impose higher processing requirements but is justified by their superior tracking accuracy and robustness under PSC.

Table 15 summarizes the operating scenarios considered for the MPPT algorithms, the corresponding key performance metrics evaluated under each scenario, and the MPPT techniques applicable to these operating conditions. Table 16 provides a detailed assessment of the computational complexity of the investigated algorithms, including hardware requirements, inference latency, memory usage, and real-time deployability. The P&O and the INC algorithms exhibit lower efficiency than other methods. In addition, they tend to produce higher levels of oscillation. This limitation arises because the mathematical functions underlying P&O and INC are not sufficiently precise in tracking the MPP relative to more advanced algorithms. However, their advantage lies in their simplicity, as they require minimal computational power and can be easily integrated into the system. The low computational complexity of the P&O and INC algorithms stems from the absence of a specific iteration parameter; therefore, they execute only once per sampling time. On the other hand, the FL algorithm exhibits high computational complexity due to its use of membership functions and rule-based inference mechanisms. Moreover, metaheuristic algorithms such as GWO and PSO demonstrate high efficiency in power tracking, owing to their superior decision-making capabilities. However, these algorithms require parameter tuning for each specific system and impose a higher computational load compared to conventional algorithms. The reason that the PSO and GWO algorithms have a medium computational load is that they perform decision-making over multiple iterations for each sampling time. Learning-based algorithms, including ANN, LSTM, BiLSTM, and ANFIS, have demonstrated high efficiency, which is primarily because these algorithms are trained on data, enabling them to anticipate operating conditions such as PSC. Additionally, their hidden layers provide enhanced decision-making capabilities. Compared to feed-forward networks such as ANN, feedback networks, including LSTM and BiLSTM, stand out due to their ability to exploit temporal dependencies and leverage past information, further improving performance. Although ANFIS is not a deep learning or feedback-based network, it demonstrates high efficiency because the combination of ANN and FL endows the algorithm with strong decision-making capabilities. However, although learning-based algorithms are highly efficient and resilient to PSCs, they are inherently complex and require substantial computational resources, which is mainly attributed to the number of network parameters and inference operations, resulting in increased memory usage and processing requirements for real-time implementation.

Fig. 19
figure 19

PV MPPT Sinus Irradiance Test Simulation Results (a. Performance Comparison, b. Efficiency Comparison, c. THD Comparison, d. Duty Cycle Comparison).

Fig. 20
figure 20

PV MPPT PSC Test Simulation Results (d. Performance Comparison, e. Efficiency Comparison, f. THD Comparison, g. Duty Cycle Comparison).

Table 13 Results of the MPPT algorithms in sinus irradiation Test.
Table 14 Results of the MPPT algorithms in PSC.
Table 15 MPPT algorithms comparison in different Scenarios.
Table 16 MPPT algorithms computational complexity Comparison.

Conclusion

MPPT algorithms play a critical role in enhancing the efficiency of PV systems by continuously optimising power output. Different MPPT strategies offer varying levels of performance in terms of efficiency, computational complexity, and power quality. A systematic comparison is essential to identify the most suitable method for specific operational requirements and conditions. The current study conducted a comprehensive comparative evaluation of multiple MPPT algorithms within a grid-connected PV system. The research incorporated conventional algorithms (P&O and INC), meta-heuristic intelligent methods (FL, GWO, and PSO), and learning-based models (ANN, LSTM, BiLSTM, and ANFIS). The simulation environment is developed in MATLAB/Simulink, and performance is evaluated based on tracking efficiency, oscillation amplitude, computational complexity, relative power loss, relative power gain, and THD. The algorithms are subjected to two different tests: the sinusoidal solar radiation test and the PSC test. Results are obtained for both tests and subsequently compared. The results demonstrated that although conventional methods such as P&O and INC achieved satisfactory tracking efficiency in both the sinus irradiation test and the PSC test, they suffered from significant oscillations and limited adaptability to rapidly changing environmental conditions. Their simplistic control structures—while computationally efficient—render them less effective in scenarios with dynamic irradiance and temperature profiles.

The meta-heuristic optimisation-based methods revealed noticeable improvements. GWO and PSO offered lower oscillations and higher stability due to their adaptive nature and population-based optimisation strategy. However, these algorithms impose a higher computational load compared to conventional methods, and their parameters must be individually tuned for each system, complicating their integration. In comparison with PSO and GWO, the FL algorithm requires greater computational effort and exhibits lower efficiency than the other algorithms. The limitations of metaheuristic algorithms can be addressed by hybridizing them with other conventional metaheuristic methods. Among learning based methods, the ANN-based MPPT algorithm can provide effective solutions in power tracking despite being a feed-forward network. In contrast, networks incorporating feedback, such as LSTM and BiLSTM, can achieve maximum performance, particularly under conditions like PSC, due to their ability to learn from past events. Although ANFIS does not include a feedback network, it demonstrates high performance owing to the deep decision-making capabilities inherited from its constituent algorithms. However, a key limitation of these algorithms is their high computational demand. Future research could explore hybridizing deep learning PV system MPPT algorithms with other metaheuristic methods to reduce their computational load.