Abstract

The lack of control in voltage overshoots, transient response, and steady-state error are common issues that frequently occur in a grid-connected photovoltaic (PV) system which can degrade the battery storage and negatively impact other grid components. It may result in damage to equipment and reduce the efficiency of the overall power system. To improve the efficiency of the overall power system, an artificial intelligence (AI) optimization technique is used to determine the optimal sliding mode controller (SMC) gain. The present work proposes the accomplishment of a control strategy for designing a finite-time sliding mode maximum power point controller for a grid-connected photovoltaic (PV) system under fast-changing atmospheric conditions. A particle swarm optimization algorithm (PSO) is used to determine the optimal sliding mode controller (SMC) gains used in perturb and observe (P & O) algorithms. Two modes of operation are available: offline mode for testing different sets of SMC gains leading to optimum values, and online mode for driving the variable step of the P & O MPPT using the SMC optimum gains. The Simscape-power system toolbox (Version 2020A) has been used successfully to study the effectiveness of MPPT. An evaluation of the proposed MPPT compared to the fixed-step P & O is presented. The proposed AI algorithm performs significantly better under fast-changing atmospheric conditions, particularly in transient, steady-state, and dynamic responses. In addition to tuning SMC parameters using PSO, our main contribution is improving the performance of the proposed algorithm to effectively track the maximum power point (MPP) at low oscillation, low ripple, low overshoot, and good rapidity in both slow and fast-changing atmospheric conditions. A three-phase grid-connected PV system with an inverter is described in the present work. The proposed strategy is centered around optimizing the controller of a three-phase grid-connected inverter system in order to improve the power quality.

1. Introduction

A growing dependence on fossil fuels, the need for carbon reduction, and the prospects of developing a new innovative technology sector make photovoltaic (PV) increasingly attractive. Global warming and air pollution are the major issues that have alarming effect on human health [1]. Over the last 20 years, the demand for solar electric power systems has steadily increased, especially since production costs have been reduced and conversion efficiency has increased. Consequently, global energy investments are shifting towards sustainable energy resources, and renewable energy sources are the more decisive choice for clean energy production [2, 3]. Photovoltaic cells are able to transform the energy from the sun into useable power. When light hits a cell, it generates an electric field across its layers, causing current to flow [4]. An output characteristic that varies with atmospheric conditions, such as temperature and irradiance, that presents two major problems: (a) low efficiency and (b) nonlinearity [5]. The output characteristic of PV-based energy systems is nonlinear because of their weather dependency [6]. Consequently, maximum power point tracking (MPPT) controllers are used to continuously optimize the operating point of PV generators so that the power transferred to the load is as high as possible [7]. This purpose is achieved through a direct and indirect controller. Perturb and observe (P & O) [8], incremental conductance (I & C) [9], and hill-climbing [10] are considered as typical direct techniques. Conversely, maximum power is trailed into two steps. Parameters of the controller are optimized in the first step, and then one of the direct power tracking techniques is implemented. Genetic algorithm [11], artificial neural networks [12], fuzzy logic [13], and particle swarm optimization (PSO) [14] are cited as indirect techniques in the literature. Similarly, other approaches have been used to mitigate the problems associated with solar PV systems (see, e.g., [1517] and references therein). A direct method with fixed iteration shows satisfactory performance, but the paradoxical challenge arises when choosing a fixed step size. A short step size proffers excellent performance, but it requires significant time to respond. As a result of the long step size, oscillations are being increased around the MPP, and it results in a waste of accessible energy [18, 19]. Modified MPPT algorithms with subduing step size are the best solution to conquer this obstacle. To rebuild the tracking accuracy in modified techniques like the P & O and incremental conductance methods, the step size is modified according to the instinctive characteristics of the PV panel [20].

The role of energy storage devices especially electrochemical battery energy storage in grid-connected solar systems is essential for optimizing their performance and reliability. As renewable energy sources like solar power become increasingly integrated into the grid, energy storage devices play a crucial role in balancing the intermittent nature of solar generation with the fluctuating energy demand. The PV system is classified as a nonlinear system. The use of simple commands and PID correctors has been proven effective for linear systems by researchers. But for nonlinear systems, sometimes they are unable to sufficient.

