TY - JOUR AU1 - Alqahtani, Mohammed AU2 - Alhajri, Saeed AU3 - Menesy, Ahmed S. AU4 - Mohammed, Ali Maher AU5 - Sultan, Hamdy M. AU6 - Khalid, Muhammad AB - 1. Introduction Over the past two decades, there has been a significant shift from dependence on fossil fuels to the adoption of renewable energy sources, driven by the need for cleaner, more sustainable power [1–3]. Hybrid renewable energy systems integrating resources like solar, wind, and biomass, offer a compelling alternative for remote and rural areas where energy access remains a critical challenge [4]. While hydrogen shows promise as a long-term energy storage medium to increase renewables penetration into the grid, off-grid hybrid systems present an immediate solution for regions without grid access [5,6]. These systems provide a stable power supply, reduce environmental impacts, and lower operational costs, yet require careful optimization to maximize resource efficiency and ensure reliability at minimal cost. In the midst of the Arab region’s renowned wealth of energy resources, a pressing reality persists: millions of households and vital economic sectors grapple with inadequate access to dependable energy services. Although the Arab region is known for its abundant energy resources, a stark reality persists: millions of households and vital economic sectors continue to grapple with inadequate access to dependable energy services. The challenge of accessing electricity persists due to the often-unreliable national power grids across many countries [7]. Consequently, many regions have turned to decentralized diesel-based technologies to meet the energy demands of both domestic and commercial sectors. Diesel engines serve a multitude of purposes, from lighting homes and powering industrial equipment to facilitating irrigation and pumping activities. This energy insecurity stands as a formidable obstacle, hindering the path to equitable, sustainable, and enduring development in these nations. However, amidst these challenges, solar photovoltaic (PV) technologies emerge as a promising solution, offering a cost-effective means to reduce diesel consumption for electricity generation and water pumping in rural and remote areas [8,9]. Nevertheless, the intermittency of most renewable sources poses a considerable challenge, particularly in fluctuating climatic conditions, significantly impacting energy production [10]. To address this dilemma, a strategic blend of diverse renewable energy sources becomes imperative to ensure a stable and reliable energy supply. Building upon earlier research, recent efforts on off-grid hybrid renewable systems have underscored the potential of integrating multiple renewable technologies, such as PV panels, wind turbines, fuel cells, and biomass solutions [11–16]. These innovative systems have not only demonstrated proof-of-concept but have also showcased enhanced efficiency, paving the way for a more sustainable energy landscape in the region. The integration of renewable energy sources into hybrid microgrid systems presents a promising avenue for addressing global energy demands sustainably. Recent advancements in optimization algorithms have significantly contributed to enhancing the efficiency and reliability of these systems. This literature review encapsulates recent studies focusing on optimization techniques, renewable energy integration, and technological advancements in battery storage, providing a comprehensive overview of current research directions and findings in the domain. A techno-economic assessment and environmental impact analysis of hybrid storage systems integrated into microgrids are detailed by Ikram et al. [17]. Their research employs particle swarm optimization (PSO) to manage the energy dispatch strategy effectively, demonstrating the potential of meta-heuristic algorithms in optimizing microgrid operations. This aligns with the document’s focus on employing various battery technologies to evaluate their impact on the system’s net present cost and environmental footprint. Recent research introduced by Zhao and Zhang [18], highlights a groundbreaking strategy for urban microgrid management, focusing on energy efficiency and reliability through innovative optimization techniques. This study underscores the importance of addressing renewable energies’ uncertainty, presenting a model that significantly contributes to the Net-Zero smart cities initiative. Similarly, Hamza et al. [19], explore the enhancement of local energy sharing within peer-to-peer prosumer communities using a hybrid algorithm combining cellular automata and deep learning, showcasing the smart node’s capabilities in optimizing microgrid communities. The importance of optimized energy storage in enhancing microgrid reliability is explored by Zhong et al. [20], who propose a bi-layer optimization method based on the Beluga Whale Algorithm. This research highlights the critical role of energy storage systems in maintaining the microgrid’s topology structure and ensuring efficient energy management. The authors in [21], explored the use of microgrids to manage renewable energy resources, addressing technical, economic, and environmental challenges. It introduces a distributable resource management strategy (DRMS) for hybrid microgrids, aimed at reducing costs, energy loss, and emissions while meeting operational constraints. Using the grey wolf optimizer (GWO) to determine optimal component sizes, the strategy achieved reductions of 1.06% in total net cost, 8.69% in energy loss, and 17.19% in emissions, with results confirmed by the firefly algorithm (FA) and particle swarm optimization (PSO). Sensitivity analysis supports DRMS’s effectiveness in improving hybrid microgrid performance across economic, technical, and environmental measures. Ayed et al. [22], conducted a case study in Thala city, Tunisia, presenting an optimal design and techno-economic analysis of on-grid, hybrid renewable energy systems utilizing wind and biomass resources. This study employs advanced optimization techniques to determine the most cost-effective scale for a hybrid energy system, providing a valuable framework for assessing the feasibility and economic viability of similar projects in other rural areas. Liu et al. [23], explored a multi-objective optimization model based on life cycle assessment (LCA) for the optimal design of hybrid solar and biomass systems. This approach offers a comprehensive evaluation of the environmental and economic impacts of integrating solar and biomass energy, aligning closely with the development of a mathematical model for optimal sizing and ensuring efficient energy utilization within hybrid systems. Zaman [24], provided an intensive analysis of the energy management system (EMS) for hybrid electric vehicles powered by renewable energy sources, including solar, wind, and biomass. Although focused on vehicle applications, this research offers insights into the integration of diverse renewable sources and the optimization of energy distribution, which are relevant to the optimization techniques explored in the primary study. The authors in [25], focused on optimizing a hybrid biomass-PV microgrid for agricultural use in Egypt. The study presents a new hybrid algorithm (HIWO/PSO), which combines invasive weed optimization (IWO) and particle swarm optimization (PSO), to determine the optimal sizing of the energy system. The performance of this system is evaluated using three key metrics: total net present cost (TNPC), LPSP, and excess energy fraction (EEF). The conclusions suggest that the HIWO/PSO algorithm outperforms other methods like harmony search (HS), standalone PSO, and flower pollination algorithm (FPA), by achieving optimal results more quickly and with fewer iterations. The results highlight the economic, ecological, and social benefits of the optimized microgrid design, suggesting that it can meet current and future energy needs efficiently. Barakat et al. [26], evaluated the potential of an on-grid hybrid renewable energy (HRE) system in Egypt, combining solar, wind, and biomass energy sources. The study is motivated by feed-in tariffs promoting renewable energy and aims to assess both environmental and economic impacts of the proposed system. The optimization, sizing, and cost analysis were performed using HOMER software, focusing on a typical small village. The results indicate that the most cost-effective combination of solar, wind, and biomass energy comes primarily from the biomass generator due to the availability of resources at the location. This hybrid system significantly reduces costs and CO2 emissions compared to a grid-connected system, demonstrating that renewable energy sources are a viable solution to meet rural electricity demands in Egypt. Samy et al. [27], focused on the technical and economic analysis of a hybrid PV-Biomass microgrid designed to supply power to a remote apple farm in the Albaha region of Saudi Arabia. The goal was to optimize the system’s components, PV panels, biomass generators, and batteries, to minimize the total annual cost (TAC) and NPC. Two optimization algorithms, harmony search (HS) and firefly algorithm (FA), were used to find the best configuration of system components, ensuring reliable power supply while keeping the LPSP at 2%. The study’s conclusions confirm the effectiveness of the hybrid system design in providing a sustainable power solution for the farm, highlighting the system’s potential applicability in other locations with similar renewable resources. Sensitivity analysis was performed to assess how variables like interest rates, inflation, and biomass availability could affect the system’s long-term economic viability. The study demonstrates that the optimized system is capable of meeting both current and future energy needs in a cost-effective, environmentally friendly, and socially beneficial way. The authors in [28], focused on analyzing the feasibility of using renewable energy (solar, wind, and biomass) for powering a remote rural area in Al-Jouf, Saudi Arabia. Four hybrid system configurations, PV/Wind, PV/Biomass, Wind/Biomass, and PV/Wind/Biomass, were simulated and optimized using HOMER software. The goal was to identify the most cost-effective and energy-efficient system. The study evaluates each configuration based on key economic metrics, including the NPC and the LCOE. The results show that the PV/Biomass system was the most economical choice, with a total NPC of 138,521.40 $ and an LCOE of 0.099 $/kWh. While renewable energy systems are environmentally and economically advantageous, the study highlights the challenge of high upfront investment costs, especially for low-income communities. To overcome this barrier, the paper suggests the need for support from government and non-governmental organizations to finance such projects. Idris et al. [29], performed a techno-economic and emission analysis of biomass-integrated hybrid energy systems for automotive condition monitoring centers. Utilizing simulation software, this study estimated the biomass resource availability and its potential integration within hybrid systems, providing a direct comparison to the research paper’s objective of evaluating biomass as a viable component in hybrid renewable energy systems. Modu et al. [30], introduced an enhanced Salp Swarm Algorithm for the optimal design of a grid-independent solar-fuel cell-biomass energy system. The research highlights the algorithm’s effectiveness in optimizing the configuration of hybrid renewable energy systems, directly contributing to the comparative analysis of optimization techniques outlined in the primary study. Presented in this study is the design of an efficient off-grid renewable energy system tailored for supplying electricity to a remote village situated in Saudi Arabia. The proposed system harnesses the abundant solar and biomass resources available within the village. To achieve optimal sizing of this system, a meta-heuristic optimization approach is employed, leveraging the strengths of three distinct optimization techniques. In this context, the meta-heuristic algorithm demonstrating the highest performance will be selected for implementation. The optimization methods utilized encompass the Osprey Optimization Algorithm, Zebra Optimization Algorithm, and Flying Foxes Optimization Algorithm. These specific algorithms are chosen for their proven track record in effectively managing large-scale searches, consistently and swiftly converging towards the global optimum. This comprehensive approach ensures a robust and efficient off-grid renewable energy solution tailored to the unique energy needs of the village in Saudi Arabia. The design process meticulously determines the ideal capacities of various renewable energy sources, including solar photovoltaic (PV), wind, biomass, and battery banks. This selection process is centered on the objective of minimizing the net present cost associated with the units provided by the proposed system, while also considering a predetermined loss of power supply probability. By carefully calibrating the capacities of each renewable source, the system aims to achieve optimal efficiency and cost-effectiveness in meeting the energy needs of the remote village in Saudi Arabia. The main contributions of this study can be highlighted as follow: Proposing an optimized hybrid PV/wind/biomass microgrid design tailored for remote areas, with a case study focused on a specific rural location in Saudi Arabia, emphasizing economic viability and reliable power supply. Developing a comprehensive mathematical model to determine the optimal sizing of hybrid system components, maximizing energy efficiency, cost-effectiveness, and reliability. Employing three advanced optimization techniques, namely, the osprey optimization algorithm, zebra optimization algorithm, and flying foxes optimization algorithm, to achieve an optimized configuration, enabling superior performance and stability in hybrid microgrid systems. Comparative analysis of the results obtained from the three optimization algorithms to identify the most effective solution. Assessing the techno-economic performance of flooded lead-acid (FLC), lithium ferro phosphate (LFP), and nickel iron (Ni-Fe) batteries. Conducting sensitivity analyses to verify the developed algorithms robustness in solving the studied optimization problem. The subsequent sections of this paper are structured as follows: Section 2 delves into the problem formulation; Section 3 outlines the proposed optimization procedures in detail. Moving forward, Section 4 provides a comprehensive analysis of the simulation results and ensuing discussions. Finally, Section 5 encapsulates the findings and draws insightful conclusions based on the study’s outcomes. 2. Problem formulation 2.1 Modeling of the proposed system As depicted in Fig 1, the proposed hybrid power system comprises key components such as PV panels, a wind farm, a Biomass Gasifier with a syngas engine, a battery bank, a dump load, and an inverter. PV panels, wind farm, and Biomass generators are employed to fulfill the load demand, with any surplus energy exceeding the demand utilized to charge the battery banks when available. The energy stored within the battery banks is subsequently utilized to meet the load requirements during periods of low energy production by the PV, wind, and biomass systems. Additionally, a dump load, functioning as an electrical resistance heater, is integrated into the system to manage the full generated capacity, thereby preventing the battery from overcharging. This comprehensive setup ensures efficient utilization of renewable energy sources and effective management of energy fluctuations to sustain continuous power supply. Download: PPT PowerPoint slide PNG larger image TIFF original image Fig 1. Schematic diagram of the studied off grid hybrid energy system. https://doi.org/10.1371/journal.pone.0317757.g001 2.1.1 Solar photovoltaic system modelling. Modeling the PV system within hybrid energy systems involves a meticulous process to accurately represent its behavior and interactions with other renewable sources. The PV system model typically includes various components to simulate its performance under different conditions. The present study uses a simulation model to assess the performance of the PV module, with Eq (1) applied to determine the output power of the PV generator [31,32]: (1) Here, KT = −3.7×10−3(1°C) for monocrystalline and polycrystalline silicon. Additionally, based on the energy balance, it was suggested that TC can be expressed as follows in Eq (2): (2) Where NOCT = 43°C. 2.1.2 Wind system modelling. Wind energy stands out as a renewable energy source that operates without generating any greenhouse gas emissions. The wind turbine, comprising three fundamental components, namely the tower, the blades facilitating airflow for rotation, and the generator, plays a pivotal role in this energy conversion process [33]. When wind passes through the blades, part of its kinetic energy is transferred to the generator, where it is converted into electrical energy. The amount of electrical energy generated by a wind turbine (WT) depends on both the wind speed and the design of the blades. Consequently, wind turbines utilized for industrial electricity or lighting purposes are typically erected atop tall towers. The wind speed, which escalates with altitude above ground level, can be calculated at a specific height H2 using the equation below [33,34]: (3) Here, S1 and S2 represent the wind speed at reference point H1 and at the turbine hub height H2, respectively. βwt denotes the WT friction coefficient, which, according to the International Electrotechnical Committee (IEC) for normal wind conditions and 0.11 for more intense wind conditions. The power generated by wind turbines (Pwt) can be expressed through the following equation [31]: (4) In this equation, S(t) represents the wind speed at time t, while and denote the cut-in and cut-off wind speeds, respectively. Furthermore, Nwt stands for the number of wind turbines, ηwt represents the efficiency of the wind turbine, and is the rated power of the wind turbine. This model serves to accurately predict the power generation capabilities of the wind turbine within the hybrid energy system, considering the varying wind speeds and operational conditions. 2.1.3 Biomass generator modelling. Biomass resources encompass a diverse array of natural and derived materials, including woody and herbaceous species, wood waste, bagasse, agricultural and industrial residues, waste paper, municipal solid waste (MSW), sawdust, bio-solids, grass, food processing waste, animal byproducts, aquatic plants, and algae. These resources primarily consist of three major organic components: cellulose, hemicelluloses, and lignin. The majority of biomass energy production stems from wood and wood waste (comprising 64%), followed by MSW (24%), agricultural waste (5%), and landfill gases (5%). There are three primary methods for utilizing biomass: it can be combusted to generate heat and electricity, converted into gas-like fuels such as methane, hydrogen, and carbon monoxide, or transformed into liquid fuels. Liquid fuels, known as biofuels, predominantly manifest as two forms of alcohol: ethanol and methanol. The direct conversion of biomass into liquid fuels holds promise as a substantial source for meeting transportation fuel demands for cars, trucks, buses, airplanes, and trains. This becomes particularly significant given that approximately one-third of our nation’s energy is currently allocated to transportation needs. Within the Kingdom of Saudi Arabia (KSA), major biomass resources include municipal solid wastes (MSWs), agricultural crops and residues, and sewage (water-carried waste). The estimated potentials for biomass energy over the next 20 years, especially in electricity generation for the KSA, are outlined in Table 1. Download: PPT PowerPoint slide PNG larger image TIFF original image Table 1. Estimated Bio-energy potential from various biomass sources in the kingdom of Saudi Arabia for the years 2014 and 2034. https://doi.org/10.1371/journal.pone.0317757.t001 In this investigation, we utilize agricultural crops and residues as the primary biomass input for the gasifier. Here, the biomass particles undergo decomposition at temperatures exceeding 700 degrees Celsius. This decomposition process unfolds in four distinct stages, facilitated by the gasification agent, which, in this case, is air. Through this process, the particles recombine to generate a synthetic gas known as syngas. This syngas serves as the fuel for turbines, which, in turn, generate electricity [35]. The efficiency of the syngas, denoted as ηg, the output power of the generator, PBG, and the average fuel consumption per hour, FCons_BG, are determined using the following equations [35,36]: (5) (6) (7) Here, LHVpg represents the lower heat value of the product gas, while mpg signifies the mass flow of the product gas. Similarly, LHVB denotes the lower heat value of the biomass, with mB indicating the mass flow of biomass. The variable NBG represents the number of biomass generators employed, and Brated stands for the biomass consumption rate per hour (kg/h). Finally, PGrated signifies the rated power output of the biomass generator. 2.1.4 Battery energy storage system (BESS). The battery serves as a crucial component for storing electrical energy in a chemical form, later releasing it as needed in the form of electrical power. Its primary function is to store excess power generated by PV units, wind turbines (WTs), and the biomass system when production surpasses current load demands. When renewable sources fall short of meeting demand, or during system maintenance, the batteries begin discharging stored energy. This study includes a comparative analysis among the Flooded lead-acid, Lithium Ferro Phosphate (LFP), and Nickel Iron (Ni-Fe) Battery (Ni-Fe) batteries within the context of a PV/Biomass hybrid system. The objective of this comparison is to explore the impact of different battery types on the Net Present Cost (NPC) of the system. The lead-acid battery comprises distinct positive and negative electrodes, crafted from lead dioxide and metallic lead respectively. These electrodes are immersed within a diluted sulfuric acid electrolyte. Two common variants exist: the flooded lead-acid and sealed valve-regulated lead-acid (VRLA) solutions. Among these, the flooded lead-acid is the more economical option but necessitates regular maintenance, typically monthly, to monitor and replenish distilled water. Moreover, proper ventilation is crucial due to its emission of flammable gases. In this study, a 100 Ah, 4.8 kWh Flooded Lead Acid battery bank, comprising four batteries, each with 50% Depth of Discharge (DOD) and 0.5% self-discharge per day, was employed [30]. The associated costs include $672 for initial and replacement expenses, with $25 for Operations and Maintenance (O&M) costs, over a lifetime of 4 years at an efficiency of 85%. The Li-ion battery represents an advanced rechargeable alternative. During charging, Li+ ions are extracted from the cathode oxide compound and integrated into the anode lattice. The cathode boasts high potential yet a poor Li state, while the anode exhibits low potential but a high Li state [30]. Li-ion batteries offer numerous advantages over their counterparts, including high energy density (attributed to their elevated output voltage), exceptional efficiency, extended cycle life, and environmental sustainability. The Lithium Ferro Phosphate (LFP) battery, introduced in 1997, marked a significant reduction in lithium battery costs, facilitating widespread commercial usage. Distinguished by its thermal and cycling stability, safety features, and environmental robustness, the LFP battery stands out as one of the most promising Li-ion batteries for grid integration. In this context, a 102.4 Ah, 5.2 kWh LFP battery bank with 70% DOD and 0.033% self-discharge per day was employed [30]. The associated costs include an initial and replacement expense of $5,890, O&M costs of $2, all over a battery lifetime of 15 years at an efficiency of 95%. The Nickel-Iron (Ni-Fe) battery, comprising nickel (III) oxide-hydroxide positive plates and iron-based negative plates, operates with a potassium hydroxide electrolyte. Known for its robustness in challenging environments, the Ni-Fe battery boasts an extended lifespan, rendering it ideal for renewable energy backup applications. For this battery type, a 100 Ah, 4.8 kWh bank with 80% DOD and 1% self-discharge per day was utilized [30]. The associated costs include $3,880 for initial and replacement expenses, $5 for Operations and Maintenance (O&M) costs, all over a battery lifetime of 25 years at an efficiency of 96%. The input power into the battery can be either positive or negative, depending on the battery’s state of charge (SOCBat), indicating whether it is in a charging or discharging state. The SOCBat values during charging (BCH) and discharging (BDIS) modes are calculated using the following equations [37]: (8) (9) (10) (11) (12) The equation involves the calculation of the total hourly power generated by the combined PV, WT, and biomass system, denoted as Pre(t). The efficiency factors for battery charging (ηCH) and discharging (ηDIS) play a crucial role, alongside the self-discharge rate represented by σ. 2.2 Objective function structure and system constraints The goal of optimizing this hybrid system is to achieve the most reliable and cost-effective operation. This is accomplished by minimizing two factors: Energy Cost (EC) and Loss of Power Supply Probability (LPSP). Additionally, the power absorbed by the dummy load is considered. To achieve this optimal balance, four continuous decision variables need to be adjusted: Npv: Number of photovoltaic (PV) panels Nwt: Number of wind turbines NBG: Number of biomass gasifier units NB: Number of batteries The following equations represent the objective function along with the established constraints. (13)(14)(15)(16)(17)(18)(19)(20)(21)(22) The weights, α1,α2, and α3, are determined through a trial-and-error process to achieve the best possible outcome. In this study, their values are set to 0.3, 0.5, and 0.2, respectively, with the sum restricted to be less than 1. 2.3 Cost of Energy (COE) This section explains how to calculate three key costs associated with the hybrid system: total annual cost (), energy cost (COE), and net present cost (NPC). Our primary goal is to optimize the system for reliable power delivery at the lowest possible overall cost, COE. (23)(24)(25)(26) The total annual cost () considers various expenses associated with the hybrid system: : Total annualized cost of all system components. : Annual interest accrued on the initial capital investment. : Annual cost of fuel used by the biomass gasifier units. CO&M: Annual operation and maintenance costs for each subsystem within the hybrid system. Crep: Annual replacement cost for each subsystem, considering their lifespan. To calculate the annualized costs, a Capital Recovery Factor (CRF) is used. This factor considers the interest rate (r = 6%) and the system’s lifespan (S = 25 years). Additionally, represents the total energy demand of the system throughout a year (8760 hours). 2.4 Energy management strategy This study explores a hybrid energy system that relies primarily on renewable sources like solar panels (PV), wind turbines, and biomass gasification. Battery banks act as a backup to ensure uninterrupted power flow and system reliability. The power management strategy focuses on utilizing renewable energy and inverter power to meet the designated load demands, where Pinv = PL(t)/ηinv. Fig 2 offers a clear view of the flowchart outlining the proposed system’s operating strategy. When renewable generation capacity perfectly matches the load demand (t), there’s no change in battery storage (unchanged capacity). Consequently, the Loss of Power Supply (LPS) for this time period is zero (LPS(t) = 0) If renewable energy generation exceeds the load demand (t) and the battery isn’t fully charged, the excess power will be used to charge the battery. Upon reaching its maximum charge state (SOCBat(t) = SOCBat(t−1)), the battery ceases further energy intake. To prevent the hybrid system from exceeding its output capacity, any additional power is diverted to a dedicated "dummy load" for dissipation. In instances where renewable generation falls short of the load demand (t) and the battery state of charge exceeds the minimum threshold (if Pre(t) < Pinv(t) and SOCBat(t−1)*(1−σ)>SOCmin), the battery storage system will discharge to bridge the gap and satisfy the load requirement. Download: PPT PowerPoint slide PNG larger image TIFF original image Fig 2. Energy management strategy of the proposed system. https://doi.org/10.1371/journal.pone.0317757.g002 2.1 Modeling of the proposed system As depicted in Fig 1, the proposed hybrid power system comprises key components such as PV panels, a wind farm, a Biomass Gasifier with a syngas engine, a battery bank, a dump load, and an inverter. PV panels, wind farm, and Biomass generators are employed to fulfill the load demand, with any surplus energy exceeding the demand utilized to charge the battery banks when available. The energy stored within the battery banks is subsequently utilized to meet the load requirements during periods of low energy production by the PV, wind, and biomass systems. Additionally, a dump load, functioning as an electrical resistance heater, is integrated into the system to manage the full generated capacity, thereby preventing the battery from overcharging. This comprehensive setup ensures efficient utilization of renewable energy sources and effective management of energy fluctuations to sustain continuous power supply. Download: PPT PowerPoint slide PNG larger image TIFF original image Fig 1. Schematic diagram of the studied off grid hybrid energy system. https://doi.org/10.1371/journal.pone.0317757.g001 2.1.1 Solar photovoltaic system modelling. Modeling the PV system within hybrid energy systems involves a meticulous process to accurately represent its behavior and interactions with other renewable sources. The PV system model typically includes various components to simulate its performance under different conditions. The present study uses a simulation model to assess the performance of the PV module, with Eq (1) applied to determine the output power of the PV generator [31,32]: (1) Here, KT = −3.7×10−3(1°C) for monocrystalline and polycrystalline silicon. Additionally, based on the energy balance, it was suggested that TC can be expressed as follows in Eq (2): (2) Where NOCT = 43°C. 2.1.2 Wind system modelling. Wind energy stands out as a renewable energy source that operates without generating any greenhouse gas emissions. The wind turbine, comprising three fundamental components, namely the tower, the blades facilitating airflow for rotation, and the generator, plays a pivotal role in this energy conversion process [33]. When wind passes through the blades, part of its kinetic energy is transferred to the generator, where it is converted into electrical energy. The amount of electrical energy generated by a wind turbine (WT) depends on both the wind speed and the design of the blades. Consequently, wind turbines utilized for industrial electricity or lighting purposes are typically erected atop tall towers. The wind speed, which escalates with altitude above ground level, can be calculated at a specific height H2 using the equation below [33,34]: (3) Here, S1 and S2 represent the wind speed at reference point H1 and at the turbine hub height H2, respectively. βwt denotes the WT friction coefficient, which, according to the International Electrotechnical Committee (IEC) for normal wind conditions and 0.11 for more intense wind conditions. The power generated by wind turbines (Pwt) can be expressed through the following equation [31]: (4) In this equation, S(t) represents the wind speed at time t, while and denote the cut-in and cut-off wind speeds, respectively. Furthermore, Nwt stands for the number of wind turbines, ηwt represents the efficiency of the wind turbine, and is the rated power of the wind turbine. This model serves to accurately predict the power generation capabilities of the wind turbine within the hybrid energy system, considering the varying wind speeds and operational conditions. 2.1.3 Biomass generator modelling. Biomass resources encompass a diverse array of natural and derived materials, including woody and herbaceous species, wood waste, bagasse, agricultural and industrial residues, waste paper, municipal solid waste (MSW), sawdust, bio-solids, grass, food processing waste, animal byproducts, aquatic plants, and algae. These resources primarily consist of three major organic components: cellulose, hemicelluloses, and lignin. The majority of biomass energy production stems from wood and wood waste (comprising 64%), followed by MSW (24%), agricultural waste (5%), and landfill gases (5%). There are three primary methods for utilizing biomass: it can be combusted to generate heat and electricity, converted into gas-like fuels such as methane, hydrogen, and carbon monoxide, or transformed into liquid fuels. Liquid fuels, known as biofuels, predominantly manifest as two forms of alcohol: ethanol and methanol. The direct conversion of biomass into liquid fuels holds promise as a substantial source for meeting transportation fuel demands for cars, trucks, buses, airplanes, and trains. This becomes particularly significant given that approximately one-third of our nation’s energy is currently allocated to transportation needs. Within the Kingdom of Saudi Arabia (KSA), major biomass resources include municipal solid wastes (MSWs), agricultural crops and residues, and sewage (water-carried waste). The estimated potentials for biomass energy over the next 20 years, especially in electricity generation for the KSA, are outlined in Table 1. Download: PPT PowerPoint slide PNG larger image TIFF original image Table 1. Estimated Bio-energy potential from various biomass sources in the kingdom of Saudi Arabia for the years 2014 and 2034. https://doi.org/10.1371/journal.pone.0317757.t001 In this investigation, we utilize agricultural crops and residues as the primary biomass input for the gasifier. Here, the biomass particles undergo decomposition at temperatures exceeding 700 degrees Celsius. This decomposition process unfolds in four distinct stages, facilitated by the gasification agent, which, in this case, is air. Through this process, the particles recombine to generate a synthetic gas known as syngas. This syngas serves as the fuel for turbines, which, in turn, generate electricity [35]. The efficiency of the syngas, denoted as ηg, the output power of the generator, PBG, and the average fuel consumption per hour, FCons_BG, are determined using the following equations [35,36]: (5) (6) (7) Here, LHVpg represents the lower heat value of the product gas, while mpg signifies the mass flow of the product gas. Similarly, LHVB denotes the lower heat value of the biomass, with mB indicating the mass flow of biomass. The variable NBG represents the number of biomass generators employed, and Brated stands for the biomass consumption rate per hour (kg/h). Finally, PGrated signifies the rated power output of the biomass generator. 2.1.4 Battery energy storage system (BESS). The battery serves as a crucial component for storing electrical energy in a chemical form, later releasing it as needed in the form of electrical power. Its primary function is to store excess power generated by PV units, wind turbines (WTs), and the biomass system when production surpasses current load demands. When renewable sources fall short of meeting demand, or during system maintenance, the batteries begin discharging stored energy. This study includes a comparative analysis among the Flooded lead-acid, Lithium Ferro Phosphate (LFP), and Nickel Iron (Ni-Fe) Battery (Ni-Fe) batteries within the context of a PV/Biomass hybrid system. The objective of this comparison is to explore the impact of different battery types on the Net Present Cost (NPC) of the system. The lead-acid battery comprises distinct positive and negative electrodes, crafted from lead dioxide and metallic lead respectively. These electrodes are immersed within a diluted sulfuric acid electrolyte. Two common variants exist: the flooded lead-acid and sealed valve-regulated lead-acid (VRLA) solutions. Among these, the flooded lead-acid is the more economical option but necessitates regular maintenance, typically monthly, to monitor and replenish distilled water. Moreover, proper ventilation is crucial due to its emission of flammable gases. In this study, a 100 Ah, 4.8 kWh Flooded Lead Acid battery bank, comprising four batteries, each with 50% Depth of Discharge (DOD) and 0.5% self-discharge per day, was employed [30]. The associated costs include $672 for initial and replacement expenses, with $25 for Operations and Maintenance (O&M) costs, over a lifetime of 4 years at an efficiency of 85%. The Li-ion battery represents an advanced rechargeable alternative. During charging, Li+ ions are extracted from the cathode oxide compound and integrated into the anode lattice. The cathode boasts high potential yet a poor Li state, while the anode exhibits low potential but a high Li state [30]. Li-ion batteries offer numerous advantages over their counterparts, including high energy density (attributed to their elevated output voltage), exceptional efficiency, extended cycle life, and environmental sustainability. The Lithium Ferro Phosphate (LFP) battery, introduced in 1997, marked a significant reduction in lithium battery costs, facilitating widespread commercial usage. Distinguished by its thermal and cycling stability, safety features, and environmental robustness, the LFP battery stands out as one of the most promising Li-ion batteries for grid integration. In this context, a 102.4 Ah, 5.2 kWh LFP battery bank with 70% DOD and 0.033% self-discharge per day was employed [30]. The associated costs include an initial and replacement expense of $5,890, O&M costs of $2, all over a battery lifetime of 15 years at an efficiency of 95%. The Nickel-Iron (Ni-Fe) battery, comprising nickel (III) oxide-hydroxide positive plates and iron-based negative plates, operates with a potassium hydroxide electrolyte. Known for its robustness in challenging environments, the Ni-Fe battery boasts an extended lifespan, rendering it ideal for renewable energy backup applications. For this battery type, a 100 Ah, 4.8 kWh bank with 80% DOD and 1% self-discharge per day was utilized [30]. The associated costs include $3,880 for initial and replacement expenses, $5 for Operations and Maintenance (O&M) costs, all over a battery lifetime of 25 years at an efficiency of 96%. The input power into the battery can be either positive or negative, depending on the battery’s state of charge (SOCBat), indicating whether it is in a charging or discharging state. The SOCBat values during charging (BCH) and discharging (BDIS) modes are calculated using the following equations [37]: (8) (9) (10) (11) (12) The equation involves the calculation of the total hourly power generated by the combined PV, WT, and biomass system, denoted as Pre(t). The efficiency factors for battery charging (ηCH) and discharging (ηDIS) play a crucial role, alongside the self-discharge rate represented by σ. 2.1.1 Solar photovoltaic system modelling. Modeling the PV system within hybrid energy systems involves a meticulous process to accurately represent its behavior and interactions with other renewable sources. The PV system model typically includes various components to simulate its performance under different conditions. The present study uses a simulation model to assess the performance of the PV module, with Eq (1) applied to determine the output power of the PV generator [31,32]: (1) Here, KT = −3.7×10−3(1°C) for monocrystalline and polycrystalline silicon. Additionally, based on the energy balance, it was suggested that TC can be expressed as follows in Eq (2): (2) Where NOCT = 43°C. 2.1.2 Wind system modelling. Wind energy stands out as a renewable energy source that operates without generating any greenhouse gas emissions. The wind turbine, comprising three fundamental components, namely the tower, the blades facilitating airflow for rotation, and the generator, plays a pivotal role in this energy conversion process [33]. When wind passes through the blades, part of its kinetic energy is transferred to the generator, where it is converted into electrical energy. The amount of electrical energy generated by a wind turbine (WT) depends on both the wind speed and the design of the blades. Consequently, wind turbines utilized for industrial electricity or lighting purposes are typically erected atop tall towers. The wind speed, which escalates with altitude above ground level, can be calculated at a specific height H2 using the equation below [33,34]: (3) Here, S1 and S2 represent the wind speed at reference point H1 and at the turbine hub height H2, respectively. βwt denotes the WT friction coefficient, which, according to the International Electrotechnical Committee (IEC) for normal wind conditions and 0.11 for more intense wind conditions. The power generated by wind turbines (Pwt) can be expressed through the following equation [31]: (4) In this equation, S(t) represents the wind speed at time t, while and denote the cut-in and cut-off wind speeds, respectively. Furthermore, Nwt stands for the number of wind turbines, ηwt represents the efficiency of the wind turbine, and is the rated power of the wind turbine. This model serves to accurately predict the power generation capabilities of the wind turbine within the hybrid energy system, considering the varying wind speeds and operational conditions. 2.1.3 Biomass generator modelling. Biomass resources encompass a diverse array of natural and derived materials, including woody and herbaceous species, wood waste, bagasse, agricultural and industrial residues, waste paper, municipal solid waste (MSW), sawdust, bio-solids, grass, food processing waste, animal byproducts, aquatic plants, and algae. These resources primarily consist of three major organic components: cellulose, hemicelluloses, and lignin. The majority of biomass energy production stems from wood and wood waste (comprising 64%), followed by MSW (24%), agricultural waste (5%), and landfill gases (5%). There are three primary methods for utilizing biomass: it can be combusted to generate heat and electricity, converted into gas-like fuels such as methane, hydrogen, and carbon monoxide, or transformed into liquid fuels. Liquid fuels, known as biofuels, predominantly manifest as two forms of alcohol: ethanol and methanol. The direct conversion of biomass into liquid fuels holds promise as a substantial source for meeting transportation fuel demands for cars, trucks, buses, airplanes, and trains. This becomes particularly significant given that approximately one-third of our nation’s energy is currently allocated to transportation needs. Within the Kingdom of Saudi Arabia (KSA), major biomass resources include municipal solid wastes (MSWs), agricultural crops and residues, and sewage (water-carried waste). The estimated potentials for biomass energy over the next 20 years, especially in electricity generation for the KSA, are outlined in Table 1. Download: PPT PowerPoint slide PNG larger image TIFF original image Table 1. Estimated Bio-energy potential from various biomass sources in the kingdom of Saudi Arabia for the years 2014 and 2034. https://doi.org/10.1371/journal.pone.0317757.t001 In this investigation, we utilize agricultural crops and residues as the primary biomass input for the gasifier. Here, the biomass particles undergo decomposition at temperatures exceeding 700 degrees Celsius. This decomposition process unfolds in four distinct stages, facilitated by the gasification agent, which, in this case, is air. Through this process, the particles recombine to generate a synthetic gas known as syngas. This syngas serves as the fuel for turbines, which, in turn, generate electricity [35]. The efficiency of the syngas, denoted as ηg, the output power of the generator, PBG, and the average fuel consumption per hour, FCons_BG, are determined using the following equations [35,36]: (5) (6) (7) Here, LHVpg represents the lower heat value of the product gas, while mpg signifies the mass flow of the product gas. Similarly, LHVB denotes the lower heat value of the biomass, with mB indicating the mass flow of biomass. The variable NBG represents the number of biomass generators employed, and Brated stands for the biomass consumption rate per hour (kg/h). Finally, PGrated signifies the rated power output of the biomass generator. 2.1.4 Battery energy storage system (BESS). The battery serves as a crucial component for storing electrical energy in a chemical form, later releasing it as needed in the form of electrical power. Its primary function is to store excess power generated by PV units, wind turbines (WTs), and the biomass system when production surpasses current load demands. When renewable sources fall short of meeting demand, or during system maintenance, the batteries begin discharging stored energy. This study includes a comparative analysis among the Flooded lead-acid, Lithium Ferro Phosphate (LFP), and Nickel Iron (Ni-Fe) Battery (Ni-Fe) batteries within the context of a PV/Biomass hybrid system. The objective of this comparison is to explore the impact of different battery types on the Net Present Cost (NPC) of the system. The lead-acid battery comprises distinct positive and negative electrodes, crafted from lead dioxide and metallic lead respectively. These electrodes are immersed within a diluted sulfuric acid electrolyte. Two common variants exist: the flooded lead-acid and sealed valve-regulated lead-acid (VRLA) solutions. Among these, the flooded lead-acid is the more economical option but necessitates regular maintenance, typically monthly, to monitor and replenish distilled water. Moreover, proper ventilation is crucial due to its emission of flammable gases. In this study, a 100 Ah, 4.8 kWh Flooded Lead Acid battery bank, comprising four batteries, each with 50% Depth of Discharge (DOD) and 0.5% self-discharge per day, was employed [30]. The associated costs include $672 for initial and replacement expenses, with $25 for Operations and Maintenance (O&M) costs, over a lifetime of 4 years at an efficiency of 85%. The Li-ion battery represents an advanced rechargeable alternative. During charging, Li+ ions are extracted from the cathode oxide compound and integrated into the anode lattice. The cathode boasts high potential yet a poor Li state, while the anode exhibits low potential but a high Li state [30]. Li-ion batteries offer numerous advantages over their counterparts, including high energy density (attributed to their elevated output voltage), exceptional efficiency, extended cycle life, and environmental sustainability. The Lithium Ferro Phosphate (LFP) battery, introduced in 1997, marked a significant reduction in lithium battery costs, facilitating widespread commercial usage. Distinguished by its thermal and cycling stability, safety features, and environmental robustness, the LFP battery stands out as one of the most promising Li-ion batteries for grid integration. In this context, a 102.4 Ah, 5.2 kWh LFP battery bank with 70% DOD and 0.033% self-discharge per day was employed [30]. The associated costs include an initial and replacement expense of $5,890, O&M costs of $2, all over a battery lifetime of 15 years at an efficiency of 95%. The Nickel-Iron (Ni-Fe) battery, comprising nickel (III) oxide-hydroxide positive plates and iron-based negative plates, operates with a potassium hydroxide electrolyte. Known for its robustness in challenging environments, the Ni-Fe battery boasts an extended lifespan, rendering it ideal for renewable energy backup applications. For this battery type, a 100 Ah, 4.8 kWh bank with 80% DOD and 1% self-discharge per day was utilized [30]. The associated costs include $3,880 for initial and replacement expenses, $5 for Operations and Maintenance (O&M) costs, all over a battery lifetime of 25 years at an efficiency of 96%. The input power into the battery can be either positive or negative, depending on the battery’s state of charge (SOCBat), indicating whether it is in a charging or discharging state. The SOCBat values during charging (BCH) and discharging (BDIS) modes are calculated using the following equations [37]: (8) (9) (10) (11) (12) The equation involves the calculation of the total hourly power generated by the combined PV, WT, and biomass system, denoted as Pre(t). The efficiency factors for battery charging (ηCH) and discharging (ηDIS) play a crucial role, alongside the self-discharge rate represented by σ. 2.2 Objective function structure and system constraints The goal of optimizing this hybrid system is to achieve the most reliable and cost-effective operation. This is accomplished by minimizing two factors: Energy Cost (EC) and Loss of Power Supply Probability (LPSP). Additionally, the power absorbed by the dummy load is considered. To achieve this optimal balance, four continuous decision variables need to be adjusted: Npv: Number of photovoltaic (PV) panels Nwt: Number of wind turbines NBG: Number of biomass gasifier units NB: Number of batteries The following equations represent the objective function along with the established constraints. (13)(14)(15)(16)(17)(18)(19)(20)(21)(22) The weights, α1,α2, and α3, are determined through a trial-and-error process to achieve the best possible outcome. In this study, their values are set to 0.3, 0.5, and 0.2, respectively, with the sum restricted to be less than 1. 2.3 Cost of Energy (COE) This section explains how to calculate three key costs associated with the hybrid system: total annual cost (), energy cost (COE), and net present cost (NPC). Our primary goal is to optimize the system for reliable power delivery at the lowest possible overall cost, COE. (23)(24)(25)(26) The total annual cost () considers various expenses associated with the hybrid system: : Total annualized cost of all system components. : Annual interest accrued on the initial capital investment. : Annual cost of fuel used by the biomass gasifier units. CO&M: Annual operation and maintenance costs for each subsystem within the hybrid system. Crep: Annual replacement cost for each subsystem, considering their lifespan. To calculate the annualized costs, a Capital Recovery Factor (CRF) is used. This factor considers the interest rate (r = 6%) and the system’s lifespan (S = 25 years). Additionally, represents the total energy demand of the system throughout a year (8760 hours). 2.4 Energy management strategy This study explores a hybrid energy system that relies primarily on renewable sources like solar panels (PV), wind turbines, and biomass gasification. Battery banks act as a backup to ensure uninterrupted power flow and system reliability. The power management strategy focuses on utilizing renewable energy and inverter power to meet the designated load demands, where Pinv = PL(t)/ηinv. Fig 2 offers a clear view of the flowchart outlining the proposed system’s operating strategy. When renewable generation capacity perfectly matches the load demand (t), there’s no change in battery storage (unchanged capacity). Consequently, the Loss of Power Supply (LPS) for this time period is zero (LPS(t) = 0) If renewable energy generation exceeds the load demand (t) and the battery isn’t fully charged, the excess power will be used to charge the battery. Upon reaching its maximum charge state (SOCBat(t) = SOCBat(t−1)), the battery ceases further energy intake. To prevent the hybrid system from exceeding its output capacity, any additional power is diverted to a dedicated "dummy load" for dissipation. In instances where renewable generation falls short of the load demand (t) and the battery state of charge exceeds the minimum threshold (if Pre(t) < Pinv(t) and SOCBat(t−1)*(1−σ)>SOCmin), the battery storage system will discharge to bridge the gap and satisfy the load requirement. Download: PPT PowerPoint slide PNG larger image TIFF original image Fig 2. Energy management strategy of the proposed system. https://doi.org/10.1371/journal.pone.0317757.g002 3. Proposed methodology 3.1 Zebra optimization algorithm (ZOA) Zebras, originating from eastern and southern Africa, are equine animals renowned for their striking black-and-white striped coats. These stripes, typically running vertically along their necks and bodies, serve as effective camouflage against predators and also help fend off biting flies. The physical specifications of zebras are as follows: they measure between 210–300 cm in body length, possess tails ranging from 38–75 cm, stand at shoulder heights of 110–160 cm, and weigh anywhere from 175–450 kg. These animals are built for strength and agility, equipped with long, slender legs that allow them to achieve impressive speeds when needed [38]. Similar to other wild equines, zebras have a single toe on each foot, a long neck, and a head that aids in grazing on ground-level grass. Within their social structures, two key behaviors stand out: foraging and defense against predators. During foraging, a lead zebra paves the way for the herd, guiding them to grazing grounds. In the face of danger, zebras employ a zigzag escape pattern to evade predators. Occasionally, they also gather together to confuse or intimidate the threat. These behaviors underscore the adaptability and survival strategies of these remarkable animals in their natural habitat. 1) Initialization. ZOA functions as a population-based optimizer with zebras comprising its population. Mathematically, each zebra signifies a candidate solution within the search space, navigating across the landscape of potential solutions to explore the optimization problem’s variables. The position of each zebra within this search space dictates the values assigned to the decision variables. Consequently, each zebra, as a member of ZOA, can be conceptualized using a vector, where the elements of this vector correspond to the problem variables’ values. The collective group of zebras can be mathematically depicted through a matrix. Initially, the zebras’ positions within the search space are randomly allocated. The specifics of the ZOA population matrix are detailed in Eq (27) [38]. (27) In this context, let X denote the zebra population, where Xi represents the i-th zebra within this population. The value suggested by the ith zebra for the jth problem variable is denoted as xi,j. Here, N stands for the total number of population members (zebras), while m indicates the number of decision variables. Each zebra represents a potential solution to the optimization problem, allowing the objective function to be evaluated based on the specific values proposed by each zebra for the problem’s variables. The resulting values from this assessment are delineated as a vector using Eq (28). (28) Here, F denotes the vector comprising the values of the objective function, with Fi representing the objective function value attained for the i-th zebra. The comparison of these objective function values serves as an effective method to analyze the quality of their respective candidate solutions and pinpoint the optimal solution for the given problem. In scenarios involving minimization, the zebra with the lowest objective function value emerges as the ideal candidate solution. Conversely, in cases of maximization, the zebra with the highest objective function value stands out as the most optimal candidate. Since the positions of the zebras, and subsequently the values of the objective function, are updated in each iteration, it becomes imperative to identify the best candidate solution within each iteration as well. Two innate behaviors observed in wild zebras have been utilized to update members of ZOA. These behaviors encompass: (i) Foraging, and (ii) Defensive strategies against predators. 2) Phase 1: Foraging behavior. During the initial phase, adjustments are made to the population members based on simulations that mimic zebra behavior during their search for food. Zebras predominantly subsist on grasses and sedges, yet in instances of scarcity in their favored food sources, they may turn to buds, fruits, bark, roots, and leaves for sustenance. The amount of time zebras dedicate to feeding, ranging from 60–80 percent, is contingent upon the quality and availability of vegetation. Among the zebras, there exists a specific type known as the plains zebra, renowned as a trailblazing grazer. By consuming the less nutritious upper canopy of grasses, this zebra creates favorable conditions for other species that thrive on shorter, more nourishing grasses below. Within the ZOA framework, the top-performing member of the population is likened to this pioneer zebra, guiding other population members towards its position within the search space. Consequently, the process of updating the zebras’ positions during the foraging phase can be mathematically represented using Eqs (29) and (30) [38]. (29)(30) In the first phase, where represents the updated status of the i-th zebra, denotes its jth dimensional value, and is its new objective function value. PZ refers to the pioneer zebra, which stands as the best member, with PZj representing its j-th dimension. Here, r symbolizes a random number within the interval [0; 1]. Additionally, Iϵ[1,2] and if the parameter I equals 2, there will be significantly more alterations in the movement of the population. 3) Phase 2: Defensive strategies against predators. In the second phase of the ZOA, simulations are conducted to mimic the defense strategies of zebras against various predators. The primary predators of zebras include lions, cheetahs, leopards, wild dogs, brown hyenas, spotted hyenas, and crocodiles near water sources. Zebras’ defensive responses differ based on the predator they encounter. When facing lion attacks, zebras employ a zigzag escape pattern and random sideways movements. Against smaller predators like hyenas and wild dogs, zebras exhibit a more aggressive approach, aiming to confuse and intimidate the attackers by grouping together. In the ZOA design, it assumes that one of two conditions occurs with equal probability: either (i) the zebra is attacked by a lion, prompting an escape strategy, or (ii) other predators attack, leading to an offensive response. The first strategy, for lion attacks, involves zebras escaping from the immediate vicinity of the attack, mathematically represented by mode S1 File in Eq (5). In the second strategy, when other predators target a zebra, the herd members rally to the attacked zebra’s defense, creating a defensive formation to frighten and confuse the predator. This defensive strategy is mathematically described by mode S2 in Eq (31). When updating the positions of zebras, a new position is accepted if it improves the objective function’s value at that location. This updating condition is expressed in Eq (32) [38]. (31)(32) Here, represents the updated status of the i-th zebra following the second phase, with denoting its jth dimensional value, and indicating its new objective function value. The variable t signifies the iteration count, while T stands for the maximum number of iterations. R is a constant equal to 0.01, and PS represents the probability of randomly selecting one of two strategies within the interval [0; 1]. Additionally, AZ denotes the status of the zebra under attack, with AZj representing its jth dimensional value. The steps of the Zebra Optimization Algorithm are illustrated in flowcharts in Fig 3. Download: PPT PowerPoint slide PNG larger image TIFF original image Fig 3. Flowchart of ZOA. https://doi.org/10.1371/journal.pone.0317757.g003 3.2 Osprey optimization algorithm (OOA) The osprey, also known as the fish hawk, river hawk, and sea hawk, is a diurnal bird of prey known for its cosmopolitan range and fish-eating habits. Typically measuring 50–66 cm in length, weighing 0.9–2.1 kg, and boasting a wingspan of 127–180 cm, the osprey is depicted in Fig 4. Its distinctive features include: ➢ Deep-glossy brown upperparts, with a white breast that may exhibit streaks of brown, and pure white underparts. ➢ A white head adorned with a black mask extending across the eyes to the sides of the neck. ➢ Golden to brown irises and a pale blue, transparent nictitating membrane. ➢ White feet with black talons and a black bill complemented by a blue cere. ➢ The osprey is recognized for its long, narrow wings and a short tail. Download: PPT PowerPoint slide PNG larger image TIFF original image Fig 4. Osprey bird. https://doi.org/10.1371/journal.pone.0317757.g004 This piscivorous bird’s diet primarily consists of fish, comprising around 99% of its food intake. Typically, it captures live fish ranging from 150 to 300 grams and 25–35 centimeters in length, though it can handle fish anywhere from 50 grams to 2 kilograms. Ospreys possess exceptional vision, aiding them in spotting underwater prey. Flying at heights of 10–40 meters above the water’s surface, they locate fish beneath the water’s surface, then swiftly descend, dipping their feet in the water before diving to secure their catch. Once captured, the osprey carries its prey to a nearby perch, usually a rock, where it begins to consume it. These intelligent behaviors of hunting and positioning for consumption serve as the foundation for a potential new optimization algorithm. The proposed OOA approach integrates mathematical models based on these osprey behaviors, discussed in detail in the following sections. 1) Initialization. The proposed Optimization Osprey Algorithm (OOA) operates as a population-based method that seeks optimal solutions by leveraging the collective search capabilities of its members within the problem-solving domain through iterative processes. In this framework, each osprey within the OOA population defines values for problem variables based on its specific location within the search space. Consequently, each osprey represents a potential solution to the problem, structured mathematically as a vector. The collective of ospreys constitutes the OOA population, which can be represented as a matrix, as described in Eq (33). Initially, during the commencement of OOA execution, the positions of ospreys within the search space are randomly set using Eq (34). (33)(34) Here, X represents the matrix of ospreys’ positions within the population, where Xi denotes the ith osprey (a potential solution), xi,j signifies its jth dimension (a problem variable), N stands for the total number of ospreys, and m represents the number of problem variables. The values ri,j are random numbers falling within the range [0, 1], while lbj and ubj indicate the lower and upper bounds, respectively, for the j-th problem variable. Since each osprey serves as a potential solution to the problem, the corresponding objective function can be assessed for each osprey. The resulting evaluations of the problem’s objective function can be illustrated as a vector, as demonstrated in Eq (35). (35) Here, F represents the vector containing the values of the objective function, where Fi denotes the specific objective function value obtained for the i-th osprey. Phase 1: Position identification and hunting the fish Ospreys exhibit remarkable hunting abilities, using their strong eyesight to detect fish locations underwater. Once they pinpoint the fish, ospreys dive underwater to capture their prey. The initial phase of population updating in OOA is inspired by this natural behavior of ospreys. Simulating the osprey’s hunting technique results in substantial adjustments to the osprey’s position within the search space, thereby enhancing OOA’s exploration capabilities to pinpoint optimal regions and evade local optima. In the OOA design, each osprey considers the positions of other ospreys in the search space with superior objective function values as underwater prey. The collection of potential prey for each osprey is defined using Eq (36) [39]. (36) where FPi is the set of fish positions for the i th osprey and Xbest is the best candidate solution (the best osprey). The osprey randomly detects the position of one of these fish and attacks it. Based on the simulation of the movement of the osprey towards the fish, a new position for the corresponding osprey is calculated using (37). This new position, if it improves the value of the objective function, replaces the previous position of the osprey according to (38) [39]. (37)(38) Here, denotes the updated position of the i-th osprey following the first phase of the OOA. The term xP1i,j represents its jth dimension, while indicates its corresponding objective function value. SFi refers to the fish selected by the ith osprey, with SFi,j representing its jth dimension. Additionally, ri,j represents random numbers within the range [0, 1], and Ii,j are random numbers selected from the set [1,2]. Phase 2: Carrying the fish to the suitable position After successfully capturing a fish, the osprey transports it to a secure and suitable location for consumption. The second phase of population updating in OOA is inspired by this natural behavior of ospreys. By simulating the act of carrying the fish to a safe spot, minor adjustments are made to the osprey’s position within the search space. This adjustment enhances OOA’s exploitation power, aiding in local search refinement and convergence towards improved solutions near the identified ones. In the OOA design, to emulate this osprey behavior, a new random position is initially computed for each population member, designated as a ’suitable fish-eating position,’ as outlined in Eq (39). Subsequently, if this new position yields an enhanced objective function value, it supplants the previous position of the corresponding osprey, as illustrated in Eq (40). This process mirrors the osprey’s natural instinct, contributing to the algorithm’s effectiveness in refining solutions and converging towards optimal outcomes [39]. (39)(40) Here, represents the updated position of the i-th osprey following the second phase of OOA. The term denotes its jth dimension, while indicates its corresponding objective function value. The values of ri,j are randomly selected from the interval [0, 1]. Additionally, t serves as the iteration counter of the algorithm, and T signifies the total number of iterations. The procedural steps for implementing OOA are illustrated in the flowchart depicted in Fig 5. Download: PPT PowerPoint slide PNG larger image TIFF original image Fig 5. Flowchart of OOA. https://doi.org/10.1371/journal.pone.0317757.g005 3.3 Flying foxes optimization (FFO) Flying foxes, among the world’s largest bat species, rely primarily on their keen eyesight for navigation as they lack echolocation abilities. Unfortunately, many flying fox species are currently facing the threat of extinction, and these remarkable creatures encounter substantial challenges, particularly during heatwaves, which significantly disrupt their daily routines. Throughout the night, flying foxes diligently search their surroundings for food and return to their roosts come morning. As the daytime temperatures soar, they employ their wings as a protective shield against the heat. This behavior persists until they become fatigued and drained by noon. At this point, the flying foxes grapple with dehydration and struggle to breathe [40]. In their parched and distressed state, the flying foxes actively seek out cooler trees to find relief. During this time, they may either follow one another or independently search for a suitable tree. Unfortunately, a common occurrence is that the first bats to locate a cooler tree are swiftly overwhelmed and suffocated by the influx of numerous other bats desperately seeking respite. This tragic scenario results in the suffocation and loss of a significant number of flying foxes [40]. The Flying Foxes Optimization (FFO) is a stochastic algorithm rooted in the survival strategies employed by flying foxes in coping with elevated temperatures. FFO utilizes a hybrid algorithmic structure, amalgamating operators from established algorithms. The effectiveness of FFO is notably influenced by factors such as the population size (N), the replacement list (RL), and the attraction constant (b). Flying foxes are among the largest bat species, and their spatial navigation relies on their keen environmental awareness, as they lack echolocation abilities. Following their nightly feeding, they return to their habitat trees. Flying foxes actively search for cooler trees to perch on, seeking refuge from the increasing morning heatwaves. Unfortunately, in many cases, those that are the first to discover a sufficiently cool tree often become overwhelmed by other flying foxes and meet a tragic fate due to suffocation. This innovative algorithmic approach commences by assembling an initial collection of positions derived from various flying foxes. These positions are represented as a vector, denoted as x = (x1,…, xm), featuring elements in a multi-dimensional space (m). Subsequently, the objective function is applied to assess these positions, reflecting the flying foxes’ quest to find cooler trees to ensure their survival amid elevated temperatures. This optimization process emulates the natural behavior of flying foxes as they seek refuge in favorable environments. The movement patterns of flying foxes involve a process where they either follow the paths of their peers or actively seek out the closest available tree when their current habitat tree fails to provide a suitable minimum temperature to escape the intense heat. This movement can be mathematically described by the following equation [40]: (41) , the specific components of FF(i) denoted as during iteration t, a constant value a, a random factor rand~U(0,1), and the location of the flying fox situated in the tree with the lowest temperature, referred to as "cool." Eq (18) comes into play when the difference between the temperature at "cool" and the temperature at xi, represented by |f(cool)−f(xi)|, exceeds a certain threshold . In this context, "cool" represents the position of the flying fox in the coolest spot ever identified, which corresponds to the best solution found thus far. The parameter δ1 defines the maximum distance within which two flying foxes are considered to be in proximity to each other. When a flying fox approaches a tree with the lowest temperature and the difference in temperatures |f(cool)−f(xi)| is less than or equal to , it seeks out the nearest available space to prevent overcrowding. Subsequent equations will provide further clarification on this behavior [40]. (42)(43) In this context, rand~U(0,1) represents a random number uniformly distributed between 0 and 1, and rndj is another arbitrary number within the same range. The variables and refer to two random members selected from the current population, while Pa represents a constant probability. Lastly, the variable k is chosen randomly from the set {1,2,…,m}, ensuring that at least one element from is incorporated into , thus preventing any duplication between the original and new solutions. A thorough evaluation of these computed solutions takes place. If a flying fox discovers the tree with the lowest temperature during this process, it is considered a new solution. Conversely, if it doesn’t find the coolest tree, it returns to its previous location. The demise of flying foxes can be attributed to various factors. For example, they might find themselves in a highly remote area with extreme heat while searching for the coolest tree, making it impossible for them to survive. In such situations, an alternative approach involves utilizing a Replacement List (RL) containing the unique optimal solutions from the NL (number of unique optimal solutions) available. An arbitrary integer, denoted as n and falling within the range of 2 to NL, is generated. The equation below illustrates how the position of a newly-created flying fox can be determined [40]: (44) where is the k-th flying fox on the RL during t reiteration. Eq (44) is geared towards maximizing the possibility of spotting an adequate region. Flying foxes may also face mortality due to overcrowding by fellow population members. In such instances, a probability is calculated before concluding an iteration, taking into account the number of flying foxes located in the regions with the lowest temperature. This probability can be represented as follows [40]: (45) Here, nc is closely tied to the count of flying foxes having objective functions similar to the optimal solution. Genetic crossover is employed to enable the mating of two flying foxes. The first step is to randomly choose two parents from the population, ensuring they are distinct. The crossover process results in the creation of two offspring, and this generation occurs as follows [40]: (46) R1 and R2 are unique members of the population chosen at random, and L is a randomly generated value within the range of 0 to 1. 3.1 Zebra optimization algorithm (ZOA) Zebras, originating from eastern and southern Africa, are equine animals renowned for their striking black-and-white striped coats. These stripes, typically running vertically along their necks and bodies, serve as effective camouflage against predators and also help fend off biting flies. The physical specifications of zebras are as follows: they measure between 210–300 cm in body length, possess tails ranging from 38–75 cm, stand at shoulder heights of 110–160 cm, and weigh anywhere from 175–450 kg. These animals are built for strength and agility, equipped with long, slender legs that allow them to achieve impressive speeds when needed [38]. Similar to other wild equines, zebras have a single toe on each foot, a long neck, and a head that aids in grazing on ground-level grass. Within their social structures, two key behaviors stand out: foraging and defense against predators. During foraging, a lead zebra paves the way for the herd, guiding them to grazing grounds. In the face of danger, zebras employ a zigzag escape pattern to evade predators. Occasionally, they also gather together to confuse or intimidate the threat. These behaviors underscore the adaptability and survival strategies of these remarkable animals in their natural habitat. 1) Initialization. ZOA functions as a population-based optimizer with zebras comprising its population. Mathematically, each zebra signifies a candidate solution within the search space, navigating across the landscape of potential solutions to explore the optimization problem’s variables. The position of each zebra within this search space dictates the values assigned to the decision variables. Consequently, each zebra, as a member of ZOA, can be conceptualized using a vector, where the elements of this vector correspond to the problem variables’ values. The collective group of zebras can be mathematically depicted through a matrix. Initially, the zebras’ positions within the search space are randomly allocated. The specifics of the ZOA population matrix are detailed in Eq (27) [38]. (27) In this context, let X denote the zebra population, where Xi represents the i-th zebra within this population. The value suggested by the ith zebra for the jth problem variable is denoted as xi,j. Here, N stands for the total number of population members (zebras), while m indicates the number of decision variables. Each zebra represents a potential solution to the optimization problem, allowing the objective function to be evaluated based on the specific values proposed by each zebra for the problem’s variables. The resulting values from this assessment are delineated as a vector using Eq (28). (28) Here, F denotes the vector comprising the values of the objective function, with Fi representing the objective function value attained for the i-th zebra. The comparison of these objective function values serves as an effective method to analyze the quality of their respective candidate solutions and pinpoint the optimal solution for the given problem. In scenarios involving minimization, the zebra with the lowest objective function value emerges as the ideal candidate solution. Conversely, in cases of maximization, the zebra with the highest objective function value stands out as the most optimal candidate. Since the positions of the zebras, and subsequently the values of the objective function, are updated in each iteration, it becomes imperative to identify the best candidate solution within each iteration as well. Two innate behaviors observed in wild zebras have been utilized to update members of ZOA. These behaviors encompass: (i) Foraging, and (ii) Defensive strategies against predators. 2) Phase 1: Foraging behavior. During the initial phase, adjustments are made to the population members based on simulations that mimic zebra behavior during their search for food. Zebras predominantly subsist on grasses and sedges, yet in instances of scarcity in their favored food sources, they may turn to buds, fruits, bark, roots, and leaves for sustenance. The amount of time zebras dedicate to feeding, ranging from 60–80 percent, is contingent upon the quality and availability of vegetation. Among the zebras, there exists a specific type known as the plains zebra, renowned as a trailblazing grazer. By consuming the less nutritious upper canopy of grasses, this zebra creates favorable conditions for other species that thrive on shorter, more nourishing grasses below. Within the ZOA framework, the top-performing member of the population is likened to this pioneer zebra, guiding other population members towards its position within the search space. Consequently, the process of updating the zebras’ positions during the foraging phase can be mathematically represented using Eqs (29) and (30) [38]. (29)(30) In the first phase, where represents the updated status of the i-th zebra, denotes its jth dimensional value, and is its new objective function value. PZ refers to the pioneer zebra, which stands as the best member, with PZj representing its j-th dimension. Here, r symbolizes a random number within the interval [0; 1]. Additionally, Iϵ[1,2] and if the parameter I equals 2, there will be significantly more alterations in the movement of the population. 3) Phase 2: Defensive strategies against predators. In the second phase of the ZOA, simulations are conducted to mimic the defense strategies of zebras against various predators. The primary predators of zebras include lions, cheetahs, leopards, wild dogs, brown hyenas, spotted hyenas, and crocodiles near water sources. Zebras’ defensive responses differ based on the predator they encounter. When facing lion attacks, zebras employ a zigzag escape pattern and random sideways movements. Against smaller predators like hyenas and wild dogs, zebras exhibit a more aggressive approach, aiming to confuse and intimidate the attackers by grouping together. In the ZOA design, it assumes that one of two conditions occurs with equal probability: either (i) the zebra is attacked by a lion, prompting an escape strategy, or (ii) other predators attack, leading to an offensive response. The first strategy, for lion attacks, involves zebras escaping from the immediate vicinity of the attack, mathematically represented by mode S1 File in Eq (5). In the second strategy, when other predators target a zebra, the herd members rally to the attacked zebra’s defense, creating a defensive formation to frighten and confuse the predator. This defensive strategy is mathematically described by mode S2 in Eq (31). When updating the positions of zebras, a new position is accepted if it improves the objective function’s value at that location. This updating condition is expressed in Eq (32) [38]. (31)(32) Here, represents the updated status of the i-th zebra following the second phase, with denoting its jth dimensional value, and indicating its new objective function value. The variable t signifies the iteration count, while T stands for the maximum number of iterations. R is a constant equal to 0.01, and PS represents the probability of randomly selecting one of two strategies within the interval [0; 1]. Additionally, AZ denotes the status of the zebra under attack, with AZj representing its jth dimensional value. The steps of the Zebra Optimization Algorithm are illustrated in flowcharts in Fig 3. Download: PPT PowerPoint slide PNG larger image TIFF original image Fig 3. Flowchart of ZOA. https://doi.org/10.1371/journal.pone.0317757.g003 1) Initialization. ZOA functions as a population-based optimizer with zebras comprising its population. Mathematically, each zebra signifies a candidate solution within the search space, navigating across the landscape of potential solutions to explore the optimization problem’s variables. The position of each zebra within this search space dictates the values assigned to the decision variables. Consequently, each zebra, as a member of ZOA, can be conceptualized using a vector, where the elements of this vector correspond to the problem variables’ values. The collective group of zebras can be mathematically depicted through a matrix. Initially, the zebras’ positions within the search space are randomly allocated. The specifics of the ZOA population matrix are detailed in Eq (27) [38]. (27) In this context, let X denote the zebra population, where Xi represents the i-th zebra within this population. The value suggested by the ith zebra for the jth problem variable is denoted as xi,j. Here, N stands for the total number of population members (zebras), while m indicates the number of decision variables. Each zebra represents a potential solution to the optimization problem, allowing the objective function to be evaluated based on the specific values proposed by each zebra for the problem’s variables. The resulting values from this assessment are delineated as a vector using Eq (28). (28) Here, F denotes the vector comprising the values of the objective function, with Fi representing the objective function value attained for the i-th zebra. The comparison of these objective function values serves as an effective method to analyze the quality of their respective candidate solutions and pinpoint the optimal solution for the given problem. In scenarios involving minimization, the zebra with the lowest objective function value emerges as the ideal candidate solution. Conversely, in cases of maximization, the zebra with the highest objective function value stands out as the most optimal candidate. Since the positions of the zebras, and subsequently the values of the objective function, are updated in each iteration, it becomes imperative to identify the best candidate solution within each iteration as well. Two innate behaviors observed in wild zebras have been utilized to update members of ZOA. These behaviors encompass: (i) Foraging, and (ii) Defensive strategies against predators. 2) Phase 1: Foraging behavior. During the initial phase, adjustments are made to the population members based on simulations that mimic zebra behavior during their search for food. Zebras predominantly subsist on grasses and sedges, yet in instances of scarcity in their favored food sources, they may turn to buds, fruits, bark, roots, and leaves for sustenance. The amount of time zebras dedicate to feeding, ranging from 60–80 percent, is contingent upon the quality and availability of vegetation. Among the zebras, there exists a specific type known as the plains zebra, renowned as a trailblazing grazer. By consuming the less nutritious upper canopy of grasses, this zebra creates favorable conditions for other species that thrive on shorter, more nourishing grasses below. Within the ZOA framework, the top-performing member of the population is likened to this pioneer zebra, guiding other population members towards its position within the search space. Consequently, the process of updating the zebras’ positions during the foraging phase can be mathematically represented using Eqs (29) and (30) [38]. (29)(30) In the first phase, where represents the updated status of the i-th zebra, denotes its jth dimensional value, and is its new objective function value. PZ refers to the pioneer zebra, which stands as the best member, with PZj representing its j-th dimension. Here, r symbolizes a random number within the interval [0; 1]. Additionally, Iϵ[1,2] and if the parameter I equals 2, there will be significantly more alterations in the movement of the population. 3) Phase 2: Defensive strategies against predators. In the second phase of the ZOA, simulations are conducted to mimic the defense strategies of zebras against various predators. The primary predators of zebras include lions, cheetahs, leopards, wild dogs, brown hyenas, spotted hyenas, and crocodiles near water sources. Zebras’ defensive responses differ based on the predator they encounter. When facing lion attacks, zebras employ a zigzag escape pattern and random sideways movements. Against smaller predators like hyenas and wild dogs, zebras exhibit a more aggressive approach, aiming to confuse and intimidate the attackers by grouping together. In the ZOA design, it assumes that one of two conditions occurs with equal probability: either (i) the zebra is attacked by a lion, prompting an escape strategy, or (ii) other predators attack, leading to an offensive response. The first strategy, for lion attacks, involves zebras escaping from the immediate vicinity of the attack, mathematically represented by mode S1 File in Eq (5). In the second strategy, when other predators target a zebra, the herd members rally to the attacked zebra’s defense, creating a defensive formation to frighten and confuse the predator. This defensive strategy is mathematically described by mode S2 in Eq (31). When updating the positions of zebras, a new position is accepted if it improves the objective function’s value at that location. This updating condition is expressed in Eq (32) [38]. (31)(32) Here, represents the updated status of the i-th zebra following the second phase, with denoting its jth dimensional value, and indicating its new objective function value. The variable t signifies the iteration count, while T stands for the maximum number of iterations. R is a constant equal to 0.01, and PS represents the probability of randomly selecting one of two strategies within the interval [0; 1]. Additionally, AZ denotes the status of the zebra under attack, with AZj representing its jth dimensional value. The steps of the Zebra Optimization Algorithm are illustrated in flowcharts in Fig 3. Download: PPT PowerPoint slide PNG larger image TIFF original image Fig 3. Flowchart of ZOA. https://doi.org/10.1371/journal.pone.0317757.g003 3.2 Osprey optimization algorithm (OOA) The osprey, also known as the fish hawk, river hawk, and sea hawk, is a diurnal bird of prey known for its cosmopolitan range and fish-eating habits. Typically measuring 50–66 cm in length, weighing 0.9–2.1 kg, and boasting a wingspan of 127–180 cm, the osprey is depicted in Fig 4. Its distinctive features include: ➢ Deep-glossy brown upperparts, with a white breast that may exhibit streaks of brown, and pure white underparts. ➢ A white head adorned with a black mask extending across the eyes to the sides of the neck. ➢ Golden to brown irises and a pale blue, transparent nictitating membrane. ➢ White feet with black talons and a black bill complemented by a blue cere. ➢ The osprey is recognized for its long, narrow wings and a short tail. Download: PPT PowerPoint slide PNG larger image TIFF original image Fig 4. Osprey bird. https://doi.org/10.1371/journal.pone.0317757.g004 This piscivorous bird’s diet primarily consists of fish, comprising around 99% of its food intake. Typically, it captures live fish ranging from 150 to 300 grams and 25–35 centimeters in length, though it can handle fish anywhere from 50 grams to 2 kilograms. Ospreys possess exceptional vision, aiding them in spotting underwater prey. Flying at heights of 10–40 meters above the water’s surface, they locate fish beneath the water’s surface, then swiftly descend, dipping their feet in the water before diving to secure their catch. Once captured, the osprey carries its prey to a nearby perch, usually a rock, where it begins to consume it. These intelligent behaviors of hunting and positioning for consumption serve as the foundation for a potential new optimization algorithm. The proposed OOA approach integrates mathematical models based on these osprey behaviors, discussed in detail in the following sections. 1) Initialization. The proposed Optimization Osprey Algorithm (OOA) operates as a population-based method that seeks optimal solutions by leveraging the collective search capabilities of its members within the problem-solving domain through iterative processes. In this framework, each osprey within the OOA population defines values for problem variables based on its specific location within the search space. Consequently, each osprey represents a potential solution to the problem, structured mathematically as a vector. The collective of ospreys constitutes the OOA population, which can be represented as a matrix, as described in Eq (33). Initially, during the commencement of OOA execution, the positions of ospreys within the search space are randomly set using Eq (34). (33)(34) Here, X represents the matrix of ospreys’ positions within the population, where Xi denotes the ith osprey (a potential solution), xi,j signifies its jth dimension (a problem variable), N stands for the total number of ospreys, and m represents the number of problem variables. The values ri,j are random numbers falling within the range [0, 1], while lbj and ubj indicate the lower and upper bounds, respectively, for the j-th problem variable. Since each osprey serves as a potential solution to the problem, the corresponding objective function can be assessed for each osprey. The resulting evaluations of the problem’s objective function can be illustrated as a vector, as demonstrated in Eq (35). (35) Here, F represents the vector containing the values of the objective function, where Fi denotes the specific objective function value obtained for the i-th osprey. 1) Initialization. The proposed Optimization Osprey Algorithm (OOA) operates as a population-based method that seeks optimal solutions by leveraging the collective search capabilities of its members within the problem-solving domain through iterative processes. In this framework, each osprey within the OOA population defines values for problem variables based on its specific location within the search space. Consequently, each osprey represents a potential solution to the problem, structured mathematically as a vector. The collective of ospreys constitutes the OOA population, which can be represented as a matrix, as described in Eq (33). Initially, during the commencement of OOA execution, the positions of ospreys within the search space are randomly set using Eq (34). (33)(34) Here, X represents the matrix of ospreys’ positions within the population, where Xi denotes the ith osprey (a potential solution), xi,j signifies its jth dimension (a problem variable), N stands for the total number of ospreys, and m represents the number of problem variables. The values ri,j are random numbers falling within the range [0, 1], while lbj and ubj indicate the lower and upper bounds, respectively, for the j-th problem variable. Since each osprey serves as a potential solution to the problem, the corresponding objective function can be assessed for each osprey. The resulting evaluations of the problem’s objective function can be illustrated as a vector, as demonstrated in Eq (35). (35) Here, F represents the vector containing the values of the objective function, where Fi denotes the specific objective function value obtained for the i-th osprey. Phase 1: Position identification and hunting the fish Ospreys exhibit remarkable hunting abilities, using their strong eyesight to detect fish locations underwater. Once they pinpoint the fish, ospreys dive underwater to capture their prey. The initial phase of population updating in OOA is inspired by this natural behavior of ospreys. Simulating the osprey’s hunting technique results in substantial adjustments to the osprey’s position within the search space, thereby enhancing OOA’s exploration capabilities to pinpoint optimal regions and evade local optima. In the OOA design, each osprey considers the positions of other ospreys in the search space with superior objective function values as underwater prey. The collection of potential prey for each osprey is defined using Eq (36) [39]. (36) where FPi is the set of fish positions for the i th osprey and Xbest is the best candidate solution (the best osprey). The osprey randomly detects the position of one of these fish and attacks it. Based on the simulation of the movement of the osprey towards the fish, a new position for the corresponding osprey is calculated using (37). This new position, if it improves the value of the objective function, replaces the previous position of the osprey according to (38) [39]. (37)(38) Here, denotes the updated position of the i-th osprey following the first phase of the OOA. The term xP1i,j represents its jth dimension, while indicates its corresponding objective function value. SFi refers to the fish selected by the ith osprey, with SFi,j representing its jth dimension. Additionally, ri,j represents random numbers within the range [0, 1], and Ii,j are random numbers selected from the set [1,2]. Phase 2: Carrying the fish to the suitable position After successfully capturing a fish, the osprey transports it to a secure and suitable location for consumption. The second phase of population updating in OOA is inspired by this natural behavior of ospreys. By simulating the act of carrying the fish to a safe spot, minor adjustments are made to the osprey’s position within the search space. This adjustment enhances OOA’s exploitation power, aiding in local search refinement and convergence towards improved solutions near the identified ones. In the OOA design, to emulate this osprey behavior, a new random position is initially computed for each population member, designated as a ’suitable fish-eating position,’ as outlined in Eq (39). Subsequently, if this new position yields an enhanced objective function value, it supplants the previous position of the corresponding osprey, as illustrated in Eq (40). This process mirrors the osprey’s natural instinct, contributing to the algorithm’s effectiveness in refining solutions and converging towards optimal outcomes [39]. (39)(40) Here, represents the updated position of the i-th osprey following the second phase of OOA. The term denotes its jth dimension, while indicates its corresponding objective function value. The values of ri,j are randomly selected from the interval [0, 1]. Additionally, t serves as the iteration counter of the algorithm, and T signifies the total number of iterations. The procedural steps for implementing OOA are illustrated in the flowchart depicted in Fig 5. Download: PPT PowerPoint slide PNG larger image TIFF original image Fig 5. Flowchart of OOA. https://doi.org/10.1371/journal.pone.0317757.g005 3.3 Flying foxes optimization (FFO) Flying foxes, among the world’s largest bat species, rely primarily on their keen eyesight for navigation as they lack echolocation abilities. Unfortunately, many flying fox species are currently facing the threat of extinction, and these remarkable creatures encounter substantial challenges, particularly during heatwaves, which significantly disrupt their daily routines. Throughout the night, flying foxes diligently search their surroundings for food and return to their roosts come morning. As the daytime temperatures soar, they employ their wings as a protective shield against the heat. This behavior persists until they become fatigued and drained by noon. At this point, the flying foxes grapple with dehydration and struggle to breathe [40]. In their parched and distressed state, the flying foxes actively seek out cooler trees to find relief. During this time, they may either follow one another or independently search for a suitable tree. Unfortunately, a common occurrence is that the first bats to locate a cooler tree are swiftly overwhelmed and suffocated by the influx of numerous other bats desperately seeking respite. This tragic scenario results in the suffocation and loss of a significant number of flying foxes [40]. The Flying Foxes Optimization (FFO) is a stochastic algorithm rooted in the survival strategies employed by flying foxes in coping with elevated temperatures. FFO utilizes a hybrid algorithmic structure, amalgamating operators from established algorithms. The effectiveness of FFO is notably influenced by factors such as the population size (N), the replacement list (RL), and the attraction constant (b). Flying foxes are among the largest bat species, and their spatial navigation relies on their keen environmental awareness, as they lack echolocation abilities. Following their nightly feeding, they return to their habitat trees. Flying foxes actively search for cooler trees to perch on, seeking refuge from the increasing morning heatwaves. Unfortunately, in many cases, those that are the first to discover a sufficiently cool tree often become overwhelmed by other flying foxes and meet a tragic fate due to suffocation. This innovative algorithmic approach commences by assembling an initial collection of positions derived from various flying foxes. These positions are represented as a vector, denoted as x = (x1,…, xm), featuring elements in a multi-dimensional space (m). Subsequently, the objective function is applied to assess these positions, reflecting the flying foxes’ quest to find cooler trees to ensure their survival amid elevated temperatures. This optimization process emulates the natural behavior of flying foxes as they seek refuge in favorable environments. The movement patterns of flying foxes involve a process where they either follow the paths of their peers or actively seek out the closest available tree when their current habitat tree fails to provide a suitable minimum temperature to escape the intense heat. This movement can be mathematically described by the following equation [40]: (41) , the specific components of FF(i) denoted as during iteration t, a constant value a, a random factor rand~U(0,1), and the location of the flying fox situated in the tree with the lowest temperature, referred to as "cool." Eq (18) comes into play when the difference between the temperature at "cool" and the temperature at xi, represented by |f(cool)−f(xi)|, exceeds a certain threshold . In this context, "cool" represents the position of the flying fox in the coolest spot ever identified, which corresponds to the best solution found thus far. The parameter δ1 defines the maximum distance within which two flying foxes are considered to be in proximity to each other. When a flying fox approaches a tree with the lowest temperature and the difference in temperatures |f(cool)−f(xi)| is less than or equal to , it seeks out the nearest available space to prevent overcrowding. Subsequent equations will provide further clarification on this behavior [40]. (42)(43) In this context, rand~U(0,1) represents a random number uniformly distributed between 0 and 1, and rndj is another arbitrary number within the same range. The variables and refer to two random members selected from the current population, while Pa represents a constant probability. Lastly, the variable k is chosen randomly from the set {1,2,…,m}, ensuring that at least one element from is incorporated into , thus preventing any duplication between the original and new solutions. A thorough evaluation of these computed solutions takes place. If a flying fox discovers the tree with the lowest temperature during this process, it is considered a new solution. Conversely, if it doesn’t find the coolest tree, it returns to its previous location. The demise of flying foxes can be attributed to various factors. For example, they might find themselves in a highly remote area with extreme heat while searching for the coolest tree, making it impossible for them to survive. In such situations, an alternative approach involves utilizing a Replacement List (RL) containing the unique optimal solutions from the NL (number of unique optimal solutions) available. An arbitrary integer, denoted as n and falling within the range of 2 to NL, is generated. The equation below illustrates how the position of a newly-created flying fox can be determined [40]: (44) where is the k-th flying fox on the RL during t reiteration. Eq (44) is geared towards maximizing the possibility of spotting an adequate region. Flying foxes may also face mortality due to overcrowding by fellow population members. In such instances, a probability is calculated before concluding an iteration, taking into account the number of flying foxes located in the regions with the lowest temperature. This probability can be represented as follows [40]: (45) Here, nc is closely tied to the count of flying foxes having objective functions similar to the optimal solution. Genetic crossover is employed to enable the mating of two flying foxes. The first step is to randomly choose two parents from the population, ensuring they are distinct. The crossover process results in the creation of two offspring, and this generation occurs as follows [40]: (46) R1 and R2 are unique members of the population chosen at random, and L is a randomly generated value within the range of 0 to 1. 4. Simulation results and discussion The technical and economic specifications of the proposed subsystems included in the isolated hybrid microgrid is presented in Table 2. The monthly average biomass materials available for utilization in the proposed area is demonstrated in the graph presented by Fig 6. While the annual solar irradiation, wind speed, average air temperature, and load demand in the proposed region are visualized in Figs 7–10 respectively. Download: PPT PowerPoint slide PNG larger image TIFF original image Fig 6. Available monthly biomass in the proposed area. https://doi.org/10.1371/journal.pone.0317757.g006 Download: PPT PowerPoint slide PNG larger image TIFF original image Fig 7. Available solar radiation in the proposed area. https://doi.org/10.1371/journal.pone.0317757.g007 Download: PPT PowerPoint slide PNG larger image TIFF original image Fig 8. Available wind speed in the proposed area. https://doi.org/10.1371/journal.pone.0317757.g008 Download: PPT PowerPoint slide PNG larger image TIFF original image Fig 9. Average daily air temperature in the proposed area. https://doi.org/10.1371/journal.pone.0317757.g009 Download: PPT PowerPoint slide PNG larger image TIFF original image Fig 10. Annual load demand in the proposed area. https://doi.org/10.1371/journal.pone.0317757.g010 Download: PPT PowerPoint slide PNG larger image TIFF original image Table 2. Technical and economic characteristics of the system components. https://doi.org/10.1371/journal.pone.0317757.t002 The optimization algorithms were executed using the Matlab software, with specific parameters set for each algorithm: Zebra Optimization Algorithm (ZOA): Number of search agents = 10, Maximum number of iterations = 50, dimension size = 4. Osprey Optimization Algorithm (OOA): Search Agents = 10, Maximum number of iterations = 50. Fly Foxes Optimization (FFO): Search Agents = 10, Maximum number of iterations = 50. Throughout this research, three optimal configurations of sustainable hybrid systems were explored, each employing different battery energy storage devices: Case (1): Flooded Lead Acid Case (2): Lithium Ferro Phosphate (LFP) Case (3): Nickel Iron Battery (Ni-Fe) To enhance the reliability and robustness of the proposed algorithms and mitigate the impact of randomness, the optimization program utilizing ZOA, OOA, and FFO techniques was executed 50 times. The minimum value of the objective function was recorded for each run. Each algorithm was consistently applied across all three case studies. The convergence behavior of the proposed hybrid cases using the ZOA, OOA, and FFO optimization algorithms is depicted in Fig 11 for 50 simulation runs. It is evident that the ZOA algorithm achieves final objective function values within a narrow range, signifying its stability in solving the optimization problem. For a more nuanced comparison, a comprehensive statistical analysis was conducted on the objective function values obtained from the 50 runs for all three cases. This analysis encompasses both parametric and nonparametric measures. The parametric measures include the minimum, maximum, and mean values of the objective function, while the nonparametric measures include the median, relative error (RE), mean absolute error (MAE), standard deviation (SD), and efficiency. Efficiency, in this context, refers to the ratio between the minimum objective function value and the mean value. Table 3 summarizes the statistical results for ZOA, OOA, and FFO across the three cases. Fig 12 visually presents the distribution of the objective function values over the 50 runs, corroborating the findings in Table 3. Based on the comprehensive analysis, it can be concluded that the proposed ZOA algorithm exhibits superior performance compared to the OOA algorithm. This conclusion is supported by the tighter convergence range of ZOA in Fig 12, as well as its consistently lower objective function values across various statistical measures in Table 3. Download: PPT PowerPoint slide PNG larger image TIFF original image Fig 11. Fitness function over the 50 runs. (A) FFO. (B) OOA. (C) ZOA. https://doi.org/10.1371/journal.pone.0317757.g011 Download: PPT PowerPoint slide PNG larger image TIFF original image Fig 12. Final values of the convergence curves over the 50 runs. https://doi.org/10.1371/journal.pone.0317757.g012 Download: PPT PowerPoint slide PNG larger image TIFF original image Table 3. Results of the statistical analysis for case 1. https://doi.org/10.1371/journal.pone.0317757.t003 The convergence curves for the best run within the 50 executions for all algorithms are presented in Fig 13. The results of the optimization process from the three proposed algorithms for case 1 are tabulated in Table 4. It is proved that the LPSP lies within the predefined constraints. The ZOA algorithm successes to supply the load with electricity at a rate of 0.128516381 $/kWh which is the minimum with respect to other algorithms. The distribution of the annual cost of the system with respect to the types of technology is tabulated in Table 5 and is presented graphically in the chart presented in Fig 14. Also, the division of the annual cost of each subsystem according to the type of cost is summarized in Table 6 and presented graphically in Fig 15. Download: PPT PowerPoint slide PNG larger image TIFF original image Fig 13. Convergence curves for case 1. https://doi.org/10.1371/journal.pone.0317757.g013 Download: PPT PowerPoint slide PNG larger image TIFF original image Fig 14. Annual cost divided between different subsystems for case 1. https://doi.org/10.1371/journal.pone.0317757.g014 Download: PPT PowerPoint slide PNG larger image TIFF original image Fig 15. Division of annual cost with respect to cost type for case 1. https://doi.org/10.1371/journal.pone.0317757.g015 Download: PPT PowerPoint slide PNG larger image TIFF original image Table 4. Optimization results of ZOA, OOA, and FFO for case 1. https://doi.org/10.1371/journal.pone.0317757.t004 Download: PPT PowerPoint slide PNG larger image TIFF original image Table 5. Annual cost distributed between system components for case 1. https://doi.org/10.1371/journal.pone.0317757.t005 Download: PPT PowerPoint slide PNG larger image TIFF original image Table 6. Different types of cost distributed between system components for case 1. https://doi.org/10.1371/journal.pone.0317757.t006 Similarly, the convergence behavior of the proposed hybrid system in case 2, using the ZOA, OOA, and FFO optimization algorithms, is depicted in Fig 16 for 50 simulation runs. Table 7 summarizes the statistical results for ZOA, OOA, and FFO across the three cases. Fig 17 visually presents the distribution of the objective function values over the 50 runs, corroborating the findings in Table 7. Based on the comprehensive analysis, it can be concluded that the proposed ZOA algorithm exhibits superior performance compared to the OOA algorithm. Download: PPT PowerPoint slide PNG larger image TIFF original image Fig 16. Fitness function over the 50 runs. (A) FFO. (B) OOA. (C) ZOA. https://doi.org/10.1371/journal.pone.0317757.g016 Download: PPT PowerPoint slide PNG larger image TIFF original image Fig 17. Final values of the convergence curves over the 50 runs. https://doi.org/10.1371/journal.pone.0317757.g017 Download: PPT PowerPoint slide PNG larger image TIFF original image Table 7. Results of the statistical analysis for case 2. https://doi.org/10.1371/journal.pone.0317757.t007 The convergence curves for the best run within the 50 executions for all algorithms are presented in Fig 18. The results of the optimization process from the three proposed algorithms for case 2 are tabulated in Table 8. It is proved that the LPSP lies within the predefined constraints. The ZOA algorithm successes to supply the load with electricity at a rate of 0.206554621 $/kWh which is the minimum with respect to other algorithms. The distribution of the annual cost of the system with respect to the types of technology is tabulated in Table 9 and is presented graphically in the chart presented in Fig 19. Also, the division of the annual cost of each subsystem according to the type of cost is summarized in Table 10 and presented graphically in Fig 20. Download: PPT PowerPoint slide PNG larger image TIFF original image Fig 18. Convergence curves for case 2. https://doi.org/10.1371/journal.pone.0317757.g018 Download: PPT PowerPoint slide PNG larger image TIFF original image Fig 19. Annual cost divided between different subsystems for case 2. https://doi.org/10.1371/journal.pone.0317757.g019 Download: PPT PowerPoint slide PNG larger image TIFF original image Fig 20. Division of annual cost with respect to cost type for case 2. https://doi.org/10.1371/journal.pone.0317757.g020 Download: PPT PowerPoint slide PNG larger image TIFF original image Table 8. Optimization results of ZOA, OOA, and FFO for case 2. https://doi.org/10.1371/journal.pone.0317757.t008 Download: PPT PowerPoint slide PNG larger image TIFF original image Table 9. Annual cost distributed between system components for case 2. https://doi.org/10.1371/journal.pone.0317757.t009 Download: PPT PowerPoint slide PNG larger image TIFF original image Table 10. Different types of cost distributed between system components for case 2. https://doi.org/10.1371/journal.pone.0317757.t010 For case 3, the convergence behavior of the proposed hybrid system, using the ZOA, OOA, and FFO optimization algorithms, is depicted in Fig 21 for 50 simulation runs. Table 11 summarizes the statistical results for ZOA, OOA, and FFO across the three cases. Fig 22 visually presents the distribution of the objective function values over the 50 runs, corroborating the findings in Table 11. Based on the comprehensive analysis, it can be concluded that the proposed ZOA algorithm exhibits superior performance compared to the OOA algorithm. Download: PPT PowerPoint slide PNG larger image TIFF original image Fig 21. Fitness function over the 50 runs. (A) FFO. (B) OOA. (C) ZOA. https://doi.org/10.1371/journal.pone.0317757.g021 Download: PPT PowerPoint slide PNG larger image TIFF original image Fig 22. Final values of the convergence curves over the 50 runs. https://doi.org/10.1371/journal.pone.0317757.g022 Download: PPT PowerPoint slide PNG larger image TIFF original image Table 11. Results of the statistical analysis for case 3. https://doi.org/10.1371/journal.pone.0317757.t011 The convergence curves for the best run within the 50 executions for all algorithms are presented in Fig 23. The results of the optimization process from the three proposed algorithms for case 3 are tabulated in Table 12. It is proved that the LPSP lies within the predefined constraints. The ZOA algorithm successes to supply the load with electricity at a rate of 0.15215951 $/kWh which is the minimum with respect to other algorithms. The distribution of the annual cost of the system with respect to the types of technology is tabulated in Table 13 and is presented graphically in the chart presented in Fig 24. Also, the division of the annual cost of each subsystem according to the type of cost is summarized in Table 14 and presented graphically in Fig 25. Download: PPT PowerPoint slide PNG larger image TIFF original image Fig 23. Convergence curves for case 3. https://doi.org/10.1371/journal.pone.0317757.g023 Download: PPT PowerPoint slide PNG larger image TIFF original image Fig 24. Annual cost divided between different subsystems for case 3. https://doi.org/10.1371/journal.pone.0317757.g024 Download: PPT PowerPoint slide PNG larger image TIFF original image Fig 25. Division of annual cost with respect to cost type for case 3. https://doi.org/10.1371/journal.pone.0317757.g025 Download: PPT PowerPoint slide PNG larger image TIFF original image Table 12. Optimization results of ZOA, OOA, and FFO for case 3. https://doi.org/10.1371/journal.pone.0317757.t012 Download: PPT PowerPoint slide PNG larger image TIFF original image Table 13. Annual cost distributed between system components for case 3. https://doi.org/10.1371/journal.pone.0317757.t013 Download: PPT PowerPoint slide PNG larger image TIFF original image Table 14. Different types of cost distributed between system components for case 3. https://doi.org/10.1371/journal.pone.0317757.t014 Fig 26 displays a comprehensive time-series analysis of the power output from an isolated PV/Wind/Biomass hybrid microgrid utilizing Nickel Iron batteries, charted over a 24-hour cycle. This graph presents the temporal dynamics of power generation from photovoltaic, and biomass generators, alongside the power load, charging power, and discharging power. The plot reveals significant variability in power generation, with the photovoltaic output peaking during daylight hours and the wind turbine output showing higher variability, potentially influenced by diurnal and nocturnal wind patterns. Biomass energy contributes a relatively steady output, underscoring its role in stabilizing the hybrid system by compensating for the intermittency of solar and wind resources. Notably, the charging and discharging cycles of the battery are well-aligned with the demand-supply dynamics, indicating efficient energy storage management. This Fig highlights the critical interplay between different renewable sources and storage systems in maintaining energy balance and reliability in an off-grid setting, showcasing the effectiveness of the employed optimization strategy in enhancing the system’s operational efficiency and sustainability. Download: PPT PowerPoint slide PNG larger image TIFF original image Fig 26. Variation of the system output according to the optimized parameters for case 3. https://doi.org/10.1371/journal.pone.0317757.g026 Fig 27 depicts the State of Charge of the battery system for case 3 over an extensive duration of one year (8760 hours), effectively capturing the battery’s charging and discharging cycles within the hybrid PV/Wind/Biomass microgrid. This graph provides a granular view of the SOC fluctuations, which is crucial for assessing the battery’s performance and the overall efficiency of energy management within the system. it is clearly noticed that the SOC values oscillate between 20% and nearly 100%, reflecting a dynamic and responsive energy storage system that adapts to varying energy inputs from the renewable sources and the load demands. The frequent peaks near 100% indicate periods where the battery reaches full charge, likely corresponding to times of excess generation from photovoltaic and wind sources during favorable conditions. Conversely, the drops below 40% may signal higher energy consumption periods or less favorable conditions for energy generation. This visualization serves as an essential tool for understanding the robustness of the storage system in buffering against the intermittency of renewable energy sources and meeting load demands consistently. The rapid fluctuations also highlight the necessity for efficient battery management systems to optimize charging strategies and prolong battery life, ensuring sustainable and reliable system operation. This Fig underscores the critical role of advanced battery technologies and sophisticated management strategies in enhancing the viability of renewable off-grid systems. Download: PPT PowerPoint slide PNG larger image TIFF original image Fig 27. SOC of the battery system for case 3. https://doi.org/10.1371/journal.pone.0317757.g027 Fig 28 provides an insightful graphical representation of the hourly variation of load demand, surplus, and deficit power over a one-week period for case 3 using a Nickel Iron battery in the hybrid PV/Wind/Biomass system. This Fig effectively highlights the dynamic interplay between production and consumption within the hybrid system, demonstrating the critical role of the Nickel Iron battery in managing fluctuations in energy availability and demand. Notably, the ability to handle these disparities with minimal deficit occurrences suggests a well-optimized system that can potentially offer stable and reliable power supply in off-grid applications. This visualization is crucial for evaluating the system’s efficiency, the effectiveness of the storage solution, and the potential need for further system adjustments or capacity enhancements to better match the load demand profiles. Download: PPT PowerPoint slide PNG larger image TIFF original image Fig 28. Hourly variation of load demand, surplus, and deficit power over a week for case3. https://doi.org/10.1371/journal.pone.0317757.g028 5. Conclusion and future work This paper proposes an efficient methodology for designing an optimal hybrid system tailored for rural and isolated areas, leveraging the renewable resources prevalent in the region. The suggested approach focuses on optimizing the sizing of various technologies within the system to ensure a dependable energy supply while concurrently minimizing the cost of energy provision. In this study, three distinct battery technologies were evaluated: Flooded lead-acid, Lithium Ferro Phosphate, and Nickel Iron Battery. Our findings advocate for the consideration of Nickel Iron batteries in off-grid applications. To validate the effectiveness of our design approach, a case study was conducted in an actual village situated in Saudi Arabia, known for its abundant sunlight and biomass resources. Accordingly, a PV/WT/Biomass/battery hybrid system was selected for this investigation. However, it’s important to note that the proposed design framework is adaptable to other geographical locations, with adjustments made to accommodate the specific technological requirements dictated by the available resources. This study implements three optimization techniques: the Zebra Optimization Algorithm (ZOA), the Osprey Optimization Algorithm (OOA), and the Fly Foxes Optimization (FFO). The primary objective was to identify the most effective method for achieving the optimal sizing of the proposed hybrid system. Results indicate that the ZOA achieved the lowest electricity cost of 0.1285 $/kWh and a NPC of 3.8 M$, outperforming other optimization algorithms. Among the batteries tested, Nickel Iron (Ni-Fe) batteries provided the best cost-performance balance. These results highlight the economic viability and effectiveness of hybrid systems for off-grid applications. Future work could focus on enhancing algorithmic performance by integrating machine learning techniques to improve convergence rates and accuracy in large-scale systems, as well as evaluating newer battery technologies, such as solid-state and lithium-sulfur batteries, for cost and efficiency gains. Additionally, advanced energy management strategies could be developed for dynamic load adjustments, improving the system’s real-time responsiveness. Furthermore, sensitivity analysis on resource variability across regions would also help assess the robustness of the proposed model. Full life-cycle assessments of each component, particularly batteries, would quantify environmental impacts, and testing the model’s scalability for larger or industrial loads would reveal its feasibility for diverse applications in off-grid settings. Supporting information S1 File. https://doi.org/10.1371/journal.pone.0317757.s001 (DOCX) TI - Comprewhensive techno-environmental evaluation of an isolated PV/wind/biomass hybrid microgrid employing various battery technologies: A comparative analysis JF - PLoS ONE DO - 10.1371/journal.pone.0317757 DA - 2025-02-20 UR - https://www.deepdyve.com/lp/public-library-of-science-plos-journal/comprewhensive-techno-environmental-evaluation-of-an-isolated-pv-wind-5l3GSaNSGa SP - e0317757 VL - 20 IS - 2 DP - DeepDyve ER -