원시데이터 수집 시스템
선정목록으로

A case study of optimal design and techno-economic analysis of an islanded AC microgrid

간접 관련 수소연료전지 · (7) MEA(막전극접합체) (5) 연료전지용 수분제어장치(가습기)(6) PEM(고분자전해질막)

기본 정보

저자
  1. M. S. Elborlsy — Process Control Technology Department, Faculty of Technology and Education, Beni-Suef University, Beni-Suef, Egypt
  2. R. Mostafa — Process Control Technology Department, Faculty of Technology and Education, Beni-Suef University, Beni-Suef, Egypt
  3. Mohamed A. Ghalib — Process Control Technology Department, Faculty of Technology and Education, Beni-Suef University, Beni-Suef, Egypt. mohamed01177@techedu.bsu.edu.eg
  4. Shimaa Barakat — Electrical Engineering Department, Faculty of Engineering, Beni-Suef University, Beni-Suef, Egypt
  5. H.E. Keshta — Electrical Engineering Department, Faculty of Engineering at Shoubra, Benha University, Banha, Egypt
DOI
10.1038/s41598-025-94506-z
저널
Scientific Reports
발행년도
2025
발행기관
Nature Portfolio
피인용수
21
라이선스
cc-by
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.1038/s41598-025-94506-z
토픽
Hybrid Renewable Energy Systems
OpenAlex ID
W4409374497

평가 내용

관련도
간접 관련
사업분야
수소연료전지 · (7) MEA(막전극접합체)
부 분야
(5) 연료전지용 수분제어장치(가습기), (6) PEM(고분자전해질막)
R&D 측면
부품·응용 설계
확신도
0.70
근거 용어
Fuel cell (FC), Electrolyzer, Hydrogen tank, Microgrid, Techno-economic analysis
판단 근거
논문은 독립형 마이크로그리드 시스템의 최적 설계를 다루며, 그 구성 요소로 연료전지(FC), 수전해 장치(Electrolyzer), 수소 저장 탱크를 포함하고 있습니다.
R&D 활용 포인트
수소연료전지(PEMFC) 시스템의 구성 요소(연료전지, 수전해, 수소 저장)를 통합한 마이크로그리드 시스템의 경제성 및 운영 최적화 모델링에 활용 가능합니다.
평가 입력
본문 129,274자 중 30,032자 발췌

초록

Abstract Microgrids (MGs) are essential in the distribution system by utilizing widely dispersed generation sources. Due to their economical and environmentally friendly attributes, Islanded AC MGs are commonly used to supply electricity to isolated locations independent of the primary grid. This study focuses on optimizing the configuration of an islanded AC MG to meet the electrical requirements of an international school in the New Administrative Capital, New Cairo, Egypt. Hybrid Optimization of Multiple Energy Resources (HOMER) software is employed to obtain the optimal size of the sources in the MG by minimizing the Levelized Cost of Energy (LCOE) and Total Net Present Cost (TNPC). According to the HOMER simulation results, a 200 kW PV system, a 180-kW wind turbine, a 50 kW FC, a 50 kW electrolyzer, a 50 kg hydrogen tank, a 180 kW DG, and a 686-kWh lead-acid battery form the optimal configuration of the islanded AC MG. The results reveal the contribution of each energy component to meeting the electricity demand, yielding an LCOE of $0.153/kWh and a TNPC of $1,775,300.00. The dynamic performance of the islanded microgrid is examined, introducing a Model Reference Adaptive Control based PI controller (MRAC-PI) to enhance transient response across all operational conditions. A comparative analysis is performed against traditional PI-PSO and PI-WOA controllers under load variations and changing weather conditions. The results indicate that the proposed control strategy effectively maintains system frequency and voltage amid various disturbances, improves dynamic performance, and achieves a balanced power generation and load demand. Additionally, the proposed controller demonstrates superior dynamic response, featuring reduced overshoot, undershoot, ITAE, and settling time compared to the others.

본문 129,274자