The integration of unpredictable and uncontrollable solar PV as an energy source in a power grid introduces several challenges into the power grid. Primarily, the transient varying power results in voltage violations at the point of common coupling and additionally contributes towards frequency instability making the entire grid susceptible to catastrophic grid events [21]. In addition, solar PV generates DC power with negligible contribution towards the grid inertia. Therefore, auxiliary power electronic interfaces are pertinent. Furthermore, while solar PV production increases with higher irradiance, its heating also increases with the resulting high-operating, temperatures causing suboptimal production, degradation, and damage [22]. Numerous solutions have been proposed that consists of reactive power support through the PV inverters, inclusion of energy storage devices, utilization of MPPT, and grid support [23]. Nevertheless, the degree of success from any of these solutions is highly dependent on its robustness towards various challenging scenarios of the grid as well as the extreme weather conditions. Utilization of energy storage as a solution might result in accelerated battery degradation due to the high stress current that results from the energy management strategy incorporated [24]. Similarly, effective implementation of PV inverters for voltage regulation can result in an inverter lifetime reduction [25].

As a consequence, we always look for alternative methods to ensure high precision and robustness towards grid components and their applications. The ideology of tracking is pertinent for establishing the framework that can lay for foundation for intelligent computational solutions. Accordingly, we have developed a new MPPT method using a PSO algorithm that optimizes command parameters in finite-time sliding mode. The proposed control scheme is implemented using a synchronous reference frame. This paper consists of designing a definite time controller with a PSO algorithm. Thus, the PSO algorithm is utilized to design the parameters of the controller. The main objective is to obtain optimum values of gains for a finite-time SMC controller in real-time operation, which boosts the power quality performance and makes a PV-based three-phase grid-connected inverter system more stable. The mathematical equation of control design enforces the system to slide on a surface known as a sliding surface. The efficiency of the proposed method is observed by employing a boost converter connected to the PV model. Acquired results validate the efficiency of the proposed controller to trace MPP under an agile change in weather conditions. This work aims to reduce the DC-link voltage fluctuation with a smooth flow of power by stabilizing the frequency of the grid-connected PV inverter in a shorter time.

The novelties of this research study are outlined as follows:(i)Development of a method with superior performance to conventional algorithm regarding tracking time, preciseness, and competency to track the MPP under various environmental conditions(ii)Devaluation in the ripple as well as overshoot(iii)Reduction in response time(iv)Mitigation of energy losses

The control scheme is designed in MATLAB/Simulink and MATLAB code (m-file) is used for the execution of the PSO algorithm. The simulation results depict excellent performance concerning static and dynamic responses as compared to the classical controllers using fixed-step perturb and observing MPPT.

The paper is organized as follows. A description of a grid-connected PV inverter system is given in Section 2. The proposed controller is explained in Section 3. The results obtained and the comparative analyses are discussed in Section 4 and Section 5. Conclusions and future directions are presented in Section 6.

2. Description of the Grid-Connected PV Inverter System for the Feedback Control

The grid-connected photovoltaic-based energy system with a three-phase voltage source inverter (VSI) is represented in Figure 1. It consists of a PV-based energy system, MPPT algorithm (P & O), multilevel inverter, and load. The DC-link capacitors at the output terminal of the PV system turn the output voltage from PV to the input voltage for the inverter system. Boost converter step up the input voltages to a higher level, and the MPPT algorithm, as shown in Figure 2, is used to extract maximum power from the energy system.

2.1. Model of the Photovoltaic System

PV cells are considered primitive blocks of a photovoltaic system. These cells are connected in series and parallel to assemble a PV module, and PV modules are used to form an array [26].

The ideal model does not show series and shunt resistances, while the actual model shows those resistances [27]. The equivalent model has been explained in [28]. The PV cell reflects the traits of the diode in the absence of sunlight, and the conversion of energy takes place only in the presence of sunlight [29]. Consequently, the erratic nature of the PV cell makes the system ambiguous. Moreover, the point of stability makes the situation complicated to rely on PV-based energy systems. Thus, a practical model with a single diode is considered, as shown in Figure 3. The PV cell is the elemental unit of the PV system. The output voltage of an individual unit is low. To obtain the desired output current function of the PV array in pragmatic applications, the PV cells are combined in series and parallel connection , as mentioned.

