International Journal of Electrical and Computer Engineering (IJECE) Vol. No. October 2025, pp. ISSN: 2088-8708. DOI: 10. 11591/ijece. Optimal sizing and performance evaluation of hybrid photovoltaic-wind-battery system for reliable electricity supply Youssef El Baqqal1. Mohammed Ferfra1. Reda Rabeh2 Department of Electrical Engineering. Mohammadia School of Engineers. Mohammed V University. Rabat. Morocco LERMA Laboratory. School of Energy Engineering. International University of Rabat. Sala Al Jadida. Morocco Article Info ABSTRACT Article history: Given the advantages of hybrid renewable energy systems over singlesource systems, this study proposes the optimal sizing and performance evaluation of a hybrid photovoltaic-wind battery system to meet the electricity demand of an isolated community in Dakhla. Morocco. The objective is to achieve an economical approach to electricity generation. Particle swarm optimization (PSO) and grey wolf optimizer (GWO) techniques were used to determine the optimal configuration of system components, including photovoltaic (PV) panels, wind turbines, and battery The annual system cost (ACS) is minimized as the optimization objective, and the levelized cost of electricity (LCOE) is used for economic MATLAB serves as the platform for implementation and Results demonstrate the convergence and effectiveness of PSO and GWO in delivering high-quality solutions. PSO, however, achieves superior system reliability with a lower loss of power supply probability (LPSP) during peak demand. The optimal configuration achieves a minimal LCOE of 0. 1065 USD/kWh, representing a 33. 44% reduction compared to the applicable rate. These findings highlight the potential of advanced optimization techniques to improve the economic and operational performance of hybrid renewable energy systems, making them a viable solution for rural electrification in regions with limited grid access. Received Jul 14, 2024 Revised Jun 22, 2025 Accepted Jun 30, 2025 Keywords: Grey wolf optimization Hybrid system Optimization techniques Particle swarm optimization Photovoltaic wind battery system This is an open access article under the CC BY-SA license. Corresponding Author: Youssef El Baqqal Department of Electrical Engineering. Mohammadia School of Engineers. Mohammed V University Ibn Sina B. P 765. Agdal Rabat. Rabat 10000. Morocco Email: youssef. elbaqqal@um5r. INTRODUCTION The increasing energy demand, as well as the focus on the use of renewable energies for electricity production, especially for rural electrification, has resulted in the advancement of innovative methods to improve the efficiency of renewable energy systems. To address the issues associated with the limitations of these systems, the idea of a hybrid renewable energy system (HRES) has been suggested, which integrates renewable energy resources like solar photovoltaic (PV) and wind energy, along with energy storage Such systems may be more efficient and reliable than those relying on a singular energy source . Moreover, they optimize the use of existing resources and lower the expenses associated with energy In recent years, there has been a notable rise in research interest in HRESs, highlighting a growing recognition of their potential. The primary focus of these studies has centered around optimizing HRESs to minimize system costs, while considerations for reducing carbon emissions have also gained This optimization involves formulating an objective function that considers various parameters and limitations, integrating technical, financial, and environmental factors. This is a complex and multifaceted Journal homepage: http://ijece. ISSN: 2088-8708 challenge that requires a comprehensive understanding of various objectives, factors, and limitations. These systems involve a range of objectives, variables, and constraints, which can be single-objective or multiobjective, integer or discrete, and linear or nonlinear, making them a highly complex problem . Different methods have emerged to handle the challenges of optimizing the performance of HRESs, including metaheuristics algorithms such as particle swarm optimization (PSO) and grey wolf optimization (GWO). Metaheuristic methods are typically inspired by natural processes . Having an excessive capacity in HRESs might make the initial cost higher. However, if the system does not have enough capacity, it cannot guarantee a reliable power supply. So, it is important to find the right balance and optimize the system's capacity to ensure both cost-effectiveness and long-term reliability . Optimizing hybrid renewable energy systems aims to develop a solution that effectively integrates multiple energy sources, achieving a balance between minimizing costs and ensuring a reliable power supply . key parameters used in the optimization process, particularly in terms of economic and reliability criteria. Additionally, among the economic criteria, the annual system cost (ASC) and the levelized cost of electricity (LCOE) are highlighted as the most commonly utilized . The studies conducted in Morocco on HRESs, particularly PV/wind HRESs, have made significant contributions to the optimization and feasibility of these systems in various contexts. A recent study conducted by Bouafia et al. specifically aimed to optimize the sizing of a PV/wind turbine HRES in 12 locations in Morocco. The PSO algorithm was used to minimize the LCOE while achieving the desired annual output. Another study by El Boujdiani et al. optimized a stand-alone PV/wind/battery/diesel hybrid energy system using the PSO algorithm, ensuring a reliable and cost-effective power supply for remote areas in two cities in Morocco. Furthermore. Beyoud and Bouhaouss . investigated the feasibility and optimization of a hybrid generator-photovoltaic-wind farm system for a tourist lodge in Guergarat, southwest Morocco. Their study considered load profile constraints and provided valuable insights for designing cost-effective and sustainable energy systems in remote areas. Additionally. Kharrich et al. present a novel application of the equilibrium optimizer for the optimal design of a hybrid PV/wind/diesel/battery microgrid in Dakhla. Morocco. They aimed to minimize costs, improve system stability, and enhance renewable energy integration. In another study. El-Houari et al. assessed the viability of a hybrid renewable power generation system to provide sustainable electricity in the remote village of Tazouta in the Fes Meknes region of Morocco, using HOMER software. Anoune et al. focused on the sizing optimization of a PV/wind/battery hybrid renewable energy system with electrochemical storage. They aimed to meet the load demand of an industrial prototype and developed a heuristic approach based on a genetic algorithm. MATLAB was used to solve the sizing optimization Furthermore. Mouachi et al. discussed the increasing need for renewable energy systems to meet electricity demand while reducing costs and environmental impact. They proposed a nature-inspired optimization algorithm called MDPSO to optimize the sizing of an advanced hybrid microgrid (A-HMG) in a fishing village in Morocco. The authors first proposed a smart energy management scheme (SEMS) to coordinate the power flow among the different components of the A-HMG. They then integrated the MDPSO algorithm with the SEMS to perform the optimal sizing for an A-HMG in a fishing village located in Essaouira. Morocco. The components considered in the A-HMG are photovoltaic panels (PV), wind turbines (WT. , battery storage systems, and diesel generators (DG. Lastly. El Haini and Saka . presented a techno-economic assessment of a PV/wind turbine/battery hybrid energy system for powering a stand-alone load in Morocco. Using HOMER software, the study concluded that the PV/Battery system is the most economically feasible configuration in the selected geographical locations. The adoption of HRESs is still gaining significant attention in Morocco for applications such as seawater desalination and rural electrification, with the latter presenting a veritable issue where providing reliable and sustainable electricity to isolated communities in regions such as Dakhla. Morocco. To address this issue, this study focuses on the simulation and optimization of an HRES that combines photovoltaic (PV), wind power, and battery storage technologies to meet the energy needs of remote communities. A key contribution of this study is the emphasis on designing HRESs that not only minimize costs but also ensure a consistent and reliable energy supply. While a system may appear economically attractive due to a low LCOE, its practical effectiveness lies in its ability to meet demand at all times. Therefore, incorporating reliability metrics such as the loss of power supply probability (LPSP) into the optimization framework is This measure evaluates the system's capability to meet energy demands under different conditions. Prioritizing cost savings without considering reliability could result in power shortages, which would compromise the goals of rural electrification and sustainable energy availability. The primary purpose of this work is to create a mathematical model of an autonomous hybrid PV/wind/battery energy system for generating electricity in an isolated area. The objective is to determine the appropriate sizes of the components used in the proposed system to achieve the lowest LCOE. While ensuring a specific level of reliability. The proposed system's objective function is the annual system cost Int J Elec & Comp Eng. Vol. No. October 2025: 4341-4354 Int J Elec & Comp Eng ISSN: 2088-8708 (ASC). The GWO and PSO algorithms are utilized to find the best configuration for the proposed HRES. These algorithms were selected due to their ability to deliver precise and dependable outcomes using fewer control parameters in comparison to other evolutionary algorithms. The choice of these algorithms is driven by their potential to provide accurate and reliable results with a relatively smaller number of control parameters compared to other evolutionary algorithms. To assess the efficacy of the proposed approach, the results obtained from the application of the GWO algorithm are compared against the performance of the PSO algorithm. A brief comparison is made based on the LCOE. The configuration with the lowest LCOE is considered ideal. METHOD System components modelling The figure provided. Figure 1 shows the schematic diagram of the hybrid PV/wind/battery system studied in this research. This system consists of several components: PV panels, wind turbines, the Battery storage system, and a load. The system is designed for an isolated community. To establish the connection to the direct current (DC) bus system, the wind turbines. PV panels, and battery storage are appropriately linked through inverters or converters. On the other hand, the load is connected to the alternating current (AC) bus When renewable energy sources, wind turbines, and PV arrays generate sufficient power to meet the demand, all the electricity is directly supplied to the load. Excess power is then stored in the battery bank. instances where the generated power falls short of meeting the demand, the stored power in the batteries is utilized to compensate for the deficit. Figure 1. Overview of the proposed hybrid PV/WT/battery system Simple efficiency PV module model The power produced is calculated according to . ycEycEyc . = ycAycEyc yuCycEyc . yuNycnycuyc yceycc ya. where ycAycEyc is the number of PV unit (K. , ycnycuyc is the efficiency of the inverter, yceycc is a represents the derating factor, including several losses such as soiling and shading. While, yuCycEyc . , implies the actual overall efficiency of the solar module and ya. symbolizes the total radiation received by the modules at time yc. The precise estimation of solar radiation received by the solar field holds significant importance as it serves as a fundamental factor in determining the electricity energy production potential of PV plants. However, the available data may not always be exactly what we use for calculation. For example. Global solar radiation measurements are typically taken on horizontal planes, whereas solar PV modules are not installed horizontally but at a certain angle or with a tracking system to optimize the received solar radiation. Optimal sizing and performance evaluation of hybrid photovoltaic-wind-battery A (Youssef El Baqqa. A ISSN: 2088-8708 To improve the accuracy of the data, it is, therefore, necessary to convert the available data into useful data. To do so, the calculation of solar position and solar radiation, as well as the conception conditions such as the tilt angle and orientation, should be considered. This part is not included in this paper, but it is taken into account in the calculation process. The actual efficiency of the PV module at time t is calculated as . yuCycEyc . = yuCycEyc_ycyceyce . cNya . Oe ycNya_ycyceyce )) . where yuCycEyc_ycyceyce represents the nominal efficiency of the PV module, yuyc is the temperature factor . xperimentally measured by the constructo. Additionally, ycNycyceyce is the temperature of the PV module under STC. The actual operating temperature at which, ycNyca is calculated based on their rated operating temperature . Wind model In the literature, various models are employed to estimate the output power production of wind These models typically consider different wind speed ranges and employ distinct characteristic techniques to evaluate the performance of the wind turbine. The wind turbine power generation ycEycOycN can be presented as . ycOycycnycuycc . < ycOycnycu ycuyc ycOycycnycuycc . > ycOycuycyc ycEycOycN . = 0 ycOycnycu O ycOycycnycuycc . < ycOyc . cEycOycN . = ya. ycOycycnycuycc . Oe yaA. ycEycycaycyceycc | . ycEycOycN . = ycEycycaycyceycc ya= ycEycycaycyceycc AE. cO 3 Oe ycO 3 ) yc yaA= ycOycnycu 3 AE 3 cOyc Oe ycOycnycu 3 ) . ycEycycaycyceycc = 0,5. yaycOycN . yaycE . yuUycaycnyc . yuCycOycN . ycOyc 3 in this context, ycEycycaycyceycc refers to the rated power of the wind turbine, which represents the maximum power it can generate under optimal conditions. The parameter yaycOycN signifies the rotor area, the term ycOycnycu stands for the cut-in wind speed. On the other hand, ycOyc denotes the rated wind speed. Lastly. Vout represents the cut-off wind speed. According to the specifications provided in reference . , we have adopted an air density . uUycaycnyc ) value of 1. 225 kg/mA for our calculations. Additionally, we have utilized a power coefficient . aycy ) of 0. Management strategies of HRESs When sizing a hybrid PV/wind/battery system, carefully evaluating each component's contribution and determining the required storage capacity are critical steps. These considerations need to be adapted to the site weather data, the technical characteristics, and the conception conditions of each system, and the profile of the load being supplied. To select the best design for a hybrid PV/wind/battery system, an optimization algorithm is employed. This algorithm aims to optimize the proposed system by considering specific criteria, such as reliability and cost-effectiveness. In this context, the HRES with the specific balance between PV and wind is designed to reply to the desired load, the total production could be written as . = ycAycEycO . ycEycEyc . ycAycOycN . ycEycOycN . where ycEycEyc . , ycEycOycN . are power production by PV and wind turbine at time t, which could be calculated using . , respectively. While, ycAycEycO is the number of PV system unit (KW) and ycAycOycN is the number of wind system unit (KW). For each configuration . cAycEycO , ycAycOycN ), a total generated power could be calculated. this latter, in a certain time t, could be equal, greater, or less than the required load at this time. For this reason, the integration of a battery storage system is necessary. The required total battery capacity can be determined through a detailed sizing process. Int J Elec & Comp Eng. Vol. No. October 2025: 4341-4354 Int J Elec & Comp Eng ISSN: 2088-8708 Battery sizing For each combination of PV and wind configurations, a specific battery capacity needs to be installed to meet the desired load. The determination of this capacity can be done through a sizing process. is crucial to consider the state of charge (SOC) of the battery bank in this context. Two key modes should be considered in this context. Charging mode In the charging mode, there are also two sub-modes: When wind power production exceeds the required load, the surplus energy is stored after supplying the load directly. In this scenario, the charging power is calculated with the formula . ycEycaEa . = . cEycOycN . Oe ycEycoycuycaycc . ycycaycuycuyc ycEycEycO . The energy charged at time t, yaycaEa . , is calculated as: yaycaEa . = ycEycaEa . 1Eayc In cases where the wind power production is not enough to satisfy the demand. The available produced wind energy is injected and the solar energy is used to bridge the gap. The charger power is calculated according to . ycEycaEa . = ycEycEycO . Oe . cEycoycuycaycc . Oe ycEycOycN . )/ ycycaycuycuyc ) . In the case of charging mode, the state of the battery is calculated using . as function of the state of charge in previous time . c Oe . = yayca . c Oe . However, this state of charge at time t noted yayca . is condionned by the next conditions: yaycaEa . O . aycaycoycaycu yayca . c Oe . ) . where yaycaycoycaycu is the maximal SOC and Eb . Oe . represent the SOC in previous time . c Oe . , this condition implies that yayca . in all time must be less than the SOC maximal. If there is an excess of energy when the battery reaches its maximum SOC, a situation of wasted energy may occur as a result of excessive generation, the excess is dumped using a dumped load . Discharging mode In this scenario, . is employed to calculate the discharge power. ycEyccycnycycycaEa . = . cEyaycuycaycc . /yaycuyc ) Oe ycEycEycO . Oe ycEycOycN . The energy discharged at time yc. Esitch . , is calculated as: yaycycnycycaEa . = ycEyccycnycycycaEa . 1Eayc In the case of discharging mode, the state of the battery is calculated using . as a function of the state of charge in previous time . c Oe . = yayca . c Oe . Oe yayccycnycycycaEa . However, this state of charge at time yc noted yayca . is condionned by the next conditions: yaycaEa . = ycEycaEa . 1Eayc where, yayca,ycoycnycu is the minimum state of the battery. Figure 2 illustrates a basic flow chart outlining the operational strategy of the proposed HRES, which also covers battery management. Optimal sizing and performance evaluation of hybrid photovoltaic-wind-battery A (Youssef El Baqqa. A ISSN: 2088-8708 Start Read nput Data For loop 8760 times ycEycEycO . O ycu ycEycOycN . Ou ycEyaycuycaycc . Yes ycEyccycnycycyca Ea . = . cEyaycuycaycc . /yaycuyc ) Oe ycEycEycO . Oe ycEycOycN . ycEycOycN . > ycEyaycuycaycc . / yaycuyc yayccycnycycyca Ea . = ycEyccycnycycyca Ea . 1Eayc Yes ycEycaEa . = . cEycOycN . Oe ycEycoycuycaycc . )*ycycaycuycuyc ycEycEycO . yaycaEa . = ycEycaEa . 1Eayc yayca . c Oe . Oe yayca ycoycnycu Ou yayccycnycycycaEa . Yes yayca . = yayca . c Oe . Oe yayccyca Ea . ycEycaEa . = ycEycEycO . Oe . cEycoycuycaycc . Oe ycEycOycN . )/ ycycaycuycuyc yaycaEa . O . aycaycoycaycu yayca . c Oe . ) Yes yayca . = yayca . c Oe . yaycaEa yayca . =yaycaycoycaycu yaycu ycEaycnyc ycycnycycycaycycnycuycu ycoycuycaycc ycoycuycyc ycoycayc yaycycoycy ycEayce ycycycycyycoycyc yceycuyceycyciyc. Return Figure 2. Overview of the operating strategy for the proposed HRES Optimization problem formulation The objective function . ceycCyaAyayaycNyaycOya ) of the proposed hybrid PV/WT/battery system is designed to reduce the annualized system cost (ASC) while satisfying the constraint that the power system's reliability remains within a predefined limit (LPSP < LPSP*). Specifically, the objective is to determine the optimal values for ycAycEyc , ycAycOycN , and ycAycaycaycyc representing the number of PV, wind turbines, and battery units, respectively, that satisfy this objective function. The configuration with the least ASC is deemed the most optimal solution to lower the levelized cost of energy (LCOE). In this case, the optimization problem is framed to minimize the ASC, subject to specific constraints that will be discussed later. This is expressed as a function of a vector X, which includes the parameters to be The objective function for X, where X denotes a vector containing parameter indicesers . cAycEycO , ycAycOycN , ycAycaycaycyc , ycEycnycuyc ) that must be optimally determined, can be expressed as . yceycCyaAyayaycNyaycOya ycU = ycAycnycuycnycoycnycyce ASC = F[NycEycO yaycEycO ycAycOycN yaycOycN ycAycaycaycyc yaycaycaycyc ycEycnycuyc yaycnycuyc ] . where yaycEycO , yaycOycN , yaycaycaycyc and yaycnycuyc are the cost of PV, wind turbine, battery and inverter units respectively. While, ycEycnycuyc represents the rating power of the inverter. The ASC incorporates various expenses related to the system. These costs include the capital cost, total operation and maintenance cost, and the cost of replacement. Each of these costs is calculated for every component of the system. The yaycEycO , yaycOycN , yaycaycaycyc and yaycnycuyc could be calculated using . Int J Elec & Comp Eng. Vol. No. October 2025: 4341-4354 Int J Elec & Comp Eng ISSN: 2088-8708 yaycEycO = yaycEycO ycaycuycycaycoycaycaycy yaycEycO ycaycuycuycycaycoycyceycy yaycEycO ycC ycaycuycc ycA yaycOycN = yaycOycN ycaycuycycaycoycaycaycy yaycOycN ycaycuycuycycaycoycyceycy yaycOycN ycC ycaycuycc ycA yaycaycaycyc = yaycaycaycyc ycaycuycycaycoycaycaycy yaycaycaycyc ycaycuycuycycaycoycyceycy yaycaycaycyc ycC ycaycuycc ycA yaycnycuyc = yaycnycuyc ycaycuycycaycoycaycaycy yaycnycuyc ycaycuycuycycaycoycyceycy yaycnycuyc ycC ycaycuycc ycA Equation . is used to calculate LCOE based on ASC, as detailed in . LyaycCya = Oct=8760 AycIya Egyceycuyceycycaycyceycc . CRF. , ycUycn ) the process for calculating the capital recovery factor (CRF) is outlined in . ycUycn yaycIya. cc, ycUycn ) = . ycUycn . Oe1 In this context, ycc refers to the rate of interest, which includes the impact of inflation, while ycUycn represents the complete lifespan of the hybrid system. The analysis of power reliability is crucial in the design phase of such systems, serving as a vital parameter for evaluating system performance based on the load distribution. The calculation of power reliability is expressed through the loss of power supply probability (LPSP), which ranges between 0 and 1. An LPSP value of 0 indicates high reliability, where the load demand will always be satisfied. Conversely, an LPSP value of 1 signifies that the load demand can never be met. The LPSP expression for a year (T = 8760 hour. can be represented as . Oc8760 yayccyceyceycnycaycnyc . yaycEycIycE = Oc18760 yaycoycuycaycc . Oc8760 . Oeyayciyceycuyceycycaycyceycc . ) . Oc8760 yaycoycuycaycc . where, yayccyceyceycnycaycnyc . , yayaycuycaycc . , yayciyceycuyceycycaycyceycc . present the energy deficit, the total consumer load and the total energy generated, respectively. Optimization technique The study uses PSO and GWO for their effectiveness in finding global optima. PSO is a populationbased method inspired by natural swarm behavior, where particles adjust their positions and velocities based on both their own and the global best fitness values . , . GWO is a metaheuristic inspired by the social structure and hunting strategies of grey wolf packs . Additional details on the PSO and GWO algorithms can be found in . Table 1 summarizes the parameter settings and the main steps of the PSO and GWO algorithms used in this study. Table 1. Parameter settings and the main steps of the PSO and GWO algorithms used in this study Aspect Parameters: Dimension Agents Iterations Inertia weights Constants Main steps: Initialize Evaluate Update Terminate PSO GWO D=3 Particles = 44. Agents = 60 maxIter = 100 wMax = 0. 9, wMin = 0. c1 = 2, c2 = 2 D=3 Agents = 60 maxIter = 100 Ai Ai Random positions and velocities, set P_best & G_best Compute fitness, update P_best & G_best VA = wVA cCArCA(P_bestAeXA) crCC(G_bestAeXA) XA = XA VA Until maxIter or convergence Random positions, set , . Compute fitness, update , . = (XCA XCC XCE)/3 Using , , positions Until maxIter The objective of this work is to optimize the objective function while considering certain conditions. The number of each unit is limited by a maximum value, as well as the condition on the reliability using a value of LPSP. As a result, the PSO and GWO algorithms are employed to achieve the optimal design of the proposed configurations. These algorithms take into account the following constraints: Optimal sizing and performance evaluation of hybrid photovoltaic-wind-battery A (Youssef El Baqqa. A ISSN: 2088-8708 0 O ycAycEycO O ycAycEycOycAyaycU 0 O ycAycOycN O ycAycOycNycAyaycU 0 O ycAycaycaycyc O ycAycayaycycycAyaycU 0 O yaycEycIycE O yaycEycIycE O Case study description Rural electrification is frequently constrained by a limited supply of electricity, which at certain times is only available for a few hours each day, even when supplied by renewable resources such as solar or These are due to the intermittent nature of renewable resources. As a result, a major challenge is to design an optimal hybrid system that can meet the area's load demand continuously, with a minimal value of LPSP in Voisin of zero, while minimizing annualized system cost (ACS). The primary goal of this study is to conduct a feasibility analysis of a hybrid PV/Wind/Battery system to meet the electricity demand of a community in an isolated area within the province of Dakhla . ast longitude: 23,41 and north latitude 15,. , situated in southern Morocco, as depicted in Figure 3. The weather data were obtained from the National Solar Radiation Database using the System Advisor Model software. The average wind speed and global horizontal irradiance are presented in Figure 4. It can be observed that the highest average wind speed is 6,05 m/s and the maximum global horizontal irradiance is about 308. 93 W/mA. The load demand for two typical days, one in winter and one in summer, is illustrated in Figure 5. The maximum electricity load demand is 150 kWh. Figure 3. The proposed HRES location in Dakhla province Figure 4. Average wind speed and global horizontal irradiance in Dakhla Int J Elec & Comp Eng. Vol. No. October 2025: 4341-4354 Int J Elec & Comp Eng ISSN: 2088-8708 Figure 5. The hourly electrical energy load demand SIMULATION RESULTS AND DISCUSSION In this paper, a standalone HRES consisting of three components (PV. WT, and batter. is optimally assessed to meet the electrical demand of a remote community in Dakhla. Morocco. The hybrid PV/WT/battery system proposed in this research was thoroughly analyzed to assess the effectiveness of the suggested algorithms, specifically the GWO and PSO algorithms. The issue of identifying the optimal sizing for an isolated HRES and integrating PV, wind, and battery components was considered as an optimization The suggested duration for the projected system was established at 25 years, assuming a 6% interest MATLAB was utilized to apply the selected algorithms to optimize the problem. The optimization process consisted of 100 iterations, each executed independently, with the best solution determined based on the lowest fitness value. Both GWO and PSO algorithms were configured with a maximum of 100 iterations and 60 search agents. Performance of optimization algorithms The results obtained from the 100 runs of the GWO and PSO algorithms for ASC are identified, and the convergence behavior of GWO and PSO is illustrated in Figure 6. It is remarkable that the objective function values obtained by both techniques vary and fluctuate slightly but maintain a relatively stable level. Within 8 iterations, the GWO algorithm has achieved quick convergence, with a stable fitness value of 33723 USD. This rapid stabilization demonstrates its ability to identify a near-optimal solution in a short time. In comparison, the PSO algorithm exhibited a slower convergence rate, gradually reducing its fitness value for 100 iterations. By the final iteration. PSO reached a slightly higher cost of 85934. 2347 USD. Figure 6. Conversion curves of objective functions using PSO and GWO algorithms The statistical parameters of the obtained ASC values, including the mean, maximum, minimum, and standard deviation, were calculated alongside the final LCOE and LPSP. Table 2 summarizes the Optimal sizing and performance evaluation of hybrid photovoltaic-wind-battery A (Youssef El Baqqa. A ISSN: 2088-8708 comparative performance metrics of the PSO and GWO algorithms. The GWO algorithm demonstrates a lower minimum ASC . 6955 USD/y. and mean ASC . 9559 USD/y. compared to PSO, which has higher values of 85934. 2347 USD/yr and 118233. 6849 USD/yr, respectively. Additionally. GWO exhibits greater consistency, with a significantly smaller standard deviation . than PSO . In terms of LCOE. GWO achieves a lower value . 0954 USD/kW. than PSO . USD/kW. , making it more cost-effective. However. PSO shows a slight advantage in reliability, with a lower LPSP of 0. 0098 compared to GWO's 0. These results highlight the trade-offs between cost efficiency, consistency, convergence speed, and reliability when selecting optimization algorithms for HRESs. In terms of cost. GWO achieves a more economical result compared to PSO. However, when considering reliability, the LPSP of PSO . is slightly better than that of GWO . In terms of convergence speed. GWO demonstrates faster stabilization at an optimal solution, reaching better results in fewer iterations, while PSO requires more iterations to achieve its optimal performance. These differences highlight that GWO may be more advantageous for scenarios prioritizing quick solutions and cost efficiency, whereas PSO could be preferred in situations where ensuring system reliability is critical. Ultimately, the choice between the existing optimization algorithms depends on the specific priorities and constraints of the designed HRES. Table 2. Comparative analysis of ASC. LCOE, and LPSP results from PSO and GWO algorithm Metrics ASC Value (USD/y. Min Mean Max STD. Levelized cost of energy (LCOE) (USD/kW. Loss of power supply probability (LPSP) GWO PSO System sizing and optimization results Concerning the efficiency of the system and the determination of the best combination of the HRES presented in this study. PSO and GWO algorithms were employed to determine the best arrangement for the proposed PV/wind/battery system. These algorithms were used to assess and identify the best design parameters for the system. Table 3 offers a detailed overview of the findings achieved through these optimization algorithms. According to the optimization result of the PSO algorithm presented in this table, the most efficient configuration of the proposed system achieves an LPSP of 0. 0098 utilizing 177 units of PV modules, 86 units of the wind system, and 100 units of the battery storage system. This configuration results in the lowest ACS 2347 USD/yr and an LCOE of 0. 01104 USD//kWh. While using GWO, the most efficient configuration achieves an LPSP of 0. 0099 utilizing 168 units of PV modules, 77 units of wind system, and 278 units of the battery storage system. The optimal solution for meeting the electrical energy demand of the selected community using the HRES consists of 168 PV modules combined with 77 wind turbines. In this configuration, energy is supplied by both PV modules and wind systems. This setup achieves the lowest ASC and LCOE, at 82,943. 70 USD per year 1065 USD per kWh, respectively, while also minimizing operating costs. Table 4 details the contribution of each system component to the total annual cost, highlighting that capital costs are the most significant factor, particularly for the PV system, where they are substantially higher compared to other elements. The proposed hybrid PV/wind/battery system's management strategy was evaluated through a simulation covering the first week of January. Figure 7 depicts the system's energy exchange throughout this week, providing insights into the energy flow between its various components. As outlined in the management strategy, a battery system is used, storing excess energy produced when generation surpasses the load demand. This stored energy is then utilized during discharge mode when generation is insufficient to meet the load. Figure 7 reveals normal operation during the initial hours . Both wind and solar PV systems generate power to meet the desired load, with any surplus stored in the batteries. However, in the final hours . of the week, wind turbine production weakens due to lower wind speeds, resulting in insufficient power generation. To ensure a continuous and reliable electricity supply, the battery storage system automatically activates, delivering the necessary energy to bridge this gap. The analysis highlights the advantages of HRESs in contrast to single-source options. Through the integration of different energy sources, the HRES achieves a better balance of cost-effectiveness, reliability, and operational efficiency, demonstrating its capability to meet diverse energy requirements while minimizing costs. Int J Elec & Comp Eng. Vol. No. October 2025: 4341-4354 Int J Elec & Comp Eng ISSN: 2088-8708 The optimal configuration of each component in the hybrid system was determined through the use of the GWO algorithm. Then, an investigation into the system's operation over one year was conducted. The monthly energy output of each component is illustrated in Figure 8. Among the renewable energy sources in the proposed HRES, the solar PV system accounted for the largest contribution, representing 51. 91% of the total energy output, while wind turbines and batteries contributed 24. 94% and 23. 15%, respectively. Table 3. Optimal sizing results received from PSO and GWO algorithms Algorithm PSO GWO PV unit Wind unit battery unit ASC(USD/y. LCOE (USD//kW. LPSP Table 4. Technical characteristics of the simulated hybrid system components Elements Batteries Inverter Capital cost (USD/y. 32 330,30 28 745,51 1 455,98 4 428,97 Replacement Cost (USD/y. 326,17 Maintenance and operation Cost (USD/y. 1 236,08 168,43 167,00 400,00 Total Cost (USD/y. 33 566,38 1 949,16 6 209,95 Figure 7. Energy exchange of the proposed system Figure 8. Monthly electricity production from the optimized system Optimal sizing and performance evaluation of hybrid photovoltaic-wind-battery A (Youssef El Baqqa. A ISSN: 2088-8708 Cost analysis and comparison Office National de l'yOlectricity et de l'Eau Potable (ONEE) is considered the leading electricity provider in Morocco, supplying electricity to most of the country. The electricity pricing for different consumption levels is available on their website: http://w. ma/ . ccessed on 08 December 2. For electrical demand exceeding 500 kWh per month, the applicable rate of 0. 16 USD per kWh is applied to domestic use and private lighting. The most efficient configuration of the proposed HRES achieves a minimal LCOE of 0. 1065 USD /kWh, representing a 23. 93% reduction compared to the 0. 14 USD/kWh LCOE of the Noor Ouarzazate I plant . and a 33. 44% reduction compared to the applicable rate of 16 USD/kWh by ONEE. This shows that the proposed HRES is a cost-effective solution for rural With a much lower LCOE compared to current grid electricity rates, the HRES offers an affordable and sustainable energy source, especially for remote areas. By providing reliable, clean energy at a competitive price, the system supports both environmental and economic goals, making it an ideal option for rural areas that lack access to the main power grid. Table 5 presents a comparative analysis of the proposed system's results alongside previous studies on similar systems. Given the differences in system designs and climate conditions across studies, the LCOE was chosen as the key metric for evaluation . The LCOE of the proposed system is significantly lower than that reported in optimization studies, with the exception of those . , . In . , although the hybrid PV/wind system in Dakhla, optimized by PSO, achieved an LCOE of 0. 0800 USD/kWh, this study does not address the reliability aspect, and no reliability constraints are mentioned in the analysis. Comparatively, other configurations, such as the PV/wind/diesel/battery microgrid optimized by the Equilibrium Optimizer . , reported an LCOE of 0. 0917 USD/kWh, with the best LPSP achieved via EO being 0. Despite the economic advantages of a reduced LCOE, this study presents a lower reliability compared to the results obtained in the current study. Our study demonstrates that advanced optimization algorithms like GWO and PSO can effectively improve the economic feasibility of HRES by balancing cost and reliability. Based on the analysis of the data provided in Table 5, we can conclude that minimizing costs alone is insufficient and ensuring a reliable energy supply is equally critical. Although a system may appear economically attractive due to a low LCOE, its effectiveness ultimately depends on its ability to consistently meet demand. To address this, reliability metrics such as the LPSP need to be integrated into the optimization This integration allows for an assessment of the systemAos capacity to maintain energy availability under variable conditions. Ignoring the importance of reliability could cause energy shortages, which would compromise the essential aims of rural electrification and sustainable access. Table 5. Comparison with other studies References . Location Dakhla. Morocco Dakhla. Morocco Souss Massa. Morocco Tangier. Morocco Configuration PV/WT PV/WT/DG/BT PV-DG-Battery PV/WT/Battery Methodology PSO HOMER LCOE (USD/kW. This work Essaouira. Morocco Guerguarat. Morocco Dakhla. Morocco PV/WT/DG/BT PV/WT/DG/BT PV/WT/BT MDPSO HOMER PSO GWO LPSP Not indicated in the paper Not indicated in the paper LPSP value adopted in the paper is 0. Not indicated in the paper CONCLUSION This study addresses the critical challenge of providing reliable and affordable electricity to remote regions by investigating the optimal design and performance of a HRES combining PV, wind, and battery storage technologies in the Dakhla region of Morocco. Given the regionAos rich solar and wind resources but lack of grid access, the study aims to develop a sustainable energy solution that balances cost-effectiveness with operational reliability under variable load profiles. Using advanced optimization algorithms. GWO and PSO, the research systematically sized and evaluated hybrid system configurations to minimize the LCOE while maintaining high reliability, quantified by the LPSP. The study incorporated realistic load variability and operating reserve constraints to reflect the dynamic nature of energy demand in rural settings. Key findings reveal that GWO achieves a slightly lower LCOE of 0. 1065 USD/kWh, making it more costeffective and faster in optimization, while PSO excels in reliability, attaining a marginally better LPSP during peak demand. This demonstrates that the choice of optimization strategy can be tailored to emphasize either economic efficiency or system robustness, depending on project priorities. The hybrid system configuration optimized in this study significantly reduces energy costs compared to conventional alternatives, thereby enhancing the feasibility of rural electrification projects. Importantly, this work highlights the necessity of Int J Elec & Comp Eng. Vol. No. October 2025: 4341-4354 Int J Elec & Comp Eng ISSN: 2088-8708 integrating both economic and reliability metrics into the design process of HRES to ensure a sustainable and uninterrupted power supply, a factor often overlooked in previous studies. By providing clean, reliable, and competitively priced energy, the proposed system supports environmental sustainability and socioeconomic development in off-grid communities. Looking forward, future research will explore multiple HRES configurations using different optimization methodologies and constraints to determine the most cost-effective solution tailored to specific energy requirements. Specifically, a key focus will be on integrating hydrogen storage systems as an additional energy storage and conversion option. Hydrogen offers the potential to enhance system flexibility, increase energy autonomy, and provide longer-term storage capacity compared to conventional batteries. REFERENCES