본문 펼치기
## OPEN # A case study of optimal design and techno-economic analysis of an islanded AC microgrid M. S. Elborlsy <sup>1</sup> , R. M. Mostafa <sup>1</sup> , Mohamed A. Ghalib <sup>1</sup> <sup></sup> , Shimaa Barakat <sup>2</sup> & H. E. Keshta <sup>3</sup> Microgrids (MGs) are essential in the distribution system by utilizing widely dispersed generation sources. Due to their economical and environmentally friendly attributes, Islanded AC MGs are commonly used to supply electricity to isolated locations independent of the primary grid. This study focuses on optimizing the configuration of an islanded AC MG to meet the electrical requirements of an international school in the New Administrative Capital, New Cairo, Egypt. Hybrid Optimization of Multiple Energy Resources (HOMER) software is employed to obtain the optimal size of the sources in the MG by minimizing the Levelized Cost of Energy (LCOE) and Total Net Present Cost (TNPC). According to the HOMER simulation results, a 200 kW PV system, a 180-kW wind turbine, a 50 kW FC, a 50 kW electrolyzer, a 50 kg hydrogen tank, a 180 kW DG, and a 686-kWh lead-acid battery form the optimal configuration of the islanded AC MG. The results reveal the contribution of each energy component to meeting the electricity demand, yielding an LCOE of $0.153/kWh and a TNPC of $1,775,300.00. The dynamic performance of the islanded microgrid is examined, introducing a Model Reference Adaptive Control based PI controller (MRAC-PI) to enhance transient response across all operational conditions. A comparative analysis is performed against traditional PI-PSO and PI-WOA controllers under load variations and changing weather conditions. The results indicate that the proposed control strategy effectively maintains system frequency and voltage amid various disturbances, improves dynamic performance, and achieves a balanced power generation and load demand. Additionally, the proposed controller demonstrates superior dynamic response, featuring reduced overshoot, undershoot, ITAE, and settling time compared to the others. Keywords Renewable energy sources, Islanded AC microgrid, Diesel Generator (DG), Photovoltaic panel (PV), Microgrid (MG), Wind Turbine (WT), Fuel cell (FC) The escalating global population and the reliance on fossil fuels have raised serious ecological concerns, necessitating the search for sustainable and environmentally friendly energy sources. Renewable energy sources (RES), like PV and WT systems, have emerged as promising alternatives to nonrenewable fuels. However, these RES face challenges related to intermittent supply and the need for storage, particularly in arid regions <sup>1</sup> . MG systems offer a revolutionary energy production, delivery, and consumption solution. An MG comprises a set of distributed energy resources (DERs) and loads, functioning as a single, manageable unit. DERs encompass various micro-sources, including PV, WT, FC, DG, and battery energy storage system (BESS) <sup>2</sup> . As the world transitions toward renewable energy and grid resilience, MGs play a vital role by integrating RES into the electrical grid, reducing greenhouse gas emissions, and enhancing energy management <sup>3</sup> . Providing power to remote regions is crucial for strengthening the economy, creating jobs, reducing poverty, and improving living conditions. However, these areas often suffer from frequent disruptions, low quality, and power failures due to their distance from the conventional power grid. Expanding the grid to these regions is economically unviable. Implementing off-grid hybrid renewable energy systems (HRES) that combine PV, WT, and DG can address these power challenges and provide reliable and affordable electricity. Such independent HRES can also foster power utilization and economic development and overcome the limitations of limited fossil fuel reserves in rural and urban areas <sup>4</sup> . Designing an optimal HRES involves considering various factors, including identifying regions with the highest potential for renewable energy utilization, minimizing energy costs, and reducing emissions. Numerous tools, computer simulation software, and effective optimization methodologies have been employed 1Process Control Technology Department, Faculty of Technology and Education, Beni-Suef University, BeniSuef, Egypt. <sup>2</sup> Electrical Engineering Department, Faculty of Engineering, Beni-Suef University, Beni-Suef, Egypt. 3Electrical Engineering Department, Faculty of Engineering at Shoubra, Benha University, Banha, Egypt.  email: mohamed01177@techedu.bsu.edu.eg to develop HRES models. Table 1 compares several simulation tools based on their characteristics and offerings <sup>5</sup> . One such software, HOMER, is widely used to evaluate the economic viability of HRES. HOMER enables the evaluation of financial feasibility and performance variations of HRES based on different energy sources <sup>6</sup> . The HOMER software is used to create the best system possible for remote areas based on the availability of RES. The best configuration for an isolated microgrid (IMG), including PV and BESS, was designed <sup>7–10</sup> to meet the energy demand in Saudi Arabia, India, Rwanda, and Algeria with high generation and low LCOE. In <sup>11</sup>, the WT/BESS hybrid system for the home in Xining, China, was shown to be the most optimal configuration for an IMG. In <sup>12–16</sup>, the PV/WT/ BESS hybrid configuration was identified as the most optimal solution for an IMG in Iran, India, India, Oman, and Pakistan. In <sup>17</sup>, the PV/BESS system was highlighted as optimal for residential and business loads and electric vehicle (EV) charging stations in Shah Alam, Malaysia. In <sup>18–23</sup>, the PV/ DG/ BESS hybrid system provided the most efficient configuration for IMGs in India, Nigeria, India, Benin, and the United Arab Emirates. In <sup>24</sup>, the WT/DG/ BESS hybrid system was shown to be optimal for urban residential loads in the United Kingdom. Meanwhile, the PV/WT/DG system was identified as the best configuration for rural community loads in Bhola, Bangladesh <sup>25</sup> . In <sup>26</sup>, the PV/DG/BESS hybrid system was optimal for remote community loads in Myanmar and Bangladesh. In <sup>27–32</sup>, demonstrated the effectiveness of the PV/WT/DG/BESS hybrid system across various regions, including Pakistan, Cameroon, Malaysia, Nigeria, Bangladesh, and India. In <sup>33</sup>, the PV/DG/BESS hybrid system was considered optimal for remote island community loads in Indonesia. In China, the PV/WT/DG/BESS hybrid system was recognized as the most efficient configuration for rural commercial, agricultural, community, and industrial loads <sup>34</sup> . In Saudi Arabia, the PV/FC/Hydrogen tank (HT)/ Electrolyzer (ELZ) hybrid system was shown to be optimal for residential applications <sup>35</sup> . Similarly, the PV/WT/ FC/HT/ELZ hybrid system was the best solution for coastal residential loads in India <sup>36</sup>, and the PV/WT/FC/ FC/BESS/HT/ELZ system was optimal for EV charging stations in India <sup>37</sup> . In <sup>38</sup>, the PV/WT/DG/BESS hybrid system was optimal for remote residential loads in Iran, while the PV/FC/HT/ELZ system was identified as ideal for domestic applications in Oman <sup>39</sup> . The PV/BESS system was recognized as the best configuration for remote commercial loads in Indonesia <sup>40</sup> . In Sub-Saharan Africa, the PV/WT/FC/BESS/HT/ELZ hybrid system was determined to be optimal for rural healthcare centers <sup>41</sup> . In <sup>42</sup>, the PV/WT/DG/BESS hybrid system was highlighted as the best configuration for remote residential loads in Algeria. The PV/FC/HT/ELZ system was noted as optimal for healthcare centers in Iran <sup>43</sup> . Lastly, studies In <sup>44,45</sup> emphasized the optimal PV/DG/BESS hybrid system in India and Afghanistan. At the same time, in <sup>46</sup> showed that the PV/WT/DG/BESS hybrid system was ideal for rural agricultural loads in Nigeria. The study focuses on Egypt’s RES potential and diverse climate. In <sup>47</sup> examines eco-friendly hydrogen generation for electricity and hydrogen needs using RES in Egypt. Proposes sustainable freshwater production in Abuqir, Alexandria, using HRES Reverse Osmosis <sup>48</sup> . In <sup>49</sup> compares renewable energy MG systems for New Sohag University, focusing on solar energy. In <sup>50</sup> implements demand-side management for isolated systems in Egypt. The PV/WT/DG/BESS system has been identified as ideal for various applications, including residential loads in Aswan <sup>51</sup>, Hurghada <sup>52</sup>, and Western Sahara <sup>53</sup>, Egypt, as well as for industrial and residential loads in the Red Sea <sup>54</sup> and residential communities in MarsaMatruh <sup>55</sup> . Additionally, it is suitable for desalination plants in the Red Sea <sup>56</sup> . Meanwhile, the PV/WT/FC/HT/ ELZ system is deemed optimal for Cairo International Airport <sup>57</sup>, and the WT/FC/HT/ELZ system is ideal for a remote small restaurant in Ras-Ghareb, Egypt <sup>58</sup> . Table 2 presents a comprehensive analysis of relevant research papers published in the last five years, which employed HOMER and MATLAB software to conduct stability and techno-economic analyses of isolated AC MGs. The literature review highlighted several research gaps and limitations in these specific points, as described here: - Lack of comprehensive analysis: focusing solely on technical issues without incorporating economic and environmental analysis or concentrating only on financial considerations without thoroughly examining or validating the suggested models. - Limited Case Studies: concentrates on speculative scenarios or does not include case studies from the real world. - Limited Scope: looking at one technology (PV, wind, or DG) without considering a hybrid strategy. <u>Sofwaret</u> <u>Solar</u> <u>Wind</u> <u>Technical</u> <u>Economic</u> <u>Optimization</u> <u>Free Trial</u> <u>PV System</u> <u>✔</u> <u>x</u> <u>✔</u> <u>x</u> <u>✔</u> <u>✔</u> <u>SolSim</u> <u>✔</u> <u>x</u> <u>✔</u> <u>✔</u> <u>✔</u> <u>x</u> <u>Hybrid2</u> <u>✔</u> <u>✔</u> <u>✔</u> <u>x</u> <u>x</u> <u>✔</u> <u>TRNsys</u> <u>✔</u> <u>✔</u> <u>✔</u> <u>x</u> <u>x</u> <u>✔</u> <u>Hybrids</u> <u>✔</u> <u>✔</u> <u>✔</u> <u>x</u> <u>✔</u> <u>x</u> <u>Hydrogels</u> <u>✔</u> <u>✔</u> <u>✔</u> <u>✔</u> <u>✔</u> <u>x</u> <u>Ihoga</u> <u>✔</u> <u>✔</u> <u>✔</u> <u>✔</u> <u>✔</u> <u>x</u> <u>Sam</u> <u>✔</u> <u>✔</u> <u>✔</u> <u>✔</u> <u>x</u> <u>✔</u> <u>Rescreen</u> <u>✔</u> <u>✔</u> <u>✔</u> <u>✔</u> <u>x</u> <u>✔</u> <u>Homer</u> <u>✔</u> <u>✔</u> <u>✔</u> <u>✔</u> <u>✔</u> <u>✔</u> Table 1 . Simulation programs for the design of HRES. <u>Ref</u> <u>Year</u> <u>Method/Sofwaret</u> <u>Objective(s)</u> <u>Limitation(s)</u> 7 2023 HOMER Pro & <u>MATLAB</u> - Optimize RES based on location and implement a robust <u>EMS to obtain MG stability</u> 8 2022 HOMER - Presentation of an optimal off-grid HRES design and techno<u>economic analysis for rural loads</u> 9 2021 HOMER - Designing an SPV plant for rural areas, providing the <u>government with insights for similar projects</u> 10 2020 HOMER & MATLAB - Proposing a PSO-based DSM strategy to optimize an off-grid <u>HRES for a residential building</u> 11 2020 HOMER - assessing the techno-economic feasibility of an off-grid WT<u>FC-BESS hybrid system</u> 12 2023 HOMER - Presentation of a comprehensive framework for an HRES integrating PV, WT, and biogas - Over 24 h, the suggested technique is thoroughly tested and <u>programmed in an IMG</u> 13 2021 HOMER - Examining challenges in HRES design and assessing the <u>techno-economic feasibility for rural areas</u> 14 2020 HOMER - Examining a Wave/PV/WT /BESS hybrid system for 3,000 <u>households in three parts of Iran</u> 15 2020 HOMER <u>Pro</u> - Assessing an off-grid HRES for a reverse osmosis <u>desalination plant</u> 16 2020 HOMER & MATLAB - Presentation of an ideal design for an HRES to meet the home electricity demand of a residential area in Pakistan 17 2023 HOMER <u>Pro</u> 18 2022 HOMER Pro - Using DSM to plan elastic loads and optimized MG design <u>with an EV-inclusive load profile</u> - Applying a probabilistic approach for sizing and assessing PV-based MGs, evaluating the environmental impacts of the <u>configurations</u> 19 2021 HOMER - Assessing the techno-economic viability of PV/WT/DG/ <u>BESS hybrid systems for an IMG</u> 20 2021 HOMER - Detailing the techno-economic feasibility and design of six <u>HGIRES for rural electrification</u> 21 2020 HOMER - Creating a conceptual framework, conducting a technoeconomic analysis, and designing MG’s distribution network 22 2020 HOMER - Analyzing the techno-economic feasibility of an HRES for <u>rural electrification in Fouay village, Benin</u> 23 2020 HOMER - Optimizing and analyzing sensitivity for four PV, DG, and <u>BESS systems, with and without tracking</u> 24 2020 HOMER - Examining a hybrid power system that uses RES to supply a <u>household’s electrical and heating needs</u> 25 2022 TOPSIS with AHP - Using TOPSIS with AHP to size an IMG for rural areas based <u>on techno-economic parameters</u> 26 2024 HOMER & MCDM - Assessing hybrid energy systems for affordable, reliable <u>power in four impoverished Asian nations</u> 27 2024 HOMER <u>Pro</u> - Examining three hybrid systems’ economic, technical, and <u>emission performance</u> 28 2023 HOMER & MATLAB - Proposing a systematic optimization framework for an autonomous HRES in Dschang, Cameroon - Limited scope—Neglect of load variability—Neglect integration and <u>reliability Issues—Simplistic models</u> - Limited scope—Neglect integration and reliability Issues—Lack of <u>comprehensive analysis—Simplistic models</u> - Limited Scope—Neglect integration and reliability Issues—Lack of <u>comprehensive analysis—Simplistic models</u> - Limited scope—Simplistic models—Neglect integration and reliability <u>Issues</u> - High cost of energy—Neglect integration and reliability Issues Limited <u>scope—Lack of comprehensive analysis</u> - High cost of energy—Limited case studies—Narrower focus—Lack of comprehensive analysis—Generalized findings—Neglect integration and reliability Issues—Poor results visualization—Lack of attention to user <u>needs</u> - Lack of comprehensive analysis—Narrower focus—Neglect integration <u>and reliability Issues</u> - Lack of comprehensive analysis—Neglect integration and reliability <u>Issues</u> - Lack of comprehensive analysis—Narrower focus—Neglect integration <u>and reliability Issues</u> - The MATLAB validation model’s component sizes differ from the HOMER’s optimal configuration, raising concerns about the validation <u>process’s accuracy and reliability—Narrower focus</u> - Limited scope—Lack of comprehensive analysis—Neglect integration <u>and reliability Issues—Poor results visualization</u> - Neglect integration and reliability Issues—Narrower focus—Lack of comprehensive analysis—Poor results visualization - Lack of comprehensive analysis—Neglect integration and reliability <u>Issues—Narrower focus</u> - Lack of comprehensive analysis—Neglect integration and reliability <u>Issues—Narrower focus</u> - High cost of energy—Narrower focus—Lack of comprehensive analysis—Poor results visualization—Neglect integration and reliability <u>Issues</u> - Lack of comprehensive analysis Neglect integration and reliability <u>Issues—Narrower focus</u> - Neglect integration and reliability Issues—Narrower focus—Lack of <u>comprehensive analysis</u> - High cost of energy—Neglect integration and reliability Issues— <u>Narrower focus—Lack of comprehensive analysis</u> - High cost of energy—Neglect integration and reliability Issues— <u>Narrower focus—Lack of comprehensive analysis</u> - Poor results visualization—Lack of comprehensive analysis—Neglect <u>integration and reliability Issues</u> - Neglect integration and reliability Issues—Lack of comprehensive <u>analysis</u> - Neglect of Load Variability—Neglect integration and reliability Issues— The MATLAB validation model’s component sizes differ from HOMER’s <u>optimal setup</u> - High Cost of Energy—Neglect integration and reliability Issues—The MATLAB validation model’s component sizes differ from the HOMER’s <u>optimal configuration</u> - Poor results visualization—Neglect integration and reliability Issues— <u>Lack of comprehensive analysis</u> 29 2023 HOMER & MATLAB - Using deterministic and stochastic optimization to determine the most cost-effective energy modules for meeting the load <u>demand in Pulau Perhentian</u> 30 2023 HOMER - Modeling and optimizing a hybrid MG at the University in <u>Nigeria for electricity generation</u> 31 2023 HOMER Pro & ETAP - Looking at different dispatch algorithms for an IMG, - Lack of attention to user needs—Neglect integration and reliability Issues <u>including DG, WT, BESS, and PV</u> 32 2022 HOMER - Creating the best possible HRES utilizing PV, WT, thermal <u>loads, BESS, TLC, boiler, and DG</u> 33 2022 HOMER <u>Pro</u> - Feasibility of an HRES on a remote Indonesian island with <u>existing DG and current diesel prices</u> 34 2020 HOMER - Evaluating an off-grid HRES’s techno-economic viability for <u>rural villages</u> 35 2023 HOMER - investigate the feasibility and cost-effectiveness of using FC <u>with PV to power a load</u> 36 2021 HOMER - Address hydrogen energy storage to solve power fluctuations <u>using HOMER simulations</u> 37 2022 HOMER - Exploring hydrogen energy storage to manage power <u>variability at an EV charging station in Delhi</u> <u>Continued</u> - Lack of comprehensive analysis—Neglect integration and reliability <u>Issues</u> - Lack of comprehensive analysis—Neglect integration and reliability <u>Issues—Narrower focus</u> - Lack of comprehensive analysis—Neglect integration and reliability <u>Issues</u> - High cost of energy—Lack of comprehensive analysis—Neglect <u>integration and reliability Issues</u> - Neglect integration and reliability Issues—Lack of comprehensive <u>analysis</u> - Lack of comprehensive analysis—Neglect integration and reliability <u>Issues</u> <u>Ref</u> <u>Year</u> <u>Method/Sofwaret</u> <u>Objective(s)</u> <u>Limitation(s)</u> 38 2024 HOMER - Evaluating off-grid HRES sustainability in remote Iran based <u>on diesel prices and solar radiation</u> 39 2024 HOMER Pro & PVsyst - Assessing the feasibility of combining floating PV with <u>hydrogen storage for power generation</u> 40 2024 HOMER - Using Baron Techno Park in Indonesia as a case study to <u>build the ideal MG for remote 3 T locations</u> 41 2024 HOMER - Exploring HRES for electrifying rural healthcare in South <u>Africa and Nigeria</u> 42 2024 MATLAB (ISSA) - Using the ISSA optimization technique to size an MG in <u>Djelfa, Algeria</u> 43 2024 HOMER - Assessing RHCC layouts with a 10 kWh/day load in five <u>climate-variable locations in Iran</u> 44 2024 HOMER <u>Pro</u> 45 2024 HOMER <u>Pro</u> - PV efficiency will be assessed using performance metrics and <u>a techno-economic analysis to design an IMG</u> - This study suggests a high-performing, reasonably priced <u>MG for Afghanistan</u> 46 2024 HOMER - Assesses HRES for Nigeria’s agriculture, addressing rural <u>electricity issues</u> 47 2023 HOMER <u>Pro</u> 48 2023 HOMER <u>Pro</u> - Produce green hydrogen for isolated hydrogen and electrical <u>loads using RES</u> - Machine learning is applied to enhance load forecasting and <u>adapt to increasing water demand</u> 49 2019 HOMER - Comparing two renewable energy MG systems for New <u>Sohag University focusing on PV generation</u> 50 2024 HOMER <u>Pro</u> 51 2024 HOMER <u>Pro</u> - Examining the viability and design of HRES for rural <u>electrification in an Egyptian village</u> - Presentation of an optimal design for IMGs in a remote <u>Nubian village in Aswan, Egypt</u> 52 2021 HOMER - The techno-economic studies combining DG, WT, and SPVS <u>for Hurghada City, Egypt</u> 53 2019 HOMER - The ideal hybrid MG size for rural electrification in Abu<u>Monqar, Egypt, is presented in this study</u> 54 2022 HOMER - Designing and assessing the feasibility of eight HRES using <u>HOMER software</u> 55 2020 HOMER Pro <u>&MATLAB</u> 56 2020 HOMER <u>Pro</u> 57 2024 HOMER <u>Pro</u> - Offering a clear, four-phase, scientific framework for <u>designing HRES in an Egyptian community</u> - Evaluating off-grid power systems and optimizing HRES for <u>a reverse osmosis facility</u> - Developing a deterministic method to optimize HRES size, <u>focusing on 1-year simulations</u> - Lack of attention to user needs—Lack of comprehensive analysis— <u>Neglect integration and reliability Issues</u> - High cost of energy—Lack of comprehensive analysis—Neglect <u>integration and reliability Issues</u> - Limited scope—Lack of comprehensive analysis—Neglect integration <u>and reliability Issues</u> - Lack of comprehensive analysis—Neglect integration and reliability <u>Issues</u> - Lack of comprehensive analysis—Neglect integration and reliability <u>Issues</u> - Lack of comprehensive analysis—Neglect integration and reliability <u>Issues</u> - Narrower focus—Lack of comprehensive analysis—Neglect integration <u>and reliability Issues</u> - Narrower focus—Lack of comprehensive analysis—Neglect integration <u>and reliability Issues</u> - Lack of comprehensive analysis—Neglect integration and reliability <u>Issues</u> - Narrower focus—Lack of comprehensive analysis—Neglect integration <u>and reliability Issues</u> - Neglect integration and reliability Issues—Poor results—Lack of <u>comprehensive analysis—Narrower focus</u> - Poor results visualization—Lack of comprehensive analysis—Neglect <u>integration and reliability Issues</u> - Poor results visualization—Lack of comprehensive analysis—Neglect <u>integration and reliability Issues</u> - Lack of comprehensive analysis—Neglect integration and reliability <u>Issues</u> - Poor results visualization—Lack of comprehensive analysis—Neglect <u>integration and reliability Issues</u> - Poor results visualization—Lack of comprehensive analysis—Neglect <u>integration and reliability Issues</u> - Poor results visualization—Lack of comprehensive analysis—Neglect <u>integration and reliability Issues</u> - The system’s scope is restricted by lacking technologies like FC, limiting <u>efficiency and versatility</u> - Lack of comprehensive analysis—Neglect integration and reliability <u>Issues</u> - Lack of comprehensive analysis—Neglect integration and reliability <u>Issues</u> - Lack of comprehensive analysis—Neglect integration and reliability <u>Issues</u> 58 2023 HOMER - Evaluating green hydrogen as a possible fuel and energy <u>storage medium for Egypt’s RES</u> Table 2 . Comprehensive analysis of literature study. - Narrower focus: ignore the possible advantages of hybrid configurations with cutting-edge parts like PV-WTDG-BESS -FC-ELZ-HT, which can restrict the usefulness and efficacy of the proposed solutions. - Generalized Findings: Other researchers’ results are generic and not adapted to use cases or geographical areas. - Neglect of Load Variability: did not take generation and load variations into sufficient account. - Neglect integration and reliability Issues: The operational and technological difficulties of integrating diverse energy sources are not included, and the reliability and quality of the power supply are not discussed in detail. - Simplistic Models: employ too basic models that fail to represent the intricacy of actual energy systems adequately. - Poor Results Visualization: The findings are presented less understandably, devoid of illustrative charts or explicit representations. - Lack of Attention to User Needs: Its conclusions do not match the requirements or inclinations of end users. - high cost of energy: This high price may put off potential customers or investors, particularly in areas with limited resources, diminishing the solution’s overall viability and appeal. Considering all the above, the contributions and scope of the work that is being presented are summed up as follows: - Comprehensive analysis: The paper integrates technological and economic factors, offering a holistic approach that addresses the limitations of focusing solely on one aspect. HOMER is employed for optimal component sizing, thus contributing to the development of economically viable MG solutions. Subsequently, MATLAB uses the component sizes determined by HOMER to model the operational and technological challenges of integrating multiple energy sources. - Advanced modeling techniques: The study employs sophisticated modeling techniques that capture the complexity of real-world systems, utilizing both HOMER for economic analysis and MATLAB/Simulink for technical analysis. - Real-World Case Study: The study analyzes the specific electrical requirements of an international school in New Cairo and provides a concrete application of the proposed MG configuration. - proposing a non-linear adaptive controller, MRAC-PI controller, to enhance the transient response of frequency over a wide range of operating points. To demonstrate the efficiency of the proposed controller, its performance is examined, evaluated, and compared with the PI-PSO and PI-WOA controllers. - The location’s significance is due to its representation of emerging urban development’s prioritizing sustainable energy solutions, making it relevant for similar settings worldwide. - Hybrid technology integration: Including advanced components such as FC and ELZ alongside PV, WT, DG, and BESS allows for a more versatile and efficient energy system. - Consideration of load variability: The research thoroughly accounts for generation and load variations, enhancing the proposed system’s reliability and robustness. - Focus on reliability and addressing Integration Issues: The paper discusses the reliability and quality of power supply in detail, addressing a common gap in recent literature. It also explores the operational and technological challenges of integrating multiple energy sources using MATLAB software, providing valuable insights for practical implementation. - User-centric approach: the research aligns its conclusions with the specific needs and preferences of an international school in New Cairo, ensuring that the proposed solutions are practical and user-friendly. Cost-effective solutions: The study contributes to developing economically viable MG solutions by aiming to minimize the LCOE and TNPC.This paper’s remaining parts are organized as follows. A thorough explanation of the technique and a description of the suggested power system are provided in Sect. “Optimal sizing and economic analysis using HOMER PRO”. This includes the site details, evaluation of energy resources, load profile, and the economic and mathematical models used for the suggested system’s elements. Section “Feasibility study” presents the results and discussions from the HOMER software and the optimization achievements. Financial analysis is also included in this section, along with the rated capacity in Kilowatt (kW) and quantity of units for each type of system component, as well as the expenses associated with the ideal system, such as TNPC and LCOE. Section “Mathematical modeling” focuses on the MATLAB system under study, specifically, the islanded AC MG system configuration and the load frequency control mechanism, and Sect. “Optimization and economic model” presents MATLAB simulation results that demonstrate how the load frequency control maintains constant AC bus voltage and frequency, achieves active power balancing among the components of an islanded AC MG, and ensures adequate AC voltage quality in the presence of load and generation disturbances. Finally, Sect. “Model constraints” concludes this work. Optimal sizing and economic analysis using HOMER PRO Figure 1 outlines the recommended approach for optimizing component size and load frequency control (LFC) in an off-grid AC MG. The process involves evaluating real-time weather data and the load profile of the proposed location. Optimization goals, constraints, and feasible HRES configurations are determined, and a detailed model of multiple components is developed. Based on technical and economic analysis, the most practical model is selected. LFC is then implemented for the chosen configuration plan. Finally, the suggested control approach is validated by subjecting it to various disturbances, such as changes in solar irradiance, load fluctuations, and wind speed variations. The HRES consists of PV, WT, and FC as the primary energy sources, with a DG and BESS used to supply power during PV and wind fluctuations. Power converters are vital in transferring energy between DC and AC buses. Feasibility study This section provides a framework for assessing the country’s power policy, describing the site, and analyzing the load requirements that must be met. Site description The suggested system under investigation was based on a case study of an international school, 130 Street 11, New Cairo 1, Cairo Governorate, Egypt. As shown in Fig. 2, the case study’s precise coordinates are 29°59.8’N and 31°26.2’E. This location was selected because it offers ideal conditions for dependable year-round access to PV and wind resources. Solar energy data Solar resource data was obtained from the National Aeronautics and Space Administration (NASA) Surface Meteorology and Solar Energy website <sup>59</sup> . This source is widely recognized for its reliability and comprehensiveness in providing solar irradiance data. The scaled data of the worldwide solar radiation at the chosen point is displayed in Fig. 3. Data analysis reveals that June experiences the highest solar radiation, averaging (7.68 kWh/ m <sup>2</sup> /day), which is crucial for maximizing solar energy production during the summer months. In contrast, December shows the lowest solar radiation levels at (2.996 kWh/m <sup>2</sup> /day), reflecting the seasonal variations in Fig. 1 . The suggested system for managing, controlling, and optimizing islanded AC MG. solar availability. Overall, the site receives a yearly average solar radiation of (5.342 kWh/m <sup>2</sup> /day). This average is significant, as it indicates a favorable environment for solar energy generation, making the location suitable for implementing solar technologies. Wind energy data The Cairo Governorate exhibits significant potential for wind resources, with a mean hourly wind speed of 5.56 m/s. This wind speed indicates a favorable environment for wind energy generation, making it an attractive site for developing wind power projects. Figure 4 illustrates the monthly mean wind speeds at the suggested location, providing a detailed overview of the wind resource variability throughout the year. It is evident from the graph that the highest average hourly wind speed occurs in April at 5.91 m/s; this peak suggests that spring months may provide optimal conditions for wind energy generation. Meanwhile, the wind speed was recorded at its lowest in August at 5.1 m/s. This seasonal variation highlights the region’s dynamic nature of wind resources, which various meteorological factors can influence. The figure also emphasizes a complementary relationship between wind speeds and solar radiation. Wind speeds are relatively high during months when solar radiation is typically low, such as in the summer. This synergy between wind and solar resources is advantageous for meeting load demand throughout the year. By capitalizing on both energy sources, a more reliable and balanced energy supply can be achieved, ultimately enhancing the overall efficiency of the energy system. This complementary nature supports the optimization of energy generation. It contributes to reducing reliance on conventional fossil fuels, paving the way for a more sustainable energy future in the Cairo Governorate. The ability to harness both wind and solar resources effectively positions the region as a promising candidate for renewable energy initiatives that can meet the growing energy demands of its population. Load profile To accurately represent the energy consumption patterns in the research area, the average daily load demand is utilized to construct an hourly load profile for the entirety of the year. This comprehensive approach allows for a granular understanding of energy usage, reflecting fluctuations that occur throughout different times of the day and various seasons. The research area demonstrates an average hourly load of around 78.8 kWh, indicating a consistent demand for energy throughout the day with a peak load reaching 162.13 kW. Figure 5 presents the monthly average load profile for the selected site, based on estimated energy consumption for an Fig. 2 . Location of the case study site. This map was generated using HOMER Pro × 64 3.14.5 software ​( ​ [h​t​t​p​s​:​/​](https://homerenergy.com/) [/​h​o​m​e​r​e​n​e​r​g​y​.​c​o​m​/)​.](https://homerenergy.com/) ​ ​ Fig. 3 . Monthly average solar radiation of the suggested location. Fig. 4 . Average monthly wind speed of the suggested location. Fig. 5 . The selected site’s monthly average load. international school in the New Administrative Capital, New Cairo, Egypt. This load profile is representative of actual consumption patterns, further strengthening our analysis. By analyzing the load profile in conjunction with seasonal demand variations, this study provides valuable insights into the energy needs of the area. Understanding these patterns is essential for designing an efficient energy system that can effectively meet the load demand, optimize resource allocation, and ensure reliability in energy supply throughout the year. This analysis also lays the groundwork for integrating RES, as it highlights the times when energy generation must be maximized to align with consumer demand. Mathematical modeling This section provides the economic and mathematical models of the suggested system’s elements. The system’s LCOE was computed using the discounted cash flow analysis approach, considering the project’s lifespan and constituent parts. A 25-year project lifespan has been taken into consideration. To improve the accuracy of the estimates, economic data such as the inflation rate ( _If_ ) and interest rate ( _Ir_ ) are also considered. Solar generation system PV panel output power can be estimated using a variety of models. Instead, we use a straightforward model that only needs two inputs: solar radiation and the surrounding temperature. To calculate the power of the PV panels, use the following equation <sup>19</sup> . ) _PP V_ = _PST C_ _fP V_ _<u>G</u>_ _GST C_ ( [1 + _K_ ( _T_ _−_ _TST C_ )] (1) _PP V_ do PV panels generate the power, _PST C_ is the rated power of PV panels at Standard Test Condition (STC), _fP V_ represents the PV derating factor (0.8), G is the actual solar irradiance received by PV panels (kW/m <sup>2</sup> ), _GST C_ is the solar irradiance at STC (1 kW/m <sup>2</sup> ), _TST C_ is the cell temperature at reference conditions (25 °C), and K is the temperature coefficient. The cell temperature (T) is calculated using the equation presented in <sup>24</sup> involving the ambient temperature ( _Tamp_ ). <u>]</u> _T_ = _Tamp_ + <u>0</u> _._ <u>8</u> [ _<u>NOCT</u>_ _<u>−</u>_ <u>20</u> <u>0</u> _._ <u>8</u> _G_ The PV generator’s annual power production ( _PP V annual_ ) can be represented as follows <sup>60</sup> . ) ( 1 + _K_ (( <u>800</u> ( _<u>NOCT</u>_ _<u>−</u>_ <u>20</u> ) ) (2) _, T_ = 8760 (3) _PP V annual_ = _t_ ∑ _T_ _t_ =1 <sup>(</sup> <sup>_NP V_</sup> <sup>_× fP V_</sup> <sup>_× PP V r_</sup> <sup>)</sup> _T_ _<u>G</u>_ _GST C_ ( _Tamp_ + _G ×_ <u>800</u> _−_ _TST C_ )) _∗_ 1000 The rated module output ( _PP V r_ ) in kW, the number of PV modules ( _N P V_ ), the symbols represent normal operating cell temperature (NOCT) in degrees Celsius (℃). The net present cost ( _NPC_ _P V_ ) of the PV system is determined by adding the initial capital cost ( _IC_ _P V_ ) and the operation and maintenance costs ( _O_ & _MC_ _P V_ ), the initial price of the PV system ( _IPRP V_ ), and ( _OMP P V_ ) is the operation and maintenance price of the PV system ($). Replacement costs are nonexistent because the PV system’s lifespan is the same as the projects. The _NPC_ _P V_ can be calculated using the following formula: _NPC_ _P V_ = _O_ & _MC_ _P V_ + _IC_ _P V_ (4) 25 _n_ =0 ∑ 1 + _<u>Ir</u>_ _<u>−If</u>_ ~~1+~~ _If_ _<u>OMP P V</u>_ 1 + _<u>Ir</u>_ _<u>−If</u>_ ~~1+~~ _If_ ~~(~~ ~~)~~ _NPC_ _P V_ = _NP V_ _×_    _IPRP V_ + ~~1+~~ _If_  (5)   ~~)~~ _n−_ ~~1~~ Wind generation system The WT harnesses wind energy to generate electricity, utilizing rotating rotor blades and a generator. It plays a vital role in the MG by capturing and using renewable energy to power the entire system. The formula determines the power produced by the WT <sup>14</sup> . _rated_ 0 _vcouout≤_ _v_ _<≤_ 0 _vv_ (6) _PW T_ =      0 _vci_ _> v_ _Pr×_ <u>(</u> _v_ 3 _<u>−vcutin</u>_ 3) _vrated_ <sup>~~3~~</sup> _−vcutin_ <sup>~~3~~</sup> <sup>_v_</sup> _−vcutin_ <sup>~~3~~</sup> <sup>_v_</sup> _rated_ <sup>_≥_</sup> <sup>_v_</sup> <sup>_≥_</sup> <sup>_vcouout_</sup> _Prvrated_ 0 _vcouout≤_ _v_ _<≤_ 0 _vvcouout_ where the output power of the WT (kW), the WT’s rated power (kW), the WT generator’s local speed, rated wind speed, cut-out wind speed, and cut-in wind speed are respectively described by the variables ( _PW T, Pr,_ v, _vrated_, _vcouout_, and _vcutin_ ). Given that WT has a 15-year lifespan, it must be replaced every 15 years. It is possible to compute the WT system’s net present cost ( _NPC_ _W T_ ) as follows: _NPC_ _W T_ = _O_ & _MC_ _W T_ + _IC_ _W T_ + _RC_ _W T_ (7) 1 + _<u>Ir</u>_ _<u>−If</u>_ ~~1+~~ _If_ _<u>OMP W T</u>_ 1 + _<u>Ir</u>_ _<u>−If</u>_ ~~1+~~ _If_ ~~(~~ ~~)~~ 25 _n_ =0 ∑ _NPC_ _W T_ = _NW T_ _×_    _IPRW T_ + ~~1+~~ _If_  (8)   1 + _<u>Ir</u>_ _<u>−If</u>_ ~~1+~~ _If_ ~~1+~~ _If_ _<u>RP W T</u>_ 1 + _<u>Ir</u>_ _<u>−If</u>_ ~~1+~~ _If_ ~~)~~ _n−_ ~~1~~ <sup>+</sup> ~~(~~ ~~)15~~ where the initial capital cost of WT is (ICWT), the initial price of the WT system ( _IPRW T_ ), ( _OMP W T_ ) is the operation and maintenance price of the WT system ($), The number of wind turbines ( _N W T_ ), The replacement costs of the WT ( _RC_ _W T_ ), Replacement price of WT ($) is ( _RP W T_ ),and the maintenance cost of WT is ( _O_ & _MC_ _W T_ ). The batteries bank system modeling Batteries, which are very energy-efficient and straightforward to set up, are the only storage agents used in this study. When energy is scarce, extra power from RES is utilized to start charging the battery. The discharge and charge settings of a battery can be ascertained using Equations. (9) and (10), correspondingly <sup>10,14</sup> : [ [ _Eb_ ( _t_ + 1) = _Eb_ ( _t_ ) _×_ (1 _−_ _σ_ ) _−_ _Eb_ ( _t_ + 1) = _Eb_ ( _t_ ) _×_ (1 _−_ _σ_ ) + _<u>El</u>_ <u>(</u> _<u>t</u>_ <u>)</u> _Eg_ ( _t_ ) _−_ <sup>_<u>E</u>_</sup> _η_ <sup>_<u>l</u>_</sup> _cnv_ <sup><u>(</u></sup> <sup>_<u>t</u>_</sup> <sup><u>)</u></sup> _<u>l</u>_ <u>(</u> _<u>t</u>_ <u>)</u> _ηcnv_ <sup>_−_</sup> <sup>_Eg_</sup> <sup>(</sup> <sup>_t_</sup> <sup>)</sup> _×ηBD_ (9) _×ηBC_ (10) _ηcnv_ ] ] where _El_ ( _t_ ) and _Eg_ ( _t_ ) stand for generated power and energy demand, respectively, _Eb_ ( _t_ ) is the state of charge (SOC) of a battery at each time step t, The battery’s discharge and charge efficiencies are represented by _ηBD_ and _ηBC_ . The battery’s self-discharge σ, and the converter’s efficiency _ηcnv_ . The battery bank has no replacement costs because its 25-year lifespan equals the project’s lifetime. The battery bank’s net present cost ( _NPC_ _BAT_ ) is computed as follows: _NPC_ _BAT_ = _O_ & _MC_ _BAT_ + _IC_ _BAT_ (11) 25 _n_ =0 ∑ 1 + _<u>Ir</u>_ _<u>−If</u>_ ~~1+~~ _If_ _<u>OMP BAT</u>_ 1 + _<u>Ir</u>_ _<u>−If</u>_ ~~1+~~ _If_ ~~(~~ ~~)~~ ~~)~~ _n−_ ~~1~~ _NPC_ _BAT_ = _NBAT_ _×_    _IPRBAT_ + ~~1+~~ _If_  (12)   where the initial capital cost of BESS is (ICBAT), the initial price of the BESS ( _IPRBAT_ ), ( _OMP BAT_ ) is the operation and maintenance price of BESS ($), The number of battery banks ( _N BAT_ ),and the operating and maintenance cost of BESS is ( _O_ & _MC_ _BAT_ ). Diesel Generation system The DG serves as the MG’s backup power source, supplying electricity when generated power from other resources is low, demand is high, and BESS is depleted. The power output equation for the DG used in HOMER is displayed in <sup>30</sup> : _PDG_ = _CO_ & _M_ + _R_ <sup>_<u>C</u>_</sup> _L_ <sup>_<u>r</u>_</sup> <sup>+</sup> <sup>_FnXgenCeff_</sup> (13) where _Ceff_ is the efficient fuel cost ($/L), _RL_ is the generator lifespan (hrs), _Cr_ is the replacement cost ($), _Xgen_ is the generator capacity (kW), _Fn_ is the intercept fuel curve coefficient (fuel/hr/kW), and _CO_ & _M_ is the maintenance and operating cost ($/hr). Inverter and converters Converters enable bidirectional transfer between AC and DC power. Inverter/converters facilitate energy flow between DC and AC buses. Power converters are necessary when both DC and AC components are present. System modeling considers anticipated loads, efficiency, and capacity of the inverter. The inverter _Pinv_ capacity is established by <sup>30</sup> . _Pinv_ = <sup>_<u>E</u>_</sup> _η_ <sup>_<u>L</u>_</sup> _DC/AC_ <sup><u>(</u></sup> <sup>_<u>max</u>_</sup> <sup><u>)</u></sup> (14) where the load system’s maximum energy need (kWh), and the converter’s efficiency are represented by _EL_ ( _max_ ), and _ηDC/AC_ respectively. Electrolyzer model The electrochemical converter splits water into oxygen and hydrogen. Daytime electrolysis with purified water and RES generates stored hydrogen. A polymer electrolyte membrane (PEM) electrolysis extracts hydrogen from water and solar power, compressing and storing it. DC voltage splits water, combining protons and electrons for hydrogen production. The system utilizes porous anodes, polymer film, flow fields, and plates for water transport <sup>35,36</sup> . The following formula can be used to get the ELZ net present cost ( _NPC_ _ELZ_ ): _NPC_ _ELZ_ = _O_ & _MC_ _ELZ_ + _IC_ _ELZ_ + _RC_ _ELZ_ _−_ _SELZ_ (15) [   <sup>_<u>RP ELZ</u>_</sup> _DF_ <sup>_TELZ_</sup> <sup>_−_</sup> <sup>_SELZ_</sup> _NPC_ _ELZ_ = _NELZ_ _×_ _IPRELZ_ + 25 _n_ =0 <u>∑</u> _<u>OMP ELZ</u>_ ] (16) _<u>OMP ELZ</u>_ + <sup>_<u>RP ELZ</u>_</sup> _DF_ <sup>_n−_</sup> <sup>~~1~~</sup> _DF_ <sup>_TELZ_</sup> _Tproj_ _<u>−</u>_ _TELZ_ _<u>× INT</u>_ _TELZ_ _n_ =0   (17)   <u>))</u> <u>(</u> <u>(</u> _<u>Tproj</u>_ _TELZ_ _SELZ_ = _RP ELZ_ _TELZ_ _<u>−</u>_   where the initial capital cost of the ELZ is (ICELZ), the initial price of the ELZ ( _IPRELZ_ ), ( _OMP ELZ_ ) is the operation and maintenance price of ELZ ($), The number of ELZ ( _N ELZ_ ), The replacement costs of the ELZ ( _RC_ _ELZ_ ), The replacement price of the ELZ ($) is ( _RP ELZ_ ), The ELZ’s salvage value ( _SELZ_ ), the discount factor (DF), _Tproj_ = 25. years,ELZ operational life ( _TELZ_ ),ELZ operational life ( _TELZ_ ) _,_ and the operating and maintenance cost of the ELZ is ( _O_ & _MC_ _ELZ_ ). Fuel cell generation system FC converts chemical energy to electrical energy. Oxidizers and fuel produce fuel and water. ELZ separate cathodes for circuit completion. Pure sewage. Hydrogen interaction transports electrons. Protons are generated in the anode. Water is released by hydrogen, oxygen, and electron combination <sup>36,37</sup> . PEM/FCs are chosen for efficiency, lifespan, size, and weight. They are used in backup power and transmission networks <sup>61</sup> . FC operational life ( _TF C_ ) = _FChoursthroughoutayearFClifetime_ (18) It’s feasible to Determine the net present cost of the FC system ( _NPC_ _F C_ ) and the fuel cell’s salvage value ( _SF C_ ) as follows: _NPC_ _F C_ = _O_ & _MC_ _F C_ + _IC_ _F C_ + _RC_ _F C_ _−_ _SF C_ (19) <sup>_<u>RP F C</u>_</sup> _DF_ <sup>_TF C_</sup> <sup>_−_</sup> <sup>_SF C_</sup> _NPC_ _F C_ = _NF C_ _×_ <u>[</u> _IPRF C_ + 25 _n_ =0 <u>∑</u> _<u>OMP F C</u>_ ] (20) _<u>OMPDF</u>_ <sup>_n−_</sup> _<u>F C</u>_ <sup>~~1~~</sup> <sup>+</sup> <sup>_<u>RP F C</u>_</sup> _DF_ <sup>_TF C_</sup> _n_ =0   <u>))</u>   (21)   <u>(</u> _Tproj_ _<u>−</u>_ _TF C_ _<u>× INT</u>_ _TF C_ <u>(</u> _<u>Tproj</u>_ _TF C_ _SF C_ = _RP F C_   _TF C_ _<u>−</u>_ where the initial capital cost of FC is (ICFC), the initial price of the FC is ( _IPRF C_ ), ( _OMP F C_ ) is the operation and maintenance price of FC ($), The number of FC’s ( _N F C_ ), The replacement costs of the FC ( _RC_ _F C_ ), Replacement price of FC ($) is ( _RP F C_ ), and the operating and maintenance cost of FC is ( _O_ & _MC_ _F C_ ). Hydrogen storage tank (HT) Large-scale fixed hydrogen storage is indispensable for fulfilling hydrogen’s potential as a worldwide energy transporter. An approximate lifespan of 25 years is projected for the hydrogen container. The tank’s dimensions are determined through simulations that aim to meet the optimal design criteria. The following equations outline the operational principles of the HT <sup>58</sup> : _QH_ 2 ( _t_ ) = _mH_ 2 ( _t_ ) _<u>−</u>_ _fH_ 2 ( _t_ ) _<u>−</u>_ _LH_ 2 ( _t_ ) (22) _Tlevel_ ( _t_ ) = _QH_ 2 ( _t_ ) (23) _Tlevel,new_ ( _t_ ) = _t_ =( _t−_ 1) _t_ =1 ∑ _Tlevel_ ( _t_ ) + _Tlevel_ ( _t_ ) (24) where, _QH_ 2 ( _t_ ) presents the net mass flow rate of hydrogen entering or respond the ELZ and leaving the tank for the FC. _mH_ 2 ( _t_ ) or respond to the ELZ’s output mass flow rate at a specific time. _fH_ 2 ( _t_ ) signifies the input mass flow rate to the hydrogen FC simultaneously, measured in kg/h. _LH_ 2 ( _t_ ) denotes the rate of hydrogen consumption in kg/h. _Tlevel_ ( _t_ ) presents the amount of hydrogen added to the tank during a given time interval within one hour while _Tlevel,new_ ( _t_ ) signifies the updated tank level at the current time step. The first part of Eq. (24) indicates the remaining hydrogen kept in the tank before this computation hour, while the second part of the equation represents the final hydrogen held during the present hour. Optimization and economic model The optimization process determines the best system configuration that meets intended load limitations by simulating various configurations in HOMER-Pro, as presented in Fig. 6. Unrealistic solutions are eliminated, and feasible configurations are ranked based on the lowest LCOE and TNPC. The objectives are to determine Proper values for user-controlled decision-making variables, such as DG size, PV module, FC, system converter, ELZ, HT, WT number, battery number, and dispatch strategy. HOMER-Pro analyzes these variables to identify the most suitable configuration for the required demand. The program defines LCOE as the mean cost per kWh of usable electrical power generated by the system. The program calculates the LCOE by dividing the yearly expense of power production by the total amount of helpful power produced. The following formula is used to get the LCOE and TNPC <sup>10,11</sup> . _LCOE_ = <sup>_<u>CAnualized</u>_</sup> (25) _EServed_ _CAnualized_ = _TNPC × CRF_ (26) _TNPC_ = <sup>_<u>CAnualized</u>_</sup> <sup>_<u>Anualized</u>_</sup> (27) _CRF_ Fig. 6 . Flowchart of the HOMER algorithm. where, _CAnualized_ is the total annualized cost, CRF is the capital recovery factor, and _EServed_ is the annual energy served. The following equations <sup>25</sup> provide the capital recovery factor ( _CRF_ ) and the annual interest rate ( _r_ ). _<u>r</u>_ <u>(1 +</u> _<u>r</u>_ <u>)</u> <sup>_N_</sup> _CRF_ = <u>(1 +</u> _r_ <u>)</u> <sup>_N_</sup> _−_ <u>1</u> (28) _r_ = <sup>_<u>r</u>_</sup> <u>1 +</u> <sup>_<u>′ −</u>_</sup> _f_ <sup>_<u>f</u>_</sup> (29) where ( _N_ ) is the project lifespan in years, ( _r′_ ) is the rate of nominal interest expressed as a percentage, and ( _f_ ) is the annual inflation rate expressed as a percentage. The project’s duration in this study is 25 years, with a 21.25% interest rate and a 35.12% inflation rate per the Central Bank of Egypt <sup>62,63</sup> . Model constraints To ensure a consistent balance of power throughout each hour, all electricity requirements must be satisfied by utilizing appropriate sources of power such as PV, WT, FC, and DG, as described in this paper. The equation provided below describes the principle behind achieving this objective. _PLoad_ = ∑ _PDG_ + _PW T_ + _PP V_ + _PF C_ _± PBESS_ (30) The operation of the battery is limited by two conditions: (i) the SOC must adhere to safe limits to prevent overcharging or over-discharging, as depicted in the equations provided in Eq. (31), and (ii) the amount of energy stored per hour is bound by specific constraints outlined in Equations. (32), (33) and (34) <sup>30,55</sup> . _SOC_ _min_ _≤_ _SOC_ ( _t_ ) _≤_ _SOC_ _max_ (31) _Ebat.min_ _≤_ _Ebat_ ( _t_ ) _≤_ _Ebat.max_ (32) _Ebat.min_ = _Ebat.max_ (1 _−_ _DOD_ ) (33) _Ebat.cap_ = _Ebat.max_ (34) In the equations, ( _Ebat_ ) represents battery capacity (kWh), ( _Ebat.min_ ) is the minimum permissible battery capacity, ( _Ebat.max_ ) is the maximum permissible battery capacity, ( _SOC_ _min_ ) is the minimum SOC, ( _SOC_ _max_ ) is the maximum SOC, and (DOD) is the depth of discharge. HOMER results and discussions HOMER Pro models and optimizes MG systems, considering both financially and technically feasible Integration of RES and risk reduction. It assesses the components, fuel costs, system structure, demand characteristics, and environmental variables in a single run. The simulation offers insightful data on cost reductions, risk mitigation, and system performance. The investigation’s conclusions are compiled in this part of the paper, which begins with the optimization achievements and then on to the economic analysis. These sections list each component’s rated capacity (kW) and the quantity of units for each system component. These component tables provide the expenses of the ideal system, including the TNPC and LCOE. Optimization results The plant site in 130 Street 11, New Cairo 1, Cairo Governorate, Egypt (29°59.8’N, 31°26.2’E), was optimized. This IMG has a max power of 162.13 kW and uses 1891.24 kWh daily. HOMER assesses the price and establishes the feasibility of HRES throughout the project. Simulations created ideal system configurations and their capabilities, which were selected according to the lowest TNPC and the LCOE. This study chose the optimum system architecture that optimally fits the configuration system. Figure 7 displays the system that is the most effective. Table 3 contains a summary of the optimum components system specification. Power production A power overview of the output and input information for every component of an optimal power system is displayed in Appendix A. The generation overview for every element of the optimized power system is shown in Fig. 8. In this investigation, the WT system produced the greatest quantity of power, accounting for 68.5% of the total power generated. A minimum of 1.89% of the total power is generated using FC. PV power generation accounts for 27.2% of the total power generated. DG generates 2.44% of the total power generated in electricity. The yearly power produced from PV during the optimized power system’s 24-h day is displayed in Fig. 9. This data indicates that the average power output is 36.8 kW and 186 kW at its maximum. The PV system generates an average of 884 kWh of energy each day and 322,526 kWh of energy annually. There are 4385 h of operation in total annually. The yearly energy generated from WT during a 24-h day in the optimized electrical system is displayed in Fig. 10. This figure indicates that the average power generation is 92.7 kW, while the maximum output energy is 182 kW. 812,486 kWh of electricity is produced annually by WT. There are 7,622 h of operation in total each year. The yearly electrical output from FC during the optimized power system’s 24-h day is displayed in Fig. 11. Fig. 7 . The optimized system architecture. <u>Component</u> <u>Name</u> <u>Size</u> <u>unit</u> <u>Generator #1</u> <u>Fuel Cell</u> <u>50.0</u> <u>kW</u> <u>Generator #2</u> <u>Diesel Generator</u> <u>180</u> <u>kW</u> <u>PV</u> <u>PV</u> <u>200</u> <u>kW</u> <u>Storage</u> <u>Batteries (96 battery)</u> <u>capacity = 96 × 7.15 = 686 kWh</u> <u>4 strings</u> <u>Wind Turbine</u> <u>Eocycle EO20</u> <u>9 × 20 = 180 kWh</u> <u>kW</u> <u>System Converter</u> <u>Studer AJ 2400–24</u> <u>141</u> <u>kW</u> <u>Electrolyzer</u> <u>Electrolyzer</u> <u>50.0</u> <u>kW</u> <u>Hydrogen Tank</u> <u>Hydrogen Tank</u> <u>50.0</u> <u>kg</u> <u>Unmet Electrical Load</u> <u>0%</u> <u>Excess Energy</u> <u>33%</u> <u>Dispatch Strategy</u> <u>HOMER Load Following</u> Table 3 . Optimized components detail. Fig. 8 . Overview of production for every component in the perfect power system. Fig. 9 . Yearly PV energy production during the full 24 h of an optimal system operation. Fig. 10 . Yearly WT energy production during the full 24 h of an optimal system operation. Fig. 11 . Yearly FC energy production during the full 24 h of an optimal system operation. Fig. 12 . Yearly DG energy production during the full 24 h of an optimal system operation. According to this, the fuel consumption is 1,346 kg, and the specific fuel consumption is 0.06 kg/kWh. The output power is observed to be 50 kW at maximum and 35.9 kW at average. The yearly energy generated from the DG during a day in the optimized power system is displayed in Fig. 12. This figure indicates that there are 548 h of operation annually. The output power is 52.8 kW on average and 108 kW at its highest. The DG has an operational life of 27.4 years and 146 starts yearly, respectively. The yearly SOC (in percent) of the LI Battery bank for the perfect structure throughout 24 h is shown in Fig. 13. This statistic indicates that the batteries are Fig. 13 . Yearly SOC (in percentage) of batteries during 24 h of an optimal system operation. Fig. 14 . Yearly ELZ operation during the full 24 h of an optimal system operation. at 30% and 100% of their initial and least states of charge, respectively. Batteries have an annual energy input of 102,937 kWh and an annual energy output of 88,551 kWh. The annual energy loss is roughly 14,413 kWh. The throughput is 95,487 kWh annually. Figure 14 displays the ELZ’s annual operation, Fig. 15 illustrates the Converter’s annual operation, and Fig. 16 depicts the HT’s annual operation. All figures present the operational characteristics of these components over 24 h, showcasing their performance within a perfect system structure. Renewable power Table 4 shows several indicators concerning renewable energy, including capacity-based, energy-based, and peak values. Figure 17 displays Renewable power as a percentage of total generation. Figure 18 illustrates Renewable power as a percentage of the total load. Figure 19 depicts Non-renewable power subtracted from 100% of the total load over a year. Economic analysis results The findings showed that the optimized system proposed in the study possessed the most favorable economic characteristics throughout the entire duration of the project. It was determined to have the ideal combination of system structure, incorporating PV, WT, FC, DG, and batteries. The TNPC of the system was determined to be USD 1,775,300.00, with an LCOE of 0.153 USD/kWh. Figure 20 provides a summary of the expenses related to the optimal system. This Figure presents detailed information on the capital cost, replacement cost, Resource costs, operating costs, and salvage costs for each component of the system. It also displays the overall price of every element and the system’s overall TNPC. Additionally, the Figure provides a detailed breakdown of the costs of every component in the perfect system. In summary, the cost breakdown shows that the WT component has the highest initial cost, the Hoppecke 24 OPzS 3000 battery has the highest operating cost, the Converter incurs the maximum replacement cost, the DG has the highest resource cost, the WT component has the highest salvage cost, and the WT component also has the highest total cost. Table 5 shows the costs of design optimization for our suggested islanded AC MG concept in Egypt compared to comparable local and international projects. Indirect comparability exists between the TNPC values for these models because of variations in component sizing and capital investments. Instead, we employ the LCOE as a critical tool to assess energy costs. The Table presents our results, demonstrating how well our model performs compared to previous research, with a competitive LCOE of $0.153/kWh. Power system stability analysis Figure 21 illustrates the configuration of an islanded AC MG system. Components such as WT, PV, DG, FC, BESS, and Loads are connected to a 22 kV AC bus (primary distribution voltage) through electric converters. The wind farm’s double-fed induction generator (DFIG) has nine 20-kW turbines. DFIG’s wound rotor connects to the grid through two AC-DC-AC converters. Generated electricity is stored in a DC-link capacitor. Converters maintain constant output frequency despite wind speed changes. Control systems manage input power, reactive power, and grid voltage. DFIGs stator and AC bus link via a step-up transformer. PV system delivers power Fig. 15 . Yearly Converter operation during the full 24 h of an optimal system operation. Fig. 16 . Yearly Hydrogen Tank SH Level operation during the full 24 h of an optimal system operation. Capacity-based metrics Energy-based metrics Peak values <u>the nominal capacity of renewables divided by the total nominal capacity</u> <u>62.3%</u> <u>Utilizable renewable capacity divided by the total capacity</u> <u>43.9%</u> <u>total renewable output divided by load</u> <u>150%</u> <u>total renewable output divided by production</u> <u>95.7%</u> <u>One minus total nonrenewable output divided by load</u> <u>93.2%</u> <u>Renewable output divided by load (HOMER standard)</u> <u>844%</u> <u>Renewable output divided by total production</u> <u>100%</u> <u>One minus nonrenewable output divided by the total load</u> <u>100%</u> Table 4 . Renewable summary. at proper voltage using a boost converter, the PV array converts solar radiation to DC, the Inverter converts DC to AC for MG transfer, and the AC voltage is increased via a transformer to match grid voltage. FC unit boosts MG power generation by converting chemical energy to electrical power using oxygen and hydrogen. Low DC voltage is increased using a boost converter. RES is the primary power resource of the MG. Knowing that RES power is relative to the site’s resource data. Therefore, a lesser fluctuation in RES power may result in instability of the MG. The DG serves as a backup in the system and consists of the governor, excitation system, and synchronous machine, forming the DG for the diesel engine. Batteries are essential for maintaining network Fig. 17 . Renewable power as a percentage of total generation. Fig. 18 . Renewable power as a percentage of total load. Fig. 19 . Non-renewable power is subtracted from 100% of the total annual load. stability and storing additional energy, and the MG powers AC loads using an inverter linked to the DC bus. Parameters of the islanded AC MG are given in Table 6. Load frequency control The objective of LFC is to maintain a power system’s power balance by adjusting the system frequency in response to changes in actual power demand. DG is typically used to build IMGs as a steady power source for correcting the fluctuating power from RES and load demand, as the frequency balance is quickly disrupted when MGs are separated. Additionally, the BESS is included in this IMG as an auxiliary regulation. This study focuses on an islanded AC MG with various sources such as WT, PV, DG, and FC. Power electronic components convert DC voltages from sources like PV arrays and FC into AC and connect them to the AC bus. Additionally, a converter is considered for the BESS system to convert AC to DC during charging and DC to AC during discharging. The power output of DG, WT, PV, FC, and BESS collectively represents the total power generated to meet the demand. This study focuses on utilizing DG for frequency control, as electricity generated by PV, WT, and FC is not typically used for this purpose. In a frequency control loop, changes in the output powers of loads, WT, PV, and FC are compensated by adjusting the DG’s output powers, as displayed in Fig. 22. The frequency error is amplified, combined, and transformed to generate a command signal for the turbine governor. The governor then adjusts the turbine output to restore the balance between input and output. The frequency deviation (Δf) is determined by the difference in active powers between consumption and production (ΔP). Power management and frequency control are accomplished when the controller achieves zero frequency deviation (Δf). Fig. 20 . An overview of the optimal system’s costs. Control strategy The paper focuses on evaluating the effectiveness of PI-PSO, PI-WOA, and MRAC-PI controllers in controlling the system’s frequency. The article aims to provide insights and a comparative analysis of these control strategies for improved operation and stability in MG. PI-PSO Controller Evaluation of the PI controller’s efficiency in keeping up with the system’s frequency and improving the stability and functionality of the MG is given special attention. Equation (35) is used by the PI controller to determine the control signal (D) for the converter. The error signal’s measured frequency ( _Fm_ ), reference frequency ( _Fref_ ), and sampling time ( _Ts_ ) are all included in the calculation <sup>64</sup> . ) _D_ = ( _Fref_ _−_ _Fm_ ) ( _Kp_ + _Ki_ <sup>_<u>TsZ</u>_</sup> _Z −_ <u>1</u> (35) Additionally, Fig. 23 displays the block diagram of the closed-loop control system, which includes the PI-PSO controller. The PI controller’s gains (Kp and Ki) are adjusted using PSO. By formulating frequency control as an optimization task, it becomes possible to reduce the "integral of time multiplied by absolute error (ITAE)" performance measure <sup>65</sup> . _ITAE_ = 0 _t |e_ ( _t_ ) _| d_ ( _t_ ) (36) ∫ _T_ where (t) is the time and e(t) is the difference between _Fm_ and _Fref_ . Researchers favor the PSO technique’s simplicity and reliance solely on a fitness function. Numerous studies validate its effectiveness in various optimization scenarios, such as integer programming, minimum–maximum problems, and multi-objective optimization. However, the standard PSO can decrease population diversity during communication, which may restrict solutions to local optima rather than achieving global optimization <sup>66</sup> . Here are three unique characteristics of PSO <sup>67</sup> : - _Ppest_ : The highest fitness value achieved by particle (i) up to this point. - _gpest_ : The best fitness value is reached by any particle in the swarm. - Velocity and Position Updates: Employed to navigate the search space in pursuit of the optimal solution. The velocity of a particle is updated according to Eq. (37), where Eq. (38) presents how the particle’s new position is calculated by adding its new velocity to its previous position <sup>68</sup> : <sup>_vid_</sup> <sup>(1 +</sup> <sup>_t_</sup> <sup>) =</sup> <sup>_wvid_</sup> <sup>(</sup> <sup>_t_</sup> <sup>) +</sup> <sup>_r_</sup> <sup>1</sup> <sup>_C_</sup> <sup>1 (</sup> <sup>_Ppest,id_</sup> <sup>(</sup> <sup>_t_</sup> <sup>)</sup> <sup>_−_</sup> <sup>_Xiid_</sup> <sup>(</sup> <sup>_t_</sup> <sup>)) +</sup> <sup>_r_</sup> <sup>2</sup> <sup>_C_</sup> <sup>2 (</sup> <sup>_gpest,id_</sup> <sup>(</sup> <sup>_t_</sup> <sup>)</sup> <sup>_−_</sup> <sup>_Xid_</sup> <sup>(</sup> <sup>_t_</sup> <sup>))</sup> <sup>_d_</sup> <sup>= 1,2</sup> <sup>_, . . . .D_</sup> <sup>(37)</sup> _Xid_ (1 + _t_ ) = _vid_ (1 + _t_ ) + _X_ _id_ ( _t_ ) _d_ = 1,2 _, . . . .D_ (38) <u>Ref</u> <u>Year</u> <u>City, country</u> <u>Optimal System Configuration</u> <u>Economic Feasibility</u> <u>TNPC ($)</u> <u>LCOE ($/kWh)</u> 7 <u>2023</u> <u>Najran, Saudi Arabia</u> <u>PV/BESS</u> <u>10,344</u> <u>0.189</u> 8 <u>2022</u> <u>Pradesh, India</u> <u>PV/BESS</u> <u>7.01 M</u> <u>0.244</u> 9 <u>2021</u> <u>Kayonza, Rwanda</u> <u>PV/BESS</u> <u>903,829</u> <u>0.2</u> 10 <u>2020</u> <u>Sahara Of Algeria</u> <u>PV/BESS</u> <u>23,427</u> <u>0.23</u> 11 <u>2020</u> <u>Xining, China</u> <u>WT/BESS</u> <u>58,178</u> <u>1.247</u> 12 <u>2023</u> <u>Iran</u> <u>PV/WT/ BESS</u> <u>50,417</u> <u>0.692</u> 13 <u>2021</u> <u>Odissa, India</u> <u>PV/WT/ BESS</u> <u>454,242</u> <u>0.278</u> 15 <u>2020</u> <u>Al-Batinah, Oman</u> <u>PV/WT/ BESS</u> <u>60,562</u> <u>0.28</u> 16 <u>2020</u> <u>Baluchistan, Pakistan</u> <u>PV/WT/ BESS</u> <u>28,620</u> <u>0.311</u> 17 <u>2023</u> <u>Shah Alam, Malaysia</u> <u>PV/ BESS</u> <u>3.25 M</u> <u>0.184</u> 18 <u>2022</u> <u>Chhattisgarh, India</u> <u>PV/ DG/ BESS</u> <u>1.71 M</u> <u>0.379</u> 19 <u>2021</u> <u>Kudu, Nigeria</u> <u>PV/ DG/ BESS</u> <u>16,457</u> <u>0.259</u> 20 <u>2021</u> <u>Andhra, India</u> <u>PV/ DG/ BESS</u> <u>341,280</u> <u>0.217</u> 21 <u>2020</u> <u>Pategi, Nigeria</u> <u>PV/ DG/ BESS</u> <u>1,079,015</u> <u>0.403</u> 22 <u>2020</u> <u>Fouay, Benin</u> <u>PV/ DG/ BESS</u> <u>555,492</u> <u>0.207</u> 23 <u>2020</u> <u>Sharjah, UAE</u> <u>PV/ DG/ BESS</u> <u>44,483,730</u> <u>0.25</u> 24 <u>2020</u> <u>United Kingdom</u> <u>WT/DG/ BESS</u> <u>14,507</u> <u>0.588</u> 25 <u>2022</u> <u>Bhola, Bangladesh</u> <u>PV/WT/DG</u> <u>141 M</u> <u>0.691</u> 26 <u>2024</u> <u>Myanmar- Bangladesh</u> <u>PV/ DG /BESS</u> <u>424,354</u> <u>0.259</u> 27 <u>2024</u> <u>Gwadar, Pakistan</u> <u>PV/WT/DG /BESS</u> <u>1.17 M</u> <u>0.295</u> 28 <u>2023</u> <u>Cameroon</u> <u>PV/WT/DG /BESS</u> <u>63,312</u> <u>0.1691</u> 29 <u>2023</u> <u>Perhentian, Malaysia</u> <u>PV/WT/DG /BESS</u> <u>387,185</u> <u>0.64</u> 30 <u>2023</u> <u>Abuja, Nigeria</u> <u>PV/WT/DG /BESS</u> <u>1,795,026</u> <u>0.1616</u> 32 <u>2022</u> <u>Andhra, India</u> <u>PV/WT/DG /BESS</u> <u>5.48 M</u> <u>0.272</u> 33 <u>2022</u> <u>Aceh, Indonesia</u> <u>PV /DG /BESS</u> <u>1.39 M</u> <u>0.246</u> 34 <u>2020</u> <u>West China</u> <u>PV/WT/DG /BESS</u> <u>587,013</u> <u>0.201</u> 35 <u>2023</u> <u>Neom, Saudi Arabia</u> <u>PV/FC/HT/ELZ</u> <u>703,194</u> <u>0.498</u> 36 <u>2021</u> <u>Gujarat, India</u> <u>PV/WT/ FC/ HT/ELZ</u> <u>1,638,635</u> <u>0.3387</u> 37 <u>2022</u> <u>Delhi, India</u> <u>PV/WT/FC/BESS/HT/ELZ</u> <u>1 519 040</u> <u>0.264</u> 38 <u>2024</u> <u>Iran</u> <u>PV/WT/DG/BESS</u> <u>180,065.43</u> <u>0.32</u> 39 <u>2024</u> <u>Oman</u> <u>PV/FC/ HT/ELZ</u> <u>317,401,96</u> <u>0.97</u> 40 <u>2024</u> <u>Technopark, Indonesia</u> <u>PV/BESS</u> <u>250,478</u> <u>0.28</u> 41 <u>2024</u> <u>Sub-Saharan Africa</u> <u>PV/WT/FC/BESS/HT/ELZ</u> <u>14,272</u> <u>0.336</u> 42 <u>2024</u> <u>Aïn El Ibel, Algeria</u> <u>PV/WT/DG/BESS</u> <u>376,063.8</u> <u>0.2109</u> 43 <u>2024</u> <u>Iran</u> <u>PV/FC/ HT/ELZ</u> <u>22,000</u> <u>0.28</u> 44 <u>2024</u> <u>Krishnanagar, India</u> <u>PV/DG/BESS</u> <u>35,627.85</u> <u>0.248</u> 45 <u>2024</u> <u>Kandahar, Afghanistan</u> <u>PV/DG/BESS</u> <u>10,108</u> <u>0.190</u> 46 <u>2024</u> <u>Ogun, Nigeria</u> <u>PV/WT/DG/BESS</u> <u>1782,602</u> <u>0.26</u> 48 <u>2023</u> <u>Alexandria, Egypt</u> <u>PV/WT/BESS</u> <u>125 M</u> <u>0.158</u> 49 <u>2019</u> <u>Sohag, Egypt</u> <u>PV/ DG/BESS/ fywheell</u> <u>28.5 M</u> <u>0.200</u> 51 <u>2024</u> <u>Aswan, Egypt</u> <u>PV/WT/DG/BESS</u> <u>853,634.53</u> <u>0.255</u> 52 <u>2021</u> <u>Hurghada, Egypt</u> <u>PV/WT/DG/BESS</u> <u>4.95 M</u> <u>0.275</u> 53 <u>2019</u> <u>Western Sahara, Egypt</u> <u>PV/WT/DG/BESS</u> <u>3,964,526</u> <u>0.1682</u> 54 <u>2022</u> <u>Red Sea, Egypt</u> <u>PV/WT/DG/BESS</u> <u>103 M</u> <u>0.224</u> 55 <u>2020</u> <u>Marsa-Matruh, Egypt</u> <u>PV/WT/DG/BESS</u> <u>351,223</u> <u>0.2262</u> 56 <u>2020</u> <u>Red Sea, Egypt</u> <u>PV/WT/DG/BESS</u> <u>3.12 M</u> <u>0.164</u> 57 <u>2024</u> <u>Cairo, Egypt</u> <u>PV/WT/FC /HT/ELZ</u> <u>8,119,087</u> <u>0.2116</u> 58 <u>2023</u> <u>Ras-Ghareb, Egypt</u> <u>WT/FC/HT/ELZ</u> <u>1.81 M</u> <u>0.3085</u> Present New Cairo, Egypt PV/WT/DG/FC/BESS/HT/ELZ 1,775,300 0.153 <u>study</u> Table 5 . Comparative analysis between proposed optimal islanded AC MG model with literature studies. Fig. 21 . The proposed system structure. <u>Section</u> <u>Parameters</u> <u>Symbol</u> <u>Value</u> <u>Section</u> <u>Parameters</u> <u>Symbol</u> <u>Value</u> <u>Rated power</u> <u>PWT</u> <u>20 kW</u> <u>Rated power</u> <u>PPV</u> <u>200 kW</u> WT FC BESS <u>Rated voltage</u> <u>VWT</u> <u>575 V</u> <u>No. of series cells</u> <u>Ns</u> <u>7</u> 450 kW <u>Rated voltage</u> <u>VBESS</u> <u>300 V</u> Load PV Load <u>Rated frequency</u> <u>Fr</u> <u>50 Hz</u> <u>No. of parallel cells</u> <u>Np</u> <u>69</u> <u>Rated speed</u> <u>vrated</u> <u>13 m/s</u> <u>Microgrid voltage</u> <u>VBUS</u> <u>22 kV</u> <u>Rated power</u> <u>PFC</u> <u>50 kW</u> <u>Rated power</u> <u>PDG</u> <u>180 kW</u> <u>Rated voltage</u> <u>VFC</u> <u>330 V</u> DG <u>Rated voltage</u> <u>VDG</u> <u>400 V</u> <u>Type</u> <u>PEM</u> <u>Pole pairs</u> <u>p</u> <u>1</u> <u>Rated capacity</u> <u>PC</u> <u>2286 Ah</u> <u>Initial state-of-charge (%)</u> <u>SOC</u> <u>60%</u> <u>Power factor</u> <u>0.9</u> Table 6 . Parameters of MATLAB simulation components. Fig. 22 . The block diagram of the microgrid control system is based on the proposed controller. Fig. 23 . Structure of a PI-PSO controller-based closed-loop control system. Fig. 24 . PSO flowchart. where, ( _P pest,id_ ) represents the best previous position of particle (i), while ( _gpest,id_ ) indicates the best global position for the particle. The variable ( _w_ ) refers to the inertia weight, ( _C_ ) is the learning rate, and ( _r_ ) is a randomly chosen value. This equation consists of three elements: social, cognitive, and inertia. The term ( _wvid_ ) reflects the inertia component, which maintains the influence of past movements and directs the particle’s progress at iteration (t). ( _C_ 1) represents the cognitive term, guiding particles to their best previous positions, whereas ( _C_ 2) signifies the social component, which evaluates the performance of particles and the swarm’s trajectory in the optimization space. Figure 24 presents the flowchart of the PSO algorithm <sup>69</sup> . PI-WOA Controller The Whale Optimization Algorithm (WOA) is an effective metaheuristic inspired by humpback whale behavior, excelling in complex optimization challenges. Its strength lies in balancing exploration and exploitation, resulting in faster convergence and better outcomes than traditional algorithms. WOA has proven successful in various applications, particularly in control system optimization <sup>70</sup> . In <sup>71</sup>, WOA-based MPPT control for proton exchange membrane fuel cells (PEMFC) efficiently tracks optimal output power during water content fluctuations, outperforming PSO, fuzzy logic control (FLC), and Perturb and Observe (P&O) methods. Additionally, the fuzzy-fractional Order PID (FFOPID) controller, enhanced by a WOA-centered Active Half Car Driver model, significantly reduces driver vibrations compared to fractional Order PID (FOPID) and PSO-tuned FFOPID controllers <sup>72</sup> . The WOA-optimized Fractional-Order Proportional Integral and Integral-Order Controller (FOPIλ) excels in solar PV-fed sensorless speed control of PMBLDC motors, surpassing the Bat Algorithm (BA) and Grey Wolf Optimization (GWO) by minimizing performance errors and convergence time <sup>73</sup> . Moreover, WOA-based PID controllers deliver quicker responses, less steady-state error, and improved damping compared Fig. 25 . Structure of a PI-WOA controller-based closed-loop control system. Fig. 26 . WOA flow chart. to GA and Artificial Bee Colony (ABC) methods in modern power systems <sup>74</sup> . Figure 25 illustrates the speed control loop of the proposed PI-WOA controller-based closed-loop control system applied to control the rotor speed of the generator. Figure 26 displays the WOA flow chart. It can be represented by the equations below <sup>75,76</sup> : _−→D_ = _C ._ <sup>_−→_</sup> _XP_ ( _t_ ) _−_ <sup>_−→_</sup> _X_ ( _t_ ) _D._ + 1) =��� _−→_ <sup>_−→_</sup> _XP_ ( _t_ ) _−_ <sup>_−→_</sup> (39) <sup>_−→_</sup> _A_ (40) ��� _−→X_ ( _t_ + 1) = <sup>_−→_</sup> _XP_ ( _t_ ) _−_ <sup>_−→_</sup> _D._ <sup>_−→_</sup> _A_ (40) _−→A_ = 2 <sup>_−→_</sup> _a ._ <sup>_−→_</sup> _r_ _<u>−</u>_ <sup>_−→_</sup> _a_ (41) Fig. 27 . Convergence of the objective function. <u>Optimization Algorithms</u> <u>WOA</u> <u>PSO</u> <u>Parameter</u> <u>Value</u> <u>Parameter</u> <u>Value</u> <u>No. of whales (Population size)</u> <u>50</u> <u>No. of particles (Population size)</u> <u>50</u> <u>Max Iteration</u> <u>100</u> <u>Max Iteration</u> <u>100</u> <u>reduced value for the coefficient values(a)</u> <u>0 < a < 2</u> <u>Cognitive component (C1)</u> <u>1.5</u> <u>Te random integer (l)h</u> <u>-1 < I < 1</u> <u>Social component (C2)</u> <u>1.5</u> <u>Uniformly distributed random number(r)</u> <u>0 < r < 1</u> <u>Maximum inertia weight</u> <u>0.4</u> <u>P-value (used to determine the stage)</u> <u>0.5</u> <u>Minimum inertia weight</u> <u>0.9</u> <u>Lower bound</u> <u>[ 0, 0 ]</u> <u>Lower bound</u> <u>[ 0, 0 ]</u> <u>Upper bound</u> <u>[ 1500, 1500 ]</u> <u>Upper bound</u> <u>[ 1500, 1500 ]</u> Table 7 . The parameters of WOA and PSO. _−→C_ = 2 _._ <sup>_−→_</sup> _r_ (42) _−→X_ ( _t_ + 1) = <sup>_−→_</sup> _XP_ ( _t_ ) + <sup>_−→_</sup> _D′.e_ <sup>_bl_</sup> _._ cos (2 _πl_ ) (43) _−→D′_ = _−→X_ ( _t_ + 1) _D′.e_ <sup>_bl_</sup> _._ cos (2 _πl_ ) + _X_ <sup>_−→_</sup> _P_ ( _t_ ) _ifp ≥_ _o._ 5 (45) _−→_ _A._ <sup>_−→_</sup> _Difp < o._ 5 { _−→_ _XP_ ( _t_ ) _−_ <sup>_−→_</sup> _D_ = _XP_ ( _t_ ) _−_ <sup>_−→_</sup> _X_ ( _t_ ) _._ ���cos _−→_ (2 _πl_ ) + _X_ <sup>_−→_</sup> _P_ _−→XP_ ( _t_ ) _−_ <sup>_−→_</sup> _A._ <sup>_−→_</sup> _C X_ ( _t_ ) _A._ ��� _Xr_ ( _Xt_ ) _r ._ ( _−→t_ ) _−_ <sup>_−→_</sup> (44) ���( _t_ ) _ifp ≥_ _o._ 5 (45) _Difp < o._ 5 (46) <sup>_−→_</sup> _D_ (47) ��� _−→X_ ( _t_ + 1) = _Xr_ ( _t_ ) _−_ <sup>_−→_</sup> _A._ <sup>_−→_</sup> _D_ (47) The symbols X(t), _Xp_ ( _t_ ), and _Xr_ ( _t_ ), corresponding to the position vectors of the whale, prey, and random whale, respectively. The letter (t) stands for the current iteration. The letters A and C stand for the coefficient vectors. Over the number of rounds, (a) constantly decreases linearly from 2 to 0. The random integer (l) is between − 1 and 1, the random vector (r) is between 0 and 1, the p is the probability number ε [0, 1], and the constant that determines the spiral logarithmic form is represented by (b). Figure 27 points out the convergence of the objective function for the two optimization algorithms. The parameters of optimization algorithms and the optimal gains of the PI controllers using the PSO and WOA are shown in Table 7. MRAC-PI Controller To enhance the accuracy of the PI-WOA controller, we integrated it with Model Reference Adaptive Control (MRAC) to improve efficiency and facilitate adaptation. The use of MRAC in IMG provides substantial advantages, particularly in handling the variability of RES. MRAC enhances frequency stability and voltage regulation by making real-time adjustments to generation and load fluctuations, improving dynamic performance through continuous modification of control parameters based on system behavior. This leads to a more reliable and resilient energy supply, facilitates the integration of various RES, and increases the overall efficiency of IMG. Notable applications include a fractional order MRAC control law for stabilizing current and voltage in multi source systems with DC-DC converters <sup>77</sup>, a modified MIT rule-based MRAC for DC-DC boost converters <sup>78</sup>, a strategy for managing the unified interphase power controller (UIPC) in hybrid MGs <sup>79</sup>, and the enhancement of traditional droop control in ship power systems <sup>80</sup>, as well as regulating the output voltage of DC-DC converters in isolated MGs <sup>81</sup> . As shown in Fig. 28, the MRAC-PI controller comprises three primary parts: the PI-WOA controller explained later, the adjustment mechanism, and the reference model. A transfer function with discrete time _Gr_ is represented the closed-loop system’s intended behavior, which in this study is a zero overshoot and a 0.05 s settling period. and is modulable as: _Gr_ ( _z_ ) = _z_ <sup><u>2</u></sup> _−_ <u>(0</u> _<u>.</u>_ <u>101</u> _._ <u>9801</u> _<u>z −z</u>_ <u>0 + 0</u> _<u>.</u>_ <u>0099)</u> _._ <u>9802</u> (48) The Massachusetts Institute of Technology (MIT) regulation states that the cost function is described as <sup>82</sup> : _J_ ( _θ_ ) <sup><u>1</u></sup> <u>2</u> <sup>= (</sup> <sup>_Fm −_</sup> <sup>_F_</sup> <sup>)2</sup> <sup>=</sup> <u>2</u> <sup><u>1</u></sup> <sup>_er_</sup> 2 (49) where _Fref_ is the reference model’s output, θ is the adaptation parameter, and _Fm_ is the system’s overall output. Based on the type of disruption, the model reference output frequency is selected as a decaying exponential increase from the lowest frequency that is meant to be tracked to the intended value of 50 Hz. The MIT rule calls for minimizing the cost function when modifying the parameter θ. To achieve this, either move J’s negative gradient in the direction of the parameter θ, or _<u>dθ</u>_ _<u>dθ</u>_ _dt_ <sup>=</sup> <sup>_γ′_</sup> <sup>_<u>∂J</u>_</sup> _∂_ <sup>_<u>∂J</u>_</sup> _∂_ = _−γ_ <sup>_′_</sup> _er_ <sup>_<u>∂e</u>_</sup> _∂θ_ <sup>_<u>r</u>_</sup> (50) <sup>_<u>∂e</u>_</sup> _∂θ_ <sup>_<u>r</u>_</sup> <sup>=</sup> <sup>_−γ′Wer_</sup> Considering the variations between the reference model and the system’s output, the adaptation mechanism modifies the control action as The equation for control is : (51) _θ_ = _−_ ( _Fm −_ _F_ ) _Fγ_ <sup>_<u>Tsz</u>_</sup> _z −_ <u>1</u> _D_ = _θuf_ (52) MATLAB simulation results and discussions The system, Fig. 21, will be tested through several situations to assess the efficacy and performance of the suggested control and to confirm that the proposed controller can stabilize AC bus voltage, achieving active power balance among the MG components, ensuring reliable AC voltage quality, and restoring the frequency of MG to the appropriate value after various disturbances, including load changes, changes in solar irradiance, and fluctuations in wind speed. The eight different disturbances are significant because they allow a thorough evaluation of the effectiveness and performance of the suggested control system for active power balancing among MG components and AC bus voltage stabilization. Every scenario illustrates typical challenges when integrating various energy sources into an MG. Through the analysis of these various disturbances, the suggested control solutions show how effective they are at preserving consistent AC voltage quality and ensuring the MG can quickly adjust to operational issues in the real world, improving overall system stability and resilience. CASE 1—A step change in solar irradiance Figure 29(a) depicts the step variations in solar radiation intensity. It is important to understand that changes in solar radiation can significantly influence the microgrid’s frequency. The MRAC-PI controller is essential for maintaining effective frequency regulation under these conditions. In comparison to PI-PSO and P-WOA controllers, the MRAC-PI controller exhibits superior accuracy in responding to sudden changes in solar Fig. 28 . Structure of a MRAC-PI controller-based closed-loop control system. Fig. 29 . System response under case 1. radiation, particularly during high-efficiency periods and rapid weather shifts. System performance is assessed using the MRAC-PI, PI-PSO, and PI-WOA controllers, focusing on critical metrics such as settling time (Ts), Integral of Time-weighted Absolute Error (ITAE), maximum overshoot (%Mp), and maximum undershoot (%Mus). Table 8 and Fig. 29(b) illustrate the MG frequency response following a step change. Figure 29(c) shows the output power from sources at MG, when the solar irradiance decreases from 1000 to 550 W/m <sup>2</sup> at 2 s, the power produced by the PV declines from 196 kW to approximately 97 kW. To compensate for this power deficiency, the generated power from the DG resulted in a decrease in the rotor speed. It is possible to return the rotor speed to its synchronous value once it has decreased by increasing the mechanical power input to the DG. Subsequently, following frequency adjustment, the DG power rises from 63 kW to approximately 157 kW. In this instance, the FC continues to provide its maximum output while the WT runs at its ideal speed to generate the most power feasible. Conversely, when the solar irradiance rises from 550 to 800 W/m <sup>2</sup> at 5 s, the power generated from the PV increases from 97 kW to approximately 157 kW, leading to a decrease in the generated power from the DG from 157 kW to approximately 98 kW. The MRAC-PI controller effectively maintains MG frequency stability despite these solar radiation fluctuations. Finally, Fig. 29(d) provides additional information showing the system’s voltage levels. CASE 2—Sudden changes in wind speed Figure 30(a) illustrates the step change in wind speed. Fluctuations in wind speed are crucial for assessing the performance of controllers in AC MGs, especially those that utilize RES like WT. These variations can significantly impact power generation and cause frequency imbalances. By modeling these changes, we can evaluate the controller’s capacity to adapt and keep the frequency within acceptable boundaries, thereby ensuring system stability. This assessment also facilitates the measurement of important performance indicators, such as Ts, ITAE, %Mp, and %Mus, which are vital for gauging the controller’s responsiveness and robustness. The MRAC-PI controller is particularly important for effective frequency regulation under these conditions. Compared to PI-PSO and PI-WOA controllers, the MRAC-PI controller shows enhanced accuracy in reacting to abrupt changes in wind speed, especially during periods of high efficiency and rapid weather changes. Table 8 and Fig. 30(b) depict the frequency response of the MG after a step change. Figure 30(c) also presents the output power from sources at MG. In this case, the wind speed drops at the 2-s point from 13 m/s to 11 m/s and then increases at the 5-s mark from 11 m/s to 12 m/s. At the 2-s point, the maximum power point tracking (MPPT) controller and boost converter match the WT’s rotor speed with the maximum power point (MPP) to maintain optimal power generation. This enhances DG’s power generation and compensates for the WT’s decreased power. The power of the DG rises from 63 kW to around 122 kW, whereas the power of the WT initially falls <u>Cases</u> <u>Controller type</u> <u>System Frequency</u> <u>Ts</u> <u>ITAE</u> <u>%Mp</u> <u>%Mus</u> <u>PI-PSO</u> <u>2.903</u> <u>0.184</u> <u>0.072</u> <u>0.623</u> <u>PI-WOA</u> <u>2.607</u> <u>0.182</u> <u>0.026</u> <u>0.446</u> <u>MRAC-PI</u> <u>1.688</u> <u>0.103</u> <u>0.010</u> <u>0.371</u> <u>PI-PSO</u> <u>2.925</u> <u>0.203</u> <u>0.401</u> <u>0.062</u> <u>PI-WOA</u> <u>2.827</u> <u>0.194</u> <u>0.284</u> <u>0.016</u> <u>MRAC-PI</u> <u>2.096</u> <u>0.110</u> <u>0.211</u> <u>0.007</u> <u>PI-PSO</u> <u>2.415</u> <u>0.176</u> <u>0.030</u> <u>0.404</u> <u>PI-WOA</u> <u>2.385</u> <u>0.172</u> <u>0.022</u> <u>0.261</u> <u>MRAC-PI</u> <u>1.585</u> <u>0.101</u> <u>0</u> <u>0.195</u> <u>PI-PSO</u> <u>2.378</u> <u>0.191</u> <u>0.191</u> <u>0.025</u> <u>PI-WOA</u> <u>2.037</u> <u>0.186</u> <u>0.140</u> <u>0.016</u> <u>MRAC-PI</u> <u>1.267</u> <u>0.104</u> <u>0.070</u> <u>0.001</u> <u>PI-PSO</u> <u>2.948</u> <u>0.181</u> <u>0.296</u> <u>0.012</u> <u>PI-WOA</u> <u>2.371</u> <u>0.172</u> <u>0.232</u> <u>0.006</u> <u>MRAC-PI</u> <u>2.103</u> <u>0.109</u> <u>0.170</u> <u>0.005</u> <u>PI-PSO</u> <u>2.615</u> <u>0.186</u> <u>0.011</u> <u>0.130</u> <u>PI-WOA</u> <u>2.215</u> <u>0.180</u> <u>0.006</u> <u>0.110</u> <u>MRAC-PI</u> <u>1.651</u> <u>0.112</u> <u>0</u> <u>0.074</u> <u>PI-PSO</u> <u>5.496</u> <u>0.218</u> <u>0.190</u> <u>0.285</u> <u>PI-WOA</u> <u>5.230</u> <u>0.217</u> <u>0.106</u> <u>0.160</u> <u>MRAC-PI</u> <u>4.681</u> <u>0.121</u> <u>0.060</u> <u>0.108</u> <u>PI-PSO</u> <u>5.437</u> <u>0.214</u> <u>0.120</u> <u>0.181</u> <u>PI-WOA</u> <u>4.874</u> <u>0.207</u> <u>0.046</u> <u>0.104</u> <u>MRAC-PI</u> <u>4.430</u> <u>0.117</u> <u>0.031</u> <u>0.066</u> <u>PI-PSO</u> <u>ــــــــــــ</u> <u>0.245</u> <u>0.341</u> <u>0.330</u> <u>PI-WOA</u> <u>ــــــــــــ</u> <u>0.240</u> <u>0.183</u> <u>0.201</u> <u>MRAC-PI</u> <u>7.149</u> <u>0.133</u> <u>0.101</u> <u>0.150</u> <u>PI-PSO</u> <u>6.744</u> <u>0.220</u> <u>0.229</u> <u>0.221</u> <u>PI-WOA</u> <u>6.621</u> <u>0.217</u> <u>0.184</u> <u>0.152</u> <u>MRAC-PI</u> <u>5.860</u> <u>0.121</u> <u>0.130</u> <u>0.110</u> <u>PI-PSO</u> <u>ــــــــــــ</u> <u>0.263</u> <u>0.647</u> <u>0.381</u> <u>PI-WOA</u> <u>ــــــــــــ</u> <u>0.251</u> <u>0.425</u> <u>0.284</u> <u>MRAC-PI</u> <u>7.175</u> <u>0.153</u> <u>0.293</u> <u>0.160</u> Case 1: A step change in solar irradiance Case 2: A step change in wind speed Case 3: A sudden change in load Case 4: Ramp changes in solar radiation Case 5: Ramp changes in wind speed Case 6: Random changes in solar radiation Case 7: Random changes in wind speed When solar radiation changes from 1000 (W/m <sup>2</sup> ) to 550 (W/m <sup>2</sup> ) When solar radiation changes from 550 (W/m <sup>2</sup> ) to 800 (W/m <sup>2</sup> ) When wind speed changes from 13 to 11 m When wind speed changes from 11 to 12 m Total load demand decreased by 11.1% from 450 to 400 kW Total load demand increased by 6.25% from 400 to 425 kW Case 8: Different disturbances in the system Table 8 . The system response summary for each of the several suggested controllers in each scenario. from 178 kW to roughly 114 kW, while the FC and PV keep on producing power at their highest levels. On the other hand, the WT’s power increases from 114 kW to roughly 147 kW at the 5-s point, while the DG’s power decreases from 122 kW to roughly 91 kW, while the FC and PV continue to produce power at their maximum rates. The MRAC-PI controller successfully maintains the stability of MG frequency despite these variations in wind speed. Lastly, Fig. 30(d) offers further insights by displaying the voltage levels within the system. CASE 3- Suddenly change in load To assess how well the suggested control system performs in stabilizing AC bus voltage and attaining active power balance amongst MG components, it is imperative to consider the relevance of the sudden shift in load disturbance cases. At the 2- second point in this scenario, the MG’s overall power usage drops by 11.1%, from 450 to 400 kW, as shown in Fig. 31(a). However, the overall load demand rises to 425 kW from 400 kW at the 5-s point, a 6.25% increase. At the 2-s point, the DG power drops from 63 kW to roughly 9 kW, while the FC, PV, and WT all keep producing power at their highest levels. Nevertheless, the total load demand for MG increases by 6.25% at the 5-s point, going from 400 to 425 kW. As a result, during load fluctuations, the DG’s power output rises from 9 kW to around 34 kW; this means that the FC, PV, and WT are still producing power at their highest levels. Figure 31(b) and Table 8 provide a comparative analysis of the MRAC-PI, PI-PSO, and PIWOA controllers in managing sudden load fluctuations, highlighting the superior performance of the MRAC-PI controller in maintaining optimal frequency control under these conditions. Additionally, Fig. 31(c) highlights the controller’s responsibility to keep the AC voltage within reasonable bounds, protecting the system’s power supply quality. This process increases the MG’s dependability during load shifts and emphasizes how vital efficient control systems are in overcoming the difficulties associated with integrating different energy sources. Fig. 30 . System response under case 2. CASE 4 – Ramp changes in solar radiation Figure 32(a) displays the ramp profile of solar radiation intensity over a designated timeframe. In such circumstances, the MRAC-PI controller is essential for achieving optimal frequency regulation. Compared to conventional PI-PSO and PI-WOA controllers, the MRAC-PI controller shows a markedly superior response and accuracy in adapting to changes in solar radiation intensity. Figure 32(b) shows the power output from sources at MG. As solar radiation diminishes, the power generated by the DEG increases correspondingly. Conversely, when solar irradiance rises, the output from the DG also escalates to meet the evolving energy demands. To assess system performance, a comparison is conducted among the MRAC-PI, PI-PSO, and PIWOA controllers, focusing on critical performance indicators such as Ts, ITAE, %Mp, and %Mus. Table 8 and Fig. 32(c) provide a detailed analysis of the MG frequency response during ramp changes in solar radiation intensity. The MRAC-PI controller effectively stabilizes the MG frequency despite variations in solar intensity, demonstrating its ability to maintain consistent performance under differing conditions. Additionally, Fig. 32(d) offers further insights by illustrating the system’s voltage levels, contributing to a comprehensive understanding of the microgrid’s performance. CASE 5 – Ramp changes in wind speed Figure 33(a) illustrates the ramp profile of wind speed over a specified period. In this scenario, the MRACPI controller ensures optimal frequency control. In contrast to PI-PSO and PI-WOA controllers, the MRACPI controller exhibits significantly enhanced responsiveness and precision in adjusting to fluctuations in wind speed. Figure 33(b) presents the power output from sources at MG. As wind speed decreases, the power produced by the DG correspondingly increases. Conversely, when wind speed increases, the output from the DG also rises to accommodate the changing energy requirements. A comparison is made among the MRAC-PI, PIPSO, and PI-WOA controllers to evaluate system performance, emphasizing key performance metrics such as Ts, ITAE, %Mp, and %Mus. Table 8 and Fig. 33(c) offer a comprehensive analysis of the MG frequency response during ramp changes in wind speed. The MRAC-PI controller effectively stabilizes the MG frequency, even with fluctuations in wind speed, showcasing its capability to deliver consistent performance under varying conditions. Furthermore, Fig. 33(d) provides additional insights by depicting the voltage levels within the system, enhancing the overall understanding of the microgrid’s functionality. Fig. 31 . System response under case 3. CASE 6 – Random changes in solar radiation Figure 34(a) shows how solar radiation intensity changes over time. The MRAC-PI controller is crucial for optimal frequency regulation during these changes. It outperforms conventional PI-PSO and PI-WOA controllers in adapting to solar radiation variations. Figure 34(b) shows power output from sources at MG. As solar radiation decreases, DG power increases, and vice versa. Table 8 and Fig. 34(c) compare the performance of MRAC-PI, PIPSO, and PI-WOA controllers using metrics like Ts, ITAE, %Mp, and %Mus. MRAC-PI stabilizes MG frequency during solar radiation changes, demonstrating consistent performance. Figure 34(d) shows system voltage levels, providing a complete picture of MG performance. CASE 7—Random changes in wind speed Figure 35(a) displays the random profile of wind speed over time, highlighting the MRAC-PI controller’s essential role in maintaining frequency control. Unlike PI-PSO and PI-WOA controllers, the MRAC-PI controller shows improved responsiveness and accuracy in adapting to wind speed changes. Figure 35(b) illustrates the power output from sources at MG, as wind speed drops, DG output increases, and vice versa. To assess system performance, comparisons are made among the MRAC-PI, PI-PSO, and PI-WOA controllers based on key metrics like Ts, ITAE, %Mp, and %Mus. Table 8 and Fig. 35(c) analyze the MG frequency response to wind speed variations. The MRAC-PI controller stabilizes frequency effectively despite wind fluctuations, demonstrating consistent performance. Additionally, Fig. 35(d) shows the system’s voltage levels, providing further insights into MG functionality. CASE 8 – Different disturbances in the system In this scenario, cases (3) sudden changes in load, (6) random changes in solar radiation, and (7) random changes in wind speed are interconnected and occur simultaneously. This approach ensures that the study addresses critical dynamic interactions between components, particularly the coupling of load fluctuations and renewable energy generation, thereby enhancing the technical accuracy of the work. Figure 36(a) visually depicts the power output from sources at MG. Table 8 and Fig. 36(b) comprehensively overview the MG frequency response. When comparing the performance of the MRAC-PI controller to PI-PSO and PI-WOA controllers, the MRACPI demonstrates a superior level of precision in addressing the conditions outlined in case 8. Finally, Fig. 36(c) offers additional insights by illustrating the voltage levels present in the system. Fig. 32 . System response under case 4. Conclusion This paper provides optimal design and techno-economic analysis of an islanded AC microgrid to cover the load of an international school in the New Administrative Capital, New Cairo, Egypt. The site was chosen because it serves as an example of new urban projects that emphasize sustainable energy sources, making it pertinent for settings of a similar nature worldwide. The islanded AC MG components were initially optimized for size and economic viability using HOMER. The simulation studies focused on the proposed area and utilized accurate load profile data and weather information. Various costs, like operating and maintenance (O&M), replacement, and capital, were considered, along with the operating life and efficiency of each HRES element. Other input parameters included the interest rate, evaluation of meteorological data, and project lifespan. To ensure the HRESs met the electricity demand of the residential area, optimization constraints such as operational savings, permitted capacity shortfall, load demand, and availability of resources were considered. Also, the system’s dynamic performance was investigated under different scenarios. According to the HOMER simulation results, an islanded AC MG design with PV/WT/DG/FC/BESS/ELZ/ HT is the most feasible option for the specified area. A 200 kW PV system, a 180-kW WT, a 141-kW converter, a 50.0 kW FC, a 50.0 kW ELZ, a 50.0 kg HT, a 180 kW DG, and a 686-kWh lead-acid battery are the optimal capacity of the MG sources. The outcomes show how each energy source contributes to the power demand, resulting in a TNPC of $1,775,300.00 and an LCOE of $0.153/kWh. By comparing our research with other studies, it becomes evident that it outperforms other studies regarding the LCOE. The optimal setup of the MG obtained by HOMER was modeled in MATLAB/SIMULINK to study its dynamic performance under different scenarios. A model reference adaptive control—Proportional-Integral (MRAC-PI) controller is introduced to improve the dynamic performance and effectively regulate the system’s frequency and voltage. The performance of the MRAC-PI controller is assessed by contrasting it with the PI-PSO and PIWOA controllers. Different disturbances, such as variations in wind speed, load demand, and solar irradiance, were introduced to evaluate the proposed control strategy for the MG alongside the MRAC-PI controller. The assessment relies on several performance indicators, including ITAE, Ts, %Mp, and %Mus of the system frequency. The findings indicate that the MRAC-PI controller significantly outperforms the PI-PSO controller across various scenarios. In Case 1, as solar radiation shifts from 1000 (W/m <sup>2</sup> ) to 550 (W/m <sup>2</sup> ), the MRAC-PI controller exhibits exceptional responsiveness, achieving an 86.11% reduction in overshoot, a 40.45% cut in undershoot, a 41.85% decrease in settling time, and a 44.02% reduction in ITAE. When solar radiation increases from 550 (W/m <sup>2</sup> ) to 800 (W/m <sup>2</sup> ), MRAC-PI continues to excel, reducing overshoot by 47.38%, undershoot by 88.71%, settling time by 28.34%, and ITAE by 45.81%. In Case 2, when wind speed changes from 13 to Fig. 33 . System response under case 5. 11 m/s, MRAC-PI again showcases its remarkable agility, cutting overshoot by 100%, undershoot by 51.73%, settling time by 34.37%, and ITAE by 42.61%. As wind speed rises from 11 to 12 m/s, MRAC-PI maintains its strong performance, reducing overshoot by 63.55%, undershoot by 96%, settling time by 46.72%, and ITAE by 45.55%. In Case 3, with an 11.1% drop in total demand, MRAC-PI shows its responsiveness, achieving a 42.57% reduction in overshoot, a 58.33% decrease in undershoot, a 28.66% cut in settling time, and a 39.78% reduction in ITAE. When the load increases by 6.25%, MRAC-PI continues to perform well, reducing overshoot by 100%, undershoot by 43.08%, settling time by 36.86%, and ITAE by 39.78%. During ramp changes in solar radiation in Case 4, the MRAC-PI controller effectively meets the challenge, achieving a 68.42% reduction in overshoot, a 62.11% reduction in undershoot, a 14.83% decrease in settling time, and a 44.49% reduction in ITAE. In Case 5, when faced with ramp changes in wind speed, the MRAC-PI controller demonstrates its durability, reducing overshoot by 74.17%, undershoot by 63.54%, settling time by 18.52%, and ITAE by 45.33%. The effectiveness of MRAC-PI continues in Case 6, where random fluctuations in solar radiation result in a 70.38% reduction in overshoot, a 54.55% reduction in undershoot, a complete reduction in settling time (100%), and a 45.71% decrease in ITAE. In Case 7, with random variations in wind speed, the MRAC-PI controller delivers outstanding results, reducing overshoot by 43.23%, undershoot by 50.23%, settling time by 13.11%, and ITAE by 45%. Finally, in Case 8, where the system experiences various disturbances, the MRAC-PI controller once again showcases its effectiveness, achieving reductions in overshoot by 54.71%, undershoot by 58.01%, settling time by 100%, and ITAE by 41.83%. In summary, these results underscore the exceptional capabilities of the MRACPI controller in reducing Ts, ITAE, %Mp, and %Mus across various situations, showcasing its effectiveness in improving dynamic performance within control systems. Additionally, the findings reveal that the MRAC-PI controller swiftly reinstates the necessary frequency and upholds stability, even amid multiple disturbances. In contrast, the PI-PSO and PI-WOA controllers demonstrate insufficient performance in all tested scenarios. Future work could enhance this research by integrating reliability metrics such as Loss of Power Supply Probability (LPSP) and Energy Not Supplied (ENS) into our analysis. These quantitative measures will enable a more comprehensive evaluation of the system’s robustness and reliability, thereby enhancing the overall assessment of the proposed energy configuration. We could also explore thermal management strategies for critical components, including fuel cells and batteries, to enhance overall system efficiency. This work can also be extended by designing optimal MGs in other regions with various characteristics. Fig. 34 . System response under case 6. Fig. 35 . System response under case 7. Fig. 36 . System response under case 8. Data availability The data supporting this study’s findings are available to the corresponding author upon request. Received: 24 May 2024; Accepted: 14 March 2025 References 1. Barakat, S. et al. Achieving green mobility: Multi-objective optimization for sustainable electric vehicle charging. _Energ. Strat. Rev._ 53 [, 101351. https://doi.org/10.1016/j.esr.2024.101351 (2024).](https://doi.org/10.1016/j.esr.2024.101351) 2. Keshta, H. E., Malik, O. P., Saied, E. M., Bendary, F. M. & Ali, A. A. Energy management system for two islanded interconnected microgrids using advanced evolutionary algorithms. _Electr. Pow. Syst. Res._ 192 [, 106958. https://doi.org/10.1016/j.epsr.2020.106958](https://doi.org/10.1016/j.epsr.2020.106958) (2021). 3. Dinata, N. F. P., Ramli, M. A. M., Jambak, M. I., Sidik, M. A. B. & Alqahtani, M. M. Designing an optimal microgrid control system using deep reinforcement learning: A systematic review. _Eng. Sci. Technol. Int. J._ 51 [, 101651. ​h​t​t​p​s​:​/​/​d​o​i​.​o​r​g​/​1​0​.​1​0​1​6​/​j​.​j​e​s​t​c​h​.​2​0​2​4​.​](https://doi.org/10.1016/j.jestch.2024.101651) [1​0​1​6​5​1 (2024).](https://doi.org/10.1016/j.jestch.2024.101651) ​ 4. Shaker, H. K., Keshta, H. E., Mosa, M. A. & Ali, A. A. Adaptive nonlinear controllers-based approach to improve the frequency control of multi-islanded interconnected microgrids. _Energy Rep._ 9 [, 5230–5245. https://doi.org/10.1016/j.egyr.2023.04.007 (2023).](https://doi.org/10.1016/j.egyr.2023.04.007) 5. Pürlü, M., Andiç, C., Aydın, E. & Solak, B. Optimal design of hybrid renewable energy system for a region in Turkey using HOMER. _Turk. J. Electr. Pow. Energ. Syst._ [https://doi.org/10.5152/tepes.2023.23021 (2023).](https://doi.org/10.5152/tepes.2023.23021) 6. Elnozahy, A. et al. Optimal economic and environmental indices for hybrid PV/wind-based battery storage system. _J. Electr. Eng._ _Technol._ 16 [(6), 2847–2862. https://doi.org/10.1007/s42835-021-00810-9 (2021).](https://doi.org/10.1007/s42835-021-00810-9) 7. Alzahrani, A. Energy management and optimization of a standalone renewable energy system in rural areas of the Najran Province. _Sustainability_ 15 [(10), 8020. https://doi.org/10.3390/su15108020 (2023).](https://doi.org/10.3390/su15108020) 8. Nallolla, C. A. & Perumal, V. Optimal design of a hybrid off-grid renewable energy system using techno-economic and sensitivity analysis for a rural remote location. _Sustainability_ 14 [(22), 15393. https://doi.org/10.3390/su142215393 (2022).](https://doi.org/10.3390/su142215393) 9. Bakundukize, A., Twizerimana, M., Bernadette, D., Pierre, B. J. & Theoneste, N. Design and modeling of PV power plant for rural electrification in Kayonza, _Rwanda_ . _J. Energ. Res. Rev._ 7 [(4), 31–55. https://doi.org/10.9734/JENRR/2021/v7i430197 (2021).](https://doi.org/10.9734/JENRR/2021/v7i430197) 10. Mokhtara, C. et al. Integrated supply–demand energy management for optimal design of off-grid hybrid renewable energy systems for residential electrification in arid climates. _Energ. Convers. Manag._ 221 [, 113192. https://doi.org/10.1016/j.enconman.2020.113192](https://doi.org/10.1016/j.enconman.2020.113192) (2020). 11. Li, C. Technical and economic potential evaluation of an off-grid hybrid wind-fuel cell-battery energy system in Xining. _Ch. Int. J._ _Green Energ._ 18 [(3), 258–270. https://doi.org/10.1080/15435075.2020.1854267 (2021).](https://doi.org/10.1080/15435075.2020.1854267) 12. Eidiani, M. & Mahnani, S. Optimally and Independent planned microgrid with solar-wind and biogas hybrid renewable systems by HOMER. _Majlesi J. Electr. Eng._ 17 [(2), 153–158. https://doi.org/10.30486/mjee.2023.1974843.1021 (2023).](https://doi.org/10.30486/mjee.2023.1974843.1021) 13. Sahu, P. K., Jena, S. & Sahoo, U. Techno-economic analysis of hybrid renewable energy system with energy storage for rural electrification. In _Hybrid renewable energy systems_ [(ed. Sahoo, U.) 63–96 (Wiley, 2021). ​h​t​t​p​s​:​/​/​d​o​i​.​o​r​g​/​1​0​.​1​0​0​2​/​9​7​8​1​1​1​9​5​5​5​6​6​7​.​c​h​](https://doi.org/10.1002/9781119555667.ch3) [3.](https://doi.org/10.1002/9781119555667.ch3) ​​ 14. Jahangir, M. H., Shahsavari, A. & Rad, M. A. V. Feasibility study of a zero-emission PV/Wind turbine/Wave energy converter hybrid system for stand-alone power supply: A case study. _J. Clean. Prod._ 262, 121250. [https://doi.org/10.1016/j.jclepro.2020.121250](https://doi.org/10.1016/j.jclepro.2020.121250) (2020). 15. Vakili-Nezhaad, G., Mishra, S. B., Mousa, H. & Ziaiefar, H. Simulation and optimization of hybrid green energy systems for desalination purposes. _Environ. Progress Sustain. Energ._ 40 [(2), e13515. https://doi.org/10.1002/ep.13515 (2021).](https://doi.org/10.1002/ep.13515) 16. Al-Ammar, E. A. et al. Residential community load management based on the optimal design of standalone HRES with model predictive control. _IEEE Access_ 8 [, 12542–12572. https://doi.org/10.1109/ACCESS.2020.2965250 (2020).](https://doi.org/10.1109/ACCESS.2020.2965250) 17. Fadzli, N. F. A. M., Dahlan, N. Y., Sintuya, H. & Setthapun, W. Technoeconomic assessment of electric vehicles for optimal microgrid energy system planning. _Int. J. Acad. Res. Econo. Manag. Sci._ [https://doi.org/10.6007/IJAREMS/v12-i2/18380 (2023).](https://doi.org/10.6007/IJAREMS/v12-i2/18380) 18. Jeyaprabha, S. B. & Milanović, J. V. Probabilistic techno-economic design of isolated microgrid. _IEEE Trans. Pow. Syst._ [​h​t​t​p​s​:​/​/​d​o​i​.​](https://doi.org/10.1109/TPWRS.2022.3216386) [o​r​g​/​1​0​.​1​1​0​9​/​T​P​W​R​S​.​2​0​2​2​.​3​2​1​6​3​8​6 (2022).](https://doi.org/10.1109/TPWRS.2022.3216386) ​ 19. Oladigbolu, J. O., Al-Turki, Y. A. & Olatomiwa, L. Comparative study and sensitivity analysis of a standalone hybrid energy system for electrification of rural healthcare facility in Nigeria. _Alex. Eng. J._ 60 [(6), 5547–5565. https://doi.org/10.1016/j.aej.2021.04.042](https://doi.org/10.1016/j.aej.2021.04.042) (2021). 20. Pujari, H. K. & Rudramoorthy, M. Optimal design and techno-economic analysis of a hybrid grid-independent renewable energy system for a rural community. _Int. Trans. Electr. Energ. Syst._ 31 [(9), e13007. https://doi.org/10.1002/2050-7038.13007 (2021).](https://doi.org/10.1002/2050-7038.13007) 21. Esan, A. B., Oghorada, O. & Agbetuyi, A. F. Conceptual model framework for demand response ancillary services deployed by inter-connected microgrids in West Africa–A Nigerian case study. _Renew. Energ. Focus_ 34 [, 47–56. ​h​t​t​p​s​:​/​/​d​o​i​.​o​r​g​/​1​0​.​1​0​1​6​/​j​.​r​e​f​.​2​0​](https://doi.org/10.1016/j.ref.2020.06.002) [2​0​.​0​6​.​0​0​2 (2020).](https://doi.org/10.1016/j.ref.2020.06.002) ​ 22. Odou, O. D. T., Bhandari, R. & Adamou, R. Hybrid off-grid renewable power system for sustainable rural electrification in Benin. _Renew. Energy._ 145 [, 1266–1279. https://doi.org/10.1016/j.renene.2019.06.032 (2020).](https://doi.org/10.1016/j.renene.2019.06.032) 23. Salameh, T., Ghenai, C., Merabet, A. & Alkasrawi, M. Techno-economical optimization of an integrated stand-alone hybrid solar PV tracking and diesel generator power system in Khorfakkan. _U. A. Emir. Energ._ 190 [, 116475. ​h​t​t​p​s​:​/​/​d​o​i​.​o​r​g​/​1​0​.​1​0​1​6​/​j​.​e​n​e​r​g​y​.​2​0​](https://doi.org/10.1016/j.energy.2019.116475) [1​9​.​1​1​6​4​7​5 (2020).](https://doi.org/10.1016/j.energy.2019.116475) ​ 24. Miao, C., Teng, K., Wang, Y. & Jiang, L. Technoeconomic analysis on a hybrid power system for the UK household using renewable energy: A case study. _Energies_ 13 [(12), 3231. https://doi.org/10.3390/en13123231 (2020).](https://doi.org/10.3390/en13123231) 25. Chowdhury, T. et al. Sizing of an island standalone hybrid system considering economic and environmental parameters: a case study. _Energies_ 15 [(16), 5940. https://doi.org/10.3390/en15165940 (2022).](https://doi.org/10.3390/en15165940) 26. Prum, M. et al. Optimizing Hybrid Energy Systems for Remote Communities in Asia’s Least Developed Countries. _Heliyon_ [​h​t​t​p​s​:​/​](https://doi.org/10.1016/j.heliyon.2024.e29369) [/​d​o​i​.​o​r​g​/​1​0​.​1​0​1​6​/​j​.​h​e​l​i​y​o​n​.​2​0​2​4​.​e​2​9​3​6​9 (2024).](https://doi.org/10.1016/j.heliyon.2024.e29369) ​ 27. Iqbal, R., Liu, Y., Zeng, Y., Zhang, Q. & Zeeshan, M. Comparative study based on techno-economics analysis of different shipboard microgrid systems comprising PV/wind/fuel cell/battery/diesel generator with two battery technologies: A step toward green maritime transportation. _Renew. Energy_ 221 [, 119670. https://doi.org/10.1016/j.renene.2023.119670 (2024).](https://doi.org/10.1016/j.renene.2023.119670) 28. Bouendeu, J. J., Konchou, F. A. T., Astrid, M. N. B., Elmorshedy, M. F. & René, T. Systematic techno-enviro-socio-economic design optimization and power quality of hybrid renewable microgrids. _Renew. Energy_ 218 [, 119297. ​h​t​t​p​s​:​/​/​d​o​i​.​o​r​g​/​1​0​.​1​0​1​6​/​j​.​r​e​n​e​n​e​.​2​0​2​](https://doi.org/10.1016/j.renene.2023.119297) [3​.​1​1​9​2​9​7 (2023).](https://doi.org/10.1016/j.renene.2023.119297) ​ 29. Shezan, S. A. et al. Optimization and control of solar-wind islanded hybrid microgrid by using heuristic and deterministic optimization algorithms and fuzzy logic controller. _Energy Rep._ 10 [, 3272–3288. https://doi.org/10.1016/j.egyr.2023.10.016 (2023).](https://doi.org/10.1016/j.egyr.2023.10.016) 30. Araoye, T. O. et al. Modeling and optimization of hybrid microgrid energy system: A case study of University of Abuja, Nigeria. _Int. J. Pow. Electr. Drive Syst. (IJPEDS)_ 14 [(2), 1201–1209. https://doi.org/10.11591/ijpeds.v14.i2.pp1201-1209 (2023).](https://doi.org/10.11591/ijpeds.v14.i2.pp1201-1209) 31. Rayhan, A. et al. Design and implementation of an off-grid hybrid microgrid for Chittagong and Faridpur. _Therm. Sci. Eng._ 6 (2), [2292. https://doi.org/10.24294/tse.v6i2.2292 (2023).](https://doi.org/10.24294/tse.v6i2.2292) 32. Pujari, H. K. & Rudramoorthy, M. Optimal design, pre-feasibility techno-economic, and sensitivity analysis of off-grid hybrid renewable energy system. _Int. J. Sustain. Energy_ 41 [(10), 1466–1498. https://doi.org/10.1080/14786451.2022.2058502 (2022).](https://doi.org/10.1080/14786451.2022.2058502) 33. Riayatsyah, T. M. I., Geumpana, T. A., Fattah, I. R. & Mahlia, T. I. Techno-economic analysis of hybrid diesel generators and renewable energy for a remote island in the Indian Ocean using HOMER Pro. _Sustainability_ 14 [(16), 9846. ​h​t​t​p​s​:​/​/​d​o​i​.​o​r​g​/​1​0​.​3​3​9​0​](https://doi.org/10.3390/su14169846) [/​s​u​1​4​1​6​9​8​4​6 (2022).](https://doi.org/10.3390/su14169846) ​ 34. Li, J., Liu, P. & Li, Z. Optimal design and techno-economic analysis of a solar-wind-biomass off-grid hybrid power system for remote rural electrification: A case study of west China. _Energy_ 208 [, 118387. https://doi.org/10.1016/j.energy.2020.118387 (2020).](https://doi.org/10.1016/j.energy.2020.118387) 35. Ghoniem, R. M., Alahmer, A., Rezk, H. & As’ad, S. Optimal design and sizing of hybrid photovoltaic/fuel cell electrical power system. _Sustainability_ 15 [(15), 12026. https://doi.org/10.3390/su151512026 (2023).](https://doi.org/10.3390/su151512026) 36. Basu, S., John, A. & Kumar, A. Design and feasibility analysis of hydrogen-based hybrid energy system: A case study. _Int. J. Hydrog._ _Energy_ 46 [(70), 34574–34586. https://doi.org/10.1016/j.ijhydene.2021.08.036 (2021).](https://doi.org/10.1016/j.ijhydene.2021.08.036) 37. Mohammed, A. S., Anuj, L. A. S. & Murtaza, Q. Techno-economic feasibility of hydrogen-based electric vehicle charging station: A case study. _Int. J. Energy. Res._ 46 [(10), 14145–14160. https://doi.org/10.1002/er.8132 (2022).](https://doi.org/10.1002/er.8132) 38. Heidari, M. et al. Techno-economic optimization and Strategic assessment of sustainable energy solutions for Powering remote communities. _Results Eng._ 23 [, 102521. https://doi.org/10.1016/j.rineng.2024.102521 (2024).](https://doi.org/10.1016/j.rineng.2024.102521) 39. Saadi, K. A. & Ghosh, A. Investigating the integration of floating photovoltaics (FPV) technology with hydrogen (H2) energy for electricity production for domestic application in Oman. _Int. J. Hydrog. Energy_ 80 [, 1151–1163. ​h​t​t​p​s​:​/​/​d​o​i​.​o​r​g​/​1​0​.​1​0​1​6​/​j​.​i​j​h​y​d​e​n​e​.​](https://doi.org/10.1016/j.ijhydene.2024.07.260) [2​0​2​4​.​0​7​.​2​6​0 (2024).](https://doi.org/10.1016/j.ijhydene.2024.07.260) ​ 40. Prawitasari, A. et al. A systematic decision-making approach to optimizing microgrid energy sources in rural areas through diesel generator operation and techno-economic analysis: A case study of Baron Technopark in Indonesia. _Int. J. Renew. Energy Dev._ 13, [315–328. https://doi.org/10.61435/ijred.2024.59560 (2024).](https://doi.org/10.61435/ijred.2024.59560) 41. Adedoja, O. S., Sadiku, E. R. & Hamam, Y. A techno-economic assessment of the viability of a photovoltaic-wind-battery storage hydrogen energy system for electrifying primary healthcare centre in Sub-Saharan Africa. _Energy Convers. Manag. X_ 23, 100643. [https://doi.org/10.1016/j.ecmx.2024.100643 (2024).](https://doi.org/10.1016/j.ecmx.2024.100643) 42. Belboul, Z. et al. Techno-economic optimization for isolated hybrid PV/wind/battery/diesel generator microgrid using improved salp swarm algorithm. _Sci. Rep._ [https://doi.org/10.1038/s41598-024-52232-y (2024).](https://doi.org/10.1038/s41598-024-52232-y) 43. Dehshiri, S. S. H. & Firoozabadi, B. Building integrated photovoltaic with hydrogen storage as a sustainable solution in Iranian rural healthcare centers. _Energy Convers. Manag._ 314 [, 118710. https://doi.org/10.1016/j.enconman.2024.118710 (2024).](https://doi.org/10.1016/j.enconman.2024.118710) 44. Pramanick, D., Kumar, J., Kumar, P. & Sharma, H. Resource assessment and techno-economic analysis of solar pv integrated hybrid off-grid power generation system: a case study of Krishnanagar India. _J. Environ. Dev. Sustain._ [​h​t​t​p​s​:​/​/​d​o​i​.​o​r​g​/​1​0​.​1​0​0​7​/​s​1​0​6​6​8​-​0​2​](https://doi.org/10.1007/s10668-024-05140-0) [4​-​0​5​1​4​0​-​0 (2024).](https://doi.org/10.1007/s10668-024-05140-0) ​ 45. Tayyab, Q. et al. Techno-economic configuration of an optimized resident microgrid: A case study for Afghanistan. _Renew. Energy_ 224 [, 120097. https://doi.org/10.1016/j.renene.2024.120097 (2024).](https://doi.org/10.1016/j.renene.2024.120097) 46. Emezirinwune, M. U., Adejumobi, I. A., Adebisi, O. I. & Akinboro, F. G. Synergizing hybrid renewable energy systems and sustainable agriculture for rural development in Nigeria. _e-Prime – Adv. Electr. Eng. Electr. Energy_ 7 [, 100492. ​h​t​t​p​s​:​/​/​d​o​i​.​o​r​g​/​1​0​.​1​0​](https://doi.org/10.1016/j.prime.2024.100492) [1​6​/​j​.​p​r​i​m​e​.​2​0​2​4​.​1​0​0​4​9​2 (2024).](https://doi.org/10.1016/j.prime.2024.100492) ​ 47. Al-Orabi, A. M., Osman, M. G. & Sedhom, B. E. Evaluation of green hydrogen production using solar, wind, and hybrid technologies under various technical and financial scenarios for multi-sites in Egypt. _Int. J. Hydrog. Energy_ 48 (98), 38535–38556. [https://doi.org/10.1016/j.ijhydene.2023.06.218 (2023).](https://doi.org/10.1016/j.ijhydene.2023.06.218) 48. Awad, A. A., Shehata, A. S., Seddik, E. H., & El-Gazzar, S. H. Design of a hybrid renewable energy system for a reverse osmosis [desalination plant: A case study of Abuqir-Egypt. In AIP Conference Proceedings (Vol. 3018, No. 1). AIP Publishing, ​h​t​t​p​s​:​/​/​d​o​i​.​o​](https://doi.org/10.1063/5.0172740) [r​g​/​1​0​.​1​0​6​3​/​5​.​0​1​7​2​7​4​0 (2023).](https://doi.org/10.1063/5.0172740) ​ 49. Aly, A. M., Kassem, A. M., Sayed, K., & Aboelhassan, I. Design of microgrid with flywheel energy storage system using HOMER software for case study. _International Conference on Innovative Trends in Computer Engineering (ITCE). IEEE_ [485–491, ​h​t​t​p​s​:​/​/​d​o​i​](https://doi.org/10.1109/ITCE.2019.8646441) [.​o​r​g​/​1​0​.​1​1​0​9​/​I​T​C​E​.​2​0​1​9​.​8​6​4​6​4​4​1 (2019).](https://doi.org/10.1109/ITCE.2019.8646441) ​ 50. Mohamed, R. A. E., Youssef, A. R. & Ismeil, A. M. Techno-economic analysis of hybrid renewable energy systems considering demand side management. _SVU-Int. J. Eng. Sci. Appl._ 5 [(2), 62–85. https://doi.org/10.21608/SVUSRC.2024.250110.1162 (2024).](https://doi.org/10.21608/SVUSRC.2024.250110.1162) 51. Rashwan, A. et al. Techno-economic optimization of isolated hybrid microgrids for remote areas electrification: Aswan city as a case study. _Smart Grids Sustain. Energy_ 9 [(1), 1–21. https://doi.org/10.1007/s40866-024-00200-w (2024).](https://doi.org/10.1007/s40866-024-00200-w) 52. Dawoud, S. M. Developing different hybrid renewable sources of residential loads as a reliable method to realize energy sustainability. _Alex. Eng. J._ 60 [(2), 2435–2445. https://doi.org/10.1016/j.aej.2020.12.024 (2021).](https://doi.org/10.1016/j.aej.2020.12.024) 53. Kuznetsov, O. N., Sultan, H. M., Aljendy, R. I., & Diab, A. A. Z. Economic feasibility analysis of PV/wind/diesel/battery isolated microgrid for rural electrification in south Egypt. _IEEE Conference of Russian Young Researchers in Electrical and Electronic_ _Engineering (EIConRus).IEEE_ [, 1001–1006, https://doi.org/10.1109/EIConRus.2019.8656764 (2019).](https://doi.org/10.1109/EIConRus.2019.8656764) 54. Dawoud, S. Economic and environmental investigation of renewable energy sources for micro-grids coastal areas. _J. Eng. Res._ 6 (1), [91–97. https://doi.org/10.21608/erjeng.2022.127502.1057 (2022).](https://doi.org/10.21608/erjeng.2022.127502.1057) 55. Kotb, K. M., Elkadeem, M. R., Elmorshedy, M. F. & Dán, A. Coordinated power management and optimized techno-enviro economic design of an autonomous hybrid renewable microgrid: A case study in Egypt. _Energy Convers. Manag._ 221, 113185. [https://doi.org/10.1016/j.enconman.2020.113185 (2020).](https://doi.org/10.1016/j.enconman.2020.113185) 56. Elmaadawy, K. et al. Optimal sizing and techno-enviro-economic feasibility assessment of large-scale reverse osmosis desalination powered with hybrid renewable energy sources. _Energy Convers. Manag._ 224 [, 113377. ​h​t​t​p​s​:​/​/​d​o​i​.​o​r​g​/​1​0​.​1​0​1​6​/​j​.​e​n​c​o​n​m​a​n​.​2​0​2​0​.​1​](https://doi.org/10.1016/j.enconman.2020.113377) [1​3​3​7​7 (2020).](https://doi.org/10.1016/j.enconman.2020.113377) ​ 57. Selim, A. et al. Hybrid off-grid energy systems optimal sizing with integrated hydrogen storage based on a deterministic balance approach. _Sci. Rep._ 14 [(1), 6888. https://doi.org/10.1038/s41598-024-55631-3 (2024).](https://doi.org/10.1038/s41598-024-55631-3) 58. Al-Orabi, A. M., Osman, M. G. & Sedhom, B. E. Analysis of the economic and technological viability of producing green hydrogen with renewable energy sources in a variety of climates to reduce CO2 emissions: A case study in Egypt. _Appl. Energy_ 338, 120958. [https://doi.org/10.1016/j.apenergy.2023.120958 (2023).](https://doi.org/10.1016/j.apenergy.2023.120958) [59. Eosweb.larc.nasa.gov, "NASA Surface meteorology and Solar Energy Location", [Online]. Available: https://eosweb.larc.nasa.gov,](https://eosweb.larc.nasa.gov) [Accessed: 16- April-2021]. 60. Barakat, S., Ibrahim, H. & Elbaset, A. A. Multi-objective optimization of grid-connected PV-wind hybrid system considering reliability, cost, and environmental aspects. _Sustain. Cities Soc._ 60 [, 102178. https://doi.org/10.1016/j.scs.2020.102178 (2020).](https://doi.org/10.1016/j.scs.2020.102178) 61. Samy, M. M., Mosaad, M. I. & Barakat, S. Optimal economic study of hybrid PV-wind-fuel cell system integrated to unreliable electric utility using hybrid search optimization technique. _Int. J. Hydrog. Energy_ 46 [(20), 11217–11231. ​h​t​t​p​s​:​/​/​d​o​i​.​o​r​g​/​1​0​.​1​0​1​6​/​j​.​i​j​](https://doi.org/10.1016/j.ijhydene.2020.07.258) [h​y​d​e​n​e​.​2​0​2​0​.​0​7​.​2​5​8 (2021).](https://doi.org/10.1016/j.ijhydene.2020.07.258) ​ 62. Central Bank of Egypt (CBE), Interest rates. [Online]. Available: [http://www.cbe.org. eg/en/Pages/default.aspx. [Accessed: 15-](http://www.cbe.org) January -2024]. 63. Central Bank of Egypt (CBE), Inflation rates. [Online]. Available: ​h​t​t​p​s​: ​ /​/​w​w​w​. ​ c​b​e​.​o​r ​ g​.​e​g​/​e ​ n​/​e​c​o ​ [n​o​m​i​c​-](https://www.cbe.org.eg/en/economic-research/statistics/inflation-rates) ​ r​e​s​e​a​r ​ c​h​/​s​t​a ​ t​i​s​t​i​c​s​/​i​n​fla​t​i​o​ ​ [n​-​r​a​t​e​s. [Accessed: 15- January -2024].](https://www.cbe.org.eg/en/economic-research/statistics/inflation-rates) 64. Hussien, A. M., Hasanien, H. M., Qais, M. H. & Alghuwainem, S. Hybrid transient search algorithm with levy flight for optimal PI controllers of islanded microgrids. _IEEE Access_ [https://doi.org/10.1109/ACCESS.2024.3357741 (2024).](https://doi.org/10.1109/ACCESS.2024.3357741) 65. Aruna, M. "Load Frequency Control Using PID and Particle Swarm Optimization-ITAE Check for updates." Advances in [Communication and Applications: Proceedings of ERCICA, Volume 2 1105: 325, https://doi.org/10.1007/978-981- 99-7633-1_24](https://doi.org/10.1007/978-981) (2024). 66. Benbouhenni, H. et al. Application of fractional-order synergetic-proportional integral controller based on PSO algorithm to improve the output power of the wind turbine power system. _Sci. Rep._ 14 [(1), 609. https://doi.org/10.1038/s41598-024-51156-x](https://doi.org/10.1038/s41598-024-51156-x) (2024). 67. Kant, R., Maurya, S. P., Singh, K. H., Nisar, K. S. & Tiwari, A. K. Qualitative and quantitative reservoir characterization using seismic inversion based on particle swarm optimization and genetic algorithm: a comparative case study. _Sci. Rep._ 14 (1), 22581. [https://doi.org/10.1038/s41598-024-72278-2 (2024).](https://doi.org/10.1038/s41598-024-72278-2) 68. Alizadeh, S. M., Alruyemi, I., Daneshfar, R., Mohammadi-Khanaposhtani, M. & Naseri, M. An insight into the estimation of drilling fluid density at HPHT condition using PSO-, ICA-, and GA-LSSVM strategies. _Sci. Rep._ 11 [(1), 7033. ​h​t​t​p​s​:​/​/​d​o​i​.​o​r​g​/​1​0​.​1​0​](https://doi.org/10.1038/s41598-021-86264-5) [3​8​/​s​4​1​5​9​8​-​0​2​1​-​8​6​2​6​4​-​5 (2021).](https://doi.org/10.1038/s41598-021-86264-5) ​ 69. Marques, D. C., Silva, J. L., Lira, M. M. S. & Aquino, R. R. An emotional discrete controller PSO tuned and designed for a real industrial pumping system. _Sci. Rep._ 12 [(1), 4292. https://doi.org/10.1038/s41598-022-08192-2 (2022).](https://doi.org/10.1038/s41598-022-08192-2) 70. Eslami, Nava, et al. "Whale optimization algorithm and its application in machine learning." Handbook of Whale Optimization Algorithm. ( _Academic Press_, 2024). 71. Percin, H. B. & Caliskan, A. Whale optimization algorithm based MPPT control of a fuel cell system. _Int. J. Hydrog. Energy_ 48 (60), [23230–23241. https://doi.org/10.1016/j.ijhydene.2023.03.180 (2023).](https://doi.org/10.1016/j.ijhydene.2023.03.180) 72. Swethamarai, P., Lakshmi, P. & Prassad, S. G. Whale-optimized fuzzy-fractional order controller-based automobile suspension model. _Eng. Optim._ 54 [(7), 1110–1130. https://doi.org/10.1080/0305215x.2021.1913735 (2022).](https://doi.org/10.1080/0305215x.2021.1913735) 73. Vanchinathan, K., Valluvan, K. R., Gnanavel, C. & Gokul, C. Numerical simulation and experimental verification of fractional order PIλ controller for solar PV fed sensorless brushless DC motor using whale optimization algorithm. _Electr. Pow. Compon. Syst._ 50 [(1–2), 64–80. https://doi.org/10.1080/15325008.2022.2135644 (2022).](https://doi.org/10.1080/15325008.2022.2135644) 74. Hasanien, H. M. Whale optimisation algorithm for automatic generation control of interconnected modern power systems including renewable energy sources. _IET Gener. Trans. Distrib._ 12 [(3), 607–614. https://doi.org/10.1049/iet-gtd.2017.1005 (2018).](https://doi.org/10.1049/iet-gtd.2017.1005) 75. Guha, D., Roy, P. K., & Banerjee, S. Whale optimization algorithm applied to load frequency control of a mixed power 76. Guha, D., Roy, P. K. & Banerjee, S. Whale optimization algorithm applied to load frequency control of a mixed power system considering nonlinearities and PLL dynamics. _Energy Syst._ 11 [(3), 699–728. https://doi.org/10.1007/s12667-019-00326-2 (2020).](https://doi.org/10.1007/s12667-019-00326-2) 77. Djebbri, S., Ladaci, S., Metatla, A. & Balaska, H. Fractional-order model reference adaptive control of a multi-source renewable energy system with coupled DC/DC converters power compensation. _Energy Syst._ 11 [(2), 315–355. ​h​t​t​p​s​:​/​/​d​o​i​.​o​r​g​/​1​0​.​1​0​0​7​/​s​1​2​6​6​](https://doi.org/10.1007/s12667-018-0317-5L) [7​-​0​1​8​-​0​3​1​7​-​5​L (2020).](https://doi.org/10.1007/s12667-018-0317-5L) ​ 78. Kumar, M., & Tyagi, B. Design of a model reference adaptive controller (MRAC) for dc-dc boost converter for variations in solar outputs using modified MIT rule in an islanded microgrid. In: 2020 _IEEE International Conference on Power Electronics,_ _Smart Grid and Renewable Energy (PESGRE2020)_ [. IEEE, 2020. p. 1–6, doi.org/https://doi.org/10.1109/pesgre45664.2020.9070679](https://doi.org/10.1109/pesgre45664.2020.9070679) l (2020) 79. Zolfaghari, M., Gharehpetian, G. B., Blaabjerg, F., & Anvari-Moghaddam, A. Model Reference Adaptive Control of UIPC in Islanded Hybrid Microgrids with Flexible Loads and Storages. In: 2021 _IEEE International Conference on Environment and_ _Electrical Engineering and 2021 IEEE Industrial and Commercial Power Systems Europe (EEEIC/I&CPS Europe)_ [. IEEE, 2021. p. 1–5.​](https://doi.org/10.1109/eeeic/icpseurope51590.2021.9584765) h​t​t​p​s​:/ ​ ​ /​d​o ​ i​.​o​r ​ g​/ ​ 1​0​.​1​1 ​ 0 ​ 9​/​e​e ​ e ​ [i​c​/​i​c​p](https://doi.org/10.1109/eeeic/icpseurope51590.2021.9584765) ​ s​e​u​r​o​p ​ e​5​1 ​ 5​9 ​ 0​. ​ 2​0​2​1​.​9​5​8​4​7​6​5 l (2021) 80. Edrington, C. S., Ozkan, G., Papari, B. & Perkins, D. Distributed adaptive power management for medium voltage ship power systems. _J.Mar. Eng. Technol._ 21 [(5), 281–296. https://doi.org/10.1080/20464177.2021.1894783K (2022).](https://doi.org/10.1080/20464177.2021.1894783K) 81. Kahani, R., Jamil, M. & Iqbal, M. T. Direct model reference adaptive control of a boost converter for voltage regulation in microgrids. _Energies_ 15 [(14), 5080. https://doi.org/10.3390/en15145080U (2022).](https://doi.org/10.3390/en15145080U) 82. Rothe, J., Zevering, J., Strohmeier, M. & Montenegro, S. A Modified Model Reference Adaptive Controller (M-MRAC) Using an Updated MIT-Rule for the Altitude of a UAV. _Electronics_ 9 [(7), 1104. https://doi.org/10.3390/electronics9071104 (2020).](https://doi.org/10.3390/electronics9071104) Author contributions M. S: Validation, For-mal analysis, Writing – review & editing. M. A: original draft, Writing – review & editing. R.M: Formal analysis, Software, Supervision. S.B: Methodology, Validation, Formal analysis. H.E: Investigation, Formal analysis, Software. All authors reviewed the manuscript. Funding Open access funding provided by The Science, Technology & Innovation Funding Authority (STDF) in cooperation with The Egyptian Knowledge Bank (EKB). Declarations Competing interests The authors declare no competing interests. Additional information Supplementary Information [The online version contains supplementary material available at ​h​t​t​p​s​:​/​/​d​o​i​.​o​r​g​/​1​](https://doi.org/10.1038/s41598-025-94506-z) [0​.​1​0​3​8​/​s​4​1​5​9​8​-​0​2​5​-​9​4​5​0​6​-​z.](https://doi.org/10.1038/s41598-025-94506-z) ​​ Correspondence and requests for materials should be addressed to M.A.G. Reprints and permissions information is available at www.nature.com/reprints. Publisher’s note Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations. Open Access This article is licensed under a Creative Commons Attribution 4.0 International License, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if changes were made. The images or other third party material in this article are included in the article’s Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article’s Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy [of this licence, visit http://creativecommons.org/licenses/by/4.0/.](http://creativecommons.org/licenses/by/4.0/) © The Author(s) 2025 ​