Equation (1) manifests the traits of PV current.where and are voltage at the output terminal, shows the ideality factor of the diode equation.  C is the charge in an electron, k is the Boltzmann constant , is the number of PV cells, and is photocurrent, generated by solar irradiance that can be computed as follows:where  =  solar insolation;  = short circuit current of PV cell; and short circuit current temperature coefficient is according to datasheet of PV module.  = temperature at Standard test condition (STC) and  = working temperature of the cell. shows reverse saturation current, k shows Boltzmann constant, is the yield current of the PV array, and T is the temperature in the kelvin of PV the cell. Variation in the cell’s saturation current with temperature has been explained in the following equation:where represents the band gap energy of semiconductor material of the PV cell.

2.2. DC-DC Boost Converter and MPPT (Perturb and Observe) Technique

The data sheet of the proffered model is shown in Table 1, while the characteristic curves in Figure 2 show the different levels of irradiance level and temperature. Inconsistent variations in solar insolation and temperature have a considerable effect on the voltage and current of the PV array [30].

To track maximum power from the PV array, perturb and observe (P & O) is used together with the DC-DC boost converter. The P & O method is escalated due to its simplicity and ease of implementation [31]. Disturbance in the output voltages of PV panels is based on this algorithm. It is a continual process of disturbance in voltages and then perturbation until concurrence of the operating point occurs at MPP. This algorithm compares the power as well as the voltages of time (K) with a time (K − 1) and anticipates the time to approximate the MPP. A small change in voltage causes agitates in the power of the PV panel. According to the data shown in Table 2, if the alteration is positive, perturbation in voltage is pursued at the same trail. Negative power indicates that MPP is distant and disruption is depreciated to achieve MPP.

The summary of the P & O algorithm is explained in Table 2.

The output voltages can be increased up to 500 v with the variation of duty cycle D of pulse width modulation (PWM) devices in the boost converter. The DC-link assists to reduce the voltage ripple and stabilizes the voltages at the DC-side of the inverter. The boost converter can be explained as follows:

In this research, the prototype model is in MATLAB script editor, while standard test conditions (G = 1000  and ) can generate power 1.04 p.u and  = 0.8 p.u. Consequently, maximum power point depicts higher efficiency with fewer oscillations.

3. Depiction and Exploration of Proposed Controller

3.1. Modified Finite-Time Sliding Mode Controller

A key feature of this work is to design a mathematical model of the controller for MPPT. Unmodeled dynamics cause external disturbances [33]. Nonlinear controllers are implemented to grasp this ambivalence. The sliding mode controller (SMC) is a kind of nonlinear control. The primitive approach behind this concept is to engage the system trajectory on a sliding surface. Control inputs are mandatory to keep motion trajectories in a predefined surface [34, 35]. In addition, robustness and finite-time convergence make it a more attractive choice [36]. It can be classified into two phases:(i)Approaching phase(ii)Sliding phase

The approaching phase is known as the initial phase, where the system trajectory approaches. A nonlinear switching system contingent on time can be illustrated as follows:

The state variable is represented by x, while f and represent smooth vector fields in the same plane, and u represents the discontinuous control exertion. The main purpose is to diminish the error of output variable about zero. is defined as a certain scaler function of system state tracking error “e” with its higher derivatives like :

By considering the linear combination of subsequent types as follows:

In a later phase, the system is addressed to the sliding surface in finite time. The sliding phase is not eternal and inconsistency in switching causes the chattering phenomenon. It is the major obstacle in higher-order techniques based on SMC. As a result, degradation in performance occurs. Chattering-free sliding mode characteristics can be achieved by a Lyapunov-based finite-time sliding mode controller (FTSMC). Gains of FTSMC drive the control laws [37]. Consequently, an optimized sliding surface is utilized to propel the variable step size of the classical algorithm of MPPT. SMC manifests precise performance in the existence of ambivalence. Selection of the sliding surface s(x) is the utmost requirement, and state trajectories are intimidated to recline on.

The chattering phenomenon is a major snag of this control. Transformation of discontinuous control to continuous control is a prerequisite requirement. To converge V(t) to the equilibrium point in a definite time.

While V(t) is a continuous definite function. Convergence of time will take place as follows: and .

3.2. Particle Swarm Optimization

Particle swarm optimization is a scrutinized approach as well as an optimization algorithm. Swarm intelligence is the base of this algorithm. The idea for this algorithm came from the movement of bird and fish flocks. Ease of implementation is the proficiency of this algorithm, and minute rules are simple enough to model the swarm behavior. In research on boid, Reynolds deployed the following three rules.(i)Step away from the adjacent agent(ii)Go toward the destination(iii)Go to the center of the swarm

