Skip to Content
MachinesMachines
  • Article
  • Open Access

13 August 2026

44 Pages

Advanced MPPT Optimization for PV Water Pumping with Battery Storage and MPC-Driven BLDC Motor via Swarm and Evolutionary Algorithms

,
,
,
,
and
1
Laboratory of Electromagnetic Propulsion–Induction Systems (LSP-IE), Department of Electrical Engineering, Faculty of Technology, University of Batna—Mostefa Ben Boulaïd, Batna 05000, Algeria
2
Department of Electrical Engineering, Faculty of Technology, University of Batna 2—Mostefa Ben Boulaïd, Batna 05000, Algeria
3
Laboratory of Energy Systems Modeling (LMSE), Electrical Engineering Department, Faculty of Sciences and Technology, University of Biskra, Biskra 07000, Algeria
4
Laboratory of Automation and Manufacturing, Department of Industrial Engineering, Faculty of Technology, University of Batna 2—Mostefa Ben Boulaïd, Batna 05000, Algeria
This article belongs to the Section Electrical Machines and Drives

Abstract

Photovoltaic (PV) pumping systems offer a sustainable alternative to diesel solutions, yet their nonlinearity, intermittent irradiation, and complex motor-pump dynamics challenge energy extraction and reliability. Currently, these systems predominantly rely on classical Maximum Power Point Tracking (MPPT) algorithms such as Perturb and Observe (P&O) and Incremental Conductance (INC), which suffer from slow convergence, steady-state oscillations, and an inability to track Global MPP (GMPP) under uniform irradiance variation conditions. Furthermore, existing studies typically address MPPT optimization and motor control in isolation, without considering their coupled interaction, and rarely incorporate economic viability assessments. To address these limitations, this paper proposes an innovative control architecture integrating four advanced metaheuristic MPPT techniques, namely the Genetic Algorithm (GA), Gray Wolf Optimizer (GWO), Cuckoo Search (CS) algorithm, and Horse Herd Optimization Algorithm (HOA), with Model Predictive Control (MPC) for a Brushless DC (BLDC) motor-driven pumping system, supplemented by battery storage. Comprehensive simulations were conducted under both constant and variable irradiance profiles (1000 to 500 to 1000 W/m2) to evaluate dynamic performance, tracking accuracy, and system robustness. The results demonstrate that HOA and GWO significantly outperform GA and CS, achieving superior DC bus voltage stability with ripple values below 2.4 V, faster convergence times, reduced electromagnetic torque oscillations, and enhanced MPPT efficiency exceeding 99%. Under variable irradiance, HOA exhibits the fastest stabilization with minimal overshoot and superior disturbance rejection, while GA suffers from severe oscillations and CS displays sawtooth ripple patterns. A techno-economic analysis further confirms the economic viability of the proposed system, with HOA and GWO strategies yielding lower lifecycle costs, extended converter lifespans from 5 to over 12 years, and improved return on investment compared to conventional approaches. This integrated framework offers a robust, efficient, and economically sustainable solution for autonomous PV water pumping applications.

1. Introduction

Photovoltaic solar energy has emerged as one of the most promising pathways to meet escalating global power demands while mitigating the environmental impact of conventional fossil fuel-based systems. Within this context, photovoltaic pumping systems represent an especially compelling solution for agricultural irrigation, livestock water supply, and drinking water provision in remote, off-grid locations [1,2]. These systems offer a dependable and cost-effective alternative to diesel generators and expensive grid extensions, benefiting from abundant solar resources and minimal maintenance requirements [3,4]. However, the widespread adoption of PV pumping technology faces significant technical hurdles. The solar generator exhibits a highly nonlinear current-voltage characteristic that depends critically on temperature and solar irradiation, and under uniform irradiance variation conditions, the power-voltage curve displays multiple local maxima, making it extremely challenging to locate the GMPP [5,6]. Additionally, the hydraulic load imposed by the pump, particularly for centrifugal pumps, introduces further dynamic constraints since the required power typically varies with the cube of the motor’s rotational speed. Beyond technical performance, economic viability remains a crucial determinant for the widespread adoption of photovoltaic pumping systems; investment costs, maintenance expenses, equipment longevity, and energy savings must all be carefully weighed. Economic metrics, such as the payback period and internal rate of return, are also essential for assessing actual profitability. In this context, this introduction section is dedicated to reviewing related works conducted in this domain, extracting research gaps, and subsequently presenting our contributions targeting these important shortcomings, followed by the remainder of this paper.

1.1. Related Works

Recent contributions from prominent publishers and journals present a diverse array of approaches to PV water pumping systems, each addressing specific technical challenges while leaving notable gaps unaddressed.
Rao et al. [7] introduced a photovoltaic water pumping architecture featuring a single PV array supplying two BLDC motors through a shared converter. Their hybrid Modified Invasive Weed Optimization (MIWO) combined with P&O handles MPPT under uniform irradiance variation, while sliding mode control regulates motor speed and a Long-Short Term Memory (LSTM) neural network controller manages DC-link voltage. Validation through OPAL-RT hardware-in-the-loop testing confirms effective MPPT performance. Nevertheless, several limitations persist. The control strategy relies on conventional PI and sliding mode controllers, overlooking predictive control approaches that could improve dynamic behavior and constraint handling. The optimization employs only one hybrid MIWO-P&O method, lacking comparative assessment across diverse metaheuristic algorithms. Moreover, battery storage is absent, compromising system resilience during extended low-irradiation periods. The investigation remains confined to technical metrics, excluding economic validation through lifecycle cost analysis, and does not provide systematic quantitative benchmarking of ripple characteristics or efficiency across control variants.
Rajesh et al. [8] developed a grid-interactive PV water pumping system with bidirectional power flow control, incorporating machine learning-based MPPT through neural networks with backpropagation and a high-gain DC-DC converter. Their Unit Vector Template (UVT) modulation enables bidirectional power exchange with the grid, while an ANFIS controller enhances power quality and reduces total harmonic distortion. Although grid integration and power quality improvements are commendable, the study relies exclusively on Artificial Neural Network (ANN)-based backpropagation for MPPT without benchmarking against other metaheuristic strategies. Motor control depends on traditional PI and fuzzy logic controllers, with no exploration of predictive control methods. The absence of battery storage restricts operational autonomy during grid outages or insufficient solar conditions. Economic considerations are overlooked, and no systematic comparison of ripple or efficiency metrics across control approaches is presented.
BalaKumar et al. [9], proposed a solar-powered water pumping system tailored for off-grid agricultural settings in rural Ethiopia, employing ANN-based MPPT with a Zeta converter driving a BLDC motor. Experimental results demonstrate a peak power output of 410 W and stable motor operation at 2500 rpm, with ANN outperforming conventional P&O in efficiency and stabilization time. While the application context is relevant, the MPPT strategy remains confined to a single ANN implementation without comparative evaluation against other optimization algorithms. Motor commutation follows conventional approaches, lacking predictive control techniques. Battery storage is excluded, limiting system resilience during prolonged low-light conditions. Economic validation is absent, and quantitative benchmarking of ripple and efficiency characteristics is not systematically addressed.
Sumathi and Selvarajan [10] investigated a hybrid CUK-SEPIC converter with Gravitational Search Algorithm with Modified-Particle Swarm Optimization (GSA-MPSO)-based MPPT for BLDC motor-driven solar water pumping. Their system delivers 5.0 kW output with a 0.5 s settling time, demonstrating improved power efficiency and reduced current ripple compared to conventional approaches. Validation combines MATLAB/Simulink (23.2.0.2515942) simulations with experimental hardware implementation. Nevertheless, MPPT optimization is restricted to a hybrid GSA-MPSO approach without broader algorithm comparison. Motor control follows standard electronic commutation, with predictive control strategies unexplored. Battery storage is not incorporated, and economic analysis remains superficial, lacking detailed Levelized Cost of Energy (LCOE), payback period, or lifecycle cost assessments. Systematic quantitative benchmarking of ripple and efficiency across control strategies is also missing.
Elnozahy et al. [11] presented a techno-economic optimization framework for photovoltaic water pumping irrigation systems, utilizing multi-objective K-means clustering based on NSGA-III. Their system, designed for drip irrigation in Egypt’s Farafra oasis, minimizes loss of water supply probability and total annual costs while implementing vibration avoidance strategies. Sensitivity analyses examine dynamic head, crop price, and interest rate variations, with comparisons against diesel pumping alternatives. Although system sizing and economic optimization are well addressed, MPPT relies on conventional approaches without metaheuristic benchmarking. Motor control strategies receive limited attention, with no investigation of predictive techniques. Battery storage is absent, and while techno-economic analysis is conducted, it emphasizes irrigation economics rather than component-level lifecycle cost assessment. Electrical performance characterization, including voltage ripple, torque oscillations, and MPPT efficiency quantification across control strategies, is not provided.
A comprehensive summary of the reviewed studies, highlighting their MPPT algorithms, motor types, control strategies, storage integration, and economic analysis, is presented in Table 1.
Table 1. Summary of related works on PV water pumping systems.

1.2. Research Gaps Analysis

Despite the significant advancements in photovoltaic water pumping systems reported in the literature (see Table 1 as an example), a thorough examination of recent contributions reveals persistent shortcomings that warrant further investigation. Existing studies predominantly employ single or hybrid MPPT approaches without comprehensive comparative evaluation across multiple optimization algorithms. Rao et al. [7] utilized MIWO-P&O, Rajesh et al. [8] and Bala Kumar et al. [9] relied on ANN-based techniques, while Sumathi and Selvarajan [10] employed GSA-MPSO, all without benchmarking against alternative metaheuristics. Conventional control methodologies dominate the literature, with Rao et al. [7] using SMC, Rajesh et al. [8] employing PI and fuzzy logic, and others relying on standard commutation strategies, yet none investigate MPC for enhanced dynamic response. Battery storage is notably absent across all reviewed works, compromising operational continuity during low irradiation periods. Economic validation remains superficial, with only brief comparisons provided and critical metrics such as the LCOE, payback period, and lifecycle costs overlooked. Furthermore, systematic quantitative benchmarking of electrical performance characteristics including voltage ripple, torque oscillations, and MPPT efficiency is not provided in any study.
Based on the literature review presented in Table 1, four main research gaps can be identified.
  • Most existing studies focus on a single MPPT method or a hybrid approach without comparing its performance with those of other metaheuristic algorithms under the same operating conditions. This makes it difficult to determine which algorithm is the most suitable for photovoltaic water pumping systems.
  • The control of photovoltaic pumping systems is still largely based on conventional techniques such as PI control, sliding mode control, and fuzzy logic control. Model Predictive Control has received little attention, despite its ability to improve dynamic response, manage system constraints, and handle variations in solar irradiation.
  • The reviewed studies generally consider systems without energy storage. As a result, their operation depends directly on the available solar irradiation, which reduces system autonomy and reliability during cloudy conditions or periods of low sunlight.
  • The economic analysis provided in previous studies is often limited. Important indicators such as the Levelized Cost of Energy, payback period, lifecycle cost, and long-term profitability are rarely examined in detail.
Together, these gaps highlight the need for an integrated framework that compares several MPPT algorithms, applies predictive control to the motor drive, incorporates battery energy storage, and provides a detailed techno-economic evaluation.

1.3. Contributions