섹션 본문 122문단 · 68,642자

(제목 없음)

1Microgrids (MGs) are essential in the distribution system by utilizing widely dispersed generation sources.Due to their economical and environmentally friendly attributes, Islanded AC MGs are commonly used to supply electricity to isolated locations independent of the primary grid.This study focuses on optimizing the configuration of an islanded AC MG to meet the electrical requirements of an international school in the New Administrative Capital, New Cairo, Egypt.Hybrid Optimization of Multiple Energy Resources (HOMER) software is employed to obtain the optimal size of the sources in the MG by minimizing the Levelized Cost of Energy (LCOE) and Total Net Present Cost (TNPC).According to the HOMER simulation results, a 200 kW PV system, a 180-kW wind turbine, a 50 kW FC, a 50 kW electrolyzer, a 50 kg hydrogen tank, a 180 kW DG, and a 686-kWh lead-acid battery form the optimal configuration of the islanded AC MG.The results reveal the contribution of each energy component to meeting the electricity demand, yielding an LCOE of $0.153/kWh and a TNPC of $1,775,300.00.The dynamic performance of the islanded microgrid is examined, introducing a Model Reference Adaptive Control based PI controller (MRAC-PI) to enhance transient response across all operational conditions.A comparative analysis is performed against traditional PI-PSO and PI-WOA controllers under load variations and changing weather conditions.The results indicate that the proposed control strategy effectively maintains system frequency and voltage amid various disturbances, improves dynamic performance, and achieves a balanced power generation and load demand.Additionally, the proposed controller demonstrates superior dynamic response, featuring reduced overshoot, undershoot, ITAE, and settling time compared to the others.Keywords Renewable energy sources, Islanded AC microgrid, Diesel Generator (DG), Photovoltaic panel (PV), Microgrid (MG), Wind Turbine (WT), Fuel cell (FC)The escalating global population and the reliance on fossil fuels have raised serious ecological concerns, necessitating the search for sustainable and environmentally friendly energy sources.Renewable energy sources (RES), like PV and WT systems, have emerged as promising alternatives to nonrenewable fuels.However, these RES face challenges related to intermittent supply and the need for storage, particularly in arid regions 1 .MG systems offer a revolutionary energy production, delivery, and consumption solution.An MG comprises a set of distributed energy resources (DERs) and loads, functioning as a single, manageable unit.DERs encompass various micro-sources, including PV, WT, FC, DG, and battery energy storage system (BESS) 2 .As the world transitions toward renewable energy and grid resilience, MGs play a vital role by integrating RES into the electrical grid, reducing greenhouse gas emissions, and enhancing energy management 3 .Providing power to remote regions is crucial for strengthening the economy, creating jobs, reducing poverty, and improving living conditions.However, these areas often suffer from frequent disruptions, low quality, and power failures due to their distance from the conventional power grid.Expanding the grid to these regions is economically unviable.Implementing off-grid hybrid renewable energy systems (HRES) that combine PV, WT, and DG can address these power challenges and provide reliable and affordable electricity.Such independent HRES can also foster power utilization and economic development and overcome the limitations of limited fossil fuel reserves in rural and urban areas 4 .Designing an optimal HRES involves considering various factors, including identifying regions with the highest potential for renewable energy utilization, minimizing energy costs, and reducing emissions.Numerous tools, computer simulation software, and effective optimization methodologies have been employed