Simple vectors explain the behavior of the individual agent. Kennedy and Eberhart[38] have explained PSO by assuming birds flocking in two-dimensional space (x, y). While and ) represent the velocities of the axis. The position of the agent is revamped by perceiving the information about the position as well as the velocity of the agent. The advancement of bird flocking is done by a specific function. Individual agent realizes its best value as well as its x, y position. The aforementioned information is analogous to a particular value of individual agents as well as in the group. It is the accomplishment of the performance of other agents. Individual agent endeavors to adapt their position by utilizing the following information:(i)The topical current locale (x, y) as well as velocities (ii)The distance between locales (iii)The distance between locale position

The velocity of an individual agent can be reformed by using an adherent set of equations.

While represents the velocity of the agent i at iteration t; and show random numbers amongst 0 and 1; locales of agent i at iteration t is shown as ; shows of an agent i; and shows of a group.

Figure 4 reflects algorithmic rules for the development process. The novelty of the proposed work is to utilize algorithmic rules of PSO to accomplish the most advantageous parameters of SMC.

3.3. Implementation of PSO-SMC Variable Step Size P & O MPPT

The sliding surface is defined by a function of discrepancy in voltage and current.

First order SMC is characterized by

By using control law, PWM ratio D is driven by SMC.

Gains of SMC are optimal by utilizing the PSO algorithm, as shown in Figure 5 and the online and offline modes of the controller are depicted in Figure 6.

The integrated absolute error (IAE) measure is utilized as an objective function in the following equation :

The manoeuvre of the system consists of two modes.(i)Offline mode(ii)Online mode

Various sets of gains of the controller are being tested by using offline mode. Conversely, optimal gains of the controller are used to track the MPP. It can be done by the variation in step size of the P & O MPPT algorithm.

3.4. Model of Voltage Source Control (VSC)

The PWM approach is proposed in a three-phase bidirectional DC-AC IGBT-based VSC. Conversion can be done in one or two steps. In one-step conversion, the output power of PV is directly connected to VSC as an input. While in two-stage conversion, the duty cycle of , is calculated. Advancement in the stability edge is the focal point of study by dint of the dynamic model of VSC. Components of current for instantaneous d-q axis are utilized for P-Q control. For this purpose, a phase-locked loop (PLL) is utilized. The control system must be strong enough to grasp the dynamics of PLL. A photovoltaic system is connected with a distribution system via VSC and an assimilate of impedance , shows angular frequency. While reflects impedance among points of common coupling if there is an RLC load at PCC.

The dynamic model of VSC in abc frame of reference is expressed in (16). Accordingly, the transformation from abc frame of reference to the d-q reference frame is given in the following equation:

shows the differential operator. While m presents modulation index and shows firing angles for VSC.

Equation (20) shows dynamics of the DC-link capacitor voltages, is the power supply to VSC, and represents active power from the inverter bus. If power losses are abandoned then  = . PLL-based d-q current model is derived in terms of active and reactive power relation to attain less complex VSC dynamics, and to avoid unnecessary PLL angular frequency calculation at the beginning. At PCC, active and reactive power in the d-q frame of reference is written as

In d-q reference, spontaneous current at PCC is written asand

Voltage components , active and reactive powers and are as follows:

By placing the values of and from (22) the following expressions are formulated as follows:

shows the active power of VSC. This can be modified by ignoring power losses:

is the active power of VSC at DC-side. Equation (27) can be rewritten as follows:

Equations (25), (26), and (29) are used for the dynamic model of VSC-based grid-connected PV system. The operating frequency is achieved during system dynamic operation by a droop control strategy.

Figure 7 shows the effectiveness of the proposed control over conventional control techniques. In addition, the proposed controller was found more stable and less prone to oscillating characteristics.

3.5. Finite-Time SMC for VSC

The dynamic model to depict nonlinear control for VSC is expressed in (17)–(19). The local frame of reference is chosen to simplify the analysis for VSC. Subsequently, and . Now, power flow to converter becomes simple . By implementing the aforementioned transformation, (17)–(19) becomes:

While