To address the research gaps identified in the previous section, this paper presents the following contributions:
  • A comprehensive comparative study of four metaheuristic MPPT algorithms (GA, GWO, CS, and HOA) applied to a BLDC motor-driven photovoltaic pumping system, a combination that has not been previously explored.
  • The integration of Model Predictive Control (MPC) for BLDC motor speed and torque regulation, replacing conventional PI, sliding mode, or fuzzy logic controllers to achieve superior dynamic performance and constraint management.
  • The coupled optimization of MPPT and motor control within a unified system architecture, addressing the interaction between maximum power tracking and motor dynamics, unlike existing studies that treat these subsystems in isolation.
  • The incorporation of battery energy storage to ensure continuous system operation during low irradiation periods and the stabilization of the DC bus voltage.
  • A thorough techno-economic analysis including the LCOE, payback period, and lifecycle costs to validate the economic viability and competitiveness of the proposed system.
  • The validation of system robustness under both constant and variable irradiance conditions, demonstrating resilience to rapid climatic variations and uniform irradiance variation scenarios.
  • The quantitative benchmarking of voltage ripple, electromagnetic torque oscillations, speed ripple, pump power fluctuations, and MPPT efficiency, establishing a clear performance hierarchy among the four algorithms.
The main contributions of this work can be summarized in three key points. First, while most existing studies focus on a single MPPT algorithm or conventional control methods, this study provides a comprehensive comparison of four metaheuristic algorithms, namely GA, GWO, CS, and HOA, under the same operating conditions. This comparison establishes a clear performance ranking and shows that HOA and GWO are the most effective approaches for photovoltaic water pumping applications. Second, MPC is introduced to regulate the BLDC motor in the photovoltaic pumping system. Unlike conventional PI, sliding mode, and fuzzy logic controllers, MPC offers improved dynamic performance, better handling of system constraints, and stronger rejection of disturbances caused by variations in solar irradiation. Third, the proposed framework integrates MPPT optimization, MPC-based motor control, battery energy management, and techno-economic analysis within a single architecture. This integration makes it possible to account for the interaction between maximum power extraction and motor dynamics, which is often overlooked when these subsystems are studied separately. By combining performance benchmarking with economic validation, the proposed approach provides practical guidance for selecting suitable control strategies for autonomous photovoltaic water pumping systems. The novelty of this work does not come from the individual algorithms alone, but from how they are combined and evaluated within a unified framework. The study compares GA, GWO, CS, and HOA under the same operating conditions, integrates MPC-based BLDC motor control and battery storage, and assesses both technical performance and economic feasibility. The main original contributions include the clear performance ranking of the four MPPT methods and the quantitative link between voltage ripple reduction, converter lifespan, energy utilization, and pumped water output. By addressing these technical and economic aspects together, the proposed framework fills important gaps in the literature and provides practical guidance for selecting control strategies in autonomous photovoltaic pumping systems.

1.4. Reminder of This Paper

The remainder of this paper is organized as follows. Section 2 presents the materials and system components, including the photovoltaic generator, DC-DC converters, battery storage, and the BLDC motor with its mathematical modeling. Section 3 describes the methods employed, covering the four metaheuristic MPPT algorithms (GA, GWO, CS, and HOA), the Model Predictive Control (MPC) strategy for the BLDC motor, and the energy management system. Section 4 discusses the simulation results and performance analysis under both constant and variable irradiance conditions, along with the techno-economic assessment. Finally, Section 5 concludes the paper and outlines recommendations for future work.

2. Materials

This section presents the various components and subsystems that constitute the proposed photovoltaic water pumping system, including the PV generator, power converters, battery storage, water pump, and BLDC motor.

2.1. PV Cell Modeling

The photovoltaic generator converts solar irradiation into electrical energy through the photovoltaic effect. Its output characteristics are highly nonlinear and depend critically on temperature and solar irradiation, exhibiting a distinct maximum power point that must be continuously tracked to ensure optimal energy extraction [12,13]. To accurately predict the electrical behavior of the PV generator and enable effective maximum power point tracking, a mathematical representation of the PV cell is essential. This subsection details the modeling approach adopted in this study. Accordingly, to model the PV cell behavior, the equivalent electrical circuit shown in Figure 1 is employed, which consists of a current source representing the photocurrent, a diode, a series resistance, and a shunt resistance.
Figure 1. PV cell equivalent electrical circuit.
Applying Kirchhoff’s current law to this circuit yields the fundamental current-voltage relationship expressed by Equation (1), where the generated current I p v equals the photocurrent I p h minus the diode current I d and the shunt leakage current I p . The diode current is governed by the Shockley equation given in Equation (2), which depends on the diode voltage V d , the thermal voltage V t , and the ideality factor n , representing the recombination mechanisms within the cell. By combining these expressions and accounting for the series resistance R s and shunt resistance R p , the complete PV cell model is obtained in Equations (3) and (4). The thermal voltage V t , defined in Equation (5), is determined by the Boltzmann constant k , the electronic charge q , and the absolute cell temperature T . These equations collectively describe the nonlinear relationship between the PV output current and voltage under varying environmental conditions [14,15]. The series resistance accounts for internal losses due to the semiconductor material and metallic contacts, while the shunt resistance represents leakage currents through the cell edges and grain boundaries.
I p v = I p h − I d − I p
I d = I 0 ( e V d n V t − 1 )
I p v = I p h − I 0 ( e V d n V t − 1 ) − V d R p
I p v = I p h − I 0 ( e V p v + R s I p v n V t − 1 ) − V p v + R s I p v R p
V t = k T q

2.2. Maximum Power Point Tracking

The current-voltage characteristic of the photovoltaic generator is highly nonlinear and strongly influenced by temperature and solar irradiation. For any given operating condition, there exists a unique MPP corresponding to the optimal voltage and current at which the available power is maximized. To enhance system efficiency and energy yield, the generator must be maintained at or near this point through an appropriate MPPT strategy [16,17]. The fundamental principle of MPPT involves continuously adjusting the operating point of the PV array to track the MPP despite variations in environmental conditions.
Conventional techniques such as Perturb and Observe (P&O) and Incremental Conductance (INC) are widely adopted due to their straightforward implementation. Nevertheless, these methods exhibit inherent limitations, including steady-state oscillations around the MPP, slow convergence, and susceptibility to tracking errors under rapidly changing weather conditions. More critically, when partial shading occurs, the power-voltage characteristic may exhibit multiple local maxima, making it difficult for conventional algorithms to distinguish the true Global Maximum Power Point (GMPP) [18,19]. The current-voltage and power-voltage characteristics, I p v = f ( V p v ) and P = f ( V p v ) , are illustrated in Figure 2, demonstrating the nonlinear behavior and the presence of multiple peaks under partial shading.
Figure 2. Current-voltage and power-voltage characteristics.

2.3. Power Converters

The power conversion stage is essential for adapting the variable voltage generated by the PV array to the requirements of the motor and battery systems. Two types of converters are employed in this study: a boost converter for MPPT implementation and a bidirectional Buck–Boost converter for battery integration.

2.3.1. Boost Converter

The boost converter ensures voltage adaptation between the solar generator and the DC bus by elevating the variable voltage generated by the solar panels [20,21]. The converter operates by storing energy in an inductor during the switch ON-period and releasing it to the output during the switch OFF-period, resulting in an output voltage higher than the input. This topology is particularly suitable for PV applications as it allows the converter to step up the PV voltage to match the DC bus requirements. The converter is illustrated in Figure 3, where the main components include the inductor L , the switching device, the diode, and the output capacitor. The voltage and current relationships are given by Equations (6) and (7), where V L represents the inductor voltage, L is the inductance, I L is the inductor current, V i is the input voltage from the PV array, and V o is the output voltage across the DC bus. The duty cycle of the switching device determines the voltage gain of the converter.
V L ( t ) = L d I L d t
V L ( t ) = V i ( t ) − V 0 ( t )
Figure 3. Boost converter model.

2.3.2. Bidirectional Buck–Boost Converter

The bidirectional DC-DC converter links the battery to the DC bus, enabling energy exchange in both directions. It employs two IGBT switches that allow operation in both buck and boost modes [22,23]. In buck mode, the converter lowers the voltage to charge the battery from the DC bus. In boost mode, it raises the battery voltage to supply power to the DC bus when the PV generation is insufficient [24]. This dual functionality ensures effective management of energy flows between the storage system and the installation, maintaining voltage stability and operational continuity. Its simulation block diagram is shown in Figure 4, illustrating the power flow pathways and control signals.
Figure 4. Bidirectional buck–boost converter.

2.4. Battery Energy Storage

The battery energy storage system is integrated to ensure continuous system operation during periods of low irradiation or at night. The battery model determines the terminal voltage using Equation (8), where the sign convention distinguishes between charging (+) and discharging (−) states [24]. In this equation, V represents the battery terminal voltage, V o c is the open-circuit voltage, R denotes the internal resistance, and I is the charging or discharging current. The internal resistance accounts for ohmic losses within the battery, affecting the voltage drop during charging and discharging.
V = V c 0 ∓ I R
The State of Charge (SOC) is a critical parameter that indicates the remaining energy available in the battery. It is determined by Equation (9), where Q represents the actual charge stored in the battery, Q d i s c represents the cumulative discharge rate over time, and C b a t represents the total battery capacity. The SOC ranges from 0% (fully discharged) to 100% (fully charged) and serves as the basis for deciding whether to charge or discharge the battery.
S O C = Q − Q d i s c C b a t
The battery Simulink model is displayed in Figure 5, showing the integration of the electrical model with measurement and control interfaces.
Figure 5. Simulink model of the energy storage battery-system.

2.5. Water Pump

The water pump is the final load of the photovoltaic pumping system. For low and medium-height applications, the initial generation of photovoltaic pumping systems used permanent magnet DC motors [25]. However, asynchronous motors driven by variable frequency converters have taken the lead in recent years due to their affordability, durability, and ease of maintenance compared to DC motors [25,26]. Figure 6 shows the pump simulation block, which represents the mechanical coupling between the motor and the pump impeller.
Figure 6. Pump simulation block.
The resistive torque of the pump is proportional to the square of the angular speed, as given by Equation (10), while the motor output power P p is proportional to the cube of the angular speed, as expressed in Equation (11). In these equations, T r denotes the resistive torque, Ω n is the nominal angular speed of the pump, and K p = 1.5673 × 10 − 4 is a constant coefficient determined by the pump characteristics and the fluid dynamics. These relationships reflect the typical behavior of centrifugal pumps, where power demand increases rapidly with speed, making them particularly challenging to drive under variable power conditions.
T r = K p Ω n 2
P p = K p Ω n 3

2.6. BLDC Motor