2• Lack of comprehensive analysis: focusing solely on technical issues without incorporating economic and environmental analysis or concentrating only on financial considerations without thoroughly examining or validating the suggested models.• Limited Case Studies: concentrates on speculative scenarios or does not include case studies from the real world.• Limited Scope: looking at one technology (PV, wind, or DG) without considering a hybrid strategy.

Software Solar Wind Technical Economic Optimization Free Trial

3Table 1.Simulation programs for the design of HRES.Considering all the above, the contributions and scope of the work that is being presented are summed up as follows:

4• Comprehensive analysis: The paper integrates technological and economic factors, offering a holistic approach that addresses the limitations of focusing solely on one aspect.HOMER is employed for optimal component sizing, thus contributing to the development of economically viable MG solutions.Subsequently, MATLAB New Cairo and provides a concrete application of the proposed MG configuration.• proposing a non-linear adaptive controller, MRAC-PI controller, to enhance the transient response of frequency over a wide range of operating points.To demonstrate the efficiency of the proposed controller, its performance is examined, evaluated, and compared with the PI-PSO and PI-WOA controllers.

5• The location's significance is due to its representation of emerging urban development's prioritizing sustainable energy solutions, making it relevant for similar settings worldwide.• Hybrid technology integration: Including advanced components such as FC and ELZ alongside PV, WT, DG, and BESS allows for a more versatile and efficient energy system.• Consideration of load variability: The research thoroughly accounts for generation and load variations, enhancing the proposed system's reliability and robustness.• Focus on reliability and addressing Integration Issues: The paper discusses the reliability and quality of power supply in detail, addressing a common gap in recent literature.It also explores the operational and technological challenges of integrating multiple energy sources using MATLAB software, providing valuable insights for practical implementation.• User-centric approach: the research aligns its conclusions with the specific needs and preferences of an international school in New Cairo, ensuring that the proposed solutions are practical and user-friendly.