The block diagram of the grid-connected PV system is shown in Figure 8. The overview of the complete model and its feedback control architecture is depicted in Figure 9. The control phenomenon is accomplished by reactive power control and DC voltage control. DC voltage control is explained through (34)–(37). An error signal is calculated in (35) by utilizing the difference between the reference voltage signal and DC voltages. While the equation shows a DC voltage error. The DQ transformation makes the computational process simpler. Using this transformation, three-phase instantaneous voltages and currents are transformed into a DQ frame of reference. The control process becomes more convenient as well. Numerous feedback controllers like PI controller prefer reliable control solution.

4. Controller for Active and Reactive Power

The active and reactive flow of power can be controlled by two output states ( and ). Figure 9 shows that reactive and active power is modulated by AC and DC voltages, respectively. The following equations are acquired to accomplish a target

Control of DC-link voltage is done by MPPT. Control of reactive power is considered an alternate control variable. Q-V control helps for the accomplishment of control reactive power. The sliding surface is designed in a later stage. Various ways of the establishment regarding DC-link have been discussed in the literature [40]. Multilevel DC-link voltage control develops to extract maximum power from each source of PV.

4.1. Voltage Control of DC-Link

The sliding surface is accomplished after Q-V control. It is established on Q and error following Lyapunov direct stability theorem show output states. The error on the PV side is expressed as follows:

and hence, . The sliding surface for DC-voltage error is given as follows:where and are positive odd integers. After differentiation and then substitution of the values in (37), we get the following equation:where

4.2. Reactive Power Control

Reactive power error

By taking derivative, we obtain

Sliding surface in case of reactive powerwherewhere and control the convergence rate of tracking dynamics. VSC interface is accomplished by positive definite Lyapunov function in (43).

If then adherence to the VSC control is guaranteed. Control quantities are described in equations (46)–(48). The Sigma function is implemented to track the dynamics of control. The sign function controls the function of hard switching. Chattering free controller utilizes the tanh function. The Sat function is described as, if and alike to . Implementation of a real-time controller can be considered with the help of the values as explained in equation (48).

Finite-time control can be accomplished with gains such as , , , and .

The power-frequency characteristics are as follows:where . By utilizing the Lyapunov function in equation (45), robustness and convergence can be accomplished.

4.3. Robustness of LYPSMC

By replacing values of and in (47) as well as (48), we get the following equation:

By applying aforementioned two solutions in (45), we get the following equation:where and are negligible values.

The derivative of the Lyapunov function becomes zero far from the limit. It assists in convergent tracking errors at the sliding surface.

4.4. Convergence of LYPSMC

It can be formulated from (37) that whenever tracking error is very adjacent to the origin for convergence urged convergence in finite time can be achieved.

By applying convergence limit in integration, we get the following equation:

5. Simulation Results

PV-based arrays, as well as IGBT-based VSCs, are utilized in MATLAB simulation. The datasheet of the PV module is conferred in Table 2. PV panel operates at variable temperature and irradiance levels. The PSO algorithm is utilized to tune SMC. It drives the step size which is required by the step size of the P & O algorithm. The duty cycle of the DC-DC converter is driven by this algorithm. At the final stage, the resistive load is powered by a DC-DC converter. Parameters of the PSO algorithm are initialized by simulation. Tables 3 and 4 describe a brief description of grid parameters and PSO parameters, respectively. The gains of SMC are defined in Table 5. Implementation of a PSO-based finite-time sliding mode controller is accomplished with a small population size. In this research, the initial population size is set to be 20 with a maximum of fifty generations (G = 50). The objective function fitness value is displayed in Figure 10. A nonlinear load of 1.5 MW, 150 KVar has been considered, it proves the DC-link stabilization along with controller efficiency.

It is clear that the convergence rate is very quick, especially from iteration 25, where we almost achieved the same fitness. Furthermore, the appraisals consist of two parts as follows:(i)Standard tests: It comprises three different strategies such as hard, middle, and soft insolation.(ii)Robustness: It reflects the proposed algorithm for three cases. (a) Variable irradiation level at a constant temperature. (b) Alteration in temperature with fixed traditional level. (c) Alteration in both temperature and irradiance level.

5.1. Standard Tests

Tests comprise three cases as follows:(i)Hard insulation variation case: Quick variation in immense alteration in irradiance level (400 W/).(ii)Middle insulation variation case: Quick variation in immense alteration in irradiance level (200 W/).(iii)Soft variation variation case: Linear irradiation alteration.