BLDC motors are selected for this application due to their high efficiency, power density, and reliability. They consist of a rotor with permanent magnets and a fixed stator with three-phase windings. They are more reliable and require less maintenance than conventional DC motors due to the absence of brushes and mechanical commutators. Hall effect sensors are embedded in the stator to measure the rotor position and provide the data required for proper commutation [27]. These sensors generate signals at 60-degree intervals, enabling the electronic control unit to determine the rotor orientation.
The voltage equation for the BLDC motor is given by Equation (12), where V a b is the line-to-line voltage between phases a and b , i a and i b are the phase currents, e a and e b are the back electromotive forces, R is the phase resistance, and L is the phase inductance. The phase voltage equations can be rewritten in matrix form as Equation (13), where M represents the mutual inductance between phases, and V a , V b , V c are the phase voltages. The back EMF is trapezoidal in nature, which distinguishes BLDC motors from sinusoidal permanent magnet synchronous motors.
{ V a ( t ) = R a   I a + L ( d I a d t ) + e a V b ( t ) = R b   I b + L ( d I b d t ) + e b V c ( t ) = R c   I c + L ( d I c d t ) + e c
[ V a V b V c ] = [ R 0 0 0 R 0 0 0 R ] [ i a i b i c ] + [ L M M M L M M M L ] d d t [ i a i b i c ] + [ e a e b e c ]
The electromagnetic torque T e is calculated from the back EMF and phase currents as shown in Equation (14), where ω r is the rotor speed. The electromagnetic torque is directly proportional to the power converted from electrical to mechanical form divided by the rotor speed.
T e = ( e a I a + e b I b + e c I c ) ω m = ( K t 2 ) [ F ( θ e ) I a + F ( θ e − 2 π 3 ) I b + F ( θ e − 4 π 3 ) I c ]
The back EMF is given by Equation (15), where K e is the back EMF constant representing the voltage generated per unit speed, ωm is the mechanical rotor speed, and F ( θ e ) is the trapezoidal waveform function of the electrical angle θ e . The electrical angle θ e is related to the mechanical angle θm through Equation (16), where p represents the number of pole pairs. The trapezoidal waveform function F ( θ e ) is defined in Equation (17), which describes the piecewise linear shape of the back EMF over the six-step commutation intervals: unity during the first 120 electrical degrees, a linear decreasing segment between 120 and 180 electrical degrees, negative unity between 180 and 300 electrical degrees, and a linear increasing segment between 300 and 360 electrical degrees. Finally, the mechanical equation in Equation (18) relates the electromagnetic torque T e , load torque T r , friction coefficient K f , rotor speed Ω , moment of inertia J , and acceleration d Ω / d t . This equation describes the dynamic behavior of the motor-pump system, where the net torque accelerates the rotating mass against friction and load resistance.
{ e a = K a ω m F ( θ e ) e b = K b ω m F ( θ e − 2 π 3 ) e c = K c ω m F ( θ e − 4 π 3 )
θ e = p ( θ m 2 )
F ( θ e ) = { 1 ,   0   ≤   θ e < 2 π 3 1 − ( 6 π ) ( θ e − 2 π 3 ) , 2 π 3 ≤   θ e < π − 1 ,   π   ≤   θ e < 5 π 3 − 1 ,   π   ≤   θ e < 5 π 3
T e − T r = K f Ω + J d Ω d t

2.7. Voltage Source Inverter

The three-phase voltage source inverter is connected between the DC bus and the BLDC motor. Only two switches from two separate phase windings are switched on at a time, following a six-step commutation pattern [28]. This six-step commutation ensures that current flows through the appropriate phase windings based on the rotor position detected by Hall sensors. The commutation sequence is shown in Table 2, where the electrical angle intervals, Hall sensor signals, back EMF states, and corresponding switch states are listed [29,30].
Table 2. Commutation states indication of commutation from the stator back-EMF.

2.8. MPC Controller Structure

The MPC strategy is used in this work to regulate the speed of the BLDC motor by predicting the future behavior of the system and selecting the most appropriate control action. Unlike classical controllers, such as PI controllers, which mainly depend on the present error between the reference and measured speed, MPC uses a mathematical model of the motor to estimate how the motor will respond in the next sampling instants. Based on this prediction, the controller determines the optimal duty cycle or switching command that allows the motor speed to follow the desired reference while maintaining stable dynamic behavior [30]. In the proposed photovoltaic pumping system, the input of the MPC controller is the speed error, which is the difference between the reference speed and the actual motor speed. The reference speed represents the desired operating speed required by the pumping system, while the actual speed is obtained from the motor response. When a deviation occurs between these two values, the MPC controller adjusts the converter duty cycle in order to reduce the error and force the motor speed to approach the reference value. This is particularly important in PV water pumping systems because the available solar power can change rapidly due to irradiation and temperature variations.
The predictive model used by the MPC controller is obtained from the mathematical model of the BLDC motor. This model combines both the electrical and mechanical dynamics of the motor. The electrical part describes the relationship between the applied voltage, the back electromotive force, the stator resistance, the stator inductance, and the motor current. In the Laplace domain, this relationship is given by Equation (19). In this equation, U ( s ) is the applied voltage in the Laplace domain, E ( s ) is the back electromotive force, R is the phase resistance, L is the phase inductance, and I ( s ) is the motor current in the Laplace domain. The term U ( s ) − E ( s ) represents the effective voltage applied to the motor winding after subtracting the back EMF. This effective voltage is responsible for producing the phase current. The term R I(s) represents the voltage drop across the stator resistance, while L s I ( s ) represents the voltage associated with the inductive behavior of the winding.
U ( s ) − E ( s ) = ( R + L s ) I ( s )
The mechanical behavior of the BLDC motor is described by Equation (20). In this equation, T e is the electromagnetic torque produced by the motor, Tr is the load torque applied by the pump, J is the moment of inertia of the rotating parts, f is the viscous friction coefficient, and Ω is the rotor angular speed. The difference T e − T r represents the net accelerating torque available to change the motor speed. If the electromagnetic torque is greater than the load torque, the motor accelerates. If the load torque is greater than the electromagnetic torque, the motor decelerates. The term J s Ω represents the dynamic torque required to accelerate the rotor inertia, while f Ω represents the torque losses caused by mechanical friction.
T e − T r = ( J s + f ) Ω
The back electromotive force is proportional to the rotor speed, as expressed in Equation (21). Here, E is the back EMF, K e is the back EMF constant, and Ω is the rotor angular speed. This equation shows that when the rotor speed increases, the back EMF also increases. The back EMF acts in the opposite direction to the applied voltage and therefore limits the current drawn by the motor. This relationship is important for speed control because the motor electrical behavior is directly linked to the mechanical speed.
E = K e Ω
The electromagnetic torque generated by the BLDC motor is proportional to the motor current. This relationship can be expressed as in Equation (22), where K t is the torque constant and I is the motor current. This means that increasing the current increases the electromagnetic torque, which allows the motor to overcome the pump load and accelerate.
T e = K t I
By combining the electrical equation, the mechanical equation, the back EMF equation, and the torque-current relationship, the open-loop transfer function of the BLDC motor can be obtained. This transfer function relates the motor angular speed Ω(s) to the applied voltage U(s), as shown in Equation (23). This transfer function represents the dynamic response of the BLDC motor. The numerator contains the torque constant K t , which indicates how effectively the electrical input is converted into mechanical torque. The denominator contains the electrical and mechanical parameters of the motor. The term J L s 2 represents the combined effect of the motor inertia and winding inductance. The term ( J R + K f L ) s represents the damping effects produced by the stator resistance, rotor inertia, friction coefficient, and inductance. The term ( R K f + K e K t ) represents the combined influence of mechanical friction, electrical resistance, back EMF, and torque production.
F ( p ) = Ω ( S ) U ( s ) = K t J L S 2 + ( J R + K f L ) S + ( R K f + K e K t )
As will be demonstrated in the results section, the obtained transfer function reveals that the BLDC motor behaves as a second-order dynamic system, where speed response depends on both electrical and mechanical time constants. In the MPC framework, this model predicts future speed for various duty cycles at each sampling instant, selecting the value that minimizes the speed error. This predictive strategy significantly enhances speed regulation and ensures stable operation of the photovoltaic pumping system under irradiance and load variations. The three-phase inverter, controlled via switching signals, energizes the appropriate motor phases to generate the required electromagnetic torque. The overall BLDC motor schematic captures the interaction between input voltage, back EMF feedback, torque generation, mechanical load, and rotor speed, forming the basis for the predictive control implementation.
Figure 7 illustrates the circuit topology of the three-phase inverter used to supply the BLDC motor. The inverter is composed of six power switches arranged in a three-phase bridge configuration. These switches are controlled by gate signals according to the commutation sequence of the BLDC motor. The DC voltage obtained from the PV system and the boost converter is converted into three-phase electrical quantities applied to the motor windings. Each phase is represented by its resistance, inductance, and back electromotive force, which describe the electrical behavior of the BLDC motor.
Figure 7. Circuit topology of a three-phase inverter for BLDC motor.
Figure 8 presents the overall schematic of the BLDC motor model. It shows the relationship between the applied voltage, the back EMF, the electrical subsystem, the electromagnetic torque, the mechanical load torque, and the rotor speed. The feedback loop through the back EMF constant indicates that the motor speed affects the generated back EMF, which in turn influences the motor current and torque. This schematic is useful for deriving the BLDC motor transfer function and for developing the predictive model used in the MPC controller.
Figure 8. BLDC motor overall schematic.
The system parameters used in the simulation are summarized in Table 3, Table 4 and Table 5. The photovoltaic generator, detailed in Table 3, consists of ten parallel strings, each with four series-connected modules. It has an open-circuit voltage of 57.6 V, a short-circuit current of 4.6 A per module, and a series resistance of 0.8275 Ω, which represents internal losses.
Table 3. Solar PV array parameters.
Table 4. Boost converter parameters.
Table 5. Motor parameters used in the simulation.
Table 3 reports the rated PV array power under standard test conditions of 1000 W/m2 and 25 °C. The actual power delivered by the system is lower because it depends on MPPT efficiency, converter losses, motor and pump efficiencies, and the operating load. In this study, the 1.44 kW pump rating refers to the steady-state mechanical power delivered under the selected operating conditions. The remaining power is lost through converter switching and conduction, motor copper and iron losses, and mechanical friction. The MPPT controller continuously adjusts the duty cycle to extract the maximum available PV power as irradiance and temperature change. A complete experimental power balance and system losses will be examined in future work.
The boost converter parameters, listed in Table 4, include an inductance of 0.002 H to ensure continuous conduction mode, an IGBT as the switching device with a freewheeling diode, an input capacitance of 1000 μF for voltage smoothing, and an output capacitance of 200 μF for DC bus stabilization. The BLDC motor parameters, presented in Table 5, include a stator inductance of 0.00272 H and a stator resistance of 0.7 Ω, which define the electrical time constant of the motor. The motor also has a moment of inertia of 0.0008 kg·m2, a viscous damping coefficient of 0.001, four pole pairs, and operates at 50 Hz. These parameters define the dynamic behavior of the PV pumping system and provide the basis for the simulation studies and MPC controller design.
It is important to distinguish between the roles of Figure 7 and Figure 8. Figure 7 shows the three-phase, two-level voltage source inverter that supplies the BLDC motor. The inverter consists of six IGBT switches arranged in a three-phase bridge and operates using six-step commutation based on rotor position feedback. This configuration is commonly used in BLDC drives because of its simplicity and reliability. Figure 8, however, presents the functional model of the BLDC motor. It illustrates the relationships between the applied voltage, back electromotive force, electrical dynamics, electromagnetic torque, mechanical load, and rotor speed. This model is used to derive the motor transfer function and develop the MPC controller. The complete mathematical model is provided in Section 2.6, including the voltage equations in Equation (12), the electromagnetic torque equation in Equation (14), the back EMF equation in Equation (15), and the mechanical equation in Equation (18). Therefore, the two figures are complementary. Figure 7 represents the inverter hardware, while Figure 8 represents the mathematical model used for control design.

3. Methods

This section details the control strategies and optimization algorithms employed in the proposed system, including the four metaheuristic MPPT algorithms and the MPC approach for the BLDC motor. The methodology follows a structured sequence, starting with MPPT optimization, followed by motor speed control using MPC, battery energy management, and economic validation. Figure 9 presents the overall methodological flow, illustrating the interactions between subsystems and the sequential organization of the control strategy, from solar irradiation input to water output.
Figure 9. Overall methodological flow of the proposed PV pumping system with battery energy storage and MPC-based BLDC motor control.

3.1. MPPT Optimization Strategies

As previously stated, to overcome the limitations of conventional MPPT techniques, four metaheuristic optimization algorithms are implemented: GA, GWO, CS, and HOA [20,31,32,33,34,35,36]. These nature-inspired algorithms are selected for their proven effectiveness in solving complex nonlinear optimization problems and their ability to avoid local optima through global search mechanisms. Each algorithm operates by iteratively adjusting the duty cycle of the DC-DC converter to drive the PV system toward its optimal operating point, where the output power is maximized. Their performance is evaluated based on convergence speed, tracking accuracy under dynamic conditions, robustness to irradiance variations, and the ability to locate the GMPP under uniform irradiance variation.
The four metaheuristic algorithms differ in both computational complexity and practical implementation requirements. GA requires extensive tuning of parameters such as population size, crossover rate, and mutation rate, which increases processing time and may slow MPPT response. GWO has a simpler structure, fewer parameters, and faster convergence, making it well suited for embedded systems. CS also has relatively low complexity, but its stochastic behavior and dependence on Lévy flight and discovery probability settings may lead to inconsistent convergence under rapidly changing irradiance. HOA requires more parameter tuning because of its multiple behavioral coefficients, but it provides a strong balance between exploration and exploitation. For real-time implementation, all algorithms require a microcontroller or DSP capable of processing voltage and current measurements and updating the boost converter duty cycle within the sampling period, typically 10 to 100 ms. GA and HOA generally require more computational resources than GWO and CS. Despite this added complexity, the improved tracking performance of HOA and GWO can justify their use in applications where maximum energy extraction is essential.

3.1.1. Genetic Algorithm

The GA is an evolutionary optimization method used in this work as an MPPT controller. Its role is to find the optimal duty cycle of the boost converter in order to maximize the PV output power, as expressed in Equation (24). The algorithm starts with a population of N duty-cycle candidates. Each candidate is evaluated according to the PV power it produces. The best candidates are selected using roulette wheel selection, where individuals with higher fitness values have a higher probability of being chosen, as shown in Equation (24). After selection, crossover and mutation are applied to generate new duty-cycle values and avoid premature convergence. From a control point of view, the optimized duty cycle adjusts the PV operating point, stabilizes the DC bus voltage, and improves the supply conditions of the inverter and BLDC motor. D is the boost converter duty cycle, P p v ( D ) is the PV power, f ( D ) is the fitness value, P i is the selection probability, f i is the fitness of individual i , f j is the fitness of individual j , and N is the population size.
f ( D ) = P p v ( D )
P i = f i Σ ( j   =   1   t o   N ) f j

3.1.2. Gray Wolf Optimizer

The GWO algorithm is a population-based metaheuristic inspired by the social hierarchy and hunting behavior of gray wolves. In this work, GWO is used as an MPPT controller to determine the optimal duty cycle of the boost converter. The main objective is to maximize the PV power and improve the control of the DC bus feeding the inverter and BLDC motor. The population is divided into four groups: α , β , δ , and ω . The α wolf represents the best duty-cycle solution, while β and δ represent the second and third best solutions. The remaining wolves, called ω, update their positions according to these three leaders. The hunting process is based on encircling, searching, and attacking the prey, where the prey represents the maximum power point. The distance between each wolf and the prey is calculated using Equation (26), where D is the distance vector, X p ( t ) is the prey position, X(t) is the current wolf position, and C is a coefficient vector. The position of each wolf is then updated according to Equation (27), where A controls the movement direction and step size toward or away from the prey. The coefficient vector A is calculated using Equation (28), while the coefficient vector C is calculated using Equation (29). In these equations, r1 and r2 are random vectors used to introduce stochastic behavior and avoid premature convergence. The control parameter a decreases linearly from 2 to 0 according to Equation (30), which allows the algorithm to emphasize exploration during the first iterations and exploitation near the end of the search process. Finally, the new position of each wolf is determined from the three best solutions, α , β , and δ , using Equation (31), where X 1 , X 2 , and X 3 represent the positions guided by these three leaders. From a control point of view, the optimal duty cycle obtained by GWO adjusts the PV operating point, improves MPPT accuracy, stabilizes the DC bus voltage, and supports stable BLDC motor speed and torque under variable irradiation conditions.
D = | C · X p ( t ) − X ( t ) |
X ( t + 1 ) = X p ( t ) − A · D
A = 2 a · r 1 − a
C = 2 · r 2
a = 2 ( 1 − t T m a x )
X ( t + 1 ) = ( X 1 + X 2 + X 3 ) 3

3.1.3. Cuckoo Search

The CS algorithm is a population-based metaheuristic inspired by the brood parasitism behavior of cuckoo birds, where cuckoos lay their eggs in the nests of other host birds. In this work, CS is used as an MPPT controller to determine the optimal duty cycle of the boost converter. Each nest represents a candidate duty-cycle solution, and the quality of each nest is evaluated according to the PV power generated by that duty cycle. The algorithm is combined with Lévy flights, which are random walks characterized by occasional long jumps, allowing the search process to explore a wide range of duty-cycle values and avoid convergence to a local maximum power point. The position update of each candidate solution is given by Equation (32), where xi(t) is the current solution at iteration t, x i ( t + 1 ) is the updated solution, α is the step-size factor controlling the flight magnitude, and Lévy(λ) defines the random step generated according to the Lévy distribution. The Lévy distribution is expressed in Equation (33), where Γ ( λ ) is the Gamma function, λ is the exponent parameter, s is the step length, and s0 is the minimum step-size threshold. The parameter pa represents the probability that a host bird discovers an alien egg; in the control process, this probability allows poor duty-cycle solutions to be discarded and replaced by new ones. From a control point of view, the CS algorithm improves MPPT performance by combining global exploration and selection pressure, which helps the boost converter reach an optimal duty cycle, maximize PV power extraction, stabilize the DC bus voltage, and improve the supply conditions of the inverter and BLDC motor under variable irradiation conditions.
x i ( t + 1 ) = x i ( t ) + α ⊕ Levy ( λ )
Levy ( λ ) ∼ λ Γ ( λ ) s i n ( π λ 2 ) π s 1 + λ ,   s ≫ s 0 > 0

3.1.4. Horse Herd Optimization Algorithm

The HOA is a population-based metaheuristic inspired by the adaptive social behavior of horses within a herd. In nature, horses exhibit complex social structures characterized by hierarchical organization, collective movement, grazing behavior, and defensive strategies against predators. These behaviors enable horses to efficiently locate food sources, avoid danger, and adapt to changing environmental conditions, making them an excellent model for optimization problems. In this work, HOA is employed as an MPPT controller to determine the optimal duty cycle of the boost converter that maximizes PV power extraction. Each horse in the population represents a candidate duty-cycle solution, and its quality or fitness is evaluated according to the PV power produced by that duty cycle. The algorithm models four distinct behaviors: (1) grazing behavior, where horses move toward food sources (i.e., promising duty-cycle regions); (2) hierarchy behavior, which maintains social order and allows dominant horses to guide the herd toward the best-known positions; (3) sociability behavior, where horses interact with and follow neighboring horses, promoting information sharing and group cohesion; and (4) defense and escape behavior, where horses react to predators by moving away from danger, which helps avoid local optima and escape poor solutions. These mechanisms collectively allow HOA to maintain an effective balance between exploration (searching new duty-cycle regions) and exploitation (refining known good solutions), which is particularly important for tracking the global maximum power point under variable irradiation or partial shading conditions where multiple local maxima exist.
The mathematical formulation of HOA incorporates these behaviors through velocity and position update equations. The position of each horse is updated using Equation (34), where X i ( t ) is the current position of horse i at iteration t , X i ( t + 1 ) is the updated position, and V i (t) is the velocity vector. The velocity update is given by Equation (35), which combines multiple behavioral components. In this equation, ω is the inertia weight that controls the influence of the previous velocity, balancing global exploration and local exploitation; a higher ω encourages exploration while a lower ω favors exploitation. A is the hierarchy coefficient that attracts the horse toward the best-known position X b e s t ( t ) , representing the influence of the dominant horse (leader) on the herd. B is the sociability coefficient that models the herd interaction effect with the neighboring horse position X ( i − 1 ) ( t ) , facilitating information exchange between horses. The defense behavior is implicitly captured through the random perturbation and repositioning mechanisms when a horse moves away from perceived threats. The coefficient values are adaptively adjusted during the optimization process to ensure convergence toward the global optimum. From a control point of view, the optimized duty cycle obtained by HOA adjusts the PV operating point, improves MPPT accuracy, stabilizes the DC bus voltage, and enhances the supply conditions of the inverter and BLDC motor-pump system. The algorithm’s ability to avoid local maxima while maintaining fast convergence makes it particularly well-suited for photovoltaic applications where irradiation conditions vary rapidly.
X i t + 1 = X i t + V i t
V i t + 1 = ω · V i t + A · ( X b e s t t − X i t ) + B · ( X i t − X i − 1 t )

3.2. Model Predictive Control for BLDC Motor

The MPC strategy is used to regulate the speed of the BLDC motor by predicting its future behavior and selecting the optimal control action. In the proposed PV pumping system, the MPC controller receives the speed error e ( k ) , defined in Equation (36), where ω r e f ( k ) represents the reference motor speed at the sampling instant k and ω ( k ) represents the actual motor speed. This error indicates whether the controller must increase or decrease the control input in order to keep the motor operating at the desired speed. The optimization process is based on the cost function given in Equation (37), where Hp is the prediction horizon, Hu is the control horizon, λ is the weighting factor used to balance speed-tracking accuracy and control effort, and Δ u ( k + i ) represents the variation in the control input over the control horizon. The first term of the cost function minimizes the predicted speed tracking error, while the second term penalizes excessive control variations. This structure allows the controller to improve speed tracking while avoiding aggressive control actions that may cause torque oscillations, DC bus disturbances, or unstable inverter operation. The future speed of the BLDC motor is predicted using Equation (38), where T e ( k + j ) is the electromagnetic torque produced by the motor, Tr is the pump load torque, Kf is the friction coefficient, J is the moment of inertia of the rotor-pump system, and Δt is the sampling time. From a control point of view, MPC improves the dynamic response of the BLDC motor by anticipating speed variations and adjusting the control input in advance. This is particularly important in the proposed PV water pumping system, where changes in irradiation affect the available PV power, the DC bus voltage, and consequently the motor speed and torque.
e ( k ) = ω r e f ( k ) − ω ( k )
J = Σ ( i = 1   t o   H p ) [ ω r e f ( k + i ) − ω ( k + i ) ] 2 + λ Σ ( i = 1   t o   H u ) [ Δ u ( k + i ) ] 2
ω ( k + i ) = ω ( k ) + Σ ( j = 1   t o   i ) [ ( T e ( k + j ) − T r − K f ω ( k + j ) ) / J ] Δ t

3.3. Energy Management with Battery Storage

The energy management strategy with battery storage is used to ensure continuous operation of the PV pumping system by coordinating the power flow between the PV generator, the battery, and the BLDC motor-pump load. In the proposed control structure, the PV generator is considered the primary energy source. When the PV power P p v is sufficient, it supplies the motor power demand Pmotor, and the excess energy is used to charge the battery. When the PV power becomes insufficient due to low irradiation or sudden climatic variations, the battery supplies the missing power by discharging, which helps maintain the DC bus voltage and keeps the inverter and BLDC motor operating under stable conditions. The power balance of the system is expressed in Equation (39), where P p v is the generated PV power, Pbat is the battery power, P m o t o r is the power consumed by the BLDC motor and pump, and Ploss represents the power losses in converters, cables, and other electrical components. In this formulation, P b a t is considered positive during battery charging and negative during battery discharging. The battery charging and discharging decision is mainly controlled by the State of Charge, SOC, which represents the available energy stored in the battery. The SOC variation is described by Equation (40), where S O C i n i t i a l is the initial battery state of charge, I b a t is the battery current, C b a t is the battery capacity, and dt represents the time integration step. From a control point of view, this energy management strategy stabilizes the DC bus voltage, protects the battery from overcharging and deep discharging, and improves the continuity of the BLDC motor speed regulation when the PV power fluctuates.
P p v + P b a t = P m o t o r + P l o s s
S O C = S O C i n i t i a l + ∫ ( I b a t C b a t ) d t

3.4. Techno-Economic Assessment

The techno-economic assessment is performed to evaluate the economic feasibility of the proposed PV pumping system and to compare its competitiveness with conventional diesel-based or grid-supplied pumping solutions. This analysis is based on three main indicators: the Levelized Cost of Energy, the Payback Period, and the Lifecycle Cost. The Levelized Cost of Energy, L C O E , is calculated using Equation (41), where C t o t a l represents the total system cost, including investment, operation, maintenance, and other related costs, while Eannual represents the annual energy produced by the PV pumping system. This indicator expresses the average cost of producing one unit of energy over the system lifetime. The Payback Period, P P , is calculated using Equation (42), where C i n i t i a l is the initial investment cost of the proposed system and C s a v i n g s represents the annual financial savings obtained by replacing conventional pumping solutions with the solar pumping system. This indicator shows the number of years required to recover the initial investment. The Lifecycle Cost, L C C , is determined using Equation (43), where C i n i t i a l is the initial capital cost, C O & M , t represents the operation and maintenance cost during year t , C r e p , t represents the replacement cost during year t , i is the discount or interest rate, and n is the total project lifetime in years. This equation allows all future costs to be converted into present value, giving a complete estimation of the total cost of ownership over the system lifetime. In this work, the techno-economic evaluation is linked to the control performance of the system, because better MPPT accuracy and more stable BLDC motor operation improve energy extraction, reduce losses, and increase annual useful energy production. The system is also validated under constant and variable irradiance conditions to assess its robustness. The main performance indicators include DC bus voltage ripple, PV terminal voltage ripple, electromagnetic torque oscillations, speed ripple, pump power fluctuation, and MPPT efficiency. These indicators make it possible to quantitatively compare the four MPPT algorithms and to identify the most suitable control strategy for efficient and economically viable PV water pumping operation.
L C O E = C t o t a l E a n n u a l
P P = C i n i t i a l C s a v i n g s
L C C = C i n i t i a l + Σ ( t = 1   t o   n ) [ ( C O & M , t + C r e p , t ) ( 1 + i ) t ]
The pseudocode in Algorithm 1 summarizes the complete control sequence of the proposed PV pumping system. The MPPT algorithms optimize the boost converter duty cycle, the battery management stage stabilizes the DC bus during power mismatch, and the MPC stage regulates BLDC motor speed and torque. The final techno-economic stage links technical performance to economic feasibility.
Algorithm 1. Overall MPPT-MPC Energy Management and Techno-Economic Evaluation Procedure.
Input: PV and motor-pump parameters, irradiation profile G ( t ) , temperature T ( t ) , battery parameters, SOC limits, converter limits, population size N , maximum iterations T m a x , , prediction horizon H p , control horizon H u , sampling time Δ t , economic parameters C i n i t i a l , C O & M , t , C r e p ,t, i, and project lifetime n.
Output: Optimal MPPT duty cycle D b e s t , regulated BLDC speed ω, stabilized DC bus voltage Vdc,
battery power P b a t , SOC profile, performance indicators, and techno-economic indicators L C O E , P P , and L C C .
1  Initialization:
2  Initialize PV generator, boost converter, bidirectional buck-boost converter, battery storage, inverter, BLDC motor, and pump models.
3  Set algorithm parameters for GA, GWO, CS, and HOA, including N and T m a x
4  Set MPC parameters H p , H u , λ , Δ t , speed reference ω r e f , and physical limits of the inverter and motor.
5  Set battery limits S O C m i n d S O C m a x , initial S O C , and energy management thresholds.
6  Set economic parameters Cinitial, annual operation and maintenance costs, replacement costs, interest rate, and lifetime.
7  for each simulation scenario do
8  Apply the selected irradiation and temperature profile to the PV generator.
9  Measure V p v , Ipv, Ppv, Vdc, SOC, motor speed ω, and electromagnetic torque T e .
10  MPPT Optimization Stage:
11  for each MPPT algorithm in {GA, GWO, CS, HOA} do
12  Initialize the population of candidate duty cycles within the allowed converter range.
13    for t = 1 to T m a x
14    Evaluate each candidate using the PV power fitness f ( D ) =   P p v ( D ) .
15    if algorithm = GA then
16    Select candidates using roulette wheel selection; apply crossover and mutation.
17    else if algorithm = GWO then
18    Update wolf positions according to α , β , and δ duty-cycle leaders.
19    else if algorithm = CS then
20    Generate new duty-cycle candidates using Lévy flight and replace poor nests according to pa.
21    else if algorithm = HOA then
22    Update horse position and velocity using best-position attraction and herd interaction.
23    end if
24    Apply duty-cycle bounds and update D b e s t if PV power improves.
25    end for
26  Apply D b e s t to the boost converter and record MPPT efficiency, convergence time, PV voltage ripple, and DC bus ripple.
27  Battery Energy Management Stage:
28  if P p v   >   P m o t o r   +   P l o s s and S O C   <   S O C m then
29  Charge the battery through the bidirectional buck-boost converter and regulate V d c .
30  else if P p v <   P m o t o r +   P l o s s a n d   S O C   >   S O C m i n then
31  Discharge the battery to compensate for the power deficit and maintain Vdc stability.
32  else
33  Limit charging/discharging to protect the battery and preserve safe operation.
34  end if
35  Update SOC using the battery current and capacity.
36  MPC-Based BLDC Motor Control Stage:
37  Compute the speed error e ( k ) =   ω r e f ( k ) −   ω ( k ) .
38  Predict future motor speed using the BLDC mechanical dynamics over H p .
39  Minimize the MPC cost function considering speed tracking error and control effort.
40  Select the optimal control input and generate the inverter duty command or switching action.
41  Apply the inverter command to regulate BLDC motor speed and torque.
42  Record speed ripple, torque oscillation, pump power fluctuation, and dynamic response.
43  end for
44  Compare GA, GWO, CS, and HOA using tracking efficiency, convergence speed, ripple, robustness, speed stability, and torque stability.
45  end for
46  Techno-Economic Evaluation:
47  Compute annual useful energy annual from the simulated PV pumping operation.
48  Calculate L C O E using total system cost and annual energy production.
49  Calculate P P using the initial cost and annual savings compared with conventional pumping.
50  Calculate L C C using investment, maintenance, replacement costs, interest rate, and project lifetime.
51  Rank the four MPPT algorithms according to technical performance and economic indicators.
52  Return the best-performing control configuration and the corresponding techno-economic results.
Table 6 summarizes the implementation parameters used for the four metaheuristic MPPT algorithms. The values were selected to balance tracking speed, convergence accuracy, and computational cost for the photovoltaic pumping system. Moderate population sizes were adopted to support real-time implementation while preserving adequate search diversity, with 5 agents for GWO and HOA, 20 for GA, and 4 for CS. The duty-cycle limits were defined according to the required DC bus voltage of approximately 440 to 450 V. Each algorithm therefore operates within the range specified in the table. Key parameters, including the GWO convergence factor, GA mutation rate, and the step sizes used in CS and HOA, were adjusted through preliminary sensitivity tests. This tuning helped achieve a fast-tracking response while limiting oscillations around the maximum power point.
Table 6. Implementation parameters of the four MPPT algorithms.

4. Results

The complete model of the photovoltaic pumping station, incorporating the PV generator, boost converter, energy storage system, and BLDC motor was implemented in MATLAB/Simulink (23.2.0.2515942 (R2023b) Update 7) to generate the simulation results. Four intelligent optimization approaches, namely GA, GWO, CS, and HOA, were evaluated under two operating scenarios over a simulation period of one second. The first scenario corresponds to a constant solar irradiation of 1000 W/m2 and a fixed temperature of 25 °C, while the second scenario involves a variable irradiance profile following the sequence [1000-500-1000] W/m2 with the temperature maintained at 25 °C. These tests enabled a comprehensive assessment of the efficacy of each optimization strategy in controlling the photovoltaic pumping station and managing energy storage under both steady and variable operating conditions.

4.1. Scenario 1: Constant Irradiation (1000 W/m2, T = 25 °C)

The analysis of the photovoltaic pumping system under constant irradiation reveals how the choice of optimization algorithm directly influences the overall energy and electromechanical performance.

4.1.1. Boost Converter Voltage Regulation

The output voltage response of the boost converter for the four algorithms is presented in Figure 10. The HOA and GWO algorithms offer the best performance, with a rapid rise, low initial overshoot, and convergence to the 450 V reference in approximately 0.03 s. From a physical standpoint, this favorable response is explained by the rapid convergence and low variation of the corresponding duty cycles, as illustrated in Figure 11, which allows for a stable balance between the energy provided by the photovoltaic source, that stored in the inductor and capacitor, and that transferred to the load. Conversely, the overshoots and oscillations observed with CS and GA result from more significant variations in the duty cycle. These variations disturb the energy balance of the converter and lead to fluctuations in the output voltage. In particular, the strong oscillations of the GA indicate unstable control, while the oscillatory behavior of the CS explains its static error. Thus, the results show that the stability of the duty cycle plays an essential role in regulating the converter voltage and confirms the better tracking quality achieved with HOA and GWO.
Figure 10. (a–d) illustrates the boost converter output voltage response for all four algorithms.
Figure 11. Duty cycle evolution of the boost converter: (a) GA, (b) GWO, (c) CS, (d) HOA.
It is also noted that the GA has the longest response time, around 0.05 s, with strong oscillations and a static error of approximately 14 V. CS exhibits intermediate behavior, with a response time of 0.04 s and significant overshoot. GWO and HOA offer the best responses, with a stabilization time of approximately 0.02 s, limited overshoot, low oscillations, and a virtually zero static error.

4.1.2. PV Voltage and Power Extraction

The response of the PV voltage for the four MPPT algorithms is presented in Figure 12. The GWO and HOA stabilize the PV voltage around its optimal value of 223 V, allowing for efficient extraction of the available power and keeping the pump power close to its nominal value of 1440 W, as shown in Figure 13. From a physical standpoint, this stability translates to operation close to the maximum power point and an efficient energy transfer to the pump. The load torque, presented in Figure 14, varies with speed during the transient regime before stabilizing around 6·8 Nm, corresponding to the balance between the torque provided by the motor and the resisting torque of the pump. These results confirm the stability and overall good functioning of the photovoltaic-pump system. It can be noted that all four algorithms reach the reference value of 223 V in approximately 0.015–0.02 s. The overshoots and static errors remain low for all methods. HOA, however, exhibits the lowest fluctuations, followed by GWO, while GA and CS show slight residual oscillations.
Figure 12. PV voltage response for all four MPPT algorithms: (a) GA, (b) GWO, (c) CS, (d) HOA.
Figure 13. Pump power output: (a) GA, (b) GWO, (c) CS, (d) HOA.
Figure 14. Pump load torque response: (a) GA, (b) GWO, (c) CS, (d) HOA.

4.1.3. BLDC Motor Performance with MPC

The BLDC motor maintains its speed around the reference of 2000 rpm under MPC, as shown in Figure 15, indicating good regulation of the mechanical dynamics. The electromagnetic torque exhibits a transient peak of approximately 18 N·m at startup, necessary to overcome the rotor’s inertia and accelerate the motor before stabilizing around 6.8 N·m when the balance between the motor torque and the resisting torque is achieved. The stator currents (Isa, Isb and Isc) exhibit trapezoidal waveforms of approximately 5 A, characteristic of BLDC motor operation, allowing for the production of a rotating magnetic field and a steady torque. The induced electromotive forces remain close to 160 V, which is consistent with the stabilized speed and indicates that the magnetic flux remains properly established. Thus, the obtained results show that the MPC not only ensures good speed tracking but also stable electromagnetic operation consistent with the expected physical behavior of the BLDC motor.
Figure 15. BLDC motor speed response with MPC: (a) GA, (b) GWO, (c) CS, (d) HOA.
Among these four methods, it can be noted that the speed of the BLDC motor reaches the reference of 2000 rpm in about 0.02 s, without overshoot or significant oscillations. The static error is practically zero. Thus, the main differences between the algorithms mainly appear in the regulation of the boost converter voltage, where HOA and GWO show the best dynamic performance and stability.
The decrease in electromagnetic torque observed in Figure 16 is physically consistent with the operation of the system. At startup, the motor develops approximately 18 N·m to overcome the inertia of the rotor and the pump and accelerate the entire system. When the speed approaches 2000 rpm, the acceleration decreases and the torque stabilizes around 5 N·m, mainly corresponding to the pump resistance torque and mechanical losses. For a centrifugal pump, the load torque increases approximately with the square of the speed, according to T r = K p Ω n 2 . Thus, the reduction in torque between startup and steady state reflects the transition to a stable equilibrium between electromagnetic torque and load torque. The value of the torque has also been corrected and standardized throughout the manuscript.
Figure 16. Electromagnetic torque response of the BLDC motor: (a) GA, (b) GWO, (c) CS, (d) HOA.
The low current ripple observed during the transient phase, as illustrated by the three-phase stator-current waveforms in Figure 17, Figure 18 and Figure 19, is mainly explained by the MPC strategy and the electrical properties of the motor. Specifically, Figure 17, Figure 18 and Figure 19 show the I s a , I s b , and I s c responses obtained with GA, GWO, CS, and HOA, respectively. Unlike conventional controllers, which correct the error after it appears, MPC predicts the evolution of the motor variables and selects, at each sampling period, the switching state that brings the system closer to its optimal behavior. From a physical standpoint, this predictive action limits sudden variations in current during acceleration, thereby reducing the electrical stresses imposed on the stator windings. The motor inductance also plays an important role by opposing rapid current variations and attenuating the high-frequency components generated by commutation. Moreover, the corresponding back-EMF waveforms E a , E b , and E c , presented in Figure 20, Figure 21 and Figure 22, respectively, exhibit the expected phase-shifted behavior associated with BLDC motor operation. The results obtained with the four algorithms are shown in Figure 20, Figure 21 and Figure 22 for GA, GWO, CS, and HOA, respectively. The sequential energization of the motor phases maintains a rotating magnetic field synchronized with the rotor position. Consequently, the stator currents in Figure 17, Figure 18 and Figure 19 remain relatively regular during the transient phase and stabilize under steady-state conditions, while the back-EMF waveforms in Figure 20, Figure 21 and Figure 22 confirm the regular electromagnetic behavior of the motor. Overall, these results indicate stable electromagnetic operation and satisfactory control of the BLDC motor.
Figure 17. Stator current Isa waveform: (a) GA, (b) GWO, (c) CS, (d) HOA.
Figure 18. Stator current I s b waveform: (a) GA, (b) GWO, (c) CS, (d) HOA.
Figure 19. Stator current I s c waveform: (a) GA, (b) GWO, (c) CS, (d) HOA.
Figure 20. Back EMF E a waveform: (a) GA, (b) GWO, (c) CS, (d) HOA.
Figure 21. Back EMF E b waveform: (a) GA, (b) GWO, (c) CS, (d) HOA.
Figure 22. Back EMF E c waveform: (a) GA, (b) GWO, (c) CS, (d) HOA.

4.1.4. Battery Storage Performance

The battery storage system exhibits a stable response with all four methods, maintaining a voltage of approximately 216 V and a SOC close to 80%, as shown in Figure 23a and Figure 23b, respectively. Physically, this stability is explained by the relatively slow electrochemical dynamics of the battery, which allows it to temporarily absorb or provide the necessary energy during variations in photovoltaic production. Maintaining the SOC around 80% also indicates that the battery has sufficient reserve to ensure the energy balance of the system and compensate for variations in solar irradiance.
Figure 23. Battery voltage response and battery state of charge: (a) Battery charge voltage; (b) Battery charge percentage.
The battery plays a dual role in power balancing and DC bus voltage stabilization. Under the irradiance profile [1000–500–1000 W/m2], it temporarily compensates for power variations by providing energy when PV production decreases and absorbing the excess when it increases. This action helps maintain a stable DC bus voltage and ensures continuous load operation. A study under prolonged periods of low irradiation or nighttime operation, involving a greater battery discharge, will be considered in future work.

4.2. Scenario 2: Variable Irradiation [1000-500-1000] W/m2

This scenario provides deeper insight into the dynamic behavior of the algorithms under fluctuating conditions. The irradiance is maintained at 1000 W/m2 initially, decreases to 500 W/m2 at t = 0.3 s, and recovers to 1000 W/m2 at t = 0.6 s. These abrupt changes serve as a rigorous robustness test for evaluating the capacity of MPPT algorithms to rapidly track the new maximum power point while preserving system stability.

4.2.1. Boost Converter Voltage Response

Figure 24 shows that the HOA and GWO algorithms maintain the boost converter voltage close to its reference despite variations in irradiance. Physically, this good stability results from a rapid adjustment of the duty cycle, allowing the converter to compensate for variations in photovoltaic power and quickly restore the energy balance between the source, the inductor, the capacitor, and the load. The corresponding duty-cycle responses are presented in Figure 25a–d. As shown in Figure 25a, GA exhibits larger duty-cycle oscillations, which are consistent with its less stable voltage response. Figure 25b shows that GWO reaches a stable duty-cycle value with relatively small fluctuations. CS, presented in Figure 25c, exhibits intermediate behavior with slower stabilization, whereas HOA in Figure 25d provides a rapid and smooth duty-cycle adjustment. These duty-cycle characteristics explain the differences observed in the boost converter voltage response and confirm the superior dynamic adaptability of HOA and GWO.
Figure 24. Shows notable variations in the boost converter output voltage response among the examined algorithms: (a) V b o o s t GA; (b) V b o o s t GWO; (c) V b o o s t CS; (d) V b o o s t HOA.
Figure 25. Duty cycle response under variable irradiation: (a) GA, (b) GWO, (c) CS, (d) HOA.

4.2.2. PV Voltage Response

The PV voltage responses obtained with the four algorithms under variable irradiation are presented in Figure 26. Under an irradiance of 1000 W/m2, the PV voltage stabilizes at approximately 223 V for all algorithms. As shown in Figure 26a, GA exhibits noticeable oscillations around the maximum power point, whereas Figure 26b shows that GWO provides a more stable response with reduced fluctuations. Figure 26c indicates that CS also presents oscillations around the optimal operating point, while Figure 26d shows that HOA provides the smoothest and most stable voltage regulation. When the irradiance decreases by 50% at t = 0.3 s, the PV voltage temporarily drops to approximately 218 V because of the modification of the PV generator characteristic and the resulting displacement of the maximum power point. HOA adapts more rapidly to this disturbance and effectively damps the voltage oscillations. When the irradiance returns to 1000 W/m2 at t = 0.6 s, HOA again exhibits the lowest overshoot and shortest settling time. These results, particularly the response shown in Figure 26d, reflect a more effective adaptation of the duty cycle and a superior ability to maintain the PV generator close to its maximum power point despite variations in irradiance.
Figure 26. PV voltage’s response: (a) GA, (b) GWO, (c) CS, (d) HOA.

4.2.3. Mechanical, Magnetic, and Electrical Quantities

The mechanical response of the pumping system under variable irradiation is presented in Figure 27, Figure 28, Figure 29 and Figure 30. The pump power shown in Figure 27 stabilizes at approximately 1.44 kW under nominal irradiation, while the pump load torque presented in Figure 28 reaches approximately 6.8 N.m, corresponding to the nominal operating conditions. The BLDC motor speed response in Figure 29 rapidly reaches the reference value of approximately 2000 rpm, indicating a good balance between the developed electromagnetic torque and the mechanical load. As shown in Figure 30, the electromagnetic torque exhibits a relatively high peak during startup to overcome the inertia of the rotor and the pump and then stabilizes with small ripples associated with electronic commutation. The responses obtained with GA, GWO, CS, and HOA are represented by subfigures (a), (b), (c), and (d), respectively, in Figure 27, Figure 28, Figure 29 and Figure 30.
Figure 27. Pump power output under variable irradiation: (a) GA, (b) GWO, (c) CS, (d) HOA.
Figure 28. Pump load torque under variable irradiation: (a) GA, (b) GWO, (c) CS, (d) HOA.
Figure 29. BLDC motor speed response under variable irradiation: (a) GA, (b) GWO, (c) CS, (d) HOA.
Figure 30. Electromagnetic torque under variable irradiation: (a) GA, (b) GWO, (c) CS, (d) HOA.
The corresponding three-phase stator currents are presented in Figure 31, Figure 32 and Figure 33. Figure 31 shows the Isa current, Figure 32 presents the Isb current, and Figure 33 shows the Isc current. The currents stabilize at approximately 5.5 A and maintain the expected phase relationship required to produce the rotating magnetic field of the BLDC motor. For each current, subfigures (a), (b), (c), and (d) correspond to GA, GWO, CS, and HOA, respectively. Despite the irradiance variations, the controlled current waveforms remain relatively regular, indicating that the MPC maintains satisfactory electromagnetic operation of the motor.
Figure 31. Stator current I s a under variable irradiation: (a) GA, (b) GWO, (c) CS, (d) HOA.
Figure 32. Stator current I s b under variable irradiation: (a) GA, (b) GWO, (c) CS, (d) HOA.
Figure 33. Stator current I s c under variable irradiation: (a) GA, (b) GWO, (c) CS, (d) HOA.
The corresponding back-EMF waveforms are shown in Figure 34, Figure 35 and Figure 36. Figure 34 presents Ea, Figure 35 presents Eb, and Figure 36 presents Ec. These electromotive forces exhibit the characteristic trapezoidal waveform of a BLDC motor, with an amplitude of approximately 160 V and the appropriate phase displacement between the three phases. In Figure 34, Figure 35 and Figure 36, subfigures (a), (b), (c), and (d) correspond to GA, GWO, CS, and HOA, respectively. The consistency between the pump power in Figure 27, load torque in Figure 28, motor speed in Figure 29, electromagnetic torque in Figure 30, stator currents in Figure 31, Figure 32 and Figure 33, and back-EMF waveforms in Figure 34, Figure 35 and Figure 36 confirms the physical coherence between the mechanical and electrical variables and demonstrates the ability of the MPC-based system to maintain stable operation under variable irradiation.
Figure 34. Back EMF E a under variable irradiation: (a) GA, (b) GWO, (c) CS, (d) HOA.
Figure 35. Back EMF E b under variable irradiation: (a) GA, (b) GWO, (c) CS, (d) HOA.
Figure 36. Back EMF E c under variable irradiation: (a) GA, (b) GWO, (c) CS, (d) HOA.

4.3. Techno-Economic Feasibility Analysis

Evaluating control algorithms for photovoltaic pumping systems should consider not only dynamic performance but also the economic benefits resulting from technical improvements. At an irradiation level of 1000 W/m2, HOA and GWO reduce the DC bus voltage ripple to 2.379 V and 2.28 V, respectively, compared with 48.923 V for GA. The large voltage fluctuations observed with GA may cause frequent deviations from the maximum power point, leading to estimated daily energy losses of 5 to 8%. In contrast, the improved stability achieved by HOA and GWO allows better use of the available solar energy and may increase the daily pumped water volume by 6 to 10% for the same photovoltaic installation. This improvement lowers the cost per cubic meter of water and enhances the overall profitability of the system.
Improved voltage stability can also reduce maintenance costs and extend equipment lifespan. The high ripple generated by GA produces larger ripple currents in the DC bus capacitors, increasing internal heating and accelerating component aging. According to electrolytic capacitor reliability models, a 10 °C rise in operating temperature can reduce capacitor lifespan by half. By maintaining the voltage ripple below 2.4 V, HOA and GWO limit thermal stress on power electronic components. As a result, the converter lifespan may increase from approximately five years with GA to between ten and twelve years, reducing replacement expenses and total lifecycle costs.
The techno-economic analysis considers initial equipment and development costs, annual maintenance expenses, MPPT efficiency, and the total operating cost over a 20-year period. Although the algorithms require similar initial investment and hardware resources, their long-term costs differ considerably. Higher tracking efficiency increases energy extraction and water production, while greater operating stability reduces electrical and mechanical stress on the motor-pump unit and power converters.
Table 7 summarizes the main technical and economic indicators used to evaluate profitability and total cost in euros. HOA and GWO provide lower maintenance, component replacement, and downtime costs because of their improved control stability. Among the evaluated methods, GWO achieves the most favorable overall cost when energy utilization, equipment lifespan, and maintenance expenses are considered together (€21,000 over 20 years). HOA provides the best dynamic performance but incurs higher annual maintenance costs (€80 vs. €40), resulting in a total cost of €24,000. In contrast, GA results in the highest operating costs (€28,000) because of its large voltage fluctuations and the resulting stress on system components. These results confirm that the choice of control algorithm directly affects both technical performance and the long-term economic viability of photovoltaic pumping systems.
Table 7. Global cost and efficiency comparison of MPPT systems.

4.4. Comparative Analysis

The comparative analysis presented in Figure 37 provides an evaluation of the performance of the four algorithms under constant and variable irradiance conditions. Figure 37a,b show the regulation of the boost converter voltage under constant irradiance and highlight the superior performance of the HOA and GWO algorithms. These two methods exhibit a rapid rise and a low overshoot before reaching steady state in approximately 0.03 s. Physically, this response translates to a rapid adjustment of the duty cycle, allowing the converter to quickly establish the balance between the energy provided by the photovoltaic generator, the energy stored in the inductor and the capacitor, and the energy delivered to the load. In contrast, the oscillations observed with CS and GA indicate more significant variations in the duty cycle, which disrupt this energy balance and lead to less stable voltage regulation.
Figure 37. Comparative performance analysis of all four algorithms under constant and variable irradiation using the four optimization strategies: (a,b) constant irradiation and (c,d) variable irradiation.
Figure 37c,d present the responses under variable irradiance conditions, with disturbances applied at (t = 0.3) s and (t = 0.6) s. The HOA and GWO algorithms quickly return to their steady state after each variation, with low oscillations. From a physical standpoint, this good response shows that the converter quickly adjusts its duty cycle to compensate for variations in photovoltaic power and maintain a stable voltage at the DC bus. On the other hand, the more significant oscillations observed with CS and GA indicate a slower or less precise adaptation to the new operating point. These variations in the duty cycle can also cause fluctuations in the current in the inductance and the DC bus, thereby increasing conversion losses and electrical stress on the components. Overall, the results show that HOA and GWO ensure better dynamic stability and a more regular energy transmission, even during sudden variations in solar irradiance.
The quantitative oscillatory and electrical performance comparison presented in Table 8 further confirms the superiority of HOA and GWO. Under both 500 W/m2 and 1000 W/m2 irradiance levels, HOA and GWO consistently achieve the lowest ripple values across all measured parameters, including electromagnetic torque, load torque, speed, pump power, PV voltage, and Boost voltage. Notably, at 1000 W/m2, the boost voltage ripple for HOA and GWO is 2.379 V and 2.28 V, respectively, compared to 48.923 V for GA and 25.719 V for CS. These quantitative metrics corroborate the graphical observations and establish a clear performance hierarchy: H O A   ≈   G W O   >   C S   >   G A .
Table 8. Oscillatory and electrical performance comparison of optimization techniques under variable solar irradiance.
Table 9 compares our study with three recent works in similar experimental contexts. Hilali et al. [37] proposed a hybrid Fuzzy Logic-Incremental Conductance (FL-INC) method for a DC-motor pumping system, but did not include battery storage, Model Predictive Control (MPC), or economic analysis. Rao et al. [7] combined MIWO-P&O with BLDC motors and advanced control methods, yet battery integration, MPC, and techno-economic validation were not considered. Hazil et al. [38] applied robust MPC to a PV pumping system with a DC motor, but did not investigate metaheuristic MPPT methods or energy storage. In contrast, our study compares four metaheuristic MPPT algorithms, applies MPC to BLDC motor speed control, integrates battery storage, evaluates key technical indicators, and includes LCOE, payback period, and lifecycle cost analysis. This unified approach provides a more complete solution for autonomous PV water pumping systems.
Table 9. Comparative analysis with recent state-of-the-art studies.

5. Conclusions

This paper has presented an integrated control architecture for photovoltaic water pumping systems, combining four metaheuristic MPPT algorithms with Model Predictive Control for BLDC motor speed regulation and battery energy storage. The proposed framework addresses critical limitations of conventional approaches, including slow convergence, steady-state oscillations, and the inability to track the global maximum power point under uniform irradiance variation. Through comprehensive simulations under both constant and variable irradiance conditions, the performance of GA, GWO, CS, and HOA was systematically evaluated and compared. The results demonstrate that the Horse Herd Optimization Algorithm and the GWO significantly outperform the other methods across all performance metrics. These algorithms achieve superior DC bus voltage stability with minimal ripple, faster convergence times, reduced electromagnetic torque oscillations, and enhanced MPPT efficiency exceeding ninety-nine percent. Under variable irradiance conditions, the HOA exhibits the fastest stabilization with minimal overshoot and superior disturbance rejection, while the GA suffers from severe oscillations and Cuckoo Search displays sawtooth ripple patterns. The integration of Model Predictive Control ensures precise speed regulation of the BLDC motor, maintaining stable operation despite fluctuations in solar irradiation and load conditions. The battery storage system effectively stabilizes the DC bus voltage and ensures continuous system operation during low irradiation periods. The techno-economic analysis confirms the economic viability of the proposed system, with the HOA and GWO strategies yielding lower lifespan costs and improved return on investment compared to conventional approaches. The reduced voltage ripple extends converter lifespan from five years to over twelve years, significantly decreasing maintenance and replacement costs. This integrated framework offers a robust, efficient, and economically sustainable solution for autonomous photovoltaic water pumping applications, particularly in remote agricultural and rural areas. Future work will focus on experimental validation through hardware implementation, integration of more sophisticated battery aging models, and exploration of hybrid algorithms combining the strengths of multiple optimization techniques.

Author Contributions

Conceptualization, N.A.; methodology, N.A.; software, N.A.; validation, N.A., M.I., T.B., K.S., A.H. and A.L.; formal analysis, N.A.; investigation, N.A.; resources, N.A.; data curation, N.A.; writing—original draft preparation, N.A.; writing—review and editing, N.A., M.I., T.B., K.S., A.H. and A.L.; visualization, N.A. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Data Availability Statement

The parameters and scenarios used in this study are provided and described in detail within the manuscript. Since the results were generated using these defined parameters, no additional experimental dataset is required. The study can be reproduced using the information reported in the paper.

Acknowledgments

Nadia Akkari gratefully acknowledges the valuable assistance provided by Taibi Djamel during the simulation process. Artificial intelligence tools were used only to a limited extent during the preparation of this manuscript, specifically for language proofreading and improving the readability of the text. In addition, ChatGPT GPT-5.6 Sol, together with Adobe Photoshop CC 2019 20.07, was used solely to enhance the visual presentation of Figure 9 without modifying or generating any scientific data, results, or conclusions. All research design, methodology, data analysis, interpretation of the results, and conclusions were developed and verified entirely by the authors, who take full responsibility for the accuracy and integrity of the work.

Conflicts of Interest

The authors declare no conflicts of interest.

Abbreviations

PVPhotovoltaic
MPPTMaximum Power Point Tracking
GMPPGlobal Maximum Power Point
P&OPerturb and Observe
INCIncremental Conductance
GAGenetic Algorithm
GWOGray Wolf Optimizer
CSCuckoo Search
HOAHorse Herd Optimization Algorithm
MPCModel Predictive Control
BLDCBrushless DC Motor
ANNArtificial Neural Network
ANFISAdaptive Neuro-Fuzzy Inference System
SMCSliding Mode Control
LSTMLong Short-Term Memory
MIWOModified Invasive Weed Optimization
GSA-MPSOGravitational Search Algorithm with Modified Particle Swarm Optimization
NSGA-IIINon-dominated Sorting Genetic Algorithm III
LCOELevelized Cost of Energy
SOCState of Charge
IGBTInsulated Gate Bipolar Transistor
LCCLifecycle Cost
Symbols:
I p v PV output current (A)
V p v PV output voltage (V)
P p v PV output power (W)
I p h Photocurrent (A)
I d Diode current (A)
I p Shunt leakage current (A)
V d Diode voltage (V)
V t Thermal voltage (V)
R s Series resistance (Ω)
R p Shunt resistance (Ω)
n Ideality factor
k Boltzmann constant (1.38 × 10−23 J/K)
q Electronic charge (1.602 × 10−19 C)
T Cell temperature (K)
D Duty cycle
L Inductance (H)
C Capacitance (F)
V b o o s t   Boost converter output voltage (V)
V b a t Battery terminal voltage (V)
I b a t Battery current (A)
R b a t Battery internal resistance (Ω)
C b a t Battery capacity (Ah)
T e Electromagnetic torque (N·m)
T r Load torque (N·m)
ω m Mechanical rotor speed (rad/s)
ΩRotor angular speed (rad/s)
NRotor speed (rpm)
JMoment of inertia (kg·m2)
K f Viscous friction coefficient (N·m·s/rad)
K t Torque constant (N·m/A)
K e Back EMF constant (V·s/rad)
R s Stator resistance (Ω)
L s Stator inductance (H)
e a , e b , e c Back EMF of phases a, b, and c (V)
i a , i b , i c Stator currents of phases a, b, and c (A)
V a , V b , V c Phase voltages (V)
θ e Electrical angle (rad)
θ m Mechanical angle (rad)
pNumber of pole pairs
fFrequency (Hz)
P p Pump power (W)
K p Constant coefficient determined by the pump characteristics and the fluid dynamics
η MPPT efficiency (%)
H p Prediction horizon
H u Control horizon
λ Weighting factor
Δ t Sampling time (s)

References

  1. Shinde, V.B.; Wandre, S.S. Solar Photovoltaic Water Pumping System for Irrigation: A Review. Afr. J. Agric. Res. 2015, 10, 2267–2273. [Google Scholar] [CrossRef] [Scilit]
  2. Aliyu, M.; Hassan, G.; Said, S.A.; Siddiqui, M.U.; Alawami, A.T.; Elamin, I.M. A Review of Solar-Powered Water Pumping Systems. Renew. Sustain. Energy Rev. 2018, 87, 61–76. [Google Scholar] [CrossRef] [Scilit]
  3. Islam, H.; Mekhilef, S.; Shah, N.B.M.; Soon, T.K.; Seyedmahmousian, M.; Horan, B.; Stojcevski, A. Performance Evaluation of Maximum Power Point Tracking Approaches and Photovoltaic Systems. Energies 2018, 11, 365. [Google Scholar] [CrossRef] [Scilit]
  4. Chatrenour, N.; Razmi, H.; Doagou-Mojarrad, H. Improved Double Integral Sliding Mode MPPT Controller Based Parameter Estimation for a Stand-Alone Photovoltaic System. Energy Convers. Manag. 2017, 139, 97–109. [Google Scholar] [CrossRef] [Scilit]
  5. Chauhan, U.; Rani, A.; Kumar, B.; Singh, V. A Multi Verse Optimization Based MPPT Controller for Drift Avoidance in Solar System. J. Intell. Fuzzy Syst. 2019, 36, 2175–2184. [Google Scholar] [CrossRef] [Scilit]
  6. Ennasri, H.; Drighil, A.; Adhiri, R.; Fahli, A.; Moussetad, M. Design and Simulation of a Solar Energy System for Desalination of Brackish Water. Environ. Clim. Technol. 2019, 23, 257–276. [Google Scholar] [CrossRef] [Scilit]
  7. Rao, S.N.; Kumar, B.M.K.; Manjunatha, B.M.; Kumar, A.S. Modified Invasive Weed Optimization MPPT Approach for PV System Interfaced with BLDC Motor for Water Pumping System. J. Eng. Appl. Sci. 2025, 72, 78. [Google Scholar] [CrossRef] [Scilit]
  8. Sevugan Rajesh, J.; Karthikeyan, R.; Revathi, R. Analysis and Control of Grid-Interactive PV-Fed BLDC Water Pumping System with Optimized MPPT for DC-DC Converter. Sci. Rep. 2024, 14, 25963. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  9. BalaKumar, S.; Lemma, M.; Godato, M. Solar-Powered ANN-Based MPPT with Zeta Converter for BLDC Motor Water Pumping in Rural Ethiopia for Sustainable Agriculture. Discov. Sustain. 2025, 6, 140. [Google Scholar] [CrossRef] [Scilit]
  10. Sumathi, S.; Selvarajan, L. Enhancing Solar Water Pumping Systems: A Machine Learning Approach to Investigating Hybrid Converters. Renew. Energy 2025, 250, 123281. [Google Scholar] [CrossRef] [Scilit]
  11. Elnozahy, A.; Abdel-Salam, M.; Abo-Elyousr, F.K. Optimal Techno-Economic Energy Coordination of Solar PV Water Pumping Irrigation Systems. Energy 2024, 288, 129817. [Google Scholar] [CrossRef] [Scilit]
  12. Ahmed, J.; Salam, Z. An Improved Perturb and Observe (P&O) Maximum Power Point Tracking (MPPT) Algorithm for Higher Efficiency. Appl. Energy 2015, 150, 97–108. [Google Scholar] [CrossRef] [Scilit]
  13. Eltamaly, A.M.; Farh, H.M.H. Dynamic Global Maximum Power Point Tracking of the PV Systems under Variant Partial Shading Using Hybrid GWO-FLC. Sol. Energy 2019, 177, 306–316. [Google Scholar] [CrossRef] [Scilit]
  14. Kumar, R.; Singh, B. Solar PV Powered-Sensorless BLDC Motor Driven Water Pump. IET Renew. Power Gener. 2019, 13, 389–398. [Google Scholar] [CrossRef] [Scilit]
  15. Elgharbi, A.; Mezghani, D.; Mami, A. Intelligent Control of a Photovoltaic Pumping System. Eng. Technol. Appl. Sci. Res. 2019, 9, 4689–4694. [Google Scholar] [CrossRef] [Scilit]
  16. Abdullah, M.A.; Al-Hadhrami, T.; Tan, C.W.; Yatim, A.H. Towards Green Energy for Smart Cities: Particle Swarm Optimization Based MPPT Approach. IEEE Access 2018, 6, 58427–58438. [Google Scholar] [CrossRef] [Scilit]
  17. Katche, M.L.; Makokha, A.B.; Zachary, S.O.; Adaramola, M.S. A Comprehensive Review of Maximum Power Point Tracking (MPPT) Techniques Used in Solar PV Systems. Energies 2023, 16, 2206. [Google Scholar] [CrossRef] [Scilit]
  18. Mao, M.; Cui, L.; Zhang, Q.; Guo, K.; Zhou, L.; Huang, H. Classification and Summarization of Solar Photovoltaic MPPT Techniques: A Review Based on Traditional and Intelligent Control Strategies. Energy Rep. 2020, 6, 1312–1327. [Google Scholar] [CrossRef] [Scilit]
  19. Lekhchine, S.; Bahi, T.; Mohammedi, M. Power Management and Energy Storage of Solar Conversion System Connected to Grid. In Proceedings of the 4th International Conference on Recent Advances in Electrical Systems, Hammamet, Tunisia, 23–25 December 2019; p. 88. [Google Scholar]
  20. Farivar, G.G.; Manalastas, W.; Tafti, H.D.; Ceballos, S.; Sanchez-Ruiz, A.; Lovell, E.C.; Konstantinou, G.; Townsend, C.D.; Srinivasan, M.; Pou, J. Grid-Connected Energy Storage Systems: State-of-the-Art and Emerging Technologies. Proc. IEEE 2023, 111, 397–420. [Google Scholar] [CrossRef] [Scilit]
  21. Chakraborty, S.; Annie, S.I.; Razzak, M.A. Design of Single-Stage Buck and Boost Converters for Photovoltaic Inverter Applications. In Proceedings of the 2014 International Conference on Informatics, Electronics & Vision (ICIEV), Dhaka, Bangladesh, 23–24 May 2014; pp. 1–6. [Google Scholar]
  22. Zhang, X.; Wang, T.; Bao, H.; Hu, Y.; Bao, B. Stability Effect of Load Converter on Source Converter in a Cascaded Buck Converter. IEEE Trans. Power Electron. 2023, 38, 604–618. [Google Scholar] [CrossRef] [Scilit]
  23. Uno, M.; Cheng, D.; Onodera, S.; Sasama, Y. Bidirectional Buck-Boost Converter Using Cascaded Energy Storage Modules Based on Cell Voltage Equalizers. IEEE Trans. Power Electron. 2023, 38, 1249–1261. [Google Scholar] [CrossRef] [Scilit]
  24. Abegaz, B.W. Dynamic Switching Control of Buck Converters Using Unsupervised Machine Learning Methods. J. Eng. 2020, 2020, 1155–1164. [Google Scholar] [CrossRef] [Scilit]
  25. Mishra, A.K.; Singh, B. Solar Powered Water Pumping Station Utilizing Improved Cuk Converter Integrating to Storage System. In Proceedings of the 2018 20th National Power Systems Conference (NPSC), Tiruchirappalli, India, 14–16 December 2018; pp. 1–6. [Google Scholar]
  26. Mohamed, A.A.S.; Berzoy, A.; Mohammed, O. Optimized-Fuzzy MPPT Controller Using GA for Stand-Alone Photovoltaic Water Pumping System. In Proceedings of the IECON 2014—40th Annual Conference of the IEEE Industrial Electronics Society, Dallas, TX, USA, 29 October–1 November 2014; pp. 2213–2218. [Google Scholar]
  27. Abdelwanis, M.I.; Selim, F. A Sensorless Six-Phase Induction Motor Driving a Centrifugal Pump System. In Proceedings of the 2017 Nineteenth International Middle East Power Systems Conference (MEPCON), Cairo, Egypt, 19–21 December 2017; pp. 242–247. [Google Scholar]
  28. Caseiro, L.M.A.; Mendes, A.M.S.; Cruz, S.M.A. Dynamically Weighted Optimal Switching Vector Model Predictive Control of Power Converters. IEEE Trans. Ind. Electron. 2019, 66, 1235–1245. [Google Scholar] [CrossRef] [Scilit]
  29. Azab, M. High Performance Decoupled Active and Reactive Power Control for Three-Phase Grid-Tied Inverters Using Model Predictive Control. Prot. Control Mod. Power Syst. 2021, 6, 25. [Google Scholar] [CrossRef] [Scilit]
  30. Aguilera, R.P.; Acuna, P.; Konstantinou, G.; Vazquez, S.; Leon, J.I. Basic Control Principles in Power Electronics: Analog and Digital Control Design. In Control of Power Electronic Converters and Systems; Blaabjerg, F., Ed.; Academic Press: Cambridge, MA, USA, 2018; Chapter 2; pp. 31–68. ISBN 978-0-12-805245-7. [Google Scholar]
  31. Guo, K.; Cui, L.; Mao, M.; Zhou, L.; Zhang, Q. An Improved Gray Wolf Optimizer MPPT Algorithm for PV System With BFBIC Converter Under Partial Shading. IEEE Access 2020, 8, 103476–103490. [Google Scholar] [CrossRef] [Scilit]
  32. Mohanty, S.; Subudhi, B.; Ray, P.K. A Grey Wolf-Assisted Perturb & Observe MPPT Algorithm for a PV System. IEEE Trans. Energy Convers. 2017, 32, 340–347. [Google Scholar] [CrossRef] [Scilit]
  33. Chtita, S.; Derouich, A.; Motahhir, S.; EL Ghzizal, A. A New MPPT Design Using Arithmetic Optimization Algorithm for PV Energy Storage Systems Operating under Partial Shading Conditions. Energy Convers. Manag. 2023, 289, 117197. [Google Scholar] [CrossRef] [Scilit]
  34. Mohanty, S.; Subudhi, B.; Ray, P.K. A New MPPT Design Using Grey Wolf Optimization Technique for Photovoltaic System Under Partial Shading Conditions. IEEE Trans. Sustain. Energy 2016, 7, 181–188. [Google Scholar] [CrossRef] [Scilit]
  35. Zemmit, A.; Herraguemi, K.E.; Messalti, S. A New Improved Variable Step Size MPPT Method for Photovoltaic Systems Using Grey Wolf and Whale Optimization Technique Based PID Controller. J. Eur. Syst. Autom. 2021, 54, 175–185. [Google Scholar] [CrossRef] [Scilit]
  36. Yang, B.; Wu, S.; Huang, J.; Guo, Z.; Wang, J.; Zhang, Z.; Xie, R.; Shu, H.; Jiang, L. Salp Swarm Optimization Algorithm Based MPPT Design for PV-TEG Hybrid System under Partial Shading Conditions. Energy Convers. Manag. 2023, 292, 117410. [Google Scholar] [CrossRef] [Scilit]
  37. Hilali, A.; El Ouanjli, N.; Mahfoud, S.; Al-Sumaiti, A.S.; Mossa, M.A. Optimization of a solar water pumping system in varying weather conditions by a new hybrid method based on fuzzy logic and incremental conductance. Energies 2022, 15, 8518. [Google Scholar] [CrossRef] [Scilit]
  38. Hazil, O.; Allouani, F.; Bououden, S.; Chadli, M.; Chemachema, M.; Boulkaibet, I.; Neji, B. A robust model predictive control for a photovoltaic pumping system subject to actuator saturation nonlinearity. Sustainability 2023, 15, 4493. [Google Scholar] [CrossRef] [Scilit]
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.

Article Metrics

Citations

Article Access Statistics

Multiple requests from the same IP address are counted as one view.