6Cost-effective solutions: The study contributes to developing economically viable MG solutions by aiming to minimize the LCOE and TNPC.This paper's remaining parts are organized as follows.A thorough explanation of the technique and a description of the suggested power system are provided in Sect."Optimal sizing and economic analysis using HOMER PRO".This includes the site details, evaluation of energy resources, load profile, and the economic and mathematical models used for the suggested system's elements.Section "Feasibility study" presents the results and discussions from the HOMER software and the optimization achievements.Financial analysis is also included in this section, along with the rated capacity in Kilowatt (kW) and quantity of units for each type of system component, as well as the expenses associated with the ideal system, such as TNPC and LCOE.Section "Mathematical modeling" focuses on the MATLAB system under study, specifically, the islanded AC MG system configuration and the load frequency control mechanism, and Sect."Optimization and economic model" presents MATLAB simulation results that demonstrate how the load frequency control maintains constant AC bus voltage and frequency, achieves active power balancing among the components of an islanded AC MG, and ensures adequate AC voltage quality in the presence of load and generation disturbances.Finally, Sect."Model constraints" concludes this work.

Optimal sizing and economic analysis using HOMER PRO

7Figure 1 outlines the recommended approach for optimizing component size and load frequency control (LFC) in an off-grid AC MG.The process involves evaluating real-time weather data and the load profile of the proposed location.Optimization goals, constraints, and feasible HRES configurations are determined, and a detailed model of multiple components is developed.Based on technical and economic analysis, the most practical model is selected.LFC is then implemented for the chosen configuration plan.Finally, the suggested control approach is validated by subjecting it to various disturbances, such as changes in solar irradiance, load fluctuations, and wind speed variations.The HRES consists of PV, WT, and FC as the primary energy sources, with a DG and BESS used to supply power during PV and wind fluctuations.Power converters are vital in transferring energy between DC and AC buses.