After optimization of optimum gains, the controller is used in online mode to drive the variable step size of the P & O MPPT algorithm. These tests consisted of two parts: standard tests and robustness tests. In standard tests, different case studies stimulate hard, middle, and soft insulation. Hard variation is basically abrupt, fast, and large insolation variation (400 W/), middle insulation variation (200 W/), and soft variation linked with linear insulation variation (gradual and soft insulation). Figure 11 displays various points; for instance, A, C, and E display overshoot caused by hard insulation level, as shown in Figure 12, respectively. While B, E, and G show medium insulation which is presented in Figure 13, respectively. Finally, point D depicts soft insolation variation (Figure 14).

5.2. Hard Insolation

In this case, the irradiance level fluctuates (around 400 W/) and causes a negligible change in power (between 0.09 and 0.28 W) for the SMC-based controller whereas the classical controller (which is following the conventional P & O algorithm) shows a significant change in power (from 8.31 to 11.73 W). The proposed controller also reflects a significant improvement in terms of response time under a rapid change in atmospheric conditions (between 40 and 50 ms) compared to (between 133 and 221 ms) for P & O MPPT. Moreover, the proposed algorithm depicts no ripples or oscillations around the MPP, while the conventional controller shows oscillation between 0.029 and 0.27 W. As a result of hard insolation variation, the change in power is minor in the case of the proposed PSO-SMC. The proposed controller shows notable attainment concerning response time during the change in atmospheric conditions. Besides, it also manifests significant accomplishment in steady state with no oscillation around the maximum power point as compared to the classical perturb and observe algorithm between 0.06 and 0.1 W.

5.3. Middle Insolation

Middle insolation is higher or lower than 200 w/. Variation in power manifests from 0.006 to 0.11. Results shown in Figure 1517 reflect a major improvement in the response time of the proposed controller. This controller also shows no ripple in steady-state error, while the conventional controller shows oscillation around 0.1 W.

5.4. Soft Insolation

Based on the observations made in Figure 14, the variation in soft insolation shows no ripple in a steady state. It also manifests the properties of low response time as well as low overshoot. The proposed controller reflects an overshoot of 1.42 W with a response time of 38 ms with a ripple around 0.16 W. Therefore, based on the results shown in Figures 1114 using particular insulation variation schemes (hard, middle, and soft), it can be observed that the presented PSO-SMC variable step size P & O MPPT controller shows a good performance with low overshoot, low response time, and no ripple in the steady state compared with the conventional fixed step size. Table 6 presents the important points by summarising standard tests in tabular form and Table 7 depicts the comparison of both algorithms.

5.5. Robustness Test

The robustness of the controller is tested by variations in temperature (Figure 15) or insolation level (Figure 16) individually. Variation can also be performed by varying the temperature and insolation level in order to validate its efficacy under extreme weather conditions. (a) One thing is clear whenever a variation in irradiance level is observed the temperature is kept constant roundabout . (b) Variation in temperature with a fixed irradiance level of 800 W/. (c) Variation in both temperature as well as irradiance level. Figures 17 and 18 show the results obtained by the proposed controller with the variation of temperature (at fixed irradiance) and irradiance (at fixed temperature), respectively. Figure 19 shows the abrupt change in temperature and insolation at the same time. In addition, a comparison analysis is also performed with conventional P & O MPPT in Figure 20. The proposed controller shows variable step size which reflects notable advancement in an interval of time relative to time concerning variation in weather conditions. The proposed controller shows precise tracking around the MPP point. Test results show the following points:(i)Benefaction in following rebate in overshoot and ripple(ii)Advancement in response time(iii)Competency to accompany maximum power point under a change in atmospheric condition

It results in depletion in power loss.

5.6. Comparative Performance Study of Proposed PSO-Based FTSM Control with Other Existing Control

In this study, a PSO-based sliding mode controller has been presented and examined under rapidly changing atmospheric conditions. A bio-inspired PSO algorithm is used to find the optimum design of the SMC that drives the variable step size of the proposed MPPT algorithm, initially in offline mode. Online testing was then conducted on the optimized SMC.

