Optimal dimensioning of grid-connected PV/wind hybrid renewable energy systems with battery and supercapacitor storage a statistical validation of meta-heuristic algorithm performance Authors: Mohamed Mahmoud Samy, Aykut Fatih Güven Published: 2025 ABSTRACT The increasing environmental and economic drawbacks of fossil fuels have accelerated the global transition to renewable energy sources. In this context, the optimal design of hybrid renewable energy systems (HRES) that combine solar, wind, and energy storage technologies is critical for achieving sustainable and cost-effective power generation. This study addresses the problem of optimally sizing a grid-connected HRES composed of photovoltaic (PV) panels, wind turbine (WTs), batteries (BTs), and supercapacitors (SCs). A mathematical model is developed to minimize the annual cost of the system (ACS) while ensuring high renewable energy utilization and system efficiency. To solve this optimization problem, five advanced meta-heuristic algorithms—Hunger Games Search (HGS), Spider Wasp Optimizer (SWO), Kepler Optimization Algorithm (KOA), Fire Hawk Optimizer (FHO), and Coronavirus Disease Optimization Algorithm (COVIDOA)—were applied and statistically validated. The model was tested on real meteorological and load data from a university campus in Turkey. Results show that HGS achieved the most favorable performance, with an ACS of $603,538.44, a cost of energy (COE) of $0.23801/kWh, and a renewable energy fraction (REF) of 80.04%. This configuration offers significant economic advantages compared to purchasing electricity directly from the grid at $0.35/kWh. The proposed system proves commercially viable for large consumers and demonstrates the practical effectiveness of meta-heuristic methods in energy system design. MATLAB was used for simulation, while R programming was employed for statistical validation of the algorithmic performance. The study establishes a reproducible and validated framework that can guide future research and implementation in the field of hybrid energy optimization.Supplementary InformationThe online version contains supplementary material available at 10.1038/s41598-025-28234-9. Introduction The rapid increase in global energy demand and the need to reduce carbon emissions due to climate change have accelerated the integration of renewable energy sources (RESs) into power grids1. Among these sources, solar and wind energy have gained widespread adoption due to their economic viability and environmental sustainability2. However, the inherent variability and intermittency of these resources necessitate advanced storage solutions to maintain grid stability and reliability3. According to the latest International Energy Agency (IEA) report, global renewable electricity generation reached approximately 9,000 TWh by the end of 2024, primarily driven by solar PV and wind energy. This trend is expected to accelerate, with renewable sources projected to dominate new electricity generation by 2030 (Fig. 1)4.Fig. 1Global electricity generation by technology from 2000 to 2030 (Source IEA, Renewables 2024). Global electricity generation by technology from 2000 to 2030 (Source IEA, Renewables 2024). The increasing penetration of RESs has led to advancements in hybrid renewable energy systems (HRES), facilitating their widespread adoption. These systems integrate distributed generators (DGs), energy storage systems (ESSs), and flexible loads, allowing operation both in grid-connected and off-grid modes with advanced control mechanisms5. As a key component of future smart grids, HRES provide a more efficient and environmentally friendly alternative to conventional power plants, reducing power losses and grid congestion while enhancing power quality and reliability6. To address the challenges posed by RES intermittency, energy storage systems (ESSs) are utilized to store excess energy during periods of surplus production and release it when demand arises. The most widely used form of ESS is battery energy storage systems (BESS)7. However, while batteries are effective in meeting steady loads, they often struggle to handle the rapid fluctuations characteristic of RES output8. This limitation has led to the emergence of hybrid energy storage systems (HESS), which integrate multiple storage technologies, such as supercapacitors (SCs) and batteries (BTs), to enhance system performance and stability9. Hybrid systems achieve enhanced performance and efficiency through the complementary roles of batteries and supercapacitors. Batteries, particularly lithium-ion variants, ensure long-term energy storage and stable power delivery, making them essential for applications in renewable energy systems, electric vehicles, and backup power solutions10. They facilitate energy recuperation and provide reliable energy supply, particularly in electric vehicles, where stability is crucial. Supercapacitors, on the other hand, are distinguished by their high-power density, rapid charge–discharge cycles, and long operational lifespan11. They primarily support transient operations, compensating for short-term power fluctuations in hybrid systems. Their superior efficiency has led to increasing adoption in industries such as transportation and aerospace, where rapid energy delivery and system stability are critical. By working in synergy, batteries and supercapacitors significantly enhance hybrid system efficiency. Batteries enable the integration of RESs by providing a steady power source, while supercapacitors improve overall system responsiveness by enabling fast energy exchanges, increasing power density, and extending the lifespan of the battery. This hybrid approach leads to a more balanced and optimized energy storage solution, making the system more adaptable to varying load conditions12. Supercapacitor energy storage systems (SESS) play a crucial role in mitigating rapid power variations in batteries, thereby enhancing battery longevity. Operational parameters such as the state of charge (SOC) and depth of discharge (DOD) are critical in ensuring system efficiency. Discharging the ESS below its recommended DOD threshold leads to performance degradation and increased costs13. Therefore, effective power management strategies are required to prevent excessive battery discharge. Robust, rule-based optimization schemes are essential for achieving optimal system sizing and coordinated power flow in hybrid energy systems14. These advanced methodologies ensure that system components are configured efficiently to meet dynamic load demands. The structure of HRES is inherently complex due to the diverse nature of its components, which include energy generation, storage, and distribution units, along with automation and control mechanisms. The optimization of these systems involves numerous nonlinear constraints, multi-objective functions, and a mix of discrete and continuous variables. Selecting appropriate optimization methods is crucial for ensuring system efficiency. Various approaches, including precise mathematical methods and meta-heuristic algorithms, are employed in HRES optimization. Additionally, widely used commercial software tools such as HOMER, HOMER Pro, and i-HOGA facilitate system modeling and analysis. The accuracy of these optimization strategies is critical for achieving convergence and ensuring the reliability of hybrid energy systems. This research investigates the intricate dynamics of integrating batteries and supercapacitors within HRES, exploring their implications for system efficiency, reliability, and stability in response to the intermittency of renewable energy sources. This study employs sophisticated mathematical modeling techniques to analyze the interactions between solar, wind, battery, and supercapacitor components. Additionally, a detailed sensitivity analysis is conducted to evaluate the impact of load variations and supercapacitor charging efficiency on overall system performance. By addressing the complexities of power management strategies and utilizing advanced optimization algorithms, this research aims to maximize the operational potential of hybrid energy storage systems. The study further examines the effects of load fluctuations on system sizing and cost through comprehensive sensitivity analyses, providing deeper insight into the performance of the proposed hybrid system under different operating conditions. Meta-heuristic optimization methods are widely used in HRES research, allowing efficient exploration of solution spaces close to the global optimum15. Consequently, precise system sizing and optimization are essential to meet expected load demands while maintaining efficiency and reliability16. Numerous studies have explored various optimization techniques for HRES, considering different configurations that include grid-connected and off-grid solar, wind, diesel generators, batteries, supercapacitors, and hydrogen storage systems. Table 1 provides a detailed overview of various HRES configurations, and the optimization algorithms applied in recent studies.Table 1Review of the various components and optimization algorithms used in current research on HRES.System typeEnergy resourcesEnergy storageOptimization algorithmsCountryReferencesOn GridPhotovoltaic (PV)/Wind turbine (WT)Battery (BT)Moth-flame optimization algorithm (MFOA)New Zealand17Off GridPV/WTBT, Supercapacitor (SC)Simulated annealing particle swarm optimization (SAPSO)China18On GridPV/WT/BT, SCParticle swarm optimization (PSO)Saudi Arabia19Off GridWTBT, SCNon-dominated sorting genetic algorithm IIChina20Off GridPV/WTBTartificial hummingbird algorithmNew Zealand21Off GridPV/WTBT/SC/Hydrogen(H2)PSO, Genetic algorithm (GA), Artificial bee colony (ABC), Ant colony Optimizer (ACO)Kenya22On GridPV/WT/BioenergyBTmulti-objective PSO, multiobjective grasshopper optimization algorithmJapan23On GridPV/WTBTAnt lion optimizer, PSO, cuckoo search CS)Malaysia24Off GridPV/WTBT/(H2)equilibrium optimizer (EQ), bat optimization (BAT), and black-hole-based optimization (BHB) algorithmsEgypt25Off GridPV/WT/Diesel generator (DG)BTGANigeria26Off GridPV/WTBT/SCMFOA, sine–cosine algorithm (SCA) , multi-verse optimizer, water evaporation optimizationNew Zealand27Off GridPV/WTBTMFOA, GA, PSO, and hybrid GA-PSOIran28Off GridPV/WTBTHarmony search algorithm (HSA)China29Off GridPV/WT/DG/Fuelcell(FC)/Electrolyzer(Elz)H2 tankMulti-objective crow search algorithmIran30On GridPW/WTBTBased on position-mutation gray wolf optimization (PM-GWO)China31Off gridPV/WT/Biomass Gasifier (BG)/FC/ElzBT/H2 tankLevy flight-salp swarm algorithms (LF-SSA), SSA, GA, and HOMERNigeria32Off gridPV/WT/DGBTHSA, Jaya algorithms, ACO, and HOMERTurkey33Off gridPW/WT/BG/FC/ElzH2 tankHFGA, FA, GA, SCA, and CS algorithmsTurkey34Off gridPV/WT/DGBTGA, firefly algorithm (FA), PSO, and a novel hybrid of the firefly and PSO algorithms (HFAPSO)Turkey35Off gridPW/WT//BG/FC/ElzH2 tankAtom search optimization (ASO), ACO L´evy Flight, Flower Pollination (FPA), BAT, Ant Lion Optimization (ALO), Jaya, Simulated Annealing (SA), Whale Optimization Algorithm (WOA), Gradient Based Optimizer (GBO), and Henry Gas Solubility Optimization (HGSO) algorithmTurkey36 Table 1Review of the various components and optimization algorithms used in current research on HRES.System typeEnergy resourcesEnergy storageOptimization algorithmsCountryReferencesOn GridPhotovoltaic (PV)/Wind turbine (WT)Battery (BT)Moth-flame optimization algorithm (MFOA)New Zealand17Off GridPV/WTBT, Supercapacitor (SC)Simulated annealing particle swarm optimization (SAPSO)China18On GridPV/WT/BT, SCParticle swarm optimization (PSO)Saudi Arabia19Off GridWTBT, SCNon-dominated sorting genetic algorithm IIChina20Off GridPV/WTBTartificial hummingbird algorithmNew Zealand21Off GridPV/WTBT/SC/Hydrogen(H2)PSO, Genetic algorithm (GA), Artificial bee colony (ABC), Ant colony Optimizer (ACO)Kenya22On GridPV/WT/BioenergyBTmulti-objective PSO, multiobjective grasshopper optimization algorithmJapan23On GridPV/WTBTAnt lion optimizer, PSO, cuckoo search CS)Malaysia24Off GridPV/WTBT/(H2)equilibrium optimizer (EQ), bat optimization (BAT), and black-hole-based optimization (BHB) algorithmsEgypt25Off GridPV/WT/Diesel generator (DG)BTGANigeria26Off GridPV/WTBT/SCMFOA, sine–cosine algorithm (SCA) , multi-verse optimizer, water evaporation optimizationNew Zealand27Off GridPV/WTBTMFOA, GA, PSO, and hybrid GA-PSOIran28Off GridPV/WTBTHarmony search algorithm (HSA)China29Off GridPV/WT/DG/Fuelcell(FC)/Electrolyzer(Elz)H2 tankMulti-objective crow search algorithmIran30On GridPW/WTBTBased on position-mutation gray wolf optimization (PM-GWO)China31Off gridPV/WT/Biomass Gasifier (BG)/FC/ElzBT/H2 tankLevy flight-salp swarm algorithms (LF-SSA), SSA, GA, and HOMERNigeria32Off gridPV/WT/DGBTHSA, Jaya algorithms, ACO, and HOMERTurkey33Off gridPW/WT/BG/FC/ElzH2 tankHFGA, FA, GA, SCA, and CS algorithmsTurkey34Off gridPV/WT/DGBTGA, firefly algorithm (FA), PSO, and a novel hybrid of the firefly and PSO algorithms (HFAPSO)Turkey35Off gridPW/WT//BG/FC/ElzH2 tankAtom search optimization (ASO), ACO L´evy Flight, Flower Pollination (FPA), BAT, Ant Lion Optimization (ALO), Jaya, Simulated Annealing (SA), Whale Optimization Algorithm (WOA), Gradient Based Optimizer (GBO), and Henry Gas Solubility Optimization (HGSO) algorithmTurkey36 Review of the various components and optimization algorithms used in current research on HRES. The research provides a comprehensive evaluation of advanced optimization algorithms developed for HESS integration within HRES. The proposed methodology includes a comparative analysis of several meta-heuristic algorithms that have not been previously applied to HRES configurations, offering methodological advantages over conventional approaches. Evaluation criteria focus on system stability, computational efficiency, and scalability. The optimization process involves rigorous testing of five algorithms: Hunger Games Search (HGS), Spider Wasp Optimizer (SWO), Kepler Optimization Algorithm (KOA), Fire Hawk Optimizer (FHO), and Coronavirus Disease Optimization Algorithm (COVIDOA), with performance metrics validated through statistical analysis. The HGS algorithm generated the most economically and technically efficient system configuration. The resulting design achieved an annual system cost of $603,538.44, a cost of energy of $0.23801/kWh, and a renewable energy fraction of 80.04%. The configuration demonstrated superior performance compared to the other optimization methods and showed strong potential for commercial deployment under grid-connected conditions. To clearly define the purpose of this study, the main objectives are summarized as follows:To model and optimize a grid-connected HRES integrating photovoltaic panels, wind turbines, batteries, and supercapacitors.To apply and comparatively evaluate five advanced meta-heuristic algorithms (HGS, SWO, KOA, FHO, and COVIDOA) that have not previously been utilized for HRES optimization.To assess each algorithm’s performance based on economic and technical metrics such as annual system cost of system (ACS), cost of energy (COE), and renewable energy fraction (REF).To statistically validate the optimization results and demonstrate the computational efficiency of the proposed methods under real-world conditions.To offer a transferable modeling framework and provide insights for future applications in commercial energy systems. To model and optimize a grid-connected HRES integrating photovoltaic panels, wind turbines, batteries, and supercapacitors. To model and optimize a grid-connected HRES integrating photovoltaic panels, wind turbines, batteries, and supercapacitors. To apply and comparatively evaluate five advanced meta-heuristic algorithms (HGS, SWO, KOA, FHO, and COVIDOA) that have not previously been utilized for HRES optimization. To apply and comparatively evaluate five advanced meta-heuristic algorithms (HGS, SWO, KOA, FHO, and COVIDOA) that have not previously been utilized for HRES optimization. To assess each algorithm’s performance based on economic and technical metrics such as annual system cost of system (ACS), cost of energy (COE), and renewable energy fraction (REF). To assess each algorithm’s performance based on economic and technical metrics such as annual system cost of system (ACS), cost of energy (COE), and renewable energy fraction (REF). To statistically validate the optimization results and demonstrate the computational efficiency of the proposed methods under real-world conditions. To statistically validate the optimization results and demonstrate the computational efficiency of the proposed methods under real-world conditions. To offer a transferable modeling framework and provide insights for future applications in commercial energy systems. To offer a transferable modeling framework and provide insights for future applications in commercial energy systems. The analysis of optimization algorithms contributes valuable knowledge regarding algorithmic performance under real-world constraints in hybrid energy systems. The findings support the development of more reliable, cost-effective, and environmentally sustainable energy system designs. The validated modeling structure offers a transferable framework for future research and implementation. The structure of the paper is organized as follows: Sect. 2 presents the modeling of the hybrid energy generation system and its renewable components. Section “Objective function” details the adopted optimization approach, system representation, load characteristics, and control strategies. Section “Methodology” discusses the simulation results for the PV/WT/BT/SC system. Section "Simulation results and discussion" concludes the study and outlines future research directions. Mathematical representation of the hybrid renewable energy system Energy management systems are becoming increasingly sophisticated and integrated, driven by the dual imperatives of sustainability and improved energy efficiency. In this study, the proposed HRES is conceptualized as a microgrid that incorporates diverse energy generation and storage components, including PVs, WTs, BTs, and SCs, as depicted in Fig. 2. This figure provides a schematic overview of the interactions among these components and the associated loads. At the core of the system is a bidirectional converter, responsible for managing the energy exchange between the direct current (DC) and alternating current (AC) elements. This configuration mitigates the inherent variability of renewable energy sources, thereby enhancing energy security and ensuring a stable supply37,38. The following sections will present the mathematical formulations of each component and outline the modeling strategies used to optimize the energy management system.Fig. 2Grid-connected PV/WT/BT/SC model proposed by researchers for this research area. Grid-connected PV/WT/BT/SC model proposed by researchers for this research area. Meteorological and electrical load data A university campus in Turkey at a latitude of 40°39.2°N and a longitude of 29°13.2°E was chosen for the HRES proposed in this study. The Turkish State Meteorological Service provided the meteorological information used in this study. Using hourly data on solar radiation, wind speed, ambient air temperature, and load based on annual data, a profile of the study area was created. These data were obtained from the Turkish State Meteorological Service for the period 01/01/2023 – 31/12/2023 on an hourly basis. Figure 3 shows the wind speed at 10 m above ground level, ambient air temperature, and solar radiation profiles per hour over a year (8760 h). Figure 4 shows the load demand profile for the selected case study. The average energy consumption per day on the campus was 6947.06 kWh. Throughout the year, the maximum and minimum typical hourly loads (per hour) were 938.50 kW and 289.46 kW, respectively. However, as seen in Fig. 4, instantaneous hourly load values may fluctuate below this typical minimum due to short-term variations in electricity demand.Fig. 3Weather patterns of the study area. (a) solar radiation \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$(\mathrm{W}/{\mathrm{m}}^{2})$$\end{document}, (b) wind speed (m/s), and (c) ambient air temperature (\documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$^\circ{\rm C}$$\end{document}).Fig. 4Annual load demand profile for the campus. Weather patterns of the study area. (a) solar radiation \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$(\mathrm{W}/{\mathrm{m}}^{2})$$\end{document}, (b) wind speed (m/s), and (c) ambient air temperature (\documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$^\circ{\rm C}$$\end{document}). Annual load demand profile for the campus. PV component modeling To effectively simulate the performance characteristics of a PV component, it is critical to consider its maximum power output tendencies. The capacity of the PV module to generate optimal power is subject to several influencing elements39. These include the intensity of solar irradiance received by the panel, the established orientation of the solar panel, the characteristics of the PV modules, and the local air temperature at specific times. In this study, Eq. (1), which is a refined model incorporating solar irradiance and ambient temperature, was used to determine the annual power output from the PV generator40.1\documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$${P}_{PV-out}={\sum }_{t=1}^{8760}\left({P}_{PVr}{N}_{pv}{PV}_{df}\right)\times \left(\frac{G\left(t\right)}{{G}_{base}}\right)\times \left(1+{K}_{T}\left(\left({T}_{amb}\left(t\right)+G\left(t\right)\times 1000\times \left(\frac{NOCT-20}{800}\right)\right)-{T}_{base}\right)\right)$$\end{document} In this formulation, \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$${P}_{PV-out}$$\end{document} denotes the photovoltaic output power (kW), while \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$${P}_{PVr}$$\end{document}​ represents the rated power of the photovoltaic system (kW). \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$${N}_{pv}$$\end{document} refers to the number of installed photovoltaic panels, and \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$${PV}_{df}$$\end{document}​ is the derating factor, which accounts for real-world inefficiencies such as wiring losses, accumulation of dust or snow, and shading, all of which reduce the system’s output under actual operating conditions41. The solar irradiance on the tilted plane (kW/m2) is represented by \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$G$$\end{document}, with \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$${G}_{base}$$\end{document}​ signifying the standard irradiance level of 1 kW/m2 at 25 °C42. The power output’s sensitivity to temperature is expressed by the temperature coefficient, \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$${K}_{T}$$\end{document}​, defined as \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$${K}_{T}$$\end{document} = − 3.7 × 10–3(1/°C). \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$${T}_{amb}$$\end{document}​ corresponds to the ambient temperature (°C), \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$${T}_{base}$$\end{document}​ denotes the reference temperature of 25 °C, and \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$NOCT$$\end{document} refers to the nominal operating cell temperature (°C) under standard testing conditions28. WT component modeling Wind is a highly valuable and promising source for HRES when accurately modeled and managed. The energy yield from the wind is influenced by various factors, including the hub height of the turbine, the characteristics of the local terrain, and turbine speed43. These factors collectively affect the energy output of the WT at a specific location. The turbine’s elevation above the standard ground level plays a crucial role in power generation44. An equation for adjusting the turbine’s height can be applied during the installation process. To calculate the energy output from the WT, Eq. (2) is used45.2\documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$P_{WT} = \left\{ {\begin{array}{*{20}l} {\eta_{w} \times { }P_{WTr} \times N_{WT} \times \mathop \sum \limits_{t = 1}^{8760} \left( {\frac{{V\left( t \right)^{3} - V_{ci}^{3} }}{{V_{r}^{3} - V_{ci}^{3} }}} \right),} \hfill & {V \le V_{r} } \hfill \\ {\eta_{w} \times P_{WTr} \times N_{WT} , } \hfill & {V_{r} \le V \le V_{co} } \hfill \\ {0,} \hfill & {V_{co} \le V or V \le V_{ci} } \hfill \\ \end{array} } \right.$$\end{document} Equation (2) considers various factors to estimate the WT output power (\documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$${P}_{WT}$$\end{document}), where the WT efficiency (\documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$${\eta }_{w}$$\end{document}), number of WTs (\documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$${N}_{WT}$$\end{document}), estimated power of the WT (\documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$${P}_{WTr}$$\end{document}), evaluated wind speed (V(t)), cut in wind speed (\documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$${V}_{ci}$$\end{document}), terminal speed of wind (\documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$${V}_{co}$$\end{document}), and estimated wind speed (\documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$${V}_{r}$$\end{document}) were all considered. In this study, the wind turbine efficiency (\documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$${\eta }_{w}$$\end{document}) was set to 0.35 and incorporated into the optimization model accordingly. This ensures a realistic estimation of wind power generation within the proposed framework46. Furthermore, the wind turbine (WT) hub height (\documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$${H}_{WT}$$\end{document}), base altitude (\documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$${H}_{r}$$\end{document}), wind speed at the reference height (\documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$${V}_{t}$$\end{document}), and friction parameter (α) were integral parameters considered in this study, as outlined in Eq. (3). Specifically, for surfaces characterized by smoothness and a vast open area, the \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$\alpha$$\end{document} value was set to 1/7. This consideration is critical for accurately modeling the wind profile and energy potential, as described in the Eq. (3)36.3\documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$${V}_{t}= {V}_{r}\times {\left(\frac{{H}_{WT}}{{H}_{r}}\right)}^{\alpha }$$\end{document} Battery component modeling in microgrids ESS within a microgrid is critical for maintaining grid stability and efficiency. The SOC is a key operational parameter for the ESS, requiring management within a defined operational range to ensure the grid’s overall integrity and optimal performance47. Operational range of the SOC To ensure the durability and operational health of the ESS, it is essential to maintain the SOC within a designated range. This specific range is delineated in Eq. (4).4\documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$${SOC}_{min}\le SOC\le {SOC}_{max}$$\end{document} The \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$${SOC}_{min}$$\end{document}​ and \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$${SOC}_{max}$$\end{document}​ parameters establish the minimum and maximum SOC limits, setting the safe operating range for the energy storage system. These boundaries are essential to avoid overcharging and excessive discharging, both of which can negatively impact the battery’s operational efficiency and overall lifespan. Maintaining the SOC within these limits is crucial for ensuring the long-term durability and optimal functionality of the battery48. SOC dynamics The SOC at any given time is dependent on charging and discharging activities within the system. The SOC at a future time \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$j+\Delta j$$\end{document} is determined by Eq. (5), which accounts for the energy that is either stored or expended during the time interval \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$\Delta j$$\end{document}.5\documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$${SOC}_{j+\Delta j}={SOC}_{j}-{P}_{ES-j}\times \frac{\Delta j}{{C}_{ES}}$$\end{document} The variable \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$${P}_{ES-j}$$\end{document}​ represents the rate of energy transfer into (during charging) or out of (during discharging) the energy storage system in the interval from time \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$j$$\end{document} to \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$j+\Delta j$$\end{document}, while \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$${C}_{ES}$$\end{document}​ indicates the total energy capacity of the energy storage system, defining its maximum energy storage potential19. Charging and discharge models To enhance the performance and reliability of microgrids, dynamic management of the energy balance in energy storage systems (ESS) is crucial. This management is articulated through two fundamental equations that reflect charging and discharging events. As outlined in Eq. (6), during the charging process, the battery’s energy balance is updated as follows49:6\documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$Eb\left(t+\Delta t\right)=Eb\left(t\right)+\Delta t{P}_{b}^{charging}{\eta }_{charging}$$\end{document} In this equation, \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$Eb\left(t\right)$$\end{document} represents the energy balance at the current time \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$t$$\end{document}, and \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$Eb\left(t+\Delta t\right)$$\end{document} is the energy balance at the subsequent time step. The term \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$${P}_{b}^{charging}$$\end{document}​ denotes the power used to charge the system. This charging power is multiplied by the time interval \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$\Delta t$$\end{document}, which signifies a small step forward in time, and by the charging efficiency \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$${\eta }_{charging}$$\end{document}. The charging efficiency factor accounts for any losses or inefficiencies in the charging process. By multiplying the charging power by the time interval and efficiency, the equation calculates the increase in energy within the system due to charging over this period. This addition is then added to the current energy balance, yielding the energy balance at the next step. This model is essential for tracking the change in energy levels of the storage system during charging and for understanding how efficiently the system converts incoming power into stored energy. In contrast, as specified in Eq. (7), the energy balance during the discharge process is adjusted in the following manner:7\documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$Eb\left(t+\Delta t\right)=Eb\left(t\right)-\Delta t\frac{{P}_{b}^{discharging}}{{\eta }_{discharging}}$$\end{document} In Eq. 8, \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$Eb\left(t\right)$$\end{document} signifies the energy balance of a storage system at a particular time \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$t$$\end{document}, reflecting the net energy state at that moment. The term \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$${P}_{b}^{discharging}$$\end{document}​ is used to denote the power involved in the discharging process of the system. The efficiency of this discharge process is represented by \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$${\eta }_{discharging}$$\end{document}​. The equation works by calculating the energy balance at the forthcoming time step, \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$t+\Delta t$$\end{document}, which is achieved by deducting the energy used in the discharge process, adjusted for efficiency, from the current energy balance at time \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$t$$\end{document}. This approach to modeling is crucial for understanding the evolution of the energy balance within a storage system over time, particularly in terms of how discharge actions affect this balance50. This allows for a comprehensive understanding of the dynamic changes in energy within the system due to discharging activities. Both equations are integral to dynamically updating the battery’s state, ensuring that the ESS operates within its optimal parameters. This dynamic updating facilitates the effective balancing of charging and discharging cycles, thereby optimizing the efficiency and lifespan of the battery system within the microgrid51.8\documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$0{\le P}_{b}^{charging}{\le P}_{b}^{charging\_max}$$\end{document}9\documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$${0\le P}_{b}^{discharging}{\le P}_{b}^{discharging\_max}$$\end{document} The stored energy bounds are10\documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$${E}_{b}^{min}\le Eb\left(t\right)\le {E}_{b}^{max}$$\end{document} Battery energy storage systems (BESS) operate within certain operational parameters to ensure safety and efficiency, as defined by Eqs. (8), (9), and (10). Specifically, the charging power, noted as \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$${P}_{b}^{charging}$$\end{document}​, is limited to a predefined maximum value \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$${P}_{b}^{charging\_max}$$\end{document} to prevent overcharging, while the discharging power, \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$${P}_{b}^{discharging}$$\end{document}​, is similarly capped at \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$${P}_{b}^{discharging\_max}$$\end{document}​​ to avoid excessive depletion of the battery’s stored energy. Equation (10) sets the perimeters for the energy stored within the BESS, stipulating that it must remain above a minimum threshold \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$${E}_{b}^{min}$$\end{document}​ and below a maximum threshold \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$${E}_{b}^{max}$$\end{document}​This guarantees that the stored energy is maintained within a safe and functional range, thereby ensuring the system’s reliability and longevity. These parameters are crucial for the ongoing management of the BESS, allowing for efficient energy transfer while also preventing stress that can come from operating outside the designed capacity of the system. Supercapacitor component modeling This section presents the modeling of the SC component, which is essential for advanced energy storage systems. Equation (11) describes the SC’s dynamic behavior, encompassing key aspects of its energy storage and release processes19.11\documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$${E}_{SC}\left(t+\Delta t\right)= {E}_{SC}\left(t\right)+\eta \Delta t{P}_{SC}-\xi {E}_{SC}(t)$$\end{document} The SC’s energy storage dynamics are modeled using Eq. (11) and are pivotal in capturing the complex interplay of energy flow within the system. In this model, \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$${E}_{SC}\left(t\right)$$\end{document} represents the energy stored in the SC at a given time \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$t$$\end{document}, essentially reflecting its state-of-charge. The efficiency factor \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$\eta$$\end{document} plays a dual role, governing both the charging and discharging processes, and it indicates the SC’s ability to efficiently convert electrical energy to stored energy and vice versa. The time increment, denoted as \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$\Delta t$$\end{document}, is a critical factor in this model, highlighting the importance of temporal resolution in understanding energy storage dynamics. \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$${P}_{SC}$$\end{document}​, defining the power supplied to or drawn from the SC, illustrates the bidirectional nature of energy flow, where positive and negative values signify charging and discharging, respectively. Lastly, \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$\xi$$\end{document}, the self-discharge rate, is crucial for accounting for the energy losses when the SC is neither charging nor discharging, which is a key factor in long-term energy storage scenarios. Overall, this model, represented by Eq. (11), is essential for a comprehensive understanding of the operational dynamics of SCs in energy storage systems, enabling a detailed analysis of their charging and discharging behaviors, efficiency, and energy retention characteristics under various operational conditions. subjected to the following constraints12\documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$${E}_{SC}^{min}\le {E}_{SC}\left(t\right)\le {E}_{SC}^{max}$$\end{document}13\documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$0\le {P}_{SC}\left(t\right)\le {P}_{SC}^{max}$$\end{document} Equations (12) and (13) define the safety and operational limits for SC. Equation (12) ensures that the energy level \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$${E}_{SC}\left(t\right)\le {E}_{SC}^{max}$$\end{document} remains between a minimum \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$${E}_{SC}^{min}$$\end{document}​ and a maximum \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$${E}_{SC}^{max}$$\end{document}​, while Eq. (13) maintains the power \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$${P}_{SC}\left(t\right)$$\end{document} within a maximum limit \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$${P}_{SC}^{max}$$\end{document}​. These constraints guarantee that the SC operates safely within its capacity. Inverter In HRES, the role of converters and inverters is integral to maintaining the energy equilibrium among devices operating on AC and DC. Converters facilitate the transformation of AC into DC, whereas inverters serve the reverse function, turning DC back into AC52. Several design methodologies for these power conversion units have been documented in scholarly works. In this study, the converter’s design is predicated on the peak load approach, a technique detailed in the cited source53.14\documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$P_{{inv}} \left( t \right) = \frac{{P_{{peak}} }}{{\eta _{{inv}} }}$$\end{document} In Eq. (14), \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$${P}_{peak}$$\end{document}​ refers to the highest load demand, and \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$${\eta }_{inv}$$\end{document}​ represents the efficiency of the converter/inverter.15\documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$${P}_{AC}={\eta }_{inv}{P}_{DC}$$\end{document} As detailed by Bao et al.54, Eq. (15) models the output power of an inverter. This formulation highlights the direct correlation between the inverter’s efficiency and its ability to convert DC into AC. It succinctly captures how the efficiency factor impacts the conversion process, resulting in the AC power output of the converter. The equation demonstrates the transformation of the DC input power into AC output power, emphasizing the significance of the converter’s efficiency in this process. Grid modeling A grid constitutes an interconnected network of energy resources responsible for generating, accumulating, and storing energy. The energy sources from the grid is supplemented by the combined output of PV, WT, and BT components. These components are critical, especially in scenarios where their collective energy production does not meet the required electrical load demands. In cases of surplus energy generation, Eq. (16) is employed to calculate the revenue generated from selling this excess energy back to the grid55.16\documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$${\mathrm{R}}_{\mathrm{grid}}={\sum }_{\mathrm{t}=1}^{8760}{\mathrm{r}}_{\mathrm{feed}\_\mathrm{in}}.{E}_{grid\_s}\left(t\right)$$\end{document}17\documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$${\mathrm{C}}_{\mathrm{grid}}={\mathrm{C}}_{\mathrm{p}}{\sum }_{\mathrm{t}=1}^{8760}{E}_{grid\_p}\left(t\right)$$\end{document} In this formulation, \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$${r}_{feed\_in}$$\end{document}​ refers to the guaranteed feed-in tariff rate, which is specified as $0.01/kWh in this study, reflecting the actual value. The estimated cost of grid electricity procurement was calculated using Eq. (17). Here, \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$${C}_{p}$$\end{document}​ denotes the estimated cost of purchasing 1 kW of electricity for the central campus, identified as the study site. This value, sourced from the university’s Department of Construction Works, has been established at $0.35/kWh, representing the current market rate.18\documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$${\mathrm{P}}_{\mathrm{grid}}={\mathrm{P}}_{\mathrm{L}}\left(t\right)-{\sum }_{\mathrm{t}=1}^{8760}{\mathrm{P}}_{\mathrm{WT}}\left(t\right),{\mathrm{P}}_{PV}\left(t\right),{\mathrm{P}}_{B}\left(t\right),{\mathrm{P}}_{\mathrm{SC}}\left(t\right)$$\end{document} In Eq. (18), \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$${\mathrm{P}}_{\mathrm{grid}}$$\end{document}​ denotes the power supplied to or from the utility grid, reflecting the net flow of electricity. \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$${\mathrm{P}}_{\mathrm{L}}$$\end{document}​ represents the load demand, indicating the total power requirement. \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$${\mathrm{P}}_{B}$$\end{document}​ and \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$${\mathrm{P}}_{\mathrm{SC}}$$\end{document}​ signify the power supplied by the BESS and SC, respectively. The value of \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$${\mathrm{P}}_{\mathrm{grid}}$$\end{document} varies based on the energy balance; it becomes negative during times of surplus generation (when energy production exceeds demand) and positive in situations of inadequate supply, highlighting the grid’s role in balancing energy needs. Economic parameters In conducting financial assessments of integrated energy systems, it is essential to evaluate how key factors affect the project’s economic feasibility56. In this study, key financial indicators were evaluated, with a particular focus on the real interest rate, which was set at 2.07%, significantly impacting the financial analysis. The expected operational lifetime of these integrated energy systems is projected to be 20 years. Accurate cost data for the HRES components were obtained directly from the manufacturers for use in simulations. The economic and technical specifications of the microgrid components are provided in Appendix A. Objective function The primary goal of this study is to establish an optimal configuration for the HRES at a university campus, aiming to effectively balance supply and demand while meeting load requirements at minimal costs57. To achieve this study evaluates four key decision variables: WT power, PV power, BT size, and SC size. The optimization of HRES sizing in this study employs the ACS as the main objective function for assessing the microgrid system58. ACS is used in economic analyses to identify the solution that offers the lowest annual cost while meeting all other requirements59. In this optimization problem, the primary decision variables are the capacities of the PV, WT, SC, and BT. These variables are critical in determining the configuration of the HRES60. The objective of the optimization is to minimize the ACS, while simultaneously considering system performance metrics such as the cost of energy (COE) and REF, which serve as outputs of the optimization rather than decision variables. The objective function is formulated to optimize these metrics based on the decision variables (PV, WT, SC, and BT), with the additional constraint that the REF must exceed 60% to ensure that the system meets environmental and sustainability targets. Additionally, NPC is included in the objective function, represented by Eq. (19), which accounts for the total lifecycle cost of the system, further emphasizing the importance of cost-efficiency in the design. Equation (20) integrates these elements into a multi-objective optimization framework. Therefore, the optimization seeks to balance the capacities of PV, WT, SC, and BT in such a way that the overall system ACS is minimized, while ensuring high renewable energy usage (REF > 60%) and competitive energy costs (COE). This approach ensures a comprehensive evaluation of system performance, reflecting both economic and environmental objectives.19\documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$Objective{ }Function = Min\left( {ACS,COE,NPC} \right)\;\;\;\left\{ {R_{WT} ,{ }R_{PV} ,{\mathrm{R}}_{{{\mathrm{SC}}}} ,{ }R_{BT} } \right\}$$\end{document}20\documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$ACS=Min (Sola{r}_{cost}+Win{d}_{cost}+Inverte{r}_{cost}+Batter{y}_{cost}+{Supercapacitor}_{cost}+{Grid}_{cost})$$\end{document} Cost analysis This study conducts a detailed economic analysis of the cost factors associated with the various components of the proposed hybrid energy system, which integrates wind, solar, supercapacitors, batteries, and grid elements in a cohesive manner. The financial model used is comprehensive, encompassing key economic variables necessary for a complete assessment. These factors include the initial capital investment for system deployment, ongoing operational and maintenance costs, the expense of replacing components periodically over the system’s lifespan, salvage values at the end of its operational life, and the impact of real interest rates on the overall financial model61. This in-depth approach to cost evaluation is critical for a precise understanding of the economic aspects of hybrid energy systems. It provides a detailed view of the financial requirements from the system’s inception to its decommissioning, offering a robust framework for estimating the total annual costs. Such detailed economic analysis is crucial for making well-informed decisions about the investment and operation of HRES, ensuring their long-term financial sustainability62. The capital cost for the battery component of the HRES is determined using the following calculation:21\documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$Batter{y}_{costC}={N}_{bat}\times \left[BA{T}_{C}\times \left(\frac{ir\times \left(1+ir\right)PR{J}_{LF}}{\left(1+ir\right)PR{J}_{LF}-1}\right)\right]$$\end{document} The cost associated with replacing the battery system is determined using the following Eq. (22)22\documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$Batter{y}_{cos{t}_{r}}={N}_{bat}\times BA{T}_{{C}_{r}}\times \left[\left(\frac{1}{{\left(1+ir\right)}^{Bat{e}_{LF}}}+\frac{1}{{\left(1+ir\right)}^{2\times Bat{e}_{LF}}}+\frac{1}{{\left(1+ir\right)}^{3\times Bat{e}_{LF}}}\right)\times \frac{ir\times \left(1+ir\right)PR{J}_{LF}}{\left(1+ir\right)PR{J}_{LF}-1}\right]$$\end{document} The salvage cost of the battery system is determined using the following calculation:23\documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$Bat{e}_{sa{l}_{f}r}=\left|4\times Bat{e}_{LF}-PR{J}_{LF}\right|$$\end{document}24\documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$Batter{y}_{sa{l}_{cost}}={N}_{bat}\times BA{T}_{{C}_{r}}\times \left[\left(\frac{Bat{e}_{sa{l}_{f}r}}{Bat{e}_{LF}}\right)\times \frac{1}{{\left(1+ir\right)}^{PR{J}_{LF}}}\times \frac{ir\times \left(1+ir\right)PR{J}_{LF}}{\left(1+ir\right)PR{J}_{LF}-1}\right]$$\end{document} The overall cost of the battery system is computed using the following Eq. (25):25\documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$Batter{y}_{cost}=Batter{y}_{costC}+Batter{y}_{cos{t}_{r}}+\left({N}_{bat}\times Ba{t}_{OM}\right)-Batter{y}_{sa{l}_{cost}}$$\end{document} In a thorough evaluation of battery costs for a renewable energy system, Eqs. (21) through (25) address multiple critical factors. Equation (21) focuses on calculating the initial capital cost of the battery system, \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$Batter{y}_{costC}$$\end{document}, which takes into account the number of batteries (\documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$${N}_{bat}$$\end{document}), the unit cost of each battery (\documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$BA{T}_{C}$$\end{document}), the interest rate (\documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$ir$$\end{document}), and the project’s expected operational lifetime (\documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$PR{J}_{LF}$$\end{document}). This equation essentially models the upfront financial investment, adjusted for interest and amortized over the system’s lifespan. Equation (22) shifts attention to the replacement cost of the batteries, denoted as \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$Batter{y}_{cos{t}_{r}}$$\end{document}. This formula incorporates the replacement unit cost per battery (\documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$BA{T}_{{C}_{r}}$$\end{document}) and the battery lifespan (\documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$Bat{e}_{LF}$$\end{document}), calculating how frequently the batteries need to be replaced during the course of the project. In Eq. (23), the salvage value at the end of the project is determined by \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$Bat{e}_{sa{l}_{f}r}$$\end{document}, which estimates the remaining value of the batteries based on their lifespan and the overall project duration. This salvage value helps quantify the recoverable portion of the initial investment. Equation (24) introduces the salvage cost \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$Batter{y}_{sa{l}_{cost}}$$\end{document}, which is derived using the previously calculated salvage value and other system parameters. This cost reflects the monetary value that can be recuperated from the batteries when the project concludes. Finally, Eq. (25) aggregates all the relevant costs, including the capital expenditure, replacement costs, operation and maintenance expenses (\documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$${N}_{bat}\times Ba{t}_{OM}$$\end{document}), and salvage cost, to determine the total battery cost (\documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$Batter{y}_{cost}$$\end{document}) for the system. This comprehensive approach ensures an accurate representation of the financial requirements throughout the entire lifecycle of the battery system within the renewable energy project. The approach used to calculate the capital cost of a supercapacitor in an energy system is as follows:26\documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$S{C}_{costC}={N}_{SC}\times \left[S{C}_{C}\times \left(\frac{ir\times \left(1+ir\right)PR{J}_{LF}}{\left(1+ir\right)PR{J}_{LF}-1}\right)\right]$$\end{document} The cost associated with replacing the supercapacitor is determined using the following calculation:27\documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$S{C}_{cos{t}_{r}}=\frac{1}{{\left(1+ir\right)}^{S{C}_{LF}}}\times {N}_{SC}\times \left[S{C}_{{C}_{r}}\times \left(\frac{ir\times \left(1+ir\right)PR{J}_{LF}}{\left(1+ir\right)PR{J}_{LF}-1}\right)\right]$$\end{document} The maintenance cost of the supercapacitor is determined by the following Eq. (28):28\documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$S{C}_{O{M}_{c}ost}={N}_{SC}\times S{C}_{OM}$$\end{document} The overall cost of the supercapacitor is determined using the formula presented in Eq. (29).29\documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$S{C}_{tota{l}_{c}ost}=S{C}_{costC}+S{C}_{O{M}_{c}ost}+S{C}_{cos{t}_{r}}$$\end{document} Equations (26) to (29) evaluate the financial aspects of supercapacitors within an energy system, using previously defined parameters. Equation (26) estimates the initial capital investment (\documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$S{C}_{costC}$$\end{document}), which depends on the number of supercapacitors (\documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$${N}_{SC}$$\end{document}) and the unit cost per supercapacitor (\documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$S{C}_{C}$$\end{document}). Equation (27) calculates the replacement cost (\documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$S{C}_{cos{t}_{r}}$$\end{document}​) by considering the replacement cost per unit and the expected lifespan of the supercapacitors (\documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$S{C}_{LF}$$\end{document}). Equation (28) addresses ongoing maintenance expenses (\documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$S{C}_{O{M}_{c}ost}$$\end{document}) by multiplying the number of supercapacitors by the per-unit maintenance cost (\documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$S{C}_{OM}$$\end{document}). Finally, Eq. (29) combines the capital, replacement, and maintenance costs to determine the total supercapacitor cost (\documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$S{C}_{tota{l}_{c}ost}$$\end{document}). The method for calculating the capital cost of the wind energy component is outlined as follows:30\documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$Win{d}_{cos{t}_{c}}={N}_{w}\times \left[{C}_{wr}\times \left(\frac{ir\times \left(1+ir\right)PR{J}_{LF}}{\left(1+ir\right)PR{J}_{LF}-1}\right)\right]$$\end{document} The replacement cost for the wind energy component is determined using the formula presented in Eq. (31).31\documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$Win{d}_{cos{t}_{r}}={N}_{w}\times \frac{1}{{\left(1+ir\right)}^{Win{d}_{LF}}}\times \left[{C}_{wr}\times \left(\frac{ir\times \left(1+ir\right)PR{J}_{LF}}{\left(1+ir\right)PR{J}_{LF}-1}\right)\right]$$\end{document} The salvage cost for the wind energy component is calculated using the formulas presented in Eqs. (32) and (33).32\documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$Win{d}_{sa{l}_{f}r}=\left|Win{d}_{LF}-PR{J}_{LF}\right|$$\end{document}33\documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$Win{d}_{sa{l}_{cost}}={N}_{w}\times \left[{C}_{wr}\times \frac{win{d}_{sa{l}_{f}r}}{Win{d}_{LF}}\times \frac{1}{{\left(1+ir\right)}^{PR{J}_{LF}}}\times \frac{ir\times \left(1+ir\right)PR{J}_{LF}}{\left(1+ir\right)PR{J}_{LF}-1}\right]$$\end{document} The yearly cost of the wind energy component is determined according to the formula outlined in Eq. (34).34\documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$\left[Win{d}_{cost}={N}_{w}\times {W}_{OM}+Win{d}_{cos{t}_{c}}+Win{d}_{cos{t}_{r}}-Win{d}_{sa{l}_{cost}}\right]$$\end{document} The cost evaluation of wind energy components, as outlined in Eqs. (30) to (34), involves several calculation steps. Equation (30) calculates the capital investment (\documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$Win{d}_{cos{t}_{c}}$$\end{document}) by taking into account the number of wind turbines (\documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$${N}_{w}$$\end{document}) and the cost per unit (\documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$${C}_{wr}$$\end{document}). Equation (31) addresses the replacement costs (\documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$Win{d}_{cos{t}_{r}}$$\end{document}) by considering the turbine count, the replacement cost per turbine, and the expected turbine lifespan (\documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$Win{d}_{LF}$$\end{document}). Equation (32) determines the salvage value (\documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$Win{d}_{sa{l}_{f}r}$$\end{document}) by using the difference between the turbine’s operational lifespan and the project’s lifespan (\documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$PR{J}_{LF}$$\end{document}). Moving on, Eq. (33) estimates the salvage cost (\documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$Win{d}_{sa{l}_{cost}}$$\end{document}), which depends on the turbine count, unit cost, and salvage factor. Finally, Eq. (34) calculates the total annualized cost of the wind turbine system (\documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$Win{d}_{cost}$$\end{document}) by combining the capital, replacement, salvage, and operation and maintenance expenses. The method used to calculate the operational and maintenance costs for the solar energy component is as follows:35\documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$Sola{r}_{O{M}_{c}ost}={N}_{sol}\times {S}_{OM}$$\end{document} The capital cost for the solar energy component is determined using the following approach:36\documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$Sola{r}_{{C}_{c}ost}={N}_{sol}\times Cs\times \left(\frac{ir\times \left(1+ir\right)PR{J}_{LF}}{\left(1+ir\right)PR{J}_{LF}-1}\right)$$\end{document} The annualized cost for the solar energy component is determined using the following calculation:37\documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$Sola{r}_{cost}=Sola{r}_{O{M}_{c}ost}+Sola{r}_{{C}_{c}ost}$$\end{document} The converter’s capacity in the system is directly linked to the number of solar panels, with the converter size (\documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$IN{V}_{size}$$\end{document}) matching the total count of installed solar panels (\documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$${N}_{sol}$$\end{document}). In the financial analysis of the solar energy component, Eq. (35) calculates the operation and maintenance expenses (\documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$Sola{r}_{O{M}_{c}ost}$$\end{document}) by multiplying the total number of solar panels (\documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$${N}_{sol}$$\end{document}) by the per-unit operation and maintenance cost (\documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$${S}_{OM}$$\end{document}). Equation (36) determines the capital cost \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$Sola{r}_{{C}_{c}ost}$$\end{document}, considering the number of panels, the cost per panel (\documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$Cs$$\end{document}), the interest rate (\documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$ir$$\end{document}), and the projected lifespan of the project (\documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$PR{J}_{LF}$$\end{document}), offering a comprehensive view of the initial investment. Lastly, Eq. (37) calculates the annualized cost of the solar energy system (\documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$Sola{r}_{cost}$$\end{document}) by summing the operation and maintenance expenses and the capital cost63. The capital cost of the inverter is determined using the following calculation:38\documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$Inverte{r}_{C}=IN{V}_{size}\times \left(IN{V}_{C}\times \frac{ir\times \left(1+ir\right)PR{J}_{LF}}{\left(1+ir\right)PR{J}_{LF}-1}\right)$$\end{document} The replacement cost of the inverter is determined using the formula provided in Eq. (39).39\documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$Inverte{r}_{Cr}=IN{V}_{size}\times \left[IN{V}_{Cr}\times \left(\frac{1}{{\left(1+ir\right)}^{IN{V}_{LF}}}\right)\times \left(\frac{ir\times \left(1+ir\right)PR{J}_{LF}}{\left(1+ir\right)PR{J}_{LF}-1}\right)\right]$$\end{document} The operation and maintenance costs of the inverter are calculated using the formula presented in Eq. (40).40\documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$Inverte{r}_{OM}=IN{V}_{size}\times IN{V}_{OM}$$\end{document} The salvage fraction of the inverter is determined using the formula provided in Eq. (41).41\documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$IN{V}_{sa{l}_{f}r}=\left|IN{V}_{LF}-PR{J}_{LF}\right|$$\end{document} The salvage cost of the inverter is determined using the formula presented in Eq. (42).42\documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$Inverte{r}_{sa{l}_{C}}=IN{V}_{size}\times \left(IN{V}_{C}\times \frac{IN{V}_{sa{l}_{f}r}}{IN{V}_{LF}}\times \frac{1}{{\left(1+ir\right)}^{PR{J}_{LF}}}\times \frac{ir\times \left(1+ir\right)PR{J}_{LF}}{\left(1+ir\right)PR{J}_{LF}-1}\right)$$\end{document} The total cost of the inverter is determined using the formula provided in Eq. (43).43\documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$Inverte{r}_{Tcost}=Inverte{r}_{C}+Inverte{r}_{Cr}+Inverte{r}_{OM}-Inverte{r}_{sa{l}_{C}}$$\end{document} In the financial evaluation of the energy system, the inverter costs are analyzed through Eqs. (38) to (43). Equation (38) computes the initial capital cost (\documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$Inverte{r}_{C}$$\end{document}) based on the inverter size (\documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$IN{V}_{size}$$\end{document}) and cost per unit (\documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$IN{V}_{C}$$\end{document}). Equation (39) addresses the replacement cost (\documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$IN{V}_{Cr}$$\end{document}), factoring in the inverter size, unit replacement cost, and lifespan (\documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$IN{V}_{LF}$$\end{document}). For operational expenses, Eq. (40) calculates the operation and maintenance cost (\documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$Inverte{r}_{OM}$$\end{document}) by multiplying the inverter size by the per-unit maintenance cost. The salvage fraction of the inverter, calculated in Eq. (41), is used in Eq. (42) to determine the inverter’s salvage cost (\documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$Inverte{r}_{sa{l}_{C}}$$\end{document}). Finally, the total inverter cost (\documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$Inverte{r}_{Tcost}$$\end{document}) is computed in Eq. (43) by aggregating the capital cost, replacement cost, and operation and maintenance costs, while subtracting the salvage cost. This approach provides a comprehensive financial overview of the inverter component over the lifecycle of the project64. The cost of grid-purchased energy is determined using the formula provided in Eq. (44).44\documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$Gri{d}_{cost}=\sum \left({E}_{gri{d}_{p}}\right)\times 0.35-\sum \left({E}_{gri{d}_{s}}\right)\times 0.01$$\end{document} Equation (44), labeled as \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$Gri{d}_{cost}$$\end{document}, provides the framework for calculating the net cost of energy transactions involving the grid in an energy system. This equation accounts for two primary aspects of grid interaction: the energy purchased from the grid and the energy sold back to the grid. The total grid cost is computed by multiplying the amount of energy imported from the grid (\documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$${E}_{gri{d}_{p}}$$\end{document}) by a unit cost of 0.35, and subtracting the value of energy exported to the grid (\documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$${E}_{gri{d}_{s}}$$\end{document}), where each unit is credited at a rate of 0.01. This formulation captures both the financial outlay for purchasing energy and the revenue generated from exporting surplus energy. Additionally, it highlights the asymmetry in pricing, where the cost of buying energy from the grid is generally higher than the compensation for selling energy back to the grid. Renewable energy fraction (REF) In this study, the emphasis is on optimizing the REF within a grid-connected HRES. The REF value serves as a crucial metric, reflecting the degree to which the system uses RESs65. Pertinently, for systems connected to the grid, Eq. (45) has been employed to quantify the percentage of energy drawn from the grid compared to the total load demand66:45\documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$REF\left(\mathrm{\%}\right)=\left(1-\frac{{\sum }_{t=1}^{8760}{E}_{grid\_p}}{{\sum }_{t=1}^{8760}Total Load}\right)100$$\end{document} This equation quantifies the contribution of RESs to the total energy demand in percentage terms. During the optimization process, if the REF value falls below a certain threshold \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$${\varepsilon }_{REF}$$\end{document}, penalties are imposed on the annual cost to eliminate constraints (Annual cost = 109)67, as indicated in Eq. (46):46\documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$REF\left(\mathrm{\%}\right)\le {\varepsilon }_{REF}$$\end{document} Equation (31) ensures that the REF value exceeds a specific limit during the optimization process, thus supporting the sustainable and efficient operation of the system. This approach aims to find the most cost-effective and efficient solution while increasing the share of renewable sources in HRES’s energy production. Minimizing the second part of this equation is essential to maximize REF. This function has an upper limit and cannot exceed 100%. This limitation signifies the need to keep the function below a certain value during the optimization process. Design variables In this study, the design variables, also referred to as decision variables, encompassed the WT power, PV power, BT power, and SC power. The upper and lower limits of these variables are delineated in Eq. (47).47\documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$\text{Decision Variables}=\left\{\begin{array}{c}1 kW\le {\mathrm{R}}_{\mathrm{WT}}\le 10000 kW\\ 1 kW\le {\mathrm{R}}_{\mathrm{PV}}\le 10000 kW\\ 1 kW\le {\mathrm{R}}_{\mathrm{SC}}\le 800 kW\\ 1 kW\le {\mathrm{R}}_{\mathrm{BT}}\le 1000 kW\end{array}\right.$$\end{document} In this context, \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$${R}_{WT}$$\end{document} denotes the power of WT, \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$${R}_{PV}$$\end{document} represents the power of PV panels, \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$${R}_{BT}$$\end{document} indicates the power of BT, and \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$${\mathrm{R}}_{\mathrm{SC}}$$\end{document} refers to the power of SC. Establishing the upper and lower bounds of these decision variables is a process that is intricately dependent on the specific problem at hand. To facilitate optimal convergence of the solutions within the algorithms, the bounds of these variables are determined through a systematic trial-and-error method. This approach leads to the selection of values that yield the most advantageous outcomes. Methodology Optimization entails the strategic design or configuration of a system with the goal of securing optimal outcomes. The central objective in optimization typically involves either maximizing or minimizing a specific goal, which frequently centers on aspects such as cost, performance, or efficiency. Within the scope of the HRES sizing optimization problem, various constraints can hinder the maximization or minimization of these objectives68. These constraints may stem from diverse factors, including design parameters, material choices, physical space limitations, production capabilities, budget, and temporal considerations. In optimization processes, these constraints serve to impose defined limitations on the system or procedure under enhancement. This study incorporates distinct constraints, including a minimum renewable energy fraction (REF) (at least 60%) and a maximum annual cost of system (Annual cost = 109). These stipulations guide the optimization algorithm in modifying the design parameters to achieve a solution compliant with these constraints. The power generation and energy consumption profiles of the HRES are pivotal in determining the system’s power output. The design of an HRES is inherently tied to these profiles because the power derived from the HRES depends on meteorological inputs. Consequently, the dimensioning of the hybrid components is influenced by meteorological parameters, as shown in Eq. (1). This section expounds on the steps involved in the employed optimization algorithm, detailing the sizing methodology for the proposed HRES, strategies for energy management, and formulation of the objective function. The simulations were conducted using MATLAB R2022a environment, implementing custom-coded meta-heuristic optimization algorithms. The simulation was based on a real-world dataset consisting of 8760 hourly values of solar radiation, wind speed, ambient temperature, and electrical load, collected for the region of Yalova, Türkiye. The optimization framework considers four decision variables representing the rated power of photovoltaic panels, wind turbines, battery storage, and supercapacitors. The objective function focuses on minimizing the annualized cost of the system. Each optimization run was executed with a population size of 30 agents and a maximum of 100 iterations. Algorithm-specific solver mechanics were retained in each implementation to preserve algorithm integrity and performance characteristics. This setup allows for a fair and reproducible comparison across all selected algorithms. HRES sizing and optimization The sizing and optimization process of the HRES in this study was conducted using various methods based on the selected parameters69. Energy optimization models serve as tools for developing energy strategies and summarizing the potential future structure of a system under specific conditions. This approach facilitates gaining insights into technological advancements, structural changes, and policy recommendations70. MATLAB software was used to identify the most suitable configurations for the chosen location and to expedite the problem-solving process. To initiate computations, MATLAB requires inputs such as hourly climate data (ambient air temperature, solar irradiation, and wind speed), the load profile for the selected scenario, and the technical and economic characteristics of the HRES components71. The inputs and outputs of the system and the algorithms used in the sizing process are depicted in Fig. 5.Fig. 5System sizing methodology. System sizing methodology. The accompanying visual presents a comprehensive narrative of the HRES sizing and optimization process. The models are based on the R2022b software for simulation and optimization, which encompasses a broad spectrum of artificial intelligence optimization algorithms. These algorithms include KOA, HGS, COVIDOA, FHO, and SWO, among which the HGS algorithm demonstrates the best performance and optimal results. The data obtained from the optimization process include ideal component sizing and costs (PV, WT, SC, BT, Grid, Inverter), economic details (COE, ACS, and costs of all components), electricity generation, surplus energy, unmet load, annual and weekly energy analyses, and the REF of the HRES. The technical and economic characteristics of these components encompass critical factors such as capital and replacement costs, operation and maintenance (O&M) costs, and lifespan, serving as fundamental elements in assessing the system’s overall performance. Figure 5 illustrates the critical aspects of the HRES sizing and optimization process, providing guidance on managing this process and the preferred objective functions. This section offers insights into the selection of algorithms used and their applications in optimizing HRES. Energy management system Managing power in systems reliant on RESs poses significant challenges because of their inherent unpredictability72. This makes it particularly complex to ensure a consistent energy supply that can adapt to fluctuating load demands over different periods. The simulation study addresses this issue by considering various scenarios for applying optimization strategies: Case 1: Achieving balance between generation, load, and BT charging This scenario entails renewable energy sources successfully generating enough power to meet load demands. Surplus energy is strategically directed to charge the BT. The primary goal is to maintain a balance between energy production, load consumption, and efficient BT charging. Case 2: Allocating excess energy to SCs As with the first scenario, renewable sources produce more energy than required. However, excess energy is stored in SCs instead of BTs. This case focuses on optimizing energy distribution to exploit the rapid charge and discharge capabilities of SCs. Case 3: Addressing renewable generation shortfalls with BT discharge When renewable sources are unable to meet the load demands, this scenario involves using the stored energy in BTs to cover the deficit. The optimization here is centered on efficiently managing the BT discharge to bridge the gap between supply and demand. Case 4: Supercapacitor intervention for energy shortfalls In situations where both renewable generation and BT storage prove insufficient, SCs are employed to provide the necessary support. The optimization strategy in this case is to effectively utilize the supercapacitor’s quick response capabilities to overcome energy shortages. Case 5: Resorting to grid power in severe energy deficiencies This scenario unfolds under extreme conditions where renewable sources, BTs, and SCs are inadequate. Energy is then procured from the grid. Optimization efforts are directed toward minimizing grid energy dependence while ensuring system stability in these critical situations. These scenarios collectively form a comprehensive framework for understanding and developing effective power management strategies in HRES, offering insights into optimizing energy usage across varying conditions and ensuring a stable power supply. Figure 6 presents a schematic representation of the flow algorithm for the selected HRES model. It succinctly portrays the intricate decision-making process, highlighting the interactions among various components based on real-time energy dynamics.Fig. 6Power management of the on-grid PV/WT/BT/SC hybrid energy system. Power management of the on-grid PV/WT/BT/SC hybrid energy system. Hunger games search (HGS) algorithm This section presents the specifics of the HGS algorithm, including its mathematical framework. Search strategies, behavioral choices, and hunger-driven dynamics in animals Animals base their actions and decisions on computational rules in response to their environment, which are crucial for their cognitive development and survival strategies. Hunger, as a primary motivator, significantly influences their behaviors and choices, driving them to prioritize food search in times of need. This necessitates a balance between various behaviors, including exploration and defense, demonstrating adaptability in feeding approaches73. Behavioral choices in animals are driven by a blend of factors influenced by immediate needs and environmental stimuli74. Hunger is a dominant motivator, overriding other drives and shaping behaviors toward achieving stability75. Social behavior aids in survival, with communication playing a key role in resource location and predator avoidance. The evolutionary process favors those who are better at finding food, impacting survival rates and potentially leading to evolutionary outcomes. Hunger, defined as prolonged absence of food, intensifies the urgency of finding nourishment before life-threatening consequences occur76. In this context, animals engage in strategic behaviors to locate food, and their actions are driven by logical decision-making processes77. Mathematical model and foraging strategy of the HGS method This section elaborates on the HGS method and its mathematical model, which is derived from hunger-based activities and behavioral choices, demonstrating simplicity yet effective performance. In the natural world, social animals typically collaborate in food foraging; however, not all individuals participate in this cooperative behavior78. The HGS algorithm’s individual cooperative communication and foraging behaviors are encapsulated in the game-theoretic rules presented in Eq. (48).48\documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$\overrightarrow {{X\left( {t + 1} \right)}} = \left\{ {\begin{array}{*{20}c} {Game_{1} :\overrightarrow {X\left( t \right)} .\left( {1 + rand\left( 1 \right)} \right),} & {r_{1} < l} \\ {Game_{2} :\overrightarrow {{W_{1} }} .\overrightarrow {{X_{b} }} + \vec{R}.\overrightarrow {{W_{2} }} .\left| {\overrightarrow {{X_{b} }} - \overrightarrow {X\left( t \right)} } \right|,} & {r_{1} > l, r_{2} > E} \\ {Game_{3} :\overrightarrow {{W_{1} }} .\overrightarrow {{X_{b} }} - \vec{R}.\overrightarrow {{W_{2} }} .\left| {\overrightarrow {{X_{b} }} - \overrightarrow {X\left( t \right)} } \right|,} & {r_{1} > l, r_{2} < E} \\ \end{array} } \right.$$\end{document} In this section, the mathematical intricacies of the HGS algorithm was discussed. The vector \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$\overrightarrow{R}$$\end{document} operates within the range [ − a, a]; the elements \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$${r}_{1}$$\end{document} and \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$${r}_{2}$$\end{document} are randomly selected numbers between 0 and 1; \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$rand\left(1\right)$$\end{document} denotes a number generated from a normal distribution; and \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$t$$\end{document} symbolizes the ongoing iteration. The vectors \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$\overrightarrow{{W}_{1}}$$\end{document} and \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$\overrightarrow{{W}_{2}}$$\end{document} represent hunger-driven weights, a concept developed based on hunger-induced signaling behaviors79. The notation \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$\overrightarrow{{X}_{b}}$$\end{document}, is used for the optimal individual’s position in the current iteration, whereas \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$\overrightarrow{X(t)}$$\end{document} signifies the positions of all individuals. The l value, a parameter to be elaborated upon in a parameter-setting experiment, is crafted to refine the algorithm. The term \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$\overrightarrow{X(t)}.\left(1+rand\left(1\right)\right)$$\end{document} depicts an agent’s random, hunger-driven search for food from its existing position. The difference \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$\left|\overrightarrow{{X}_{b}}-\overrightarrow{X(t)}\right|$$\end{document} models the range of activity for an individual at a given moment and, when multiplied by \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$\overrightarrow{{W}_{2}}$$\end{document}, assesses hunger’s influence on this range. Vector \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$\overrightarrow{R}$$\end{document} is incorporated as a regulatory tool to confine the activity range, gradually reducing toward zero, reflecting the cessation of the search as hunger diminishes. The interaction of \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$\overrightarrow{{W}_{1}}.\overrightarrow{{X}_{b}}$$\end{document} manipulates the range of activity, simulating a scenario in which an individual is informed by peers upon reaching the source of food and then resumes foraging at the current position after feeding. Here, \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$\overrightarrow{{W}_{1}}$$\end{document} captures the error in accurately perceiving the real position. Equation (49) details the formula \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$E$$\end{document}, which ensures controlled variation across all positions.49\documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$E=sech\left(\left|F\left(i\right)-BF\right|\right)$$\end{document} In this model, each participant is identified as \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$i$$\end{document}, which varies from 1 to \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$n$$\end{document}. The function \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$F(i)$$\end{document} is used to evaluate the fitness level of each individual. It determines the effectiveness or adaptability of each participant within the algorithm. The optimum fitness value achieved in the current cycle is indicated by \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$BF$$\end{document}. In addition, the model incorporates the hyperbolic function Sech, which is mathematically defined by the equation \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$\mathrm{sech}\left(x\right)=2/{(e}^{x}+{e}^{-x})$$\end{document}, highlighting an essential component of the model’s calculation methodology. The vector \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$\overrightarrow{R}$$\end{document} is formulated by Eq. (50):50\documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$\overrightarrow{R}=2\times \mathrm{shrink}\times \mathrm{rand}-\mathrm{shrink}$$\end{document} In this context, the shrink factor is computed using Eq. (51):51\documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$\mathrm{shrink}=2\times \left(1-\frac{t}{T}\right)$$\end{document}where ‘rand’ symbolizes a random number within the [0, 1] interval, and T signifies the total number of iterations. Figure 7 depicts the search process and logic of the HGS in voids, as governed by the rule in Eq. (48). From the graph, it is evident that the directions of the search can be categorized into two distinct types based on the nature of the source points:Fig. 7Illustration of the HGS algorithm’s operational logic during the optimization process. Illustration of the HGS algorithm’s operational logic during the optimization process. Independent Search based on \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$\overrightarrow{{\boldsymbol{X}}}$$\end{document}: The initial game rule replicates an autonomous approach, characterized by a lack of collaborative effort and sole focus on an eager quest for food. Collaborative Search based on \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$\overrightarrow{{{\boldsymbol{X}}}_{{\boldsymbol{b}}}}$$\end{document}→: The second rule of the game closely integrates the variables \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$\overrightarrow{R}$$\end{document}, \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$\overrightarrow{{W}_{1}}$$\end{document}, and \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$\overrightarrow{{W}_{2}}$$\end{document}. Adjusting these parameters allows the evolution of an individual’s position within the feature space, emulating the collaborative efforts of multiple entities in their search for nourishment. Equation (34) establish guidelines that enable individuals to investigate areas both close to and distant from the optimal solution. This ensures comprehensive search within the solution space limits to a certain degree (diversification), a principle that is equally applicable in high-dimensional search spaces. Influence of Hunger This section mathematically models how hunger or starvation impacts the search behavior of individuals. The expression for \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$\overrightarrow{{W}_{1}}$$\end{document} in Eq. (52) is outlined as follows:52\documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$\overrightarrow{{W}_{1}(i)}=\left\{\begin{array}{c}hungry\left(i\right).\frac{N}{SHungry}\times {r}_{4}, {r}_{3}l\end{array}\right.$$\end{document} The expression for \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$\overrightarrow{{W}_{2}}$$\end{document} in Eq. (53) is outlined as follows:53\documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$\overrightarrow{{W}_{2}(i)}=\left(1-exp\left(-\left|hungry\left(i\right)-SHungry\right|\right)\right)\times {r}_{5}\times 2$$\end{document} In this context, ‘hungry’ denotes each individual’s level of hunger; \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$N$$\end{document} stands for the total number of individuals; \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$SHungry$$\end{document} is the collective hunger sensation of all individuals, calculated as sum(\documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$hungry$$\end{document}); \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$${r}_{3}$$\end{document}, \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$${r}_{4}$$\end{document}, and \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$${r}_{5}$$\end{document} represent random values within the [0, 1] range. For the precise computation of \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$hungry(i),$$\end{document} refer to the formulation presented in Eq. (54).54\documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$hungry\left(i\right)=\left\{\begin{array}{c}0, AllFitness\left(i\right)==BF\\ hungry\left(i\right)+H, AllFitness(i)!=BF\end{array}\right.$$\end{document} In this model, \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$AllFitness(i)$$\end{document} maintains the fitness level of each individual during the current iteration. At each iteration stage, the fittest individual’s hunger level is assigned a value of 0. For the rest, a revised hunger value \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$(H)$$\end{document} is computed, building upon their initial hunger levels. This results in varying \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$H$$\end{document} values across individuals. The formula for \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$H$$\end{document} is presented in Eq. (55).55\documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$TH=\frac{F\left(i\right)-BF}{WF-BF}\times {r}_{6}\times 2\times \left(UB-LB\right)$$\end{document}56\documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$H=\left\{\begin{array}{c}LH\times \left(1+r\right), TH