Feasibility study

8This section provides a framework for assessing the country's power policy, describing the site, and analyzing the load requirements that must be met.

Site description

9The suggested system under investigation was based on a case study of an international school, 130 Street 11, New Cairo 1, Cairo Governorate, Egypt.As shown in Fig. 2, the case study's precise coordinates are 29°59.8'Nand 31°26.2'E.This location was selected because it offers ideal conditions for dependable year-round access to PV and wind resources.

Solar energy data

10Solar resource data was obtained from the National Aeronautics and Space Administration (NASA) Surface Meteorology and Solar Energy website 59 .This source is widely recognized for its reliability and comprehensiveness in providing solar irradiance data.The scaled data of the worldwide solar radiation at the chosen point is displayed in Fig. 3. Data analysis reveals that June experiences the highest solar radiation, averaging (7.68 kWh/ m 2 /day), which is crucial for maximizing solar energy production during the summer months.In contrast, December shows the lowest solar radiation levels at (2.996 kWh/m 2 /day), reflecting the seasonal variations in solar availability.Overall, the site receives a yearly average solar radiation of (5.342 kWh/m 2 /day).This average is significant, as it indicates a favorable environment for solar energy generation, making the location suitable for implementing solar technologies.

Wind energy data

11The Cairo Governorate exhibits significant potential for wind resources, with a mean hourly wind speed of 5.56 m/s.This wind speed indicates a favorable environment for wind energy generation, making it an attractive site for developing wind power projects.Figure 4 illustrates the monthly mean wind speeds at the suggested location, providing a detailed overview of the wind resource variability throughout the year.It is evident from the graph that the highest average hourly wind speed occurs in April at 5.91 m/s; this peak suggests that spring months may provide optimal conditions for wind energy generation.Meanwhile, the wind speed was recorded at its lowest in August at 5.1 m/s.This seasonal variation highlights the region's dynamic nature of wind resources, which various meteorological factors can influence.The figure also emphasizes a complementary relationship between wind speeds and solar radiation.Wind speeds are relatively high during months when solar radiation is typically low, such as in the summer.This synergy between wind and solar resources is advantageous for meeting load demand throughout the year.By capitalizing on both energy sources, a more reliable and balanced energy supply can be achieved, ultimately enhancing the overall efficiency of the energy system.This complementary nature supports the optimization of energy generation.It contributes to reducing reliance on conventional fossil fuels, paving the way for a more sustainable energy future in the Cairo Governorate.The ability to harness both wind and solar resources effectively positions the region as a promising candidate for renewable energy initiatives that can meet the growing energy demands of its population.

Load profile

12To accurately represent the energy consumption patterns in the research area, the average daily load demand is utilized to construct an hourly load profile for the entirety of the year.This comprehensive approach allows for a granular understanding of energy usage, reflecting fluctuations that occur throughout different times of the day and various seasons.The research area demonstrates an average hourly load of around 78.8 kWh, indicating a consistent demand for energy throughout the day with a peak load reaching 162.13 kW. Figure 5 presents the monthly average load profile for the selected site, based on estimated energy consumption for an international school in the New Administrative Capital, New Cairo, Egypt.This load profile is representative of actual consumption patterns, further strengthening our analysis.By analyzing the load profile in conjunction with seasonal demand variations, this study provides valuable insights into the energy needs of the area.Understanding these patterns is essential for designing an efficient energy system that can effectively meet the load demand, optimize resource allocation, and ensure reliability in energy supply throughout the year.This analysis also lays the groundwork for integrating RES, as it highlights the times when energy generation must be maximized to align with consumer demand.

Mathematical modeling

13This section provides the economic and mathematical models of the suggested system's elements.The system's LCOE was computed using the discounted cash flow analysis approach, considering the project's lifespan and constituent parts.A 25-year project lifespan has been taken into consideration.To improve the accuracy of the estimates, economic data such as the inflation rate (If ) and interest rate (Ir) are also considered.

Solar generation system

14PV panel output power can be estimated using a variety of models.Instead, we use a straightforward model that only needs two inputs: solar radiation and the surrounding temperature.To calculate the power of the PV panels, use the following equation 19 .

15PPV do PV panels generate the power, PST C is the rated power of PV panels at Standard Test Condition (STC), fPV represents the PV derating factor (0.8), G is the actual solar irradiance received by PV panels (kW/m 2 ), GST C is the solar irradiance at STC (1 kW/m 2 ), TST C is the cell temperature at reference conditions (25 °C), and K is the temperature coefficient.The cell temperature (T) is calculated using the equation presented in 24 involving the ambient temperature (Tamp).

16The PV generator's annual power production ( P P V annual ) can be represented as follows 60 .

17))

18, T = 8760 (3)

19The rated module output (PPV r) in kW, the number of PV modules (N P V ), the symbols represent normal operating cell temperature (NOCT) in degrees Celsius (℃).

20The net present cost (NP CPV ) of the PV system is determined by adding the initial capital cost (ICPV ) and the operation and maintenance costs (O&MCPV ), the initial price of the PV system (IP RPV ), and (OM P P V ) is the operation and maintenance price of the PV system ($).Replacement costs are nonexistent because the PV system's lifespan is the same as the projects.The NP CPV can be calculated using the following formula:

Wind generation system

21The WT harnesses wind energy to generate electricity, utilizing rotating rotor blades and a generator.It plays a vital role in the MG by capturing and using renewable energy to power the entire system.The formula determines the power produced by the WT 14 .

22where the output power of the WT (kW), the WT's rated power (kW), the WT generator's local speed, rated wind speed, cut-out wind speed, and cut-in wind speed are respectively described by the variables (PWT , Pr, v, v rated, vcouout, and vcutin).

23Given that WT has a 15-year lifespan, it must be replaced every 15 years.It is possible to compute the WT system's net present cost (NP CWT ) as follows:

24where the initial capital cost of WT is (ICWT), the initial price of the WT system (IP RWT ), (OM P W T ) is the operation and maintenance price of the WT system ($), The number of wind turbines (N W T ), The replacement costs of the WT ( RCWT ), Replacement price of WT ($) is (RP W T ),and the maintenance cost of WT is (O&MCWT ).

The batteries bank system modeling

25Batteries, which are very energy-efficient and straightforward to set up, are the only storage agents used in this study.When energy is scarce, extra power from RES is utilized to start charging the battery.The discharge and charge settings of a battery can be ascertained using Equations.( 9) and ( 10), correspondingly 10,14 :

26where E l (t) and Eg (t) stand for generated power and energy demand, respectively, E b (t) is the state of charge (SOC) of a battery at each time step t, The battery's discharge and charge efficiencies are represented by ηBD and ηBC.The battery's self-discharge σ, and the converter's efficiency ηcnv.The battery bank has no replacement costs because its 25-year lifespan equals the project's lifetime.The battery bank's net present cost (NP C BAT ) is computed as follows:

27where the initial capital cost of BESS is (ICBAT), the initial price of the BESS (IP RBAT ), (OM P BAT ) is the operation and maintenance price of BESS ($), The number of battery banks (N BAT ),and the operating and maintenance cost of BESS is (O&MCBAT ).

Diesel Generation system

28The DG serves as the MG's backup power source, supplying electricity when generated power from other resources is low, demand is high, and BESS is depleted.The power output equation for the DG used in HOMER is displayed in 30 :

29where C ef f is the efficient fuel cost ($/L), RL is the generator lifespan (hrs), Cr is the replacement cost ($), Xgen is the generator capacity (kW), Fn is the intercept fuel curve coefficient (fuel/hr/kW), and C O&M is the maintenance and operating cost ($/hr).

Inverter and converters

30Converters enable bidirectional transfer between AC and DC power.Inverter/converters facilitate energy flow between DC and AC buses.Power converters are necessary when both DC and AC components are present.System modeling considers anticipated loads, efficiency, and capacity of the inverter.The inverter Pinv capacity is established by 30 .(14) where the load system's maximum energy need (kWh), and the converter's efficiency are represented by EL (max), and η DC/AC respectively.

Electrolyzer model

31The electrochemical converter splits water into oxygen and hydrogen.Daytime electrolysis with purified water and RES generates stored hydrogen.A polymer electrolyte membrane (PEM) electrolysis extracts hydrogen from water and solar power, compressing and storing it.DC voltage splits water, combining protons and electrons for hydrogen production.The system utilizes porous anodes, polymer film, flow fields, and plates for water transport 35,36 .The following formula can be used to get the ELZ net present cost (NP CELZ ):

32)

33where the initial capital cost of the ELZ is (ICELZ), the initial price of the ELZ (IP RELZ ), (OM P ELZ ) is the operation and maintenance price of ELZ ($), The number of ELZ (N ELZ ), The replacement costs of the ELZ ( RCELZ ), The replacement price of the ELZ ($) is (RP ELZ ), The ELZ's salvage value (SELZ ), the discount factor (DF),Tproj = 25.years,ELZ operational life (TELZ ),ELZ operational life (TELZ ) , and the operating and maintenance cost of the ELZ is (O&MCELZ ).

Fuel cell generation system

34FC converts chemical energy to electrical energy.Oxidizers and fuel produce fuel and water.ELZ separate cathodes for circuit completion.Pure sewage.Hydrogen interaction transports electrons.Protons are generated in the anode.Water is released by hydrogen, oxygen, and electron combination 36,37 .PEM/FCs are chosen for efficiency, lifespan, size, and weight.They are used in backup power and transmission networks 61 .

FC operational life (TFC) =

35F Clif etime F Choursthroughoutayear (18) It's feasible to Determine the net present cost of the FC system (NP C F C ) and the fuel cell's salvage value (SFC ) as follows:

36where the initial capital cost of FC is (ICFC), the initial price of the FC is (IP RFC), (OM P F C ) is the operation and maintenance price of FC ($), The number of FC's (N F C ), The replacement costs of the FC ( RCFC), Replacement price of FC ($) is (RP F C ), and the operating and maintenance cost of FC is (O&MCFC).

Hydrogen storage tank (HT)

37Large-scale fixed hydrogen storage is indispensable for fulfilling hydrogen's potential as a worldwide energy transporter.An approximate lifespan of 25 years is projected for the hydrogen container.The tank's dimensions are determined through simulations that aim to meet the optimal design criteria.The following equations outline the operational principles of the HT 58 :

38where, QH 2 (t) presents the net mass flow rate of hydrogen entering or respond the ELZ and leaving the tank for the FC.mH 2 (t) or respond to the ELZ's output mass flow rate at a specific time.fH 2 (t) signifies the input mass flow rate to the hydrogen FC simultaneously, measured in kg/h.LH 2 (t) denotes the rate of hydrogen consumption in kg/h.T level (t) presents the amount of hydrogen added to the tank during a given time interval within one hour while T level,new (t) signifies the updated tank level at the current time step.The first part of Eq. ( 24) indicates the remaining hydrogen kept in the tank before this computation hour, while the second part of the equation represents the final hydrogen held during the present hour.

Optimization and economic model

39The optimization process determines the best system configuration that meets intended load limitations by simulating various configurations in HOMER-Pro, as presented in Fig. 6.Unrealistic solutions are eliminated, and feasible configurations are ranked based on the lowest LCOE and TNPC.The objectives are to determine Proper values for user-controlled decision-making variables, such as DG size, PV module, FC, system converter, ELZ, HT, WT number, battery number, and dispatch strategy.HOMER-Pro analyzes these variables to identify the most suitable configuration for the required demand.The program defines LCOE as the mean cost per kWh of usable electrical power generated by the system.The program calculates the LCOE by dividing the yearly expense of power production by the total amount of helpful power produced.The following formula is used to get the LCOE and TNPC 10,11 .

40Fig. 6.Flowchart of the HOMER algorithm.

41where, C Anualized is the total annualized cost, CRF is the capital recovery factor, and E Served is the annual energy served.The following equations 25 provide the capital recovery factor (CRF) and the annual interest rate (r).

42where (N) is the project lifespan in years, (r′) is the rate of nominal interest expressed as a percentage, and (f ) is the annual inflation rate expressed as a percentage.The project's duration in this study is 25 years, with a 21.25% interest rate and a 35.12% inflation rate per the Central Bank of Egypt 62,63 .

Model constraints

43To ensure a consistent balance of power throughout each hour, all electricity requirements must be satisfied by utilizing appropriate sources of power such as PV, WT, FC, and DG, as described in this paper.The equation provided below describes the principle behind achieving this objective.

44The operation of the battery is limited by two conditions: (i) the SOC must adhere to safe limits to prevent overcharging or over-discharging, as depicted in the equations provided in Eq. ( 31), and (ii) the amount of energy stored per hour is bound by specific constraints outlined in Equations.( 32), ( 33) and (34) 30,55 .

45In the equations, (E bat ) represents battery capacity (kWh), (E bat.min ) is the minimum permissible battery capacity, (E bat.max ) is the maximum permissible battery capacity, (SOCmin) is the minimum SOC, (SOC max ) is the maximum SOC, and (DOD) is the depth of discharge.

HOMER results and discussions

46HOMER Pro models and optimizes MG systems, considering both financially and technically feasible Integration of RES and risk reduction.It assesses the components, fuel costs, system structure, demand characteristics, and environmental variables in a single run.The simulation offers insightful data on cost reductions, risk mitigation, and system performance.The investigation's conclusions are compiled in this part of the paper, which begins with the optimization achievements and then on to the economic analysis.These sections list each component's rated capacity (kW) and the quantity of units for each system component.These component tables provide the expenses of the ideal system, including the TNPC and LCOE.

Optimization results

47The plant site in 130 Street 11, New Cairo 1, Cairo Governorate, Egypt (29°59.8'N,31°26.2'E),was optimized.This IMG has a max power of 162.13 kW and uses 1891.24kWh daily.HOMER assesses the price and establishes the feasibility of HRES throughout the project.Simulations created ideal system configurations and their capabilities, which were selected according to the lowest TNPC and the LCOE.This study chose the optimum system architecture that optimally fits the configuration system.Figure 7 displays the system that is the most effective.Table 3 contains a summary of the optimum components system specification.

Power production

48A power overview of the output and input information for every component of an optimal power system is displayed in Appendix A. The generation overview for every element of the optimized power system is shown in Fig. 8.In this investigation, the WT system produced the greatest quantity of power, accounting for 68.5% of the total power generated.A minimum of 1.89% of the total power is generated using FC.PV power generation accounts for 27.2% of the total power generated.DG generates 2.44% of the total power generated in electricity.

49The yearly power produced from PV during the optimized power system's 24-h day is displayed in Fig. 9.This data indicates that the average power output is 36.8kW and 186 kW at its maximum.The PV system generates an average of 884 kWh of energy each day and 322,526 kWh of energy annually.There are 4385 h of operation in total annually.The yearly energy generated from WT during a 24-h day in the optimized electrical system is displayed in Fig. 10.This figure indicates that the average power generation is 92.7 kW, while the maximum output energy is 182 kW.812,486 kWh of electricity is produced annually by WT.There are 7,622 h of operation in total each year.The yearly electrical output from FC during the optimized power system's 24-h day is displayed in Fig. 11.According to this, the fuel consumption is 1,346 kg, and the specific fuel consumption is 0.06 kg/kWh.The output power is observed to be 50 kW at maximum and 35.9 kW at average.The yearly energy generated from the DG during a day in the optimized power system is displayed in Fig. 12.This figure indicates that there are 548 h of operation annually.The output power is 52.8 kW on average and 108 kW at its highest.The DG has an operational life of 27.4 years and 146 starts yearly, respectively.The yearly SOC (in percent) of the LI Battery bank for the perfect structure throughout 24 h is shown in Fig. 13.This statistic indicates that the batteries are Fig.12. Yearly DG energy production during the full 24 h of an optimal system operation.Fig. 11.Yearly FC energy production during the full 24 h of an optimal system operation.Fig. 10.Yearly WT energy production during the full 24 h of an optimal system operation.Fig. 9. Yearly PV energy production during the full 24 h of an optimal system operation.at 30% and 100% of their initial and least states of charge, respectively.Batteries have an annual energy input of 102,937 kWh and an annual energy output of 88,551 kWh.The annual energy loss is roughly 14,413 kWh.The throughput is 95,487 kWh annually.

50Figure 14 displays the ELZ's annual operation, Fig. 15 illustrates the Converter's annual operation, and Fig. 16 depicts the HT's annual operation.All figures present the operational characteristics of these components over 24 h, showcasing their performance within a perfect system structure.

Renewable power

51Table 4 shows several indicators concerning renewable energy, including capacity-based, energy-based, and peak values.Figure 17 displays Renewable power as a percentage of total generation.Figure 18 illustrates Renewable power as a percentage of the total load.Figure 19 depicts Non-renewable power subtracted from 100% of the total load over a year.

Economic analysis results

52The findings showed that the optimized system proposed in the study possessed the most favorable economic characteristics throughout the entire duration of the project.It was determined to have the ideal combination of system structure, incorporating PV, WT, FC, DG, and batteries.The TNPC of the system was determined to be USD 1,775,300.00,with an LCOE of 0.153 USD/kWh. Figure 20 provides a summary of the expenses related to the optimal system.This Figure presents detailed information on the capital cost, replacement cost, Resource costs, operating costs, and salvage costs for each component of the system.It also displays the overall price of every element and the system's overall TNPC.Additionally, the Figure provides a detailed breakdown of the costs of every component in the perfect system.In summary, the cost breakdown shows that the WT component has the highest initial cost, the Hoppecke 24 OPzS 3000 battery has the highest operating cost, the Converter incurs the maximum replacement cost, the DG has the highest resource cost, the WT component has the highest salvage cost, and the WT component also has the highest total cost.Table 5 shows the costs of design optimization for our suggested islanded AC MG concept in Egypt compared to comparable local and international projects.Indirect comparability exists between the TNPC values for these models because of variations in component sizing and capital investments.Instead, we employ the LCOE as a critical tool to assess energy costs.The Table presents our results, demonstrating how well our model performs compared to previous research, with a competitive LCOE of $0.153/kWh.

Power system stability analysis

53Figure 21 illustrates the configuration of an islanded AC MG system.Components such as WT, PV, DG, FC, BESS, and Loads are connected to a 22 kV AC bus (primary distribution voltage) through electric converters.The wind farm's double-fed induction generator (DFIG) has nine 20-kW turbines.DFIG's wound rotor connects to the grid through two AC-DC-AC converters.Generated electricity is stored in a DC-link capacitor.Converters maintain constant output frequency despite wind speed changes.Control systems manage input power, reactive power, and grid voltage.DFIGs stator and AC bus link via a step-up transformer.PV system delivers power Fig. 14.Yearly ELZ operation during the full 24 h of an optimal system operation.Fig. 13.Yearly SOC (in percentage) of batteries during 24 h of an optimal system operation.at proper voltage using a boost converter, the PV array converts solar radiation to DC, the Inverter converts DC to AC for MG transfer, and the AC voltage is increased via a transformer to match grid voltage.FC unit boosts MG power generation by converting chemical energy to electrical power using oxygen and hydrogen.Low DC voltage is increased using a boost converter.RES is the primary power resource of the MG.Knowing that RES power is relative to the site's resource data.Therefore, a lesser fluctuation in RES power may result in instability of the MG.The DG serves as a backup in the system and consists of the governor, excitation system, and synchronous machine, forming the DG for the diesel engine.Batteries are essential for maintaining network stability and storing additional energy, and the MG powers AC loads using an inverter linked to the DC bus.Parameters of the islanded AC MG are given in Table 6.

Load frequency control

54The objective of LFC is to maintain a power system's power balance by adjusting the system frequency in response to changes in actual power demand.DG is typically used to build IMGs as a steady power source for correcting the fluctuating power from RES and load demand, as the frequency balance is quickly disrupted when MGs are separated.Additionally, the BESS is included in this IMG as an auxiliary regulation.This study focuses on an islanded AC MG with various sources such as WT, PV, DG, and FC.Power electronic components convert DC voltages from sources like PV arrays and FC into AC and connect them to the AC bus.Additionally, a converter is considered for the BESS system to convert AC to DC during charging and DC to AC during discharging.

55The power output of DG, WT, PV, FC, and BESS collectively represents the total power generated to meet the demand.This study focuses on utilizing DG for frequency control, as electricity generated by PV, WT, and FC is not typically used for this purpose.In a frequency control loop, changes in the output powers of loads, WT, PV, and FC are compensated by adjusting the DG's output powers, as displayed in Fig. 22.The frequency error is amplified, combined, and transformed to generate a command signal for the turbine governor.The governor then adjusts the turbine output to restore the balance between input and output.The frequency deviation (Δf) is determined by the difference in active powers between consumption and production (ΔP).Power management and frequency control are accomplished when the controller achieves zero frequency deviation (Δf).

Control strategy

56The paper focuses on evaluating the effectiveness of PI-PSO, PI-WOA, and MRAC-PI controllers in controlling the system's frequency.The article aims to provide insights and a comparative analysis of these control strategies for improved operation and stability in MG.

PI-PSO Controller

57Evaluation of the PI controller's efficiency in keeping up with the system's frequency and improving the stability and functionality of the MG is given special attention.Equation ( 35) is used by the PI controller to determine the control signal (D) for the converter.The error signal's measured frequency (Fm), reference frequency (Fref ), and sampling time (Ts) are all included in the calculation 64 .

58Additionally, Fig. 23 displays the block diagram of the closed-loop control system, which includes the PI-PSO controller.The PI controller's gains (Kp and Ki) are adjusted using PSO.By formulating frequency control as an optimization task, it becomes possible to reduce the "integral of time multiplied by absolute error (ITAE)" performance measure 65 .

59where (t) is the time and e(t) is the difference between Fm and F ref .

60Researchers favor the PSO technique's simplicity and reliance solely on a fitness function.Numerous studies validate its effectiveness in various optimization scenarios, such as integer programming, minimum-maximum problems, and multi-objective optimization.However, the standard PSO can decrease population diversity during communication, which may restrict solutions to local optima rather than achieving global optimization 66 .

61Here are three unique characteristics of PSO 67 :

62• Ppest : The highest fitness value achieved by particle (i) up to this point.

63• gpest: The best fitness value is reached by any particle in the swarm.

64• Velocity and Position Updates: Employed to navigate the search space in pursuit of the optimal solution.The velocity of a particle is updated according to Eq. ( 37), where Eq. ( 38) presents how the particle's new position is calculated by adding its new velocity to its previous position 68 : v id (1 + t) = wv id (t) + r1C1 (P pest,id (t) − X iid (t)) + r2C2 (g pest,id (t) − X id (t)) d = 1,2, . . ..D (37)

65Fig. 20.An overview of the optimal system's costs.where, (P pest,id ) represents the best previous position of particle (i), while (g pest,id ) indicates the best global position for the particle.The variable (w) refers to the inertia weight, (C) is the learning rate, and (r) is a randomly chosen value.This equation consists of three elements: social, cognitive, and inertia.The term (wv id ) reflects the inertia component, which maintains the influence of past movements and directs the particle's progress at iteration (t). (C 1 ) represents the cognitive term, guiding particles to their best previous positions, whereas (C 2 ) signifies the social component, which evaluates the performance of particles and the swarm's trajectory in the optimization space.Figure 24 presents the flowchart of the PSO algorithm 69 .

PI-WOA Controller

66The Whale Optimization Algorithm (WOA) is an effective metaheuristic inspired by humpback whale behavior, excelling in complex optimization challenges.Its strength lies in balancing exploration and exploitation, resulting in faster convergence and better outcomes than traditional algorithms.WOA has proven successful in various applications, particularly in control system optimization 70 .In 71 , WOA-based MPPT control for proton exchange membrane fuel cells (PEMFC) efficiently tracks optimal output power during water content fluctuations, outperforming PSO, fuzzy logic control (FLC), and Perturb and Observe (P&O) methods.Additionally, the fuzzy-fractional Order PID (FFOPID) controller, enhanced by a WOA-centered Active Half Car Driver model, significantly reduces driver vibrations compared to fractional Order PID (FOPID) and PSO-tuned FFOPID controllers 72 .The WOA-optimized Fractional-Order Proportional Integral and Integral-Order Controller (FOPIλ) excels in solar PV-fed sensorless speed control of PMBLDC motors, surpassing the Bat Algorithm (BA) and Grey Wolf Optimization (GWO) by minimizing performance errors and convergence time 73 .Moreover, WOA-based PID controllers deliver quicker responses, less steady-state error, and improved damping compared to GA and Artificial Bee Colony (ABC) methods in modern power systems 74 .Figure 25 illustrates the speed control loop of the proposed PI-WOA controller-based closed-loop control system applied to control the rotor speed of the generator.Figure 26 displays the WOA flow chart.It can be represented by the equations below 75,76 :

67The symbols X(t), Xp (t), and Xr (t), corresponding to the position vectors of the whale, prey, and random whale, respectively.The letter (t) stands for the current iteration.The letters A and C stand for the coefficient vectors.Over the number of rounds, (a) constantly decreases linearly from 2 to 0. The random integer (l) is between − 1 and 1, the random vector (r) is between 0 and 1, the p is the probability number ε [0, 1], and the constant that determines the spiral logarithmic form is represented by (b). Figure 27 points out the convergence of the objective function for the two optimization algorithms.The parameters of optimization algorithms and the optimal gains of the PI controllers using the PSO and WOA are shown in Table 7.

MRAC-PI Controller

68To enhance the accuracy of the PI-WOA controller, we integrated it with Model Reference Adaptive Control (MRAC) to improve efficiency and facilitate adaptation.The use of MRAC in IMG provides substantial advantages, particularly in handling the variability of RES.MRAC enhances frequency stability and voltage regulation by making real-time adjustments to generation and load fluctuations, improving dynamic performance through continuous modification of control parameters based on system behavior.This leads to a more reliable and resilient energy supply, facilitates the integration of various RES, and increases the overall efficiency of IMG.Notable applications include a fractional order MRAC control law for stabilizing current and voltage in multi- source systems with DC-DC converters 77 , a modified MIT rule-based MRAC for DC-DC boost converters 78 , a strategy for managing the unified interphase power controller (UIPC) in hybrid MGs 79 , and the enhancement of traditional droop control in ship power systems 80 , as well as regulating the output voltage of DC-DC converters in isolated MGs 81 .As shown in Fig. 28, the MRAC-PI controller comprises three primary parts: the PI-WOA controller explained later, the adjustment mechanism, and the reference model.A transfer function with discrete time Gr is represented the closed-loop system's intended behavior, which in this study is a zero overshoot and a 0.05 s settling period.and is modulable as:

69The Massachusetts Institute of Technology (MIT) regulation states that the cost function is described as 82 :

70where F ref is the reference model's output, θ is the adaptation parameter, and Fm is the system's overall output.

71Based on the type of disruption, the model reference output frequency is selected as a decaying exponential increase from the lowest frequency that is meant to be tracked to the intended value of 50 Hz.The MIT rule calls for minimizing the cost function when modifying the parameter θ.To achieve this, either move J's negative gradient in the direction of the parameter θ, or

72Considering the variations between the reference model and the system's output, the adaptation mechanism modifies the control action as

73The equation for control is :

MATLAB simulation results and discussions

74The system, Fig. 21, will be tested through several situations to assess the efficacy and performance of the suggested control and to confirm that the proposed controller can stabilize AC bus voltage, achieving active power balance among the MG components, ensuring reliable AC voltage quality, and restoring the frequency of MG to the appropriate value after various disturbances, including load changes, changes in solar irradiance, and fluctuations in wind speed.The eight different disturbances are significant because they allow a thorough evaluation of the effectiveness and performance of the suggested control system for active power balancing among MG components and AC bus voltage stabilization.Every scenario illustrates typical challenges when integrating various energy sources into an MG.Through the analysis of these various disturbances, the suggested control solutions show how effective they are at preserving consistent AC voltage quality and ensuring the MG can quickly adjust to operational issues in the real world, improving overall system stability and resilience.Figure 29(c) shows the output power from sources at MG, when the solar irradiance decreases from 1000 to 550 W/m 2 at 2 s, the power produced by the PV declines from 196 kW to approximately 97 kW.To compensate for this power deficiency, the generated power from the DG resulted in a decrease in the rotor speed.It is possible to return the rotor speed to its synchronous value once it has decreased by increasing the mechanical power input to the DG.Subsequently, following frequency adjustment, the DG power rises from 63 kW to approximately 157 kW.In this instance, the FC continues to provide its maximum output while the WT runs at its ideal speed to generate the most power feasible.Conversely, when the solar irradiance rises from 550 to 800 W/m 2 at 5 s, the power generated from the PV increases from 97 kW to approximately 157 kW, leading to a decrease in the generated power from the DG from 157 kW to approximately 98 kW.The MRAC-PI controller effectively maintains MG frequency stability despite these solar radiation fluctuations.Finally, Fig. 29(d) provides additional information showing the system's voltage levels.

CASE 2-Sudden changes in wind speed

75Figure 30(a) illustrates the step change in wind speed.Fluctuations in wind speed are crucial for assessing the performance of controllers in AC MGs, especially those that utilize RES like WT.These variations can significantly impact power generation and cause frequency imbalances.By modeling these changes, we can evaluate the controller's capacity to adapt and keep the frequency within acceptable boundaries, thereby ensuring system stability.This assessment also facilitates the measurement of important performance indicators, such as Ts, ITAE, %Mp, and %Mus, which are vital for gauging the controller's responsiveness and robustness.The MRAC-PI controller is particularly important for effective frequency regulation under these conditions.Compared to PI-PSO and PI-WOA controllers, the MRAC-PI controller shows enhanced accuracy in reacting to abrupt changes in wind speed, especially during periods of high efficiency and rapid weather changes.Table 8 and Fig. 30(b) depict the frequency response of the MG after a step change.Figure 30(c) also presents the output power from sources at MG.In this case, the wind speed drops at the 2-s point from 13 m/s to 11 m/s and then increases at the 5-s mark from 11 m/s to 12 m/s.At the 2-s point, the maximum power point tracking (MPPT) controller and boost converter match the WT's rotor speed with the maximum power point (MPP) to maintain optimal power generation.This enhances DG's power generation and compensates for the WT's decreased power.The power of the DG rises from 63 kW to around 122 kW, whereas the power of the WT initially falls from 178 kW to roughly 114 kW, while the FC and PV keep on producing power at their highest levels.On the other hand, the WT's power increases from 114 kW to roughly 147 kW at the 5-s point, while the DG's power decreases from 122 kW to roughly 91 kW, while the FC and PV continue to produce power at their maximum rates.The MRAC-PI controller successfully maintains the stability of MG frequency despite these variations in wind speed.Lastly, Fig. 30(d) offers further insights by displaying the voltage levels within the system.

CASE 3-Suddenly change in load

76To assess how well the suggested control system performs in stabilizing AC bus voltage and attaining active power balance amongst MG components, it is imperative to consider the relevance of the sudden shift in load disturbance cases.At the 2-second point in this scenario, the MG's overall power usage drops by 11.1%, from 450 to 400 kW, as shown in Fig. 31(a).However, the overall load demand rises to 425 kW from 400 kW at the 5-s point, a 6.25% increase.At the 2-s point, the DG power drops from 63 kW to roughly 9 kW, while the FC, PV, and WT all keep producing power at their highest levels.Nevertheless, the total load demand for MG increases by 6.25% at the 5-s point, going from 400 to 425 kW.As a result, during load fluctuations, the DG's power output rises from 9 kW to around 34 kW; this means that the FC, PV, and WT are still producing power at their highest levels.Figure 31(b) and Table 8 provide a comparative analysis of the MRAC-PI, PI-PSO, and PI-WOA controllers in managing sudden load fluctuations, highlighting the superior performance of the MRAC-PI controller in maintaining optimal frequency control under these conditions.Additionally, Fig. 31(c) highlights the controller's responsibility to keep the AC voltage within reasonable bounds, protecting the system's power supply quality.This process increases the MG's dependability during load shifts and emphasizes how vital efficient control systems are in overcoming the difficulties associated with integrating different energy sources.

CASE 4 -Ramp changes in solar radiation

77Figure 32(a) displays the ramp profile of solar radiation intensity over a designated timeframe.In such circumstances, the MRAC-PI controller is essential for achieving optimal frequency regulation.Compared to conventional PI-PSO and PI-WOA controllers, the MRAC-PI controller shows a markedly superior response and accuracy in adapting to changes in solar radiation intensity.Figure 32(b) shows the power output from sources at MG.As solar radiation diminishes, the power generated by the DEG increases correspondingly.

78Conversely, when solar irradiance rises, the output from the DG also escalates to meet the evolving energy demands.To assess system performance, a comparison is conducted among the MRAC-PI, PI-PSO, and PI-WOA controllers, focusing on critical performance indicators such as Ts, ITAE, %Mp, and %Mus.Table 8 and Fig. 32(c) provide a detailed analysis of the MG frequency response during ramp changes in solar radiation intensity.The MRAC-PI controller effectively stabilizes the MG frequency despite variations in solar intensity, demonstrating its ability to maintain consistent performance under differing conditions.Additionally, Fig. 32(d) offers further insights by illustrating the system's voltage levels, contributing to a comprehensive understanding of the microgrid's performance.

CASE 5 -Ramp changes in wind speed

79Figure 33(a) illustrates the ramp profile of wind speed over a specified period.In this scenario, the MRAC-PI controller ensures optimal frequency control.In contrast to PI-PSO and PI-WOA controllers, the MRAC-PI controller exhibits significantly enhanced responsiveness and precision in adjusting to fluctuations in wind speed.Figure 33(b) presents the power output from sources at MG.As wind speed decreases, the power produced by the DG correspondingly increases.Conversely, when wind speed increases, the output from the DG also rises to accommodate the changing energy requirements.A comparison is made among the MRAC-PI, PI-PSO, and PI-WOA controllers to evaluate system performance, emphasizing key performance metrics such as Ts, ITAE, %Mp, and %Mus.Table 8 and Fig. 33(c) offer a comprehensive analysis of the MG frequency response during ramp changes in wind speed.The MRAC-PI controller effectively stabilizes the MG frequency, even with fluctuations in wind speed, showcasing its capability to deliver consistent performance under varying conditions.Furthermore, Fig. 33(d) provides additional insights by depicting the voltage levels within the system, enhancing the overall understanding of the microgrid's functionality.

CASE 8 -Different disturbances in the system

80In this scenario, cases (3) sudden changes in load, (6) random changes in solar radiation, and (7) random changes in wind speed are interconnected and occur simultaneously.This approach ensures that the study addresses critical dynamic interactions between components, particularly the coupling of load fluctuations and renewable energy generation, thereby enhancing the technical accuracy of the work.Figure 36(a) visually depicts the power output from sources at MG. Table 8 and

Conclusion

81This paper provides optimal design and techno-economic analysis of an islanded AC microgrid to cover the load of an international school in the New Administrative Capital, New Cairo, Egypt.The site was chosen because it serves as an example of new urban projects that emphasize sustainable energy sources, making it pertinent for settings of a similar nature worldwide.The islanded AC MG components were initially optimized for size and economic viability using HOMER.The simulation studies focused on the proposed area and utilized accurate load profile data and weather information.Various costs, like operating and maintenance (O&M), replacement, and capital, were considered, along with the operating life and efficiency of each HRES element.Other input parameters included the interest rate, evaluation of meteorological data, and project lifespan.To ensure the HRESs met the electricity demand of the residential area, optimization constraints such as operational savings, permitted capacity shortfall, load demand, and availability of resources were considered.Also, the system's dynamic performance was investigated under different scenarios.

82According to the HOMER simulation results, an islanded AC MG design with PV/WT/DG/FC/BESS/ELZ/ HT is the most feasible option for the specified area.A 200 kW PV system, a 180-kW WT, a 141-kW converter, a 50.0 kW FC, a 50.0 kW ELZ, a 50.0 kg HT, a 180 kW DG, and a 686-kWh lead-acid battery are the optimal capacity of the MG sources.The outcomes show how each energy source contributes to the power demand, resulting in a TNPC of $1,775,300.00 and an LCOE of $0.153/kWh.By comparing our research with other studies, it becomes evident that it outperforms other studies regarding the LCOE.

83The optimal setup of the MG obtained by HOMER was modeled in MATLAB/SIMULINK to study its dynamic performance under different scenarios.A model reference adaptive control-Proportional-Integral (MRAC-PI) controller is introduced to improve the dynamic performance and effectively regulate the system's frequency and voltage.The performance of the MRAC-PI controller is assessed by contrasting it with the PI-PSO and PI-WOA controllers.Different disturbances, such as variations in wind speed, load demand, and solar irradiance, were introduced to evaluate the proposed control strategy for the MG alongside the MRAC-PI controller.The assessment relies on several performance indicators, including ITAE, Ts, %Mp, and %Mus of the system frequency.The findings indicate that the MRAC-PI controller significantly outperforms the PI-PSO controller across various scenarios.In Case 1, as solar radiation shifts from 1000 (W/m 2 ) to 550 (W/m 2 ), the MRAC-PI controller exhibits exceptional responsiveness, achieving an 86.11% reduction in overshoot, a 40.45% cut in undershoot, a 41.85% decrease in settling time, and a 44.02% reduction in ITAE.When solar radiation increases from 550 (W/m 2 ) to 800 (W/m 2 ), MRAC-PI continues to excel, reducing overshoot by 47.38%, undershoot by 88.71%, settling time by 28.34%, and ITAE by 45.81%.In Case 2, when wind speed changes from 13 to 11 m/s, MRAC-PI again showcases its remarkable agility, cutting overshoot by 100%, undershoot by 51.73%, settling time by 34.37%, and ITAE by 42.61%.As wind speed rises from 11 to 12 m/s, MRAC-PI maintains its strong performance, reducing overshoot by 63.55%, undershoot by 96%, settling time by 46.72%, and ITAE by 45.55%.In Case 3, with an 11.1% drop in total demand, MRAC-PI shows its responsiveness, achieving a 42.57% reduction in overshoot, a 58.33% decrease in undershoot, a 28.66% cut in settling time, and a 39.78% reduction in ITAE.When the load increases by 6.25%, MRAC-PI continues to perform well, reducing overshoot by 100%, undershoot by 43.08%, settling time by 36.86%, and ITAE by 39.78%.During ramp changes in solar radiation in Case 4, the MRAC-PI controller effectively meets the challenge, achieving a 68.42% reduction in overshoot, a 62.11% reduction in undershoot, a 14.83% decrease in settling time, and a 44.49% reduction in ITAE.In Case 5, when faced with ramp changes in wind speed, the MRAC-PI controller demonstrates its durability, reducing overshoot by 74.17%, undershoot by 63.54%, settling time by 18.52%, and ITAE by 45.33%.The effectiveness of MRAC-PI continues in Case 6, where random fluctuations in solar radiation result in a 70.38% reduction in overshoot, a 54.55% reduction in undershoot, a complete reduction in settling time (100%), and a 45.71% decrease in ITAE.In Case 7, with random variations in wind speed, the MRAC-PI controller delivers outstanding results, reducing overshoot by 43.23%, undershoot by 50.23%, settling time by 13.11%, and ITAE by 45%.Finally, in Case 8, where the system experiences various disturbances, the MRAC-PI controller once again showcases its effectiveness, achieving reductions in overshoot by 54.71%, undershoot by 58.01%, settling time by 100%, and ITAE by 41.83%.In summary, these results underscore the exceptional capabilities of the MRAC-PI controller in reducing Ts, ITAE, %Mp, and %Mus across various situations, showcasing its effectiveness in improving dynamic performance within control systems.Additionally, the findings reveal that the MRAC-PI controller swiftly reinstates the necessary frequency and upholds stability, even amid multiple disturbances.In contrast, the PI-PSO and PI-WOA controllers demonstrate insufficient performance in all tested scenarios.

84Future work could enhance this research by integrating reliability metrics such as Loss of Power Supply Probability (LPSP) and Energy Not Supplied (ENS) into our analysis.These quantitative measures will enable a more comprehensive evaluation of the system's robustness and reliability, thereby enhancing the overall assessment of the proposed energy configuration.We could also explore thermal management strategies for critical components, including fuel cells and batteries, to enhance overall system efficiency.This work can also be extended by designing optimal MGs in other regions with various characteristics.

12 HOMER-

85based on location and implement a robust EMS to obtain MG stability -Limited scope-Neglect of load variability-Neglect integration and reliability Issues-Simplistic models HOMER -Presentation of an optimal off-grid HRES design and technoeconomic analysis for rural loads -Limited scope-Neglect integration and reliability Issues-Lack of comprehensive analysis-Simplistic models 9 HOMER -Designing an SPV plant for rural areas, providing the government with insights for similar projects -Limited Scope-Neglect integration and reliability Issues-Lack of comprehensive analysis-Simplistic models 10 HOMER & MATLAB -Proposing a PSO-based DSM strategy to optimize an off-grid HRES for a residential building -Limited scope-Simplistic models-Neglect integration and reliability Issues 11 HOMER -assessing the techno-economic feasibility of an off-grid WT-FC-BESS hybrid system -High cost of energy-Neglect integration and reliability Issues Limited scope-Lack of comprehensive analysis Presentation of a comprehensive framework for an HRES integrating PV, WT, and biogas -Over 24 h, the suggested technique is thoroughly tested and programmed in an IMG -High cost of energy-Limited case studies-Narrower focus-Lack of comprehensive analysis-Generalized findings-Neglect integration and reliability Issues-Poor results visualization-Lack of attention to user needs 13 HOMER -Examining challenges in HRES design and assessing the techno-economic feasibility for rural areas -Lack of comprehensive analysis-Narrower focus-Neglect integration and reliability Issues 14 HOMER -Examining a Wave/PV/WT /BESS hybrid system for 3,000 households in three parts of Iran -Lack of comprehensive analysis-Neglect integration and reliability Issues 15 HOMER Pro -Assessing an off-grid HRES for a reverse osmosis desalination plant -Lack of comprehensive analysis-Narrower focus-Neglect integration and reliability Issues 16 HOMER & MATLAB -Presentation of an ideal design for an HRES to meet the home electricity demand of a residential area in Pakistan -The MATLAB validation model's component sizes differ from the HOMER's optimal configuration, raising concerns about the validation process's accuracy and reliability-Narrower focus 17 HOMER Pro -Using DSM to plan elastic loads and optimized MG design with an EV-inclusive load profile -Limited scope-Lack of comprehensive analysis-Neglect integration and reliability Issues-Poor results visualization 18 HOMER Pro -Applying a probabilistic approach for sizing and assessing PV-based MGs, evaluating the environmental impacts of the configurations -Neglect integration and reliability Issues-Narrower focus-Lack of comprehensive analysis-Poor results visualization 19 HOMER -Assessing the techno-economic viability of PV/WT/DG/ BESS hybrid systems for an IMG -Lack of comprehensive analysis-Neglect integration and reliability Issues-Narrower focus 20 HOMER -Detailing the techno-economic feasibility and design of six HGIRES for rural electrification -Lack of comprehensive analysis-Neglect integration and reliability Issues-Narrower focus 21 HOMER -Creating a conceptual framework, conducting a technoeconomic analysis, and designing MG's distribution network -High cost of energy-Narrower focus-Lack of comprehensive analysis-Poor results visualization-Neglect integration and reliability Issues 22 HOMER -Analyzing the techno-economic feasibility of an HRES for rural electrification in Fouay village, Benin -Lack of comprehensive analysis Neglect integration and reliability Issues-Narrower focus 23 HOMER -Optimizing and analyzing sensitivity for four PV, DG, and BESS systems, with and without tracking -Neglect integration and reliability Issues-Narrower focus-Lack of comprehensive analysis 24 HOMER -Examining a hybrid power system that uses RES to supply a household's electrical and heating needs -High cost of energy-Neglect integration and reliability Issues-Narrower focus-Lack of comprehensive analysis 25 TOPSIS with AHP -Using TOPSIS with AHP to size an IMG for rural areas based on techno-economic parameters -High cost of energy-Neglect integration and reliability Issues-Narrower focus-Lack of comprehensive analysis 26 HOMER & MCDM -Assessing hybrid energy systems for affordable, reliable power in four impoverished Asian nations -Poor results visualization-Lack of comprehensive analysis-Neglect integration and reliability Issues 27 HOMER Pro -Examining three hybrid systems' economic, technical, and emission performance -Neglect integration and reliability Issues-Lack of comprehensive analysis 28 HOMER & MATLAB -Proposing a systematic optimization framework for an autonomous HRES in Dschang, Cameroon -Neglect of Load Variability-Neglect integration and reliability Issues-The MATLAB validation model's component sizes differ from HOMER's optimal setup 29 HOMER & MATLAB -Using deterministic and stochastic optimization to determine the most cost-effective energy modules for meeting the load demand in Pulau Perhentian -High Cost of Energy-Neglect integration and reliability Issues-The MATLAB validation model's component sizes differ from the HOMER's optimal configuration 30 HOMER -Modeling and optimizing a hybrid MG at the University in Nigeria for electricity generation -Poor results visualization-Neglect integration and reliability Issues-Lack of comprehensive analysis 31 HOMER Pro & ETAP -Looking at different dispatch algorithms for an IMG, including DG, WT, BESS, and PV -Lack of attention to user needs-Neglect integration and reliability Issues HOMER -Creating the best possible HRES utilizing PV, WT, thermal loads, BESS, TLC, boiler, and DG -Lack of comprehensive analysis-Neglect integration and reliability Issues 33 HOMER Pro -Feasibility of an HRES on a remote Indonesian island with existing DG and current diesel prices -Lack of comprehensive analysis-Neglect integration and reliability Issues-Narrower focus 34 HOMER -Evaluating an off-grid HRES's techno-economic viability for rural villages -Lack of comprehensive analysis-Neglect integration and reliability Issues 35 HOMER -investigate the feasibility and cost-effectiveness of using FC with PV to power a load -High cost of energy-Lack of comprehensive analysis-Neglect integration and reliability Issues HOMER -Address hydrogen energy storage to solve power fluctuations using HOMER simulations -Neglect integration and reliability Issues-Lack of comprehensive analysis HOMER -Exploring hydrogen energy storage to manage power variability at an EV charging station in Delhi -Lack of comprehensive analysis-Neglect integration and reliability Issues Continued • Narrower focus: ignore the possible advantages of hybrid configurations with cutting-edge parts like PV-WT-DG-BESS -FC-ELZ-HT, which can restrict the usefulness and efficacy of the proposed solutions.• Generalized Findings: Other researchers' results are generic and not adapted to use cases or geographical areas.• Neglect of Load Variability: did not take generation and load variations into sufficient account.• Neglect integration and reliability Issues: The operational and technological difficulties of integrating diverse energy sources are not included, and the reliability and quality of the power supply are not discussed in detail.• Simplistic Models: employ too basic models that fail to represent the intricacy of actual energy systems adequately.• Poor Results Visualization: The findings are presented less understandably, devoid of illustrative charts or explicit representations.• Lack of Attention to User Needs: Its conclusions do not match the requirements or inclinations of end users.• high cost of energy: This high price may put off potential customers or investors, particularly in areas with limited resources, diminishing the solution's overall viability and appeal.

Fig. 1 .

86Fig. 1.The suggested system for managing, controlling, and optimizing islanded AC MG.

Fig. 4 .

87Fig. 4. Average monthly wind speed of the suggested location.

Fig. 3 .

88Fig. 3. Monthly average solar radiation of the suggested location.

Fig. 2 .

89Fig. 2. Location of the case study site.This map was generated using HOMER Pro × 64 3.14.5 software ( h t t p s : / / h o m e r e n e r g y .c o m / ) .

Fig. 5 .

90Fig. 5.The selected site's monthly average load.

|Fig. 8 .

91Fig. 8. Overview of production for every component in the perfect power system.

Fig. 7 .

92Fig. 7.The optimized system architecture.

Fig. 16 .

93Fig.16.Yearly Hydrogen Tank SH Level operation during the full 24 h of an optimal system operation.

Fig. 15 .

94Fig. 15.Yearly Converter operation during the full 24 h of an optimal system operation.

Fig. 19 .

95Fig. 19.Non-renewable power is subtracted from 100% of the total annual load.

Fig. 18 .

96Fig. 18.Renewable power as a percentage of total load.

Fig. 17 .

97Fig. 17.Renewable power as a percentage of total generation.

Fig. 21 .

98Fig. 21.The proposed system structure.

Fig. 24 .

99Fig. 24.PSO flowchart.

Fig. 23 .

100Fig. 23.Structure of a PI-PSO controller-based closed-loop control system.

Fig. 26 .

101Fig. 26.WOA flow chart.

Fig. 25 .

102Fig. 25.Structure of a PI-WOA controller-based closed-loop control system.

Fig. 27 .

103Fig. 27.Convergence of the objective function.

Figure 29 (Fig. 28 .

104Figure29(a) depicts the step variations in solar radiation intensity.It is important to understand that changes in solar radiation can significantly influence the microgrid's frequency.The MRAC-PI controller is essential for maintaining effective frequency regulation under these conditions.In comparison to PI-PSO and P-WOA controllers, the MRAC-PI controller exhibits superior accuracy in responding to sudden changes in solar

Fig. 29 .

105Fig. 29.System response under case 1.

Fig. 30 .

106Fig. 30.System response under case 2.

Figure 34 (CASE 7 -

107Figure 34(a) shows how solar radiation intensity changes over time.The MRAC-PI controller is crucial for optimal frequency regulation during these changes.It outperforms conventional PI-PSO and PI-WOA controllers in adapting to solar radiation variations.Figure 34(b) shows power output from sources at MG.As solar radiation decreases, DG power increases, and vice versa.Table8and Fig.34(c) compare the performance of MRAC-PI, PI-PSO, and PI-WOA controllers using metrics like Ts, ITAE, %Mp, and %Mus.MRAC-PI stabilizes MG frequency during solar radiation changes, demonstrating consistent performance.Figure34(d)shows system voltage levels, providing a complete picture of MG performance.CASE 7-Random changes in wind speedFigure35(a) displays the random profile of wind speed over time, highlighting the MRAC-PI controller's essential role in maintaining frequency control.Unlike PI-PSO and PI-WOA controllers, the MRAC-PI controller shows improved responsiveness and accuracy in adapting to wind speed changes.Figure35(b)illustrates the power output from sources at MG, as wind speed drops, DG output increases, and vice versa.To assess system performance, comparisons are made among the MRAC-PI, PI-PSO, and PI-WOA controllers based on key metrics like Ts, ITAE, %Mp, and %Mus.Table8and Fig.35(c) analyze the MG frequency response to wind speed variations.The MRAC-PI controller stabilizes frequency effectively despite wind fluctuations, demonstrating consistent performance.Additionally, Fig.35(d) shows the system's voltage levels, providing further insights into MG functionality.

108Fig.36(b) comprehensively overview the MG frequency response.When comparing the performance of the MRAC-PI controller to PI-PSO and PI-WOA controllers, the MRAC-PI demonstrates a superior level of precision in addressing the conditions outlined in case 8. Finally, Fig.36(c) offers additional insights by illustrating the voltage levels present in the system.

Fig. 31 .

109Fig. 31.System response under case 3.

Fig. 32 .

110Fig. 32.System response under case 4.

Fig. 33 .

111Fig. 33.System response under case 5.

Fig. 34 .Fig. 35 .

112Fig. 34.System response under case 6.

Fig. 36 .

113Fig. 36.System response under case 8.

Table 2 .

114Comprehensive analysis of literature study.uses the component sizes determined by HOMER to model the operational and technological challenges of integrating multiple energy sources.• Advanced modeling techniques: The study employs sophisticated modeling techniques that capture the complexity of real-world systems, utilizing both HOMER for economic analysis and MATLAB/Simulink for technical analysis.• Real-World Case Study: The study analyzes the specific electrical requirements of an international school in

11552 HOMER -The techno-economic studies combining DG, WT, and SPVS for Hurghada City, Egypt -Poor results visualization-Lack of comprehensive analysis-Neglect integration and reliability Issues 53 HOMER -The ideal hybrid MG size for rural electrification in Abu-Monqar, Egypt, is presented in this study -Poor results visualization-Lack of comprehensive analysis-Neglect integration and reliability Issues 54 HOMER -Designing and assessing the feasibility of eight HRES using HOMER software -Poor results visualization-Lack of comprehensive analysis-Neglect integration and reliability Issues

Table 3 .

116Optimized components detail.

Table 4 .

117Renewable summary.

Table 5 .

118Comparative analysis between proposed optimal islanded AC MG model with literature studies.

119| https://doi.org/10.1038/s41598-025-94506-zwww.nature.com/scientificreports/Fig.22.The block diagram of the microgrid control system is based on the proposed controller.

Table 6 .

120Parameters of MATLAB simulation components.

Table 7 .

121The parameters of WOA and PSO.

Table 8 .

122The system response summary for each of the several suggested controllers in each scenario.

참고문헌 75건

  1. Whale optimisation algorithm for automatic generation control of interconnected modern power systems including renewable energy sources IET Generation Transmission & Distribution · Institution of Engineering and Technology · 2017 10.1049/iet-gtd.2017.1005
  2. Whale optimization algorithm applied to load frequency control of a mixed power system considering nonlinearities and PLL dynamics Energy Systems · Springer Science+Business Media · 2019 10.1007/s12667-019-00326-2
  3. Design of Microgrid with Flywheel Energy Storage System Using HOMER Software for Case Study 2019 10.1109/itce.2019.8646441
  4. Economic Feasibility Analysis of PV/Wind/Diesel/Battery Isolated Microgrid for Rural Electrification in South Egypt 2019 10.1109/eiconrus.2019.8656764
  5. Hybrid off-grid renewable power system for sustainable rural electrification in Benin Renewable Energy · Elsevier BV · 2019 10.1016/j.renene.2019.06.032
  6. Techno-economical optimization of an integrated stand-alone hybrid solar PV tracking and diesel generator power system in Khorfakkan, United Arab Emirates Energy · Elsevier BV · 2019 10.1016/j.energy.2019.116475
  7. Residential Community Load Management Based on Optimal Design of Standalone HRES With Model Predictive Control IEEE Access · Institute of Electrical and Electronics Engineers · 2020 10.1109/access.2020.2965250
  8. Feasibility study of a zero emission PV/Wind turbine/Wave energy converter hybrid system for stand-alone power supply: A case study Journal of Cleaner Production · Elsevier BV · 2020 10.1016/j.jclepro.2020.121250
  9. Design of A Model Reference Adaptive Controller (MRAC) for DC-DC Boost Converter for Variations in Solar Outputs using modified MIT Rule in an Islanded Microgrid 2020 IEEE International Conference on Power Electronics, Smart Grid and Renewable Energy (PESGRE2020) · 2020 10.1109/pesgre45664.2020.9070679
  10. Multi-objective optimization of grid-connected PV-wind hybrid system considering reliability, cost, and environmental aspects Sustainable Cities and Society · Elsevier BV · 2020 10.1016/j.scs.2020.102178
  11. Technoeconomic Analysis on a Hybrid Power System for the UK Household Using Renewable Energy: A Case Study Energies · Multidisciplinary Digital Publishing Institute · 2020 10.3390/en13123231
  12. Conceptual model framework for demand response ancillary services deployed by inter-connected microgrids in West Africa – A Nigerian case study Renewable energy focus · Elsevier BV · 2020 10.1016/j.ref.2020.06.002
  13. A Modified Model Reference Adaptive Controller (M-MRAC) Using an Updated MIT-Rule for the Altitude of a UAV Electronics · Multidisciplinary Digital Publishing Institute · 2020 10.3390/electronics9071104
  14. Optimal design and techno-economic analysis of a solar-wind-biomass off-grid hybrid power system for remote rural electrification: A case study of west China Energy · Elsevier BV · 2020 10.1016/j.energy.2020.118387
  15. Integrated supply–demand energy management for optimal design of off-grid hybrid renewable energy systems for residential electrification in arid climates Energy Conversion and Management · Elsevier BV · 2020 10.1016/j.enconman.2020.113192
  16. Coordinated power management and optimized techno-enviro-economic design of an autonomous hybrid renewable microgrid: A case study in Egypt Energy Conversion and Management · Elsevier BV · 2020 10.1016/j.enconman.2020.113185
  17. Simulation and optimization of hybrid green energy systems for desalination purposes Environmental Progress & Sustainable Energy · Wiley · 2020 10.1002/ep.13515
  18. Optimal economic study of hybrid PV-wind-fuel cell system integrated to unreliable electric utility using hybrid search optimization technique International Journal of Hydrogen Energy · Elsevier BV · 2020 10.1016/j.ijhydene.2020.07.258
  19. Optimal sizing and techno-enviro-economic feasibility assessment of large-scale reverse osmosis desalination powered with hybrid renewable energy sources Energy Conversion and Management · Elsevier BV · 2020 10.1016/j.enconman.2020.113377
  20. Energy management system for two islanded interconnected micro-grids using advanced evolutionary algorithms Electric Power Systems Research · Elsevier BV · 2020 10.1016/j.epsr.2020.106958
  21. Technical and economic potential evaluation of an off-grid hybrid wind-fuel cell-battery energy system in Xining, China International Journal of Green Energy · Taylor & Francis · 2020 10.1080/15435075.2020.1854267
  22. Developing different hybrid renewable sources of residential loads as a reliable method to realize energy sustainability Alexandria Engineering Journal · Elsevier BV · 2021 10.1016/j.aej.2020.12.024
  23. Techno‐Economic Analysis of Hybrid Renewable Energy System with Energy Storage for Rural Electrification 2021 10.1002/9781119555667.ch3
  24. An insight into the estimation of drilling fluid density at HPHT condition using PSO-, ICA-, and GA-LSSVM strategies Scientific Reports · Nature Portfolio · 2021 10.1038/s41598-021-86264-5
  25. Design and Modelling of PV Power Plant for Rural Electrification in Kayonza, Rwanda Journal of Energy Research and Reviews · Sciencedomain International · 2021 10.9734/jenrr/2021/v7i430197
  26. Whale-optimized fuzzy-fractional order controller-based automobile suspension model Engineering Optimization · Taylor & Francis · 2021 10.1080/0305215x.2021.1913735
  27. Comparative study and sensitivity analysis of a standalone hybrid energy system for electrification of rural healthcare facility in Nigeria Alexandria Engineering Journal · Elsevier BV · 2021 10.1016/j.aej.2021.04.042
  28. Optimal Economic and Environmental Indices for Hybrid PV/Wind-Based Battery Storage System Journal of Electrical Engineering and Technology · Springer Science+Business Media · 2021 10.1007/s42835-021-00810-9
  29. Optimal design and techno‐economic analysis of a hybrid grid‐independent renewable energy system for a rural community International Transactions on Electrical Energy Systems · Wiley · 2021 10.1002/2050-7038.13007
  30. Design and feasibility analysis of hydrogen based hybrid energy system: A case study International Journal of Hydrogen Energy · Elsevier BV · 2021 10.1016/j.ijhydene.2021.08.036
  31. Model Reference Adaptive Control of UIPC in Islanded Hybrid Microgrids with Flexible Loads and Storages 2022 IEEE International Conference on Environment and Electrical Engineering and 2022 IEEE Industrial and Commercial Power Systems Europe (EEEIC / I&amp;CPS Europe) · 2021 10.1109/eeeic/icpseurope51590.2021.9584765
  32. An emotional discrete controller PSO tuned and designed for a real industrial pumping system Scientific Reports · Nature Portfolio · 2022 10.1038/s41598-022-08192-2
  33. Economic and Environmental Investigation of Renewable Energy Sources for Micro-grids coastal areas Journal of Engineering Research - Egypt/Journal of Engineering Research · 2022 10.21608/erjeng.2022.127502.1057
  34. Optimal design, prefeasibility techno-economic and sensitivity analysis of off-grid hybrid renewable energy system International Journal of Sustainable Energy · Taylor & Francis · 2022 10.1080/14786451.2022.2058502
  35. <scp>Techno‐economic</scp> feasibility of hydrogen based electric vehicle charging station: A case study International Journal of Energy Research · Wiley · 2022 10.1002/er.8132
  36. Sizing of an Island Standalone Hybrid System Considering Economic and Environmental Parameters: A Case Study Energies · Multidisciplinary Digital Publishing Institute · 2022 10.3390/en15165940
  37. Techno-Economic Analysis of Hybrid Diesel Generators and Renewable Energy for a Remote Island in the Indian Ocean Using HOMER Pro Sustainability · Multidisciplinary Digital Publishing Institute · 2022 10.3390/su14169846
  38. Numerical Simulation and Experimental Verification of Fractional-Order PI<sup>λ</sup> Controller for Solar PV Fed Sensorless Brushless DC Motor using Whale Optimization Algorithm Electric Power Components and Systems · Taylor & Francis · 2022 10.1080/15325008.2022.2135644
  39. Optimal Design of a Hybrid Off-Grid Renewable Energy System Using Techno-Economic and Sensitivity Analysis for a Rural Remote Location Sustainability · Multidisciplinary Digital Publishing Institute · 2022 10.3390/su142215393
  40. Probabilistic Techno-Economic Design of Isolated Microgrid IEEE Transactions on Power Systems · Institute of Electrical and Electronics Engineers · 2022 10.1109/tpwrs.2022.3216386
  41. Analysis of the economic and technological viability of producing green hydrogen with renewable energy sources in a variety of climates to reduce CO2 emissions: A case study in Egypt Applied Energy · Elsevier BV · 2023 10.1016/j.apenergy.2023.120958
  42. Modeling and optimization of hybrid microgrid energy system: a case study of University of Abuja, Nigeria International Journal of Power Electronics and Drive Systems/International Journal of Electrical and Computer Engineering · Institute of Advanced Engineering and Science (IAES) · 2023 10.11591/ijpeds.v14.i2.pp1201-1209
  43. Whale optimization algorithm based MPPT control of a fuel cell system International Journal of Hydrogen Energy · Elsevier BV · 2023 10.1016/j.ijhydene.2023.03.180
  44. Adaptive nonlinear controllers based approach to improve the frequency control of multi islanded interconnected microgrids Energy Reports · Elsevier BV · 2023 10.1016/j.egyr.2023.04.007
  45. Energy Management and Optimization of a Standalone Renewable Energy System in Rural Areas of the Najran Province Sustainability · Multidisciplinary Digital Publishing Institute · 2023 10.3390/su15108020
  46. Evaluation of green hydrogen production using solar, wind, and hybrid technologies under various technical and financial scenarios for multi-sites in Egypt International Journal of Hydrogen Energy · Elsevier BV · 2023 10.1016/j.ijhydene.2023.06.218
  47. Optimal Design and Sizing of Hybrid Photovoltaic/Fuel Cell Electrical Power System Sustainability · Multidisciplinary Digital Publishing Institute · 2023 10.3390/su151512026
  48. Technoeconomic Assessment of Electric Vehicles for Optimal Microgrid Energy System Planning International Journal of Academic Research in Economics and Management Sciences · 2023 10.6007/ijarems/v12-i2/18380
  49. A systematic techno-enviro-socio-economic design optimization and power quality of hybrid renewable microgrids Renewable Energy · Elsevier BV · 2023 10.1016/j.renene.2023.119297
  50. Design and implementation of an off-grid hybrid microgrid for Chittagong and Faridpur Thermal Science and Engineering · EnPress Publisher · 2023 10.24294/tse.v6i2.2292
  51. Optimization and control of solar-wind islanded hybrid microgrid by using heuristic and deterministic optimization algorithms and fuzzy logic controller Energy Reports · Elsevier BV · 2023 10.1016/j.egyr.2023.10.016
  52. Optimal Design of Hybrid Renewable Energy System for a Region in Turkey Using HOMER Turkish Journal of Electrical Power and Energy Systems · AVES Publishing Co. · 2023 10.5152/tepes.2023.23021
  53. Design of a hybrid renewable energy system for a reverse osmosis desalination plant: Case study of Abuqir-Egypt AIP conference proceedings · American Institute of Physics · 2023 10.1063/5.0172740
  54. Comparative study based on techno-economics analysis of different shipboard microgrid systems comprising PV/wind/fuel cell/battery/diesel generator with two battery technologies: A step toward green maritime transportation Renewable Energy · Elsevier BV · 2023 10.1016/j.renene.2023.119670
  55. Application of fractional-order synergetic-proportional integral controller based on PSO algorithm to improve the output power of the wind turbine power system Scientific Reports · Nature Portfolio · 2024 10.1038/s41598-024-51156-x
  56. Whale optimization algorithm and its application in machine learning Elsevier eBooks · Elsevier BV · 2024 10.1016/b978-0-32-395365-8.00011-7
  57. Hybrid Transient Search Algorithm With Levy Flight for Optimal PI Controllers of Islanded Microgrids IEEE Access · Institute of Electrical and Electronics Engineers · 2024 10.1109/access.2024.3357741
  58. Techno-economic optimization for isolated hybrid PV/wind/battery/diesel generator microgrid using improved salp swarm algorithm Scientific Reports · Nature Portfolio · 2024 10.1038/s41598-024-52232-y
  59. Techno-economic configuration of an optimized resident microgrid: A case study for Afghanistan Renewable Energy · Elsevier BV · 2024 10.1016/j.renene.2024.120097
  60. Designing an optimal microgrid control system using deep reinforcement learning: A systematic review Engineering Science and Technology an International Journal · Elsevier BV · 2024 10.1016/j.jestch.2024.101651
  61. Techno-economic Analysis of Hybrid Renewable Energy Systems Considering Demand Side Management SVU-International Journal of Engineering Sciences and Applications · Egypts Presidential Specialized Council for Education and Scientific Research · 2024 10.21608/svusrc.2024.250110.1162
  62. A systematic decision-making approach to optimizing microgrid energy sources in rural areas through diesel generator operation and techno-economic analysis: A case study of Baron Technopark in Indonesia International Journal of Renewable Energy Development · Diponegoro University · 2024 10.61435/ijred.2024.59560
  63. Synergizing hybrid renewable energy systems and sustainable agriculture for rural development in Nigeria e-Prime - Advances in Electrical Engineering Electronics and Energy · Elsevier BV · 2024 10.1016/j.prime.2024.100492
  64. Techno-economic Optimization of Isolated Hybrid Microgrids for Remote Areas Electrification: Aswan city as a Case Study Smart Grids and Sustainable Energy · Springer Science+Business Media · 2024 10.1007/s40866-024-00200-w
  65. Hybrid off-grid energy systems optimal sizing with integrated hydrogen storage based on deterministic balance approach Scientific Reports · Nature Portfolio · 2024 10.1038/s41598-024-55631-3
  66. Achieving green mobility: Multi-objective optimization for sustainable electric vehicle charging Energy Strategy Reviews · Elsevier BV · 2024 10.1016/j.esr.2024.101351
  67. Optimizing hybrid energy systems for remote communities in Asia’s least developed countries Heliyon · Elsevier BV · 2024 10.1016/j.heliyon.2024.e29369
  68. A techno-economic assessment of the viability of a photovoltaic-wind-battery storage-hydrogen energy system for electrifying primary healthcare centre in Sub-Saharan Africa Energy Conversion and Management X · Elsevier BV · 2024 10.1016/j.ecmx.2024.100643
  69. Resource assessment and techno-economic analysis of solar pv integrated hybrid off-grid power generation system: a case study of Krishnanagar, India Environment Development and Sustainability · Springer Science+Business Media · 2024 10.1007/s10668-024-05140-0
  70. Building integrated photovoltaic with hydrogen storage as a sustainable solution in Iranian rural healthcare centers Energy Conversion and Management · Elsevier BV · 2024 10.1016/j.enconman.2024.118710
  71. Techno-economic optimization and Strategic assessment of sustainable energy solutions for Powering remote communities Results in Engineering · Elsevier BV · 2024 10.1016/j.rineng.2024.102521
  72. Investigating the integration of floating photovoltaics (FPV) technology with hydrogen (H2) energy for electricity production for domestic application in Oman International Journal of Hydrogen Energy · Elsevier BV · 2024 10.1016/j.ijhydene.2024.07.260
  73. Qualitative and quantitative reservoir characterization using seismic inversion based on particle swarm optimization and genetic algorithm: a comparative case study Scientific Reports · Nature Portfolio · 2024 10.1038/s41598-024-72278-2
  74. Optimally and Independent Planned Microgrid with Solar-Wind and Biogas Hybrid Renewable Systems by HOMER SHILAP Revista de lepidopterología · 2023 10.30486/mjee.2023.1974843.1021
  75. UAV Multispectral Remote Sensing for Yellow Rust Mapping: Opportunities and Challenges Open Access at Essex (University of Essex) · University of Essex · 2022 10.1007/978-981