The combination of particle swarm optimization (PSO) and sliding mode control (SMC) techniques in grid-connected photovoltaic (PV) systems offers significant advantages. PSO, as an artificial intelligence (AI) technique, optimizes various system parameters, such as PV array sizing, battery capacity, and control parameters, to maximize energy generation and minimize losses. By iteratively adjusting these parameters based on a fitness function, PSO aids in discovering optimal settings for the PV system. Complementing PSO, SMC provides robust control to manage power flow, battery charging, and grid interaction. SMC ensures a stable grid connection, regulates power flow within desired limits, and effectively manages energy storage devices. The integration of PSO and SMC in grid-connected PV systems leads to enhanced energy efficiency, optimized power flow, improved grid stability, and efficient utilization of energy storage. This synergistic combination of PSO and SMC as AI techniques demonstrates promising potential for enhancing the performance and reliability of renewable energy integration in grid-connected PV systems. The proposed PSO-SMC variable step size P & O MPPT-based algorithm, as well as the conventional fixed step size P & O MPPT algorithm, has both been simulated using the MATLAB/Simulink model, in which different parameters have been implemented. Simulation results demonstrate that the proposed PSO-SMC variable step size P & O MPPT algorithm outperforms the conventional P & O MPPT algorithm in terms of accuracy, rapidity, ripple, and overshoot. There were two types of simulation results: standard tests and robustness tests. A variety of insolation variations were used for the standard tests to obtain results. A comparison was made between the output results of the proposed algorithm and the output results of the P & O algorithm with a fixed step size. A set of parameters is used to extract the data, which is listed in Tables 15. The results were presented along with Table 6 summarising the improvements in both transient and steady-state responses confirming that the proposed algorithm outperforms the conventional P & O MPPT regarding all considered performance metrics (response time:  ms instead of 39–234 ms; overshoot:  W instead of 3.72-11.73 W; and a ripple: 0 instead of 0.06–0.17 W). In order to demonstrate the robustness and reliability of our proposed algorithm, we tested its ability to track the MPP point under changing atmospheric conditions: insolation of 800 W per square meter at random temperature (Figure 17); random insolation at a fixed temperature (Figure 18); and variation in both insolation and temperature at random (Figures 19 and 20). As illustrated in Figures 1519, the proposed algorithm shows comparable results to P & O MPPT. The proposed PSO-SMC variable step size P & O algorithm exhibits a significant improvement in the time interval corresponding to rapidly changing atmospheric conditions, significantly reducing oscillations around the maximum power point. According to the results of the standard and robustness tests, the major contribution of this work was a faster converging speed, less overshoot, no oscillation around the MPP under steady-state conditions, and no divergence from the MPP under fast-varying atmospheric conditions, resulting in an overall reduction in energy losses.

6. Conclusion

Novelty of this work is the combination of an intelligent optimization and a finite-time sliding mode for mitigating the effect of fast varying and extreme weather conditions on renewable-based grids. The aim of this paper is to find the most advantageous layout of the proposed control framework using a variable step size of maximum power point. Various modes of analysis are available for the controller, both online and offline. A MATLAB/Simulink model was used to simulate the proposed controller and the classical controller in order to illustrate their comparative efficacy. A comparative analysis was performed using standard and robustness tests. The standard test consisted of hard, middle, and soft insolation. For the robustness test, random changes in weather conditions were taken into account. In this test, the controllers’ performance is evaluated based on overshoot and oscillation around the maximum power point. Observations of steady state and transient responses confirm the outperformance on response time, overshoot, accuracy, and swiftness. Therefore, the resultant facilities reduced the current stress on the battery storage, mitigating its accelerated degradation. The results compiled in the table reflect response time of the proposed controller to around 52 milliseconds rather than 38–234 milliseconds. During abrupt atmospheric changes, the controller shows less overshoot with convergence speed and no divergence around MPP. A reduction in energy losses is also achieved. Hardware-in-loop validation can be planned on an experimental platform to validate PSO-FTSMC.

Data Availability

No underlying data were collected or produced in this study.

Conflicts of Interest

The authors declare that they have no conflicts of interest.

Acknowledgments

The authors would like to acknowledge the support received from Saudi Data and AI Authority (SDAIA) and King Fahd University of Petroleum and Minerals (KFUPM) under SDAIA-KFUPM Joint Research Center for Artificial Intelligence Grant no. JRC-AI-RFP-08, Dhahran 31261, Saudi Arabia.