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

Frequency regulation in a hybrid renewable power grid: an effective strategy utilizing load frequency control and redox flow batteries

관련 수소연료전지 · (5) 연료전지용 수분제어장치(가습기)

기본 정보

저자
  1. Ahmed. H. A. Elkasem — Department of Electrical Engineering, Faculty of Engineering, Aswan University, Aswan, 81542, Egypt
  2. Salah Kamel — Department of Electrical Engineering, Faculty of Engineering, Aswan University, Aswan, 81542, Egypt. skamel@aswu.edu.eg|||Department of Electrical Engineering, Faculty of Engineering, Aswan University, Aswan, 81542, Egypt
  3. Mohamed Khamies — Department of Electrical Engineering, Faculty of Engineering, Sohag University, Sohag, 82524, Egypt
  4. Loai Nasrat — Department of Electrical Engineering, Faculty of Engineering, Aswan University, Aswan, 81542, Egypt
DOI
10.1038/s41598-024-58189-2
저널
Scientific Reports
발행년도
2024
발행기관
Nature Portfolio
피인용수
25
라이선스
cc-by
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.1038/s41598-024-58189-2
토픽
Hybrid Renewable Energy Systems
OpenAlex ID
W4395675146

평가 내용

관련도
관련
사업분야
수소연료전지 · (5) 연료전지용 수분제어장치(가습기)
부 분야
–
R&D 측면
–
확신도
–
근거 용어
–
판단 근거
임베딩 유사도 기반 평가로 '수소연료전지 > 연료전지용 수분제어장치(가습기)' 분야에 선정된 논문입니다.
R&D 활용 포인트
–
평가 입력
–

초록

Abstract Renewable energy sources (RESs) have become integral components of power grids, yet their integration presents challenges such as system inertia losses and mismatches between load demand and generation capacity. These issues jeopardize grid stability. To address this, an effective approach is proposed, combining enhanced load frequency control (LFC) (i.e., fuzzy PID- T $${I}^{\lambda }{D}^{\mu }$$ <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML"> <mml:mrow> <mml:msup> <mml:mrow> <mml:mi>I</mml:mi> </mml:mrow> <mml:mi>λ</mml:mi> </mml:msup> <mml:msup> <mml:mrow> <mml:mi>D</mml:mi> </mml:mrow> <mml:mi>μ</mml:mi> </mml:msup> </mml:mrow> </mml:math> ) with controlled energy storage systems, specifically controlled redox flow batteries (CRFBs), to mitigate uncertainties arising from RES integration. The optimization of this strategy's parameters is achieved using the crayfish optimization algorithm (COA), known for its global optimization capabilities and balance between exploration and exploitation. Performance evaluation against conventional controllers (PID, FO-PID, FO-(PD-PI)) confirms the superiority of the proposed approach in LFC. Extensive testing under various load disturbances, high renewables penetration, and communication delays ensures its effectiveness in minimizing disruptions. Validation using a standardized IEEE 39-bus system further demonstrates its efficiency in power networks grappling with significant renewables penetration. In summary, this integrated strategy presents a robust solution for modern power systems adapting to increasing renewable energy utilization.

본문 98,821자

본문 펼치기
### OPEN # Frequency regulation in a hybrid renewable power grid: an effective strategy utilizing load frequency control and redox flow batteries Ahmed H. A. Elkasem <sup>1</sup> , Salah Kamel <sup>1</sup> <sup>*</sup> , Mohamed Khamies <sup>2</sup> & Loai Nasrat <sup>1</sup> Renewable energy sources (RESs) have become integral components of power grids, yet their integration presents challenges such as system inertia losses and mismatches between load demand and generation capacity. These issues jeopardize grid stability. To address this, an effective approach is proposed, combining enhanced load frequency control (LFC) (i.e., fuzzy PID- T _I_ <sup>�</sup> _D_ <sup>µ</sup> ) with controlled energy storage systems, specifically controlled redox flow batteries (CRFBs), to mitigate uncertainties arising from RES integration. The optimization of this strategy’s parameters is achieved using the crayfish optimization algorithm (COA), known for its global optimization capabilities and balance between exploration and exploitation. Performance evaluation against conventional controllers (PID, FO-PID, FO-(PD-PI)) confirms the superiority of the proposed approach in LFC. Extensive testing under various load disturbances, high renewables penetration, and communication delays ensures its effectiveness in minimizing disruptions. Validation using a standardized IEEE 39-bus system further demonstrates its efficiency in power networks grappling with significant renewables penetration. In summary, this integrated strategy presents a robust solution for modern power systems adapting to increasing renewable energy utilization. Keywords Fuzzy-PID + (T I <sup>�</sup> D <sup>µ</sup> ) controller, Crayfish optimization algorithm, Load frequency control, Renewable energy resources, Controlled redox flow batteries, Communication delay time Abbreviations RESs Renewable energy resources PV Photovoltaic ESSs Energy storage systems SMES Superconducting magnetic energy storage SSSC Static synchronous series compensator PEVs The plug-in electric vehicles CRFBs The controlled redox flow batteries P.u The value of the per unit _ACE_ The area control error Ush Undershoot RLD Random load disruption Osh Overshoot SLD Step load disruption AGC​ The automatic generation control _MW_ Mega-watt LFC Load frequency control CDT Communication delay time FLC Fuzzy logic control Tsim Total simulation time dt Error signal sampling interval 1Department of Electrical Engineering, Faculty of Engineering, Aswan University, Aswan 81542, Egypt. <sup>2</sup> Department of Electrical Engineering, Faculty of Engineering, Sohag University, Sohag 82524, Egypt. <sup>*</sup> email: skamel@aswu.edu.eg TID Tilted-integral-derivative controller _ISE_ The integral square error PID Proportional-integral-derivative controller _ITAE_ The integral time absolute error FOCs Fractional-order-controllers FO-(PD-PI) Fractional-order-proportional-derivative-proportional-integral controller PD-PI Proportional-derivative-proportional-integral controller TI <sup>�</sup> D <sup>µ</sup> Tilt-fractional-order-integral-fractional-order-derivative controller FOPID Fractional-order PID controller HHO Harris hawks optimization method MRFO Manta ray foraging optimization method AOA Arithmetic optimization algorithm _Min_ Minutes J The objective function _Sec_ Seconds ESAOA Eagle strategy arithmetic optimization algorithm COA Crayfish optimization algorithm LMRFO Leader manta ray foraging optimization �fa Area a frequency fluctuation �Ptiea−b Power flow from area-a to area-b via the tie-line �fb Area b frequency fluctuation �Ptieb−a Power flow from area-b to area-a via the tie-line Tab Synchronization coefficient aab Capacity ratio of control area KT The thermal unit’s participation factor Ba Area a’s frequency bias KG The gas turbine’s participation factor Bb Area b’s frequency bias KH The hydropower plant’s participation factor Tcr Time delay regarding gas turbine combustion reaction Yc Lag time constant regarding the speed governor of gas turbine bg The gas turbine constant of valve positioner cg The valve positioner of the gas turbine Tcd Discharge volume-time constant regarding gas turbine compressor Tfc The fuel time constant of the gas turbine Xc Lead time constant regarding the speed governor of gas turbine Tr The time constant of reheater steam turbine Tt The time constant of turbine Kr The gain of reheater steam turbine R1 The value of thermal turbine regulating constant λ The integrator’s fractional-order R2 The value of hydropower plant regulating constant µ The differentiator’s fractional-order R3 The value of gas turbine regulating constant Tsg The time constant of governor Pwt Generated wind turbine power VW The speed of wind Cp The coefficient of rotor blades ωT Speed of the rotor AT A turbine’s swept area _Ρ_ The density of air rT The rotor radius C1 _-_ C7 Turbine coefficients _Β_ The pitch angle �i The intermittent tip-speed ratio �T The optimum tip-speed ratio Trs The speed governor reset time of the hydro turbine Trh The transient droop time constant of the hydro turbine speed governor Tps The time constant of power system Kps The gain constant of power system Tgh The speed governor time constant of hydro turbine Tw The nominal string time of water in penstock Background Energy storage systems (ESSs) are becoming increasingly important as RESs become more prevalent in power systems. ESSs provide distinct benefits while also posing particular barriers in the field of energy storage, engaging a critical role in spanning the gap between energy generation and demand while integrating renewable energy sources, but necessitating careful technological advances in selection, adaptability, and incorporation into existing infrastructure. On the other hand, it is essential to maintain equilibrium among power generation and demand in order to reinstate the power grid frequency to its desired orientation value. This task have been achieved by ­LFC <sup>1</sup> . In recent times, the significance of LFC has grown substantially due to the expansion and complexity of interconnected power grids, rising operational costs, and the limitations of traditional units. These factors can potentially result in inadequate control performance. To address these challenges, extensive research has been conducted considering LFC, with a particular revolve around exploring the potential benefits of demand response. Numerous studies in the literature have aimed to investigate and comprehend how demand ­response <sup>2</sup>, ­ESSs <sup>3–5</sup>, RESs for example photovoltaic (PV) ­plants <sup>6</sup>, flexible alternative current transmission system ­controllers <sup>7</sup>, and wind turbine ­generators <sup>8</sup> . State‑of‑the‑art literature review The traditional approach to frequency control in power grids involves approximating the system as a linear model based on a specific operating condition without taking into account the dynamics of the generators. One commonly used method for frequency regulation is proportional-integral-derivative (PID) control, which has been commonly applied in the ancient due to its merits such as affordability and simplicity. Nevertheless, PID controllers are susceptible to vagaries in system constraints (e.g., system uncertainty and nonlinearities) <sup>9</sup> . However, in recent years, several control strategies, such as fractional order controllers (FOCs) <sup>10,11</sup>, fuzzy logic control (FLC) <sup>12</sup>, sliding mode ­control <sup>13</sup>, artificial neural ­network <sup>14</sup>, and model predictive control (MPC) <sup>15</sup>, has been developed to address the frequency deviation problem. In contrast, FOCs offer numerous advantages for power system stabilization, providing a boarder extent of freedom and increased configuration flexibility. These characteristics make FOCs a perfect option for controlling power grids. Unlike traditional PID controllers, FOCs require the fine-tuning of different types of poles, like hyper-damped poles, which expands the stable area and provides increased design flexibility for controllers. As a result, FOCs reduce overshoot, the settling time, as well as undershoot values, surpassing PID controllers and their variations. Furthermore, wide-ranging researches have been conducted on the tender of FOCs in various studies, with two common forms being firstly, the title integral derivative (TID) form as well as the fractional order PID (FOPID) <sup>4</sup> . These FOCs have been thoroughly researched with the goal in order to boost the stability of frequency of today’s electrical power ­grids <sup>16–18</sup> . While these controllers have demonstrated promising results in normal operating conditions. In addition, the fuzzy controller offers several key benefits, including its straightforward implementation, its ability to effectively respond to system variations, as well as its ability to accommodate variations in the operational situations or system constraints through online updates of the controller constraints. These advantages stem from the controller’s simplicity in execution and its high sensitivity to fluctuations in the power ­grid <sup>19</sup> . The initial application of FLC in addressing the LFC problem involved combining it with a PID controller, as described ­in <sup>20</sup> . Furthermore, a self-tuning fuzzy-PID controller has been introduced to improve the stability of the frequency of a two-area power ­grid <sup>21</sup> . Moreover, the fuzzy-PID controller has been employed to stabilize the power structure’s frequency that incorporates multiple power ­sources <sup>22</sup> . According to the merits of FOCs and FLC, the authors proposed the (fuzzy-PID) + (T I <sup>�</sup> D <sup>µ</sup> ) controller to handle the LFC problematic in the analyzed two-area interconnected power grid. However, the FLC utilizes various strictures such as inputs, scaling factors, membership functions, and rule base. But, there are no fixed rules to determine the values of these parameters. Typically, trial-and-error methods have been employed to choice these values, but they may not always yield optimal performance. To address this issue, a meta-heuristic technique known as the Crayfish Optimization Algorithm (COA) has been used to select the optimal constraints of the proposed controller. Lastly, multiple controllers in the LFC issue have been addressed through the application of optimization methods including a tracking ­methodology <sup>23</sup> and aggregation ­strategies <sup>24</sup> have been used to address. However, these prior techniques have certain downsides. To address the limitations of traditional optimization methods, which can get trapped in local minimums, require a high number of iterations, and are sensitive to initial conditions, researchers have focused their attention on meta-heuristic optimization methods, for example Coyote Optimization ­Algorithm <sup>25</sup>, Dandelion ­Optimizer <sup>26</sup>, Harris Hawks ­Algorithm <sup>27</sup>, Archimedes Optimization ­Algorithm <sup>28</sup>, Sine Cosine ­Algorithm <sup>29</sup>, Ant Colony ­Optimization <sup>30</sup>, Whale Optimization ­Algorithm <sup>31</sup>, Grey Wolf ­Optimizer <sup>32</sup>, Artificial Bee Colony ­Algorithm <sup>33</sup>, Imperialist competitive Algorithm (ICA) <sup>34</sup>, Quasi-oppositional Harmony ­Search <sup>35,36</sup>, Quasi-opposition Pathfinder ­Algorithm <sup>37</sup>, Chaotic Chimp Sine Cosine Optimization ­Algorithm <sup>38</sup>, Quasi-oppositional Whale Optimization ­Algorithm <sup>39</sup> . These alternative approaches have gained attention as they offer a way to overcome these limitations and find optimal solutions more efficiently. By leveraging meta-heuristic optimization techniques, researchers can enhance the performance of LFC controllers and find more robust and effective parameter settings. Accordingly, the authors propose appling the COA algorithm to determine the finest constraints of the considered controller. As, the considered COA method has been developed to address the limitations associated with traditional optimization techniques. The COA method offers advantages over conventional optimization algorithms by employing a gradient-free mechanism, which helps overcome the issue of getting stuck in local solutions. Moreover, the COA algorithm has the capability to find global solutions using a small number of search agents, further enhancing its superiority over other optimization ­methods <sup>40</sup> . In this work, it is the first time to apply the COA technique in handling the LFC issue. From a different perspective, when there is a large impact as well as a high penetration of renewable energy, the frequency and tie line may be different for a long time, and oscillations may still occur. In this case, the LFC response may not be sufficient to absorb the frequency change due to the slowness and poor quality of the response. As a result, it is necessary to apply ESSs. However, different studies have applied different energy storage strategies with rapid rejoinder, like superconducting magnetic energy storage (SMES), fuel cell systems (FCSs), plug-in electric vehicles (PEVs), and redox flow batteries (RFBs), for addressing the LFC issue. The utilization of these devices has emerged as a new and intriguing research ­area <sup>3,4,41–47</sup> . Among these, RFB has shown its advantages over other electronic devices (such as SMES) due to its ability to operate at normal temperature, low loss and long service life. Consequently, RFBs is anticipated to be the most effective ­solution <sup>48</sup> . In a study described in <sup>49</sup>, the influence of RFBs and SMES units on enhancing the performance of a power grid was investigated. Simulation outcomes indicated that the incorporation of RFB units more effectively dampened dynamic responses in comparison to the SMES units. Additionally, the authors of demonstrated the superior performance of RFBs in combination with the Unified Power Flow Controller and Interline Power Flow Controller in Automatic Generation Control (AGC) on nonlinear power ­systems <sup>43,50</sup> . Furthermore, the stability is achieved in a nonlinear power system by incorporating integral control of the LFC model with RFBs storage and a Static Synchronous Series ­Compensator <sup>51</sup> . Research gap Despite the pre-mentioned studies successfully achieved their objectives, these studies did not focus on the high incorporation of RESs in the presence of high load demand. For example, more than one previous study focused on conventional power plants and did not adequately consider the impact of ­RESs <sup>7,22,41,42</sup> . Nevertheless, the present study emphasizes high renewables penetration like wind and solar energy, which are commonly utilized in both areas of the power grid under examination. Additionally, numerous studies overlook the influence of diverse load perturbation shapes, which can be essential for evaluating the applied ­controller <sup>25,26,28,30,31</sup> . However, this study considered numerous load perturbation profiles like, step load disruptions (SLD), series SLD, and random load disruptions (RLD) which represent the forced outage of power plants or high change on the load demand. Moreover, most previous studies considered applying different types of ESSs without applying any controller to control their ­output <sup>5,43</sup> . However, this study consider the controlled ESSs to control the amount of the power which will injected to the overall system. The standard IEEE 39 buses test system is considered. Furthermore, the durability of the indicated controller is examined in this work by considering the challenge of the communication delay time (CDT). The purpose is to validate the effectiveness of the proposed controller in achieving stability and reliability in a practical power system setting. Furthermore, this paper’s main objective is to address the limitations uncovered in previously published investigations concerning the frequency stability problem. Therefore, Table 1 provides a clear overview of the variances between this study and other researches in the literature, emphasizing the unique contributions and approaches taken in this paper. Article motivations and contributions The scope and contribution of this research can be summarized as follows: - Proposing a concerted strategy based on enhanced LFC in coordination with ESSs (i.e., CRFBs) improves power grid stability during periods of disturbances in load and high RESs penetration. Where the proposed controller in LFC is (fuzzy-PID) + (T I <sup>�</sup> D <sup>µ</sup> ) controller, whose superiority is confirmed by comparing its performance with other controllers like the (PID, FO-PID, PD-PI and FO-(PD-PI)). - Considering the COA technique to select the optimal parameters of the considered controllers, according to its good optimization properties (i.e., balancing between exploration and exploitation) in order to enhance the performance of the analyzed power grid. - The superiority of the proposed strategy is validated considering high RESs, load disturbances as well as CDT in considered hybrid power grid. Furthermore, the standard IEEE 39 buses is considered to confirm the superiority of the proposed strategy. <u>References</u> 5 7 16 22 49 51 <u>This work</u> Fuzzy fine-tuning Controller design Combining TD-TI Cascaded TID approach Fuzzy logic based self<u>tuning PID</u> (fuzzy-PID) + (T PI I I <sup>�</sup> D <sup>µ</sup> ) High penetration √ × × × × × √ <u>levels of RESs</u> Additional improvements <u>incorporation</u> Real-time validation considering various <u>load patterns</u> Real-time validation considering high <u>RESs penetration</u> Considered series Considered RFBs/ Considered PEVs Considered capacitor not considered capacitors SMES Considered RFBs/ Considered CRFBs SSSC IEEE-39 bus system/ × × × × × × SLD × × × × × × √ Real-time validation × × × × × × √ <u>considering CDT</u> Table 1. Comparison of the present work’s motivation to those of other published studies. The remaining content of the manuscript is structured as follows: "Background" provides a detailed overview of the power grid under investigation, emphasizing its substantial penetration of renewable energy sources and the integration of controlled redox flow battery (CRFB) systems within the proposed strategy. "State-of-the-art literature review" describes the recommended approach, which involves the fuzzy-PID and (T I <sup>�</sup> D <sup>µ</sup> ) controller, and formulates the problem under analysis. "Research gap" outlines the methodology employed for the crayfish optimization algorithm (COA) procedure. "Article motivations and contributions" presents the simulation results obtained from the aforementioned scenarios. Finally, in "Modeling of an investigated system", the study’s conclusions and key findings are discussed and reviewed. Modeling of an investigated system The configuration of the considered system base The power grid that is mentioned in the literature is a two-identical area, with a three-traditional unit included within each area. A tie-line connecting the two areas is an AC tie-line. Thermal, hydro, and gas turbines are the three conventional units, which are dispersed throughout the two zones. In the present study, a 2000 MW, total capacity electrical system is examined. In contrast, having a 1087 MW, contribution, the thermal unit has the biggest capacity. The second-largest capacity, contributing 653 MW, is possessed by the hydropower facility. And finally, 262 MW, is contributed by the gas turbine capacity. Furthermore, Fig. 1 simplifies the diagram of the examined power grid, while the block diagram of the examined power grid is illustrated as Fig. 2. Next, each block’s mathematical equation from Fig. 2 is presented in detail in Table 2. For the purpose of dealing with fluctuations in frequency in each area (e.g., area a -area b) and control the tie-line power flow between them, a (fuzzy-PID) + (T I <sup>�</sup> D <sup>µ</sup> ) controller is proposed to be implemented for each power plant. The Area Control Error ( _ACE)_ serves as the input signal for the controller, while the output signal represents the specific supplementary control action for each power plant. The aim of this procedure is to produce additional active power in order to improve the currently assessed grid performance. Appendix A provides comprehensive information about all the parameters related to the analyzed power grid, including their nominal ­values <sup>52</sup> . The following equations describe the formularies used to calculate the _ACEs_ related to interconnected areas. ACEa = �Ptiea−b + Ba�fa (1) ACEb = �Ptieb−a + Bb�fb (2) Conceptualization of the wind farm As highlighted in this analysis, the study’s power grid is a hybrid system that contains a significant proportion of RESs, with a focus on wind generating facilities. The following formulae can be used to calculate wind output ­power <sup>3,4</sup> . Pwt = <sup><u>1</u></sup> 2 <sup>ρAT</sup> <sup>v</sup> w <sup>3</sup> <sup>Cp(�, β)</sup> (3) The wind output power, denoted as Pwt (in MW), is determined by various factors. These factors include the flounced sectioned area, AT (in m <sup>2</sup> ), the tip-speed ratio (TSR), �, the power coefficient, Cp, of the rotor blades, Re-heat Re-heat thermal thermal Turbine Hydro Turbine Hydro Turbine Turbine Re-heat thermal Turbine Hydro Turbine RFB 1 ##### fa fb LFC Area 1 LFC Area 2 RFB 2 Gas Turbine Load Load AC Transmission Link Gas Turbine Wind Farm PV Arrays Wind Farm PV Arrays Figure 1. Schematic diagram of the considered grid. Primary control loops a 1 _Trs.s+_ 1 + + _Ba_ aab _Bb_ + ــ 1 _Trs.s+_ 1 _-Tw.s+_ 1 PV arrays Wind farm 1 _Kr.Tr.s+_ 1 ــ + _Tsg.s+_ 1 1 _ACEa_ ــ ــ Controller 1 Controller 2 _Kpv_ _Tpv.s+_ 1 _Kwind_ _Twind.s+_ 1 _KT_ Reheater a Thermal Turbine a _Tr.s+_ 1 _Tt.s+_ 1 1/ _R1_ 1/ _R2_ 1/ _R3_ ــ Thermal Governor a Load variation b #### Area b #### Area a fa _Kpsa_ _Tpsa.s+_ 1 Power System a _-Tw.s+_ 1 + + ــ ــ Controller 3 _(0.5).Tw.s+_ 1 _KH_ _KG_ + _Tgh.s+_ 1 Hydro Governor a Transient Droop Compensation a Transient Droop _Trh.s+_ 1 Hydro Turbine a 1 Gas Turbine Valve Fuel System & Speed Positioner a Combuster a Valve Positioner a Optimized via ــ + _Xc.s+_ 1 1 _Yc.s+_ 1 _Tcr.s+_ 1 _Tfc.s+_ 1 _Tcd.s+_ 1 _bg.s+cg_ Secondary Secondary COA Speed Governor a Load variation a #### fb Gas Turbine Dynamics a _Kpv_ _Tpv.s+_ 1 _Kwind_ _Twind.s+_ 1 Secondary Secondary control control loop a Ptie Fuel System & control control loop a loops 1 + + + + + + _Kr.Tr.s+_ 1 _Tr.s+_ 1 Reheater b Optimized via COA + + aab (2 _.pi.Tab_ ) + s ــ _ACEb_ ــ ــ Controller 1 Controller 2 _Kpsb_ _Tpsb.s_ +1 _KT_ PV arrays Wind farm 1 _Tsg.s+_ 1 Thermal Governor b System b 1 _Tt.s+_ 1 Thermal Turbine b ــ + + ــ Power Controller 3 + ــ Transient Droop _Tgh.s+_ 1 _(0.5).Tw.s+_ 1 Hydro Turbine b 1 _Tcd.s+_ 1 _KH_ _KG_ _Trh.s+_ 1 Secondary control loop b 1/ _R1_ 1/ _R2_ 1/ _R3_ Hydro Governor b Governor b Compensation b + _Xc.s+_ 1 1 _Tcr.s+_ 1 _Xc.s+_ 1 1 _Tcr.s+_ 1 ــ Gas Turbine Valve Fuel System & Speed Positioner b Combuster b _Yc.s+_ 1 _bg.s+cg_ _Tfc.s+_ 1 Valve Positioner b Gas Turbine Dynamics b Fuel System & Speed Governor b Primary control loops b Figure 2. The linearized model of the Power grid under investigation. the air density, _ρ_ (in kg/m <sup>3</sup> ), the wind speed, VW (in m/s), and the blade pitch angle, _β_ . The Cp can be expressed as ­follow <sup>53</sup> : ��i − 0.022β <sup>2</sup> - 5.6�×e <sup>−0.17�i</sup> Cp(�i, β) = 0.5 �i − 0.022β <sup>2</sup> - 5.6 ×e <sup>−0.17�i</sup> (4) �i = <sup><u>3600 × R</u></sup> (5) 1609 × � - = <sup><u>ωB × R</u></sup> (6) VW where ωB specifies the angular velocity value of the blade (rad/sec). The wind farm at Zafarana, Egypt, with a total installed capacity of 85 MW, is included in this study. Additionally, Fig. 3 presents the real output power data for the Zafarana windmill. One may theoretically describe <u>Description of A block</u> <u>Formulation of transfer functions</u> Power system a TpsaKpsa·s+1 Power system b TpsbKpsb·s+1 Hydro turbine (0.5−T).wT·ws+·s+1 1 Transient droop compensation <u>TTrhrs</u> <u>··ss++11</u> <u>Hydro governor</u> <u>Tgh1·s+1</u> Reheater of thermal turbine <u>KrT·rT·rs+·s+1</u> <u>1</u> Thermal governor Tsg .s1 +1 <u>Termal turbineh</u> <u>Tt</u> <u>.s1+1</u> Gas turbine’s speed governor <u>Yxcc··ss++11</u> Gas turbine dynamics <u>Tcd</u> <u>1·s+1</u> Gas turbine’s valve positioner bg ·s1+cg Fuel system and combustor <u>TTcrfc</u> ··ss++11 Synchronizing coefficient <u>(2.pis.T</u> <u>ab)</u> Wind farm TWindKWind.s+1 PV Power plant TPVKPV .s+1 Table 2. The mathematical formulas regarding the considered power grid blocks. the characteristics of the transfer function, which depicts the behavior of the integrated induction generator in a wind power plant, as 0.3 s for the time constant ( Twind ) and a unity gain ( Kwind ). Additionally, the overall capacity applied in this work is ten Zafarana wind farms, with a total capacity of 850 MW. Conceptualization of the photovoltaic (PV) power plant This research also takes into account photovoltaic (PV) power plants, which generate electricity from solar energy besides utilized wind farms. Multiple variables, like the PV cell’s surface area, the intensity of solar radiation, and the surrounding air temperature, affect a PV system’s output power. For calculating the amount of energy generated by the module of PV in this current study, an equation is employed, taking into account these factors. P = ηscτg αscRA[1 − µsc(Tsc - Tr)] (7) In the PV system, several parameters influence the output power calculation. These parameters include the cell reference efficiency denoted as ηsc, the entire solar cell’s (SC) surface area denoted as A (measured in m <sup>2</sup> ), the solar radiation denoted as R (measured in W/m <sup>2</sup> ), the transmissivity of the glass denoted as τg, the absorptivity of the SC denoted as αsc, the PV cell efficiency thermal coefficient denoted as µsc (measured in <u>◦</u> <sup><u>%</u></sup> C <sup>~~)~~</sup> <sup>, the temperature</sup> of the SC denoted as Tsc (measured in <sup>◦</sup> C), then the reference temperature signified as Tr (measured in <sup>◦</sup> C ). These parameters are used in a formula to determine the PV module’s electrical power output. 0.3 0.25 0.2 0.15 0.1 0.05 0 0 100 200 300 400 500 600 700 800 Time (min) Figure 3. Energy generated by the Zafarana windmill ­station <sup>53</sup> . This study focuses on a specific power grid and examines a realistic 50 MW PV system. The southern Egypt represents the location of this aforementioned realistic PV power plant. Whereas, the realistic PV power plant is modeled by a transfer function with 10 ms time constant ( TPV ) and a unity gain ( KPV ). The output power of this PV system is depicted in Fig. 4 illustrates the diagram of the output power produced by the PV system. Appendix B provides the results of the analysis of data gathered for identifying the correlation between brightness and PV temperature. Furthermore, the characteristics of the studied PV system are displayed in Figs. 5,6, which emphasize the associations between the produced active power, the values of brightness, the produced active power, and the temperature of the surroundings. Additionally, the overall capacity applied in this work is ten realistic PV power plants, with a total capacity of 500 MW. Controlled redox flow batteries (CRFBs) conceptualization The CRFBs functions as an electrochemical power source that has the ability to be recharged. CRFBs can rapidly and efficiently save energy for the power network; additionally it can also employ the generator’s kinetic energy when ­requested <sup>50</sup> . It functions as a rapid energy compensating equipment for high load electrical consumption and additionally aids in frequency fluctuation suppression. The CRFBs has a broad range of applications and 0.25 0.2 0.15 0.1 0.05 0 06:00 AM 06:00 PM 0 100 200 300 400 500 600 700 800 Time (min) Figure 4. The exact PV power plant power ­generation <sup>53</sup> . Figure 5. Radiation and power generation characteristics of the PV energy station. Figure 6. Power generation characteristics and ambient temperature of the PV energy station. offers excellent features such as improved power quality, load compensation, higher capacity compared to conventional batteries, quick response time, and independence from self-discharge issues. During low load demand periods, the CRFBs stores and saves the energy that is equivalent to the demand variations. This stored energy can then be unrestricted back into the grid during load fluctuations, aiding in the elimination of power grid oscillations. In this study, a significant aspect of CRFBs modeling is the utilization of a comprehensive and realistic dynamic model of redox flow batteries, rather than the simplistic first-order transfer function models commonly used in several recent papers. The model incorporates the �f (change in frequency) as an input. This paper presents a controller design that incorporates a feedback path to generate control signals for CRFBs. This design enables the CRFBs to respond efficiently to disturbances, resulting in improved performance. The designed controller, denoted as K(s), is considered as a PID controller in this work. The relevant parameters of the CRFBs are provided in the Appendix B. Figure 7 illustrates the block diagram of CRFBs. Equation (8) indicates how the CRFBs unit is woven into the studied power ­grid <sup>45</sup> . × K(s) (8) <u>1 + s</u> - 1 + kr,CRFBi + s Tr,CRFBi + Td,CRFBi <u>�</u> <u>�</u> + s <sup>2</sup> Tr,CRFBiTd,CRFBi �PCRFBi = kp,CRFBi�fi × - initial value Proposed control mechanism and problem description In order to address the difficulties caused by the high renewables penetration, several load profile themes, and communication delays, it is crucial to design a reliable controller that can boost system performance under irregular situations. This paper recommends the utilizing of a (fuzzy-PID) + (T I <sup>�</sup> D <sup>µ</sup> ) controller to alleviate the deviations resulting from the aforementioned factors. Structure-wise, both the TID and PID controllers are ##### pC RFBi + ## K(s) - 1 ##### Td,CRFBi .s+ 1 _Kkr,CRFBir,RFPi_ Tr,CRFBi .s+ 1 <u>fi (s)</u> ##### + kP,CRFBi ## - ##### _K(s)_ _Designed controller_ _Initial value_ Figure 7. C RFBs unit’s transfer function ­model <sup>45</sup> . exactly the same, with one significant difference. Instead of the proportional component, the TID controller incorporates a tilted component with a transfer function of s <sup>−(1/n)</sup>, where n represents the FOCs. The TID controller has numerous benefits over a typical PID controller. It exhibits better disturbance rejection, simplified tuning process, and reduced sensitivity to variations in system parameters, resulting in improved dynamic response. Additionally, another type of FOCs called the fractional-order-integral-derivative (FO-ID) controller is available, which offers enhanced system performance and flexibility. Thus, this study replaced the second and third gains in TID controller by the FO-I and FO-D terms to attain the T I <sup>�</sup> D <sup>µ</sup> controller. Where the frequency fluctuations of the area ( �fi ) attends as the T I <sup>�</sup> D <sup>µ</sup> controller’s input signal. Furthermore, the mathematical expression of T I <sup>�</sup> D <sup>µ</sup> controller is expressed according to the next equation: TI <sup>�</sup> D <sup>µ</sup> (s) = <sup><u>Kti</u></sup> <u>1</u> <sup><u>,i</u></sup> + <sup><u>K</u></sup> S <sup><u>i�,i</u></sup> <sup>+ Kd,iSµ</sup> (9) + <sup><u>Ki,i</u></sup> S <sup>�</sup> <sup><u>Ki,i</u></sup> S <sup>�</sup> <sup>+ Kd,iSµ</sup> S <u>1</u> n The constraints of gain values, kti,i(TI�Dµ), ki,i(TI�Dµ), kd,i(TI�Dµ), n(TI�Dµ), �(TI�Dµ), and µ(TI�Dµ) utilized in this work in both areas of the considered power grid are expressed as follows: kti,i(TI�Dµ) <sup>max</sup> ≥ kti,i(TI�Dµ) ≥ kti,i(TI�Dµ)min (10) ki,i(TI�Dµ) <sup>max</sup> ≥ ki,i(TI�Dµ) ≥ ki,i(TI�Dµ)min (11) kd,i(TI�Dµ) <sup>max</sup> ≥ kd,i(TI�Dµ) ≥ kd,i(TI�Dµ)min (12) n(TI�Dµ) <sup>max</sup> ≥ n(TI�Dµ) ≥ n(TI�Dµ)min (13) �(TI�Dµ) <sup>max</sup> ≥ �(TI�Dµ) ≥ �(TI�Dµ)min (14) µ(TI�Dµ) <sup>max</sup> ≥ µ(TI�Dµ) ≥ µ(TI�Dµ)min (15) where i refers scheme of the suggested controller for each of the three mentioned traditional power plants; thus, ( i=1, 2, 3). The gain values ( kti,i(TI�Dµ), ki,i(TI�Dµ), kd,i(TI�Dµ), n(TI�Dµ), �(TI�Dµ), and µ(TI�Dµ) ) are chosen between [0, 10], n(TI�Dµ) is set among the range [1, 10], the fractional derivative ( µ(TI�Dµ) ) and fractional integrator ( �(TI�Dµ) ) orders are chosen among the range [0, 1]. Additionally, Fig. 8 illustrates the proposed controller structure for the three considered generating units. Where, the considered controller has dual inputs: the _ACE_ value and the derivative value of _ACE._ The scalability variables for the inputs are symbolized as ­K1 and ­K2, while the scalability variables for the output are symbolized as ­K3 and ­K4. Traditionally, determining these scaling factors has been a challenge, often relying on trial-anderror methods. This can make obtaining optimal parameter values that improve system performance difficult. However, this study overcomes this limitation by designing the considered (fuzzy-PID) + (T I <sup>�</sup> D <sup>µ</sup> ) controller. Furthermore, the COA algorithm is used to determine these optimized values, where, the fuzzy membership function can be either triangular or Gaussian shape. In practical applications of electrical systems, triangular membership is often preferred due to its computational efficiency and simplicity. It is a first-order function of controller _+_ _kt_ 1 s 1/n <u>fi</u> _ki_ <u>fi</u> 1 _<u>+</u>_ signalInput _ki_ s _+_ _∑+_ _+_ _+_ _∑_ _+_ _+_ 1 s <u>Ui</u> Control signal _∑_ _+_ _kd_ Scaling factor k1 _<u>ACEi</u>_ + + s Input signal d k2 dt Derivative gain Fuzzy Logic Controller fuzzy-PID controller Proportional gain k3 k4 Integral gain Figure 8. Considered (fuzzy-PID) + (T I <sup>�</sup> D <sup>µ</sup> ) controller arrangement. mathematics that decreases computational load. Triangular membership functions are typically used with PID controllers and exhibit abundantly symmetric characteristics in both output as well as input. Furthermore, the mathematical expression of (fuzzy-PID) controller is expressed according to the following equation: fuzzy − PID(s) = K1,i + K3,i + <sup><u>K4,i</u></sup> + K2,is (16) s The constraints of gain values, K1,i, K2,i, K3,i, and K4,i utilized in this work in both areas of the analyzed power grid are expressed as follows: k1,i(fuzzy−PID) <sup>max</sup> ≥ k1,i(fuzzy−PID) ≥ k1,i(fuzzy−PID)min (17) k3,i(fuzzy−PID) <sup>max</sup> ≥ k3,i(fuzzy−PID) ≥ k3,i(fuzzy−PID)min (18) k4,i(fuzzy−PID) <sup>max</sup> ≥ k4,i(fuzzy−PID) ≥ k4,i(fuzzy−PID)min (19) k2,i(fuzzy−PID) <sup>max</sup> ≥ k2,i(fuzzy−PID) ≥ k2,i(fuzzy−PID)min (20) The gain values ( k1,i(fuzzy−PID), k2,i(fuzzy−PID), k3,i(fuzzy−PID), and k4,i(fuzzy−PID) ) are chosen between [0, 10]. The decision about the choice of fuzzy control settings is influenced by the specific characteristics of the system under consideration as well as the designer’s expertise. The range of fuzzy function memberships is determined by predicting the system’s input and output discourse universes. Typically, a decision-maker defines the acceptable risk level for the output and input variables. In this study, the range intervals are selected between -1 and 1, as deviations beyond this range are not necessary to achieve system stability. Symmetric triangular membership functions with 50% overlap are recommended, and a tuning procedure can be applied to adjust the spread and overlap as needed to achieve satisfactory results. In this study, the fuzzy-PID controller in this work utilizes five triangular membership functions: negative big (NB), negative small (NS), zero (Z), positive small (PS), and positive big (PB). These membership functions, depicted in Fig. 9, are utilized for outputs as well as inputs. Consequently, the fuzzy-PID controller requires 25 rules to generate fuzzy outputs, which play a crucial role in its performance. These rules are presented in Table 3. Also, the arrangement of the considered combination of (fuzzy-PID) and (T I <sup>�</sup> D <sup>µ</sup> ) controller is depicted in Fig. 8. According to various published studies, the load frequency controller’s input signal is usually _ACE_ . In this study, the authors proposed (fuzzy-PID) + (T <u>NB</u> NS Z PS <u>PB</u> 1 0 _ _ _ _ _ 1 0.8 0.6 0.4 0.2 0 0.2 0.4 0.6 0.8 1 Figure 9. The triangular membership functions of the FLC’s input and output. dACE / dt ACE <u>NB</u> <u>NS</u> <u>Z</u> <u>PS</u> <u>PB</u> <u>NB</u> <u>NB</u> <u>NB</u> <u>NB</u> <u>NS</u> <u>Z</u> <u>NS</u> <u>NB</u> <u>NB</u> <u>NS</u> <u>Z</u> <u>PS</u> <u>Z</u> <u>NB</u> <u>NS</u> <u>Z</u> <u>PS</u> <u>PB</u> <u>PS</u> <u>NS</u> <u>Z</u> <u>PS</u> <u>PB</u> <u>PB</u> <u>PB</u> <u>Z</u> <u>PS</u> <u>PB</u> <u>PB</u> <u>PB</u> Table 3. Rule base of the FLC. I <sup>�</sup> D <sup>µ</sup> ) controller, which combines two concepts. The first (fuzzy-PID) controller term receives the _ACE_ signal as an input. The extra (T I <sup>�</sup> D <sup>µ</sup> ) controller term employs the �f signal to improve system performance. It is obviously true that the total arrangement of the proposed controller demonstrates superior rejection of existing disturbances by mitigating all low- and high-frequency ­disturbances <sup>4,6</sup> . In this study, the authors propose the utilization of the integral time absolute error ( _ITAE_ ) criteria as a means for minimizing the value of the cost function. Optimizing development is improved by adding the element of a time term to the _ITAE_ criteria and the system constancy will be more enhanced compared to using the integral of squared error ( _ISE_ ) criteria. Increased efficacy in error reduction is achieved by multiplying the factor of time by the integral of the absolute error. The _ITAE_ principles can be expressed as follows: Tsim �0 �|�fa| + |�fb| + ���ptie���.dt J = ITAE = t. .dt (21) t. 0 Where _J_ denotes the value of proposed cost function which seeks to be the lowest possible value in this work, |�fa| represents the area-a frequency waveform’s absolute error, |�fb| represents the area-b frequency waveform’s absolute error, waveform’s absolute error, overall simulation runtime, and the variable dt symbolizes the error signal sampling period throughout the simulation procedure. ���ptie�� represents the tie-line’s power flow change absolute error, Tsim denotes the The crayfish optimization algorithm (COA) The Crayfish Optimization Algorithm (COA) principles which is proposed by Heming et.al is discussed in detail in this ­section <sup>40</sup> . Foraging, competition, and summer resort behaviors are the three crayfish behaviors that the COA simulates. To equilibrium the algorithm’s exploration and exploitation features, these behaviors are classified into three stages of actions (i.e., summer resort, competition, and foraging). The summer resort stage symbolizes the COA’s exploring phase, while the competition and foraging stages indicate the exploitation phase. The temperature has an effect on the algorithm’s exploration and exploitation. The initial stage of the algorithm defines a crawfish colony, denoted as X, where Xi indicates a solution and describes the position of the ith crayfish. ( Xi= Xi,1, Xi,2, Xi,3 . . . Xi,dim, dim is the dimension which denotes the optimization problem’s characteristic ( Xi= Xi,1, Xi,2, Xi,3 . . . Xi,dim, dim is the dimension which denotes the optimization problem’s characteristic quantity. Random constants that represent the ambient temperature have an influence on individual’s behavior. - When the temperatures increase, the COA moves into the stage of summer resort or the competition stage. New solutions are updated at the summer resort stage depending on the position of an individual, Xi and the position of cave, Xshade . When the ambient temperature is appropriate and warm enough, the COA begins the foraging stage. During this stage, the best location, likewise regarded as an optimal solution, reveals the location of food. The fitnessi value of the current solution (gained through Xi ) and the optimal solution fitnessfood value (gained as a result of the optimal solution) define the size of the food. During foraging, crayfish obtain new solutions by considering their position, Xi a food intake constant p, and the update of the food position X _food_ . If crayfish want to eat food that is excessively large for them, they will first break it down with their claw foot before alternating between their second and third walking feet. Overall, the COA simulates crayfish behavior by incorporating exploration and exploitation through temperature regulation, updating solutions based on individual and optimal positions, and considering the size and consumption of food. �Xi,1, Xi,2, Xi,3 . . . Xi,dim This subsection summarizes the methodology of the COA algorithm: _Initialization process of COA_ This study proposes a controller with both lower and upper limits for parameters. To accomplish the global goal, the population of the COA method is formed between these boundaries using main mathematical procedures. The population of the COA method can be expressed using Eq. (22). Xi,j = rand × (UBj − LBj) + LBj (22) Where Xi,j represents where the individual i is located in the j dimension, LBj represents the jth dimension’s lower bound, UBj represents the jth dimension’s upper bound, and rand is a random number. The COA method starts by generating candidate solutions ( X ) randomly. In each iteration, the obtained solution that is closest to the global goal (target) represents the optimal solution. The obtained solutions’ positions are indicated in the next matrix.  ... ... . . . XN,dim  X1,1 X1,j Xi,1 Xi,j ... ... XN,1 XN,j 1,1 X1,j - · · X1,dim i,1 Xi,j - · · Xi,dim ... ... ... ... X = (23) ... ... ... ...   where X refers the initial population position, N refers the population number, dim refers the population dimension. The fitness solution, which represents the solution with the best fitness value among the obtained solutions, is calculated as following: ffitness = [f 1f 2f 3 . . . . . . . . . . . . fN ] <sup>T</sup> (24) _Definition of the crayfish temperature and its intake_ The behavior of crayfish is influenced by changes in temperature, which determine the stage they enter. Temperature is determined by Eq. (25). When the temperature exceeds 30 °C, crayfish will seek out cooler areas for taking a summer vacation. Crayfish will begin to forage when the temperature is appropriate. Temperature influences the amount of food consumed by crayfish. Crayfish prefer temperatures between 15 °C and 30 °C for feeding, with 25 °C being the most favorable. Equation (26) provides the mathematical representation of the crayfish intake. Temp = rand × 15 + 20 (25) In this equation, " Temp " denotes the temperature of the crayfish’s environment. <u>1</u> - <u>√2 × π</u> × σ × exp( <sup>−</sup> <u>Temp −</u> µ 2σ <sup>2</sup> <u>�</u> <u>�</u> <u>�2</u> p = C1 × ) (26) <u>√2 × π</u> × σ × exp( <sup>−</sup> 2σ <sup>2</sup> ) 2σ <sup>2</sup> Among them, σ and C1 is used to regulate crayfish intake at various temperatures, while µ refers to the optimal crayfish temperature. _The exploration stage (summer resort stage)_ When the temperature exceeds 30 °C, it is considered too high, and crayfish will choose to seek refuge in caves to take the period of summer vacation. The cave Xshade is identified as listed below: Xshade = (XG + XL)/2 (27) In this scenario, XG demonstrates the optimal position attained so far throughout iterations, while XL represents the current population’s optimal position. The competition among crayfish for caves is a random occurrence. When a randomly generated number rand<0.5, it means that there aren’t any other crayfish fighting for caves. In such instances, the crayfish are going to move directly to the cave for their break during the summer vacation. This behavior is governed by Eq. (28). Xi <sup>t</sup>, <sup>+</sup> j <sup>1</sup> = Xi <sup>t</sup>,j <sup>+ C2 × rand ×</sup> Xshade − Xi <sup>t</sup>,j (28) i <sup>t</sup>, <sup>+</sup> j <sup>1</sup> = Xi <sup>t</sup> i <sup>t</sup>,j <sup>+ C2 × rand ×</sup> Xshade − Xi <sup>t</sup>,j i,j Where t refers the current iteration number, and t+1 refers the number of the next generation iteration,C2 refers the decreasing curve, as proved by Eq. (29). C2 = 2 − (t/T) (29) where t indicates the maximum iterations’ number. Crayfish’s goal at the summer resort stage is to go close to the cave, which represents the optimal solution. Consequently, crayfish will move towards the cave in an effort to get closer to the optimal solution. Individuals become closer to the best solution through this process, which also improves the COA algorithm’s exploitation capability, thus allowing for faster convergence. _The exploitation stage (competition stage)_ When the temperature exceeds 30 °C and rand≥0.5, it indicates that other crayfish are also captivated by the cave. In this situation, they will engage in a competitive fight to gain access to the cave. As per Eq. (30), the crayfish competes over the cave: Xi <sup>t</sup>, <sup>+</sup> j <sup>1</sup> = Xi <sup>t</sup>,j <sup>−</sup> <sup>X</sup> z <sup>t</sup>,j <sup>+ Xshade</sup> (30) i <sup>t</sup>, <sup>+</sup> j <sup>1</sup> = Xi <sup>t</sup> i <sup>t</sup>,j <sup>−</sup> <sup>X</sup> z <sup>t</sup> z <sup>t</sup>,j <sup>+ Xshade</sup> Where z sums up the crayfish’s arbitrarily individual, as demonstrated in Eq. (31): z = round(rand × (N - 1) + 1 (31) Crayfish compete over the cave during the competition stage. Each crayfish, denoted as Xi, adjusts its position depending on where another crayfish is located, Xz as described in Eq. (30). This adjustment of positions expands the search range of the COA algorithm, enhancing its exploration ability. _The exploitation stage (foraging stage)_ When the Temp ≤ 30 °C, it seems to be appropriate for feeding crayfish. In this case, the crayfish will keep moving in the direction of the food supply. Once they find the food, crayfish will assess its size. Crayfish will use their claws to rip apart food if it is deemed to be excessively large. Then, they will alternately use their two remaining walking feet to consume their food. Food location, denoted as Xfood, is defined as follows: Xfood = XG (32) The food size _Q_ is defined as: Q = C3 × rand × (fitnessi/fitnessfood) (33) Here, C3 refers the factor of food, which represents the largest food size and has a constant value of 3. " fitnessi " refers the ith crayfish’s fitness value, while “ _fitnessfood_ ” refers the food location’s fitness value. The crayfish uses the Determine the temperature Compute fitness value Set parameters and Start using Eq. (14) and obtain _XG and XL_ initialize the population using Eq. (14) Compute fitness value and obtain _XG and XL_ Crayfish shreds food using Eq. (23) While temp <30 Yes No The food intake _P_ and food size _Q_ are While Yes The food intake _P_ and food size _Q_ are While _Q_ <2 obtained using Eq. (15) and Eq. (22) using Eq. (24) _Foraging stage_ Determine cave _Xshade_ using Eq. (16) No Crayfish foraging using Eq. (25) Crayfish foraging _t=t+1_ While _rand > 0.5_ No Crayfish conducts the summer resort stage using Eq. (17) <u>Yes</u> Crayfish compete for caves using Update fitness values _XG_ _and XL_ _Summer resort stage_ Eq. (20) No While _t > T_ Yes End Figure 10. The flow chart of the COA ­algorithm <sup>40</sup> . largest food’s quantity as a benchmark for determining the size of food. When Q surpasses ( C3+1)/2, it implies a large amount of the food. Here, the crayfish is going to utilize their first claw foot for ripping the food. The mathematical equation representing this action is provided as follows: <u>−1</u> Q Xfood = exp <u>−Q1</u> × Xfood (34) Q × Xfood This mechanism enables crayfish to adapt their feeding behavior depending on the size of the food available, ensuring efficient consumption and utilization of resources. When the food becomes crumbly and smaller, the crayfish will pick it up with their second and third paws alternatively and put it in their mouth. A sine and cosine function combination is utilized to describe this alternating process. Furthermore, the crayfish’s food intake is related to the food they get. Foraging is calculated as follows: Xi <sup>t</sup>, <sup>+</sup> j <sup>1</sup> = Xi <sup>t</sup>,j <sup>+ Xfood</sup> <sup>× p × (cos(2 × π</sup> <sup>× rand) −</sup> <sup>sin(2 × π × rand)</sup> (35) i <sup>t</sup>, <sup>+</sup> j <sup>1</sup> = Xi <sup>t</sup> i <sup>t</sup>,j <sup>+ Xfood</sup> <sup>× p × (cos(2 × π</sup> <sup>× rand) −</sup> <sup>sin(2 × π × rand)</sup> When Q ≤ ( C3+1)/2, the crayfish only needs to proceed forward to the food and devour it immediately. The equation for this behavior is provided as follows: × p + p × rand × Xi <sup>t</sup>,j Xi <sup>t</sup>, <sup>+</sup> j <sup>1</sup> = Xi <sup>t</sup>,j <sup>−</sup> <sup>Xfood</sup> × p + p × rand × Xi <sup>t</sup>,j (36) i,j i,j = Xi <sup>t</sup> i <sup>t</sup>,j <sup>−</sup> <sup>Xfood</sup> Crayfish use a variety of feeding strategies during the foraging stage, which are determined by their food size, denoted as Q . The food location Xfood represents the optimal solution in this context. If the food Q ’s size is appropriate for crayfish feeding, they will approach the food and consume it. However, if Q is too large, it shows that there is a significant difference between the optimal solution and the crayfish. In such cases, Xfood needs to be adjusted to reduce the difference as well as moving it up close to the food. Furthermore, the randomness of the crayfish food intake enhancement algorithm is under executive control. This ensures that the crayfish can approach the optimal solution more effectively during the foraging stage. Through this process, the COA algorithm gradually converges towards the optimal solution, enhancing its exploitation ability and achieving good convergence performance. Here, Fig. 10 depicts the COA method’s flowchart. Ethical approval This article does not contain any studies with human participants or animals performed by any of the authors. Execution and results discussion In this work, a supplementary control scheme called (fuzzy-PID) + (T I <sup>�</sup> D <sup>µ</sup> ) is proposed as well as implemented for the analyzed power grid. According to the merits of fuzzy logic and fractional order schemes, the proposed controller outperforms superior rejection of existing disturbances by dampening all low- and high-frequency disruptions. This present study addresses the presence of high renewables penetration in the power grid. Multiple scenarios are scrutinized to evaluate how well the suggested control approach coordinates several different controllers. The proposed algorithm’s performance is additionally assessed in comparison to different techniques. To optimize the suggested controller, the COA technique is employed to alleviate system frequency excursions. The simulations are conducted using MATLAB/SIMULINK® program (R2016a) on a computer with specific hardware specifications. For optimizing the proposed control structure, an m-file containing the original COA algorithm code and paired with the stipulated power grid model is employed. The several simulation scenarios are executed on a PC with the following specifications: 8.00 GB of RAM with a 2.60 GHz Intel Core i5 processor. Furthermore, the frequency stability assessing takes into consideration varied operational conditions in the scenarios listed below: _Scenario A_ Evaluating the analyzed power grid’s performance with different varied load pattern profiles. _Scenario B_ Evaluating the examined power grid’s performance involving high renewables penetration, aiming to examine the grid’s capability to handle this issue. _Scenario C_ Evaluating the suggested controller’s robustness in real-time for stability and reliability using the IEEE-39 bus system. The validation includes considering the impact of SLD. _Scenario D_ Evaluating the efficacy of the recommended controller utilizing a real-time IEEE-39 bus system, considering high renewables penetration within the system, to assess its effectiveness with the goal to attain dependability and stability. _Scenario E_ Evaluating the performance of the proposed controller under varying CDT conditions before and after the LFC in the IEEE-39 bus system. This evaluation also considers high renewable energy penetrations. _Scenario F_ Evaluating the proposed strategy’s effectiveness by comparing the effectiveness of the IEEE 39 buses system with and without the proposed strategy, considering high renewables penetration. _Scenario G_ Stability analysis of the proposed (fuzzy-PID) + (T I <sup>�</sup> D <sup>µ</sup> ) controller. When optimizing the proposed (fuzzy-PID) + (T I <sup>�</sup> D <sup>µ</sup> ) controller using the COA algorithm, certain arrangements should be considered. These include employing 30 search agents and performing 50 iterations. Figure 11 shows the obtained convergence curve, which provides insights into the investigated power grid’s performance with the recommended COA-based controller. It should be noted that the presented convergence curve in the figure is obtained assuming a 1% SLD occurring to area-a at t = 10 s within the examined power grid, without considering a high renewables penetration. Whereas, the behavior of proposed controller based on COA is summarized as beginning with a value of the objective function near 0.00201 and dropping with each attempt until it achieves a value near 0.00188. _Scenario A_ Evaluating the analyzed power grid’s performance with different varied load pattern profiles. The following scenario is intended to provide an initial comparison for accurately verifying the suggested controller’s efficiency and algorithm in achieving frequency stabilization of the analyzed power grid. To conduct a more detailed analysis, a comparison is made among various aforementioned published controllers. _Case A.1_ In this case, it is assumed that area-a of the assessed power grid includes a step load. The purpose is to assess the effectiveness of the COA algorithm in addressing the frequency stability issue through the use of the supplementary control loop. Assuming a step load of 1% magnitude at t = 10 s, representing either the disconnection of generation power plants or the disconnection of a variety of electrical loads. The obtained controller parameters for the proposed controller and the other mentioned controllers are presented in Table 4. Additionally, the system’s performance is depicted in Fig. 12. The values of maximum overshoots ( Osh ) and maximum undershoots ( Ush ) obtained from the various considered dynamic responses of the analyzed power grid using the recommended controller relied on the COA method are considerably lower than the results obtained with other mentioned controllers via various different 0.00202 0.002 0.00198 0.00196 0.00194 0.00192 0.0019 0.00188 0.00186 0.00184 0.00182 0.0018 1 3 5 7 9 11 13 15 17 19 21 23 25 27 29 31 33 35 37 39 41 43 45 47 49 Iteration No. Figure 11. Obtained convergence curve of the suggested controller tuned by the COA method. <u>Controller structures</u> <u>Thermal unit</u> <u>Hydro unit</u> <u>Gas unit</u> Objective function value <u>(</u> _<u>ITAE</u>_ <u>)</u> <u>PID-optimized via ­AOA</u> <sup>18</sup> kp = 10, ki = 1.5975, kd = 2.7449 kp = 1.5975, ki = 0.0837, kd = 0.0875 kp = 10, ki = 10, kd = 1.2779 <u>0.189</u> kp = 8.9645, ki = 9.9979, kd = 9.7397, FOPID-optimized via ­ESAOA <sup>18</sup> <u>λ = 0.7266, µ = 0.8519</u> kp1 = 5, kd1 = 5, kp2 = 5, PD-PI- optimized via ­HHO <sup>3</sup> ki1 = 5 kp = 6.6278, ki = 9.1570, kd = 4.631, <u>λ = 0.587, µ = 0.0887</u> kp = 9.7594, ki = 9.9997, kd = 7.976, 0.1233 <u>λ = 0.9159, µ = 0.3775</u> kp1 = 5, kd1 = 0.4447, kp2 = 5, ki1 = kp1 = 5, kd1 = − 5, kp2 = 5 <sup>,</sup> ki1 = 5 0.04312 <u>− 2.6257</u> kp1 = 8.3087, kd1 = 7.8085, µ = 0.4372, kp2 = 7.6906, ki1 = <u>9.3538, λ = 0.13835</u> k1 = 9.9962, k2 = 10, k3 = 9.984, k4 = 4.039, kt = 5.5703, ki = 10, kd = 9.987, λ = 0.3176, µ = 0.3844, _n_ = 1 kp1 = 0.4128, kd1 = 4.8394, µ = 0.6828, kp2 = 1.8088, ki1 = 0.03477 <u>0.95754, λ = 0.82713</u> k1 = 10, k2 = 9.9846, k3 = 7.561, k4 = 1.6455, kt = 6.771, ki = 9.9041, kd = 8.2064, λ = 0.8804, µ = 1×e <sup>−8</sup>, _<u>n</u>_ <u>= 4.25</u> FO-(PD-PI)- optimized via ­MRFO <sup>3</sup> Fuzzy-PID + (T I <sup>�</sup> D <sup>µ</sup> )- optimized via COA kp1 = 8.4889, kd1 = 4.7798, µ = 0.888, kp2 = 3.3705, ki1 = 9.1858, <u>λ = 0.63405</u> k1 = 10, k2 = 9.9229, k3 = 6.923, k4 = 10, kt = 10, ki = 9.9827, kd = 5.3442, λ = 0.7279, µ = 1×e <sup>−8</sup>, _n_ = 4.682 0.00188 Table 4. Optimal values of various optimized controllers. <u>10</u> <sup>-3</sup> 0 ~~PID based AOA [18]~~ FOPID based ESAOA [18] <u>PD-PI based HHO [3]</u> <u>FO-(PD-PI) based MRFO [3]</u> <u>Fuzzy-PID+(TI</u> <sup>λ</sup> <u>D</u> <sup>µ</sup> <u>) based COA</u> -2 -4 -6 <u>1% SLP</u> -8 -10 0 -1 0 5 10 15 20 25 30 35 40 Time (sec) <u>10</u> <sup>-3</sup> 1% SLP ~~PID based AOA [18]~~ FOPID based ESAOA [18] PD-PI based HHO [3] ~~FO-(PD-PI) based MRFO [3]~~ Fuzzy-PID+(TI <sup>λ</sup> D <sup>µ</sup> ) based COA -2 -3 -4 0 -2 -4 -6 -8 0 5 10 15 20 25 30 35 40 Time (sec) <u>10</u> <sup>-4</sup> ~~1% SLP~~ <u>PID based AOA [18]</u> ~~FOPID based ESAOA [18]~~ PD-PI based HHO [3] ~~FO-(PD-PI) based MRFO [3]~~ Fuzzy-PID+(TI <sup>λ</sup> D <sup>µ</sup> ) based COA 0 5 10 15 20 25 30 35 40 Time (sec) -10 -12 Figure 12. LFC controllers’ dynamic responses to step load disruption for Case A.1. <u>Controller structures</u> <u>Considered dynamic response of (</u> - fa ) <u>Considered dynamic response of (</u> - fb ) Considered dynamic response <u>of (</u> - Ptie) PID-optimized via ­AOA <sup>18</sup> FOPID-optimized via ­ESAOA <sup>18</sup> PD-PI-optimized via ­HHO <sup>3</sup> FO-(PD-PI)-optimized via ­MRFO <sup>3</sup> Fuzzy-PID + (T I <sup>�</sup> D <sup>µ</sup> )-optimized via COA Osh = 1.158 Osh = 0.0209 Osh = 0.01107 Ush = − 11.42 Ush = − 4.443 Ush = − 1.249 Osh = 0.0802 Osh = 0.0018 Osh = 0.00109 Ush = − 8.344 Ush = − 2.456 Ush = − 0.7403 Osh = 0.7113 Osh = 0.02308 Osh = 0.0137 Ush = − 5.06 Ush = − 0.760 Ush = − 0.2735 Osh = 0.0249 Osh = 0 Osh = 0 Ush = − 3.734 Ush = − 0.4837 Ush = − 0.1623 Osh = 0.1983 Osh = 0.0203 Osh = 0.0083 Ush = − 0.4975 Ush = − 0.1839 Ush = − 0.08528 Table 5. Specifications of the analyzed system’s transient response for scenario A.1. All values are multiplied by ( 10 <sup>−3</sup> ). - fa - fb - Ptie <u>Controller structures</u> Ush Osh Ush Osh Ush Osh <u>FOPID-optimized via ­ESAOA</u> <sup>18</sup> <u>26.93</u> <u>93.07</u> <u>44.72</u> <u>91.39</u> <u>40.73</u> <u>90.15</u> <u>PD-PI-optimized via ­HHO</u> <sup>3</sup> <u>55.69</u> <u>38.58</u> <u>82.89</u> <u>10.43</u> <u>78.1</u> <u>23.76</u> <u>FO-(PD-PI)-optimized via ­MRFO</u> <sup>3</sup> <u>67.3</u> <u>97.84</u> <u>89.11</u> <u>100</u> <u>87</u> <u>100</u> <u>Fuzzy-PID + (T</u> I <sup>�</sup> D <sup>µ</sup> <u>)-optimized via COA</u> <u>95.64</u> <u>82.88</u> <u>95.86</u> <u>2.87</u> <u>93.17</u> <u>25.02</u> Table 6. Percentage improvements in Osh and Ush for Case A.1. Optimal percentage values are highlighted in bold format. techniques, as shown in Fig. 12. Furthermore, Table 5 provides an in-depth overview of the system performance in Case A.1. Then, Table 6 further highlights the percentage improvements in Osh and Ush for this specific case, illustrating the enhancements achieved compared to the previous controllers. _Case A.2_ A series SLD pattern is applied in this case to assess the performance of the proposed (fuzzyPID) + (T I <sup>�</sup> D <sup>µ</sup> ) controller. This pattern involves a succession of forced switches of generators or outages of connected loads, which can potentially lead to power grid instability. Figure 13 depicts the series SLD form. Then, Fig. 14 presents the system’s various dynamic responses for this case. Figure 14 illustrates that the maximum Osh and maximum Ush values obtained from the system’s dynamic responses using the proposed (fuzzy-PID) + (T I <sup>�</sup> D <sup>µ</sup> ) controller relied on COA are significantly lower than the results obtained from the aforementioned published controllers. Furthermore, Table 7 provides the precise values of Osh and Ush for the power flowing in the tie-line and frequencies for both areas. Additionally, Table 8 highlights the system’s overall improvement percent achieved in this case. _Case A.3_ Additionally, in area-a of the analyzed power grid, a random load fluctuation form is assumed, occurring at t = 100 s. This form represents a wide range of disruptions in series in industrially interconnected loads, producing similar grid effects, such as grid instability and the occurrence of blackouts. Figure 15 clarifies the applicable RLD pattern. Furthermore, Fig. 16 provides a comparative analysis of the examined power grid’s 0.05 ~~<u><mark>The series SLD pattern</mark></u>~~ 0.04 0.03 0.02 0.01 0 0 100 200 300 400 500 600 Time (sec) Figure 13. The implemented area-a series SLD form. 0.01 0.005 0 -0.005 -0.01 -0.015 ~~PD-PI based HHO [3]~~ FO-(PD-PI) based MRFO [3] <u>Fuzzy-PID+(TI</u> <sup><u>λ</u></sup> <u>D</u> <sup><u>µ</u></sup> <u>) based COA</u> 0 100 200 300 400 500 600 Time (sec) <u>10</u> <sup>-3</sup> 1 0 ~~PD-PI based HHO [3]~~ FO-(PD-PI) based MRFO [3] Fuzzy-PID+(TI <sup>λ</sup> D <sup>µ</sup> ) based COA 0 100 200 300 400 500 600 Time (sec) <u>10</u> <sup>-4</sup> -1 -2 -3 4 2 0 -2 ~~PD-PI based HHO [3]~~ <u>FO-(PD-PI) based MRFO [3]</u> -4 ~~Fuzzy-PID+(TI~~ <sup>~~λ~~</sup> ~~D~~ <sup>~~µ~~</sup> ~~) based COA~~ -6 -8 0 100 200 300 400 500 600 Time (sec) Figure 14. LFC controllers’ dynamic responses to series step load disruption for Case A.2. <u>Controller structures</u> <u>Considered dynamic response of (</u> - fa ) <u>Considered dynamic response of (</u> - fb ) Considered dynamic response <u>of (</u> - Ptie) PD-PI-optimized via HHO <sup>3</sup> FO-(PD-PI)-optimized via ­MRFO <sup>3</sup> Fuzzy-PID + (T I <sup>�</sup> D <sup>µ</sup> )-optimized via COA Osh = 10.121 Osh = 1.52 Osh = 0.5469 Ush = − 15.181 Ush = − 2.28 Ush = − 0.82035 Osh = 7.45 Osh = 0.94914 Osh = 0.31477 Ush = − 11.203 Ush = − 1.451 Ush = − 0.48686 Osh = 1.12 Osh = 0.3051 Osh = 0.1670 Ush = − 1.817 Ush = − 0.5570 Ush = − 0.2364 Table 7. Specifications of the analyzed system’s transient response for scenario A.2. All values are multiplied by ( 10 <sup>−3</sup> ). <u>Controller structures</u> - fa - fb - Ptie Ush Osh Ush Osh Ush Osh <u>FO-(PD-PI)-optimized via ­MRFO</u> <sup>3</sup> <u>26.2</u> <u>26.39</u> <u>36.36</u> <u>37.56</u> <u>40.65</u> <u>42.44</u> <u>Fuzzy-PID + (T</u> I <sup>�</sup> D <sup>µ</sup> <u>)-optimized via COA</u> <u>88.03</u> <u>88.93</u> <u>75.57</u> <u>79.93</u> <u>71.18</u> <u>69.46</u> Table 8. Percentage improvements in Osh and Ush for Case A.2. Optimal percentage values are highlighted in bold format. dynamic performance according to the recommended controller scheme and the other two aforementioned controllers. Figure 16 shows that the maximum Osh and maximum Ush values obtained from the considered power grid’s dynamic responses utilizing the recommended (fuzzy-PID) + (T I <sup>�</sup> D <sup>µ</sup> ) controller relied on COA are significantly lower than the values obtained from the aforementioned published controllers. Furthermore, Table 9 shows the precise values of Osh and Ush for the power flowing in the tie-line and frequencies for both areas. Table 10 also shows the system’s overall improvement percent. _Scenario B_ Evaluating the examined power grid’s performance involving high renewables penetration, aiming to examine the grid’s capability to handle this issue. The scenario’s purpose is to examine the disturbances caused by a significant penetration of renewables in both of the analyzed power grid’s areas. Specifically, area-a has been incorporated by 10 windmills and 10 PV power plants at 100 min and 400 min, respectively, utilizing a random demand fluctuation pattern. In area-b, the identical integration parameters for the penetration of renewables are applied; PV power plants integrate at 700 min and windmills at 600 min. The generated power from the RESs integrated into the analyzed power grid, as well as various system dynamic responses, are elucidated in Figs. 17,18, respectively. Furthermore, Table 11 shows the different acquired values of Osh and Ush for the power flowing in the tie-line and frequencies for both areas applying all of the previously mentioned controllers. Table 12 also clarifies the system’s overall improvement percent for this case. Scenario C: Evaluating the suggested controller’s robustness in real-time for stability and reliability using the IEEE-39 bus system. The validation includes considering the impact of SLD. For evaluating the suggested (fuzzy-PID) + (T I <sup>�</sup> D <sup>µ</sup> ) controller approach for load frequency management, the standard real-world New England IEEE-39 bus system is applied in this scenario. The standard real-world New England IEEE-39 bus system consists of ten reheat thermal generators, nineteen loads, thirty-eight transmission lines, and twelve transformers, as shown in Fig. 19. The system is divided into three interconnected areas, namely area 1, area 2, and area 3, with respective rated area power capacities of Pr1 = 1500MW, Pr2 = 2000MW, and Pr3 = 1500MW . Appendix B provides the system parameter values. In this approach, each area’s generating units are substituted with a single equivalent generation unit. The following equations are used to calculate the equivalent inertia constant and speed regulation ­parameters <sup>54</sup> : Heqv = <sup><u>H1S1 + H2S2 + · · · + HnSn</u></sup> (37) Ssystem <u>1</u> Revq = <u>1</u> <u>S1</u> + <sup><u>1</u></sup> <u>S2</u> + · · · + <sup><u>1</u></sup> <u>Sn</u> (38) + <sup><u>1</u></sup> R2 <u>�</u> + · · · + <sup><u>1</u></sup> Rn <u>�</u> <u>�</u> HZ/MW pu <u>1</u> R1 <u>S1</u> Ssystem <u>�</u> R2 <u>S2</u> Ssystem <u>�</u> Rn <u>Sn</u> Ssystem <u>�</u> Ssystem = S1 + S2 + · · · + Sn (39) 0.025 ~~<u><mark>The RLD pattern</mark></u>~~ 0.02 0.015 0.01 0.005 0 0 100 200 300 400 500 600 Time (sec) Figure 15. The implemented area-a RLD form. <u>10</u> <sup>-3</sup> 4 2 0 -2 -4 -6 -8 5 <u>PD-PI based HHO [3]</u> <u>FO-(PD-PI) based MRFO [3]</u> <u>Fuzzy-PID+(TI</u> <sup>~~λ~~</sup> <u>D</u> <sup>~~µ~~</sup> <u>) based COA</u> 0 100 200 300 400 500 600 Time (sec) <u>10</u> <sup>-4</sup> PD-PI based HHO [3] FO-(PD-PI) based MRFO [3] ~~Fuzzy-PID+(TI~~ <sup>~~λ~~</sup> ~~D~~ <sup>~~µ~~</sup> ~~) based COA~~ 0 100 200 300 400 500 600 Time (sec) <u>10</u> <sup>-4</sup> PD-PI based HHO [3] FO-(PD-PI) based MRFO [3] <u>Fuzzy-PID+(TI</u> <sup>λ</sup> <u>D</u> <sup>µ</sup> <u>) based COA</u> 0 100 200 300 400 500 600 Time (sec) 0 -5 -10 2 0 -2 -4 Figure 16. LFC controllers’ dynamic responses to RLD for Case A.3. Considered dynamic response <u>of (</u> - f b ) Considered dynamic response <u>of (</u> - Ptie) <u>Controller structures</u> PD-PI-optimized via ­HHO <sup>3</sup> FO-(PD-PI)-optimized via ­MRFO <sup>3</sup> Fuzzy-PID + (T I <sup>�</sup> D <sup>µ</sup> )-optimized via COA Considered dynamic response <u>of (</u> - f a ) Osh = 5.06 Osh = 0.7597 Osh = 0.27321 Ush = − 7.591 Ush = − 1.14 Ush = − 0.41013 Osh = 3.722 Osh = 0.4714 Osh = 0.1557 Ush = − 5.606 Ush = − 0.72973 Ush = − 0.24566 Osh = 0.664 Osh = 0.20182 Osh = 0.08012 Ush = − 0.795 Ush = − 0.3076 Ush = − 0.1574 Table 9. Specifications of the analyzed system’s transient response for scenario A.3. All values are multiplied by ( 10 <sup>−3</sup> ). <u>Controller structures</u> - fa - fb - Ptie Ush Osh Ush Osh Ush Osh <u>FO-(PD-PI)-optimized via ­MRFO</u> <sup>3</sup> <u>26.15</u> <u>26.44</u> <u>35.99</u> <u>37.95</u> <u>40.10</u> <u>43.01</u> <u>Fuzzy-PID + (T I</u> <sup>�</sup> D <sup>µ</sup> <u>)-optimized via COA</u> <u>89.53</u> <u>86.88</u> <u>73.02</u> <u>73.43</u> <u>61.62</u> <u>70.67</u> Table 10. Percentage improvements in Osh and Ush for Case A.3. Optimal percentage values are highlighted in bold format. where Si, Ri and Hi refer the specified generation unit’s power rating, the factors of both speed regulation and inertia constant respectively related to i <sup>th</sup> generation units. The simulation results, using the optimized parameters of the suggested controller listed in Table 13, show improved performance compared to previous studies. The frequencies of the three interconnected areas and the power exchange in various tie lines demonstrate shorter settling times, decreased overshoots, and undershoot. Specifically, the suggested controller outperforms the I controller and FO-(PD-PI) controller used ­in <sup>3,54</sup> respectively. Figure 20 displays the distinct SLD profiles experienced by the three interconnected areas. The dynamic responses of the system, presented in Fig. 21, highlight the proposed controller’s substantial performance in minimizing excursions and preserving system stability. Figure 21 depicts that the proposed controller improves the system performance by 96.43% and 94.74% when compared to the I controller and FO-(PD-PI) controller, respectively. Scenario D: Evaluating the efficacy of the recommended controller utilizing a real-time IEEE-39 bus system, considering high renewables penetration within the system, to assess its effectiveness with the goal to attain dependability and stability. Similarly, this scenario involves the suggested controller’s real-time validation using the IEEE-39 bus system, but with a specific focus on diminishing frequency excursions. The evaluation takes into account the high renewable energy penetrations within the system as depicted in Fig. 19. In this study, ten wind power plants and ten PV power plants have penetrated into areas 1 and 2 of the IEEE-39 bus system via switches (s1) and (s2) respectively. Figure 22 depicts a fair maiden comparison clarifying the superior performance of the proposed controller in attaining the system frequency to a closely predefined value (≈50 HZ) over the performance of PID controller tuned by COA. Table 14 presents the obtained optimal PID controller parameters optimized by COA. Figure 22 shows that the proposed controller strengthens the system performance by 75.19% when compared to the PID controller tuned via COA considering high renewables penetration in the studied system. Scenario E: Evaluating the performance of the proposed controller under varying CDT conditions before and after the LFC in the IEEE-39 bus system. This evaluation also considers high renewable energy penetrations. To validate the proposed controller, experiments were conducted on the IEEE-39 bus system. The system was designed to incorporate high penetration levels RESs. In these experiments, different CDT values were introduced before and after the supplementary controllers. When the CDT challenge is executed, Fig. 23 provides a sufficient comparison of the considered system dynamic responses. The proposed controller demonstrates its capability to effectively handle the perturbations caused by RESs and the challenges posed by CDT. It successfully maintains the frequencies of different areas within predefined values. This highlights the proposed controller’s durability in addressing the complexities introduced by RESs and communication delays, ultimately ensuring stable and reliable operation of the system. Scenario F: Evaluating the proposed strategy’s effectiveness by comparing the effectiveness of the IEEE 39 buses system with and without the proposed strategy, considering high renewables penetration. 0.3 <u>Wind power in Area aWind power in Area b</u> 0.25 0.2 0.15 0.1 0.05 0 PV power in Area a <u>PV power in Area b</u> 0 200 400 600 800 1000 1200 1400 Time (min) Figure 17. The high renewable energy penetration’s generated output power in areas ( a ) and ( b ) for Case B. 0.03 <u>PD-PI based HHO [3]</u> FO-(PD-PI) based MRFO [3] Fuzzy-PID+(TI <sup>λ</sup> D <sup>µ</sup> ) based COA 0.02 0.01 0 -0.01 connect wind power area-b connect PV power area-a <u>connect wind power area-a</u> connect PV power area-b 0 200 400 600 800 1000 1200 1400 Time (min) 0.03 <u>PD-PI based HHO [3]</u> FO-(PD-PI) based MRFO [3] Fuzzy-PID+(TI <sup>λ</sup> D <sup>µ</sup> ) based COA 0.02 0.01 0 -0.01 connect wind power area-b connect PV power area-a <u>connect wind power area-a</u> connect PV power area-b 0 200 400 600 800 1000 1200 1400 Time (min) <u>10</u> <sup>-3</sup> 5 <u>PD-PI based HHO [3]</u> FO-(PD-PI) based MRFO [3] connect wind power area-b Fuzzy-PID+(TI <sup>λ</sup> D <sup>µ</sup> ) based COA connect wind power area-b connect PV power area-b 0 -5 0 200 400 600 800 1000 1200 1400 Time (min) connect PV power area-a connect wind power area-a Figure 18. LFC controllers’ dynamic responses to high penetration levels of RESs and RLD pattern for Case B. Considered dynamic response <u>of (</u> - f b ) Considered dynamic response <u>of (</u> - Ptie) <u>Controller structures</u> PD-PI-optimized via ­HHO <sup>3</sup> FO-(PD-PI)-optimized via ­MRFO <sup>3</sup> Fuzzy-PID + (T I <sup>�</sup> D <sup>µ</sup> )-optimized via COA Considered dynamic response <u>of (</u> - f a ) Osh = 28.742 Osh = 28.814 Osh = 4.082 Ush = − 7.54 Ush = − 6.32 Ush = − 4.036 Osh = 17.572 Osh = 17.774 Osh = 2.559 Ush = − 5.395 Ush = − 1.539 Ush = − 2.45 Osh = 8.115 Osh = 8.082 Osh = 1.129 Ush = − 2.334 Ush = − 0.7005 Ush = − 1.167 Table 11. Specifications of the analyzed system’s transient response for scenario B. All values are multiplied by ( 10 <sup>−3</sup> ). <u>Controller structures</u> - fa - fb - Ptie Ush Osh Ush Osh Ush Osh <u>FO-(PD-PI)-optimized via ­MRFO</u> <sup>3</sup> <u>28.45</u> <u>38.86</u> <u>75.65</u> <u>38.31</u> <u>39.3</u> <u>37.31</u> <u>Fuzzy-PID + (T I</u> <sup>�</sup> D <sup>µ</sup> <u>)-optimized via COA</u> <u>69.05</u> <u>71.77</u> <u>88.92</u> <u>71.95</u> <u>71.09</u> <u>72.34</u> Table 12. Percentage improvements in Osh and Ush for Case B. Optimal percentage values are highlighted in bold format. G8 Area 1 28 29 RFB 1 21 S1 Wind farm 25 26 17 16 15 27 G9 S3 G10 30 2 5 8 24 38 G7 G1 1 9 3 4 10 G3 14 S4 39 6 13 19 G5 20 33 RFB 2 7 G6 35 22 23 37 18 S2 Area 2 36 34 G4 12 11 32 Area 3 PV array 31 G2 Figure 19. The standard IEEE-39 bus system schematic diagram. <u>Controller structures</u> <u>Local area 1</u> <u>Local area 2</u> <u>Local area 3</u> k1 = 10, k2 = 1.1999, k3 = 3.7147, k4 = 10, kt = 9.6025, ki = 0.8318, kd = 3.6435, λ = 0.9964, <u>µ = 0.5549,</u> _<u>n</u>_ <u>= 1.2751</u> k1 = 3.8123, k2 = 6.779, k3 = 9.8212, k4 = 5.2815, kt = 9.7263, ki = 2.434841, kd = 7.913, <u>λ = 0.5881, µ = 0.1521,</u> _<u>n</u>_ <u>= 6.9069</u> Fuzzy-PID + (T I <sup>�</sup> D <sup>µ</sup> )-optimized via COA k1 = 6.6413, k2 = 8.996, k3 = 6.1475, k4 = 5.4056, kt = 4.8275, ki = 5.3264, kd = 5.98, <u>λ = 0.8059, µ = 0.4159,</u> _<u>n</u>_ <u>= 8.0807</u> Table 13. The optimal optimized coefficients of the recommended controller for scenario C . In this specific scenario, the IEEE-39 bus system performance is examined while considering a significant integration of RESs. Whereas, wind energy is integrated into area 1 at t = 100 min, and PV energy is integrated into area 2 at t = 200 min. The proposed coordinated strategy involves the incorporation of CRFBs systems in area 1 and area 2. These CRFBs systems work collaboratively by closing switches (s3) and (s4) over different simulation durations. When wind energy penetrates area 1, the CRFBs included in area 1 share their active power with the assessed power system. Additionally, when PV energy penetrates area 2, the CRFBs included in area 2, share their extra active power with the assessed power system. The CRFBs utilize stored energy to enhance LFC and optimize the overall performance of the power system under unusual circumstances. The major objective is to regulate the system frequency, which is prone to considerable fluctuations as a result of the high renewables penetration in both areas. Table 15 illustrates the PID controller variables that were obtained for the proposed 1 0.8 0.6 0.4 0.2 0 <u><mark>Applying SLP with 0.90 pu</mark></u> <u><mark>Applying SLP with 0.95 pu</mark></u> <mark>Applying SLP with 0.98 pu</mark> <u><mark>Area 1</mark></u> <u><mark>Area 2</mark></u> <u><mark>Area 3</mark></u> 0 20 40 60 80 100 120 140 160 180 200 Time (sec) Figure 20. Different load disturbances applied in the three areas. strategy. Figure 24 depicts the CRFBs systems’-controlled output signal, which denotes the outcome of the active power quantity. Additionally, Fig. 25 compares the total dynamic responses of the entire system in the IEEE-39 bus system with and without the proposed strategy. Figure 25 indicates that the proposed strategy, which includes the LFC besides CRFBs, demonstrates its capability to successfully handle the perturbations caused by RESs in the studied system. It successfully maintains the frequencies of different areas within predefined values. Whereas, the proposed strategy improves the system performance by 50% as compared to without it. _Scenario G_ Stability analysis of the proposed (fuzzy‑PID) + (T _I_ <sup>�</sup> _D_ <sup>µ</sup> ) controller Figure 26 illustrates the bode plot of the loop gains of the analyzed power grid using the proposed (fuzzyPID) + (T I <sup>�</sup> D <sup>µ</sup> ) controller. The magnitude of the gain margin plot is observed to be more stable across all frequencies when employing the proposed controller. Additionally, the phase margin shows an infinite value, indicating that the suggested controller is capable of effectively handling system uncertainties. Conclusion This study has presented significant findings that contribute to power system stability when transitioning from traditional power stations to renewable energy sources (RESs). Firstly, an effective structure has been presented to ensure stable frequency in the power system during this transition. This structure combines the improved load frequency controller (LFC) and controlled redox flow batteries (CRFBs) to effectively manage frequency fluctuations in considered grid. Furthermore, the controller in LFC depend on (fuzzy-PID) + (T I <sup>�</sup> D <sup>µ</sup> ) controller. The proposed controller improves the system performance than more on controller such as (PID, FO-PID, PD-PI, and FO-(PD-PI)) controllers. Furthermore, the proposed controller contributes with CRFBs to maintain the system stability during high renewables. The constraints for this proposed scheme have been determined using the crayfish optimization algorithm. LFC controller effectiveness has been validated by comparing its performance to that of other published controllers. Importantly, the proposed strategy demonstrates the ability to maintain system reliability even during periods of high renewable energy penetration. The authors intend to incorporate more ESSs into the system in future research, ensuring its seamless operation throughout the day. Furthermore, as all generation sources will be renewable, the design process took into account the virtual synchronous generator. Figure 21. LFC controllers’ dynamic responses considering SLD in a standardized IEEE system for Case C. Figure 21. (continued) 50.015 PID based COA Fuzzy-PID+(TI <sup>λ</sup> D <sup>µ</sup> ) based COA 50.01 50.005 50 connect PV power area-2 49.995 <u>connect wind power area-1</u> 0 200 400 600 800 1000 1200 1400 Time (min) 50.01 <u>PID based COA</u> Fuzzy-PID+(TI <sup>λ</sup> D <sup>µ</sup> ) based COA 50.008 50.006 50.004 50.002 ~~connect PV power area-2~~ 50 49.998 <u>connect wind power area-1</u> 0 200 400 600 800 1000 1200 1400 Time (min) 50.01 <u>PID based COA</u> Fuzzy-PID+(TI <sup>λ</sup> D <sup>µ</sup> ) based COA 50.008 50.006 50.004 50.002 connect PV power area-2 50 49.998 <u>connect wind power area-1</u> 0 200 400 600 800 1000 1200 1400 Time (min) Figure 22. LFC controllers’ considered dynamic responses with high renewables penetration in a standardized IEEE system for Case D. <u>Controller structures</u> <u>Local area 1</u> <u>Local area 2</u> <u>Local area 3</u> <u>PID-optimized via COA</u> kp = 9.9789, ki = 8.6957, kd = 6.8607 kp = 8.8642, ki = 2.2517, kd = 3.9077 kp = 2.2822, ki = 0.3942, kd = 2.0487 Table 14. The Optimum optimized PID controller coefficients for scenario D. 50.004 50.003 50.002 50.001 50 49.999 <u>With CDT=0.98s</u> ~~With CDT=0.70s~~ With CDT=0.40s Without CDT connect PV power area-2 <u>connect wind power area-1</u> 0 200 400 600 800 1000 1200 1400 Time (min) 50.0006 With CDT=0.98s With CDT=0.70s <u>With CDT=0.40s</u> 50.0004 ~~Without CDT~~ 50.0002 50 49.9998 49.9996 49.9994 <u>connect PV power area-2</u> connect wind power area-1 0 200 400 600 800 1000 1200 1400 Time (min) 50.0003 With CDT=0.98s With CDT=0.70s With CDT=0.40s Without CDT 50.0002 <u>connect PV power area-2</u> 50.0001 50 49.9999 connect wind power area-1 0 200 400 600 800 1000 1200 1400 Time (min) Figure 23. LFC controllers’ considered dynamic responses with high renewables penetration and CDT challenge in a standardized IEEE system for Case E. <u>Controller Structures</u> <u>Local area 1</u> <u>Local area 2</u> <u>PID-optimized via COA</u> kp = 10, ki = 10, kd = 0.0001 kp = 8.4772, ki = 4.4128, kd = 5.4788 Table 15. The optimum values of the PID controller tuned by COA for the proposed strategy. 0.3 ~~<u>Wind power in Area 1</u>~~ PV power in Area 2 0.25 0.2 0.15 0.1 0.05 0 0 200 400 600 800 1000 1200 1400 Time (min) Figure 24. The controllable generated power of the CRFBs systems in both local areas for Case F. 50.003 50.002 50.001 50 49.999 LFC based fuzzy-PID + (TI <sup>λ</sup> D <sup>µ</sup> ) <u>Proposed strategy</u> <u>connect PV power area-2</u> ~~<u>connect wind power area-1</u>~~ 0 200 400 600 800 1000 1200 1400 Time (min) 50.0006 LFC based fuzzy-PID + (TI <sup>λ</sup> D <sup>µ</sup> ) Proposed strategy 50.0004 50.0002 50 49.9998 connect PV power area-2 49.9996 connect wind power area-1 49.9994 0 200 400 600 800 1000 1200 1400 Time (min) LFC based fuzzy-PID + (TI <sup>λ</sup> D <sup>µ</sup> ) 50.0002 ~~Proposed strategy~~ connect PV power area-2 50.0002 50.0001 50.0001 50 50.0000 <u>connect wind power area-1</u> 0 200 400 600 800 1000 1200 1400 Time (min) Figure 25. LFC controllers’ considered dynamic responses considering a coordinated strategy besides high renewables penetration in the IEEE-39 bus system for Case F. 100 0 -100 -200 combining (fuzzy-PID)+TI <sup>λ</sup> D <sup>µ</sup> based COA -45 -90 -135 -180 -225 -270 10 <sup>-2</sup> 10 <sup>0</sup> 10 <sup>2</sup> 10 <sup>4</sup> Frequency (rad/sec) Figure 26. The bode plot of the power grid loop gains with the proposed (fuzzy-PID) + (T I <sup>�</sup> D <sup>µ</sup> ) controller. Data availability All data generated or analysed during this study are included in this published article and its supplementary information file. Received: 24 December 2023; Accepted: 26 March 2024 References 1. Elkasem, Ahmed. H. A., Kamel, S., Khamies, M., Kabalci, E. & Shahinzadeh, H. Frequency Stability Enhancement of Hybrid Multi-area Power Grid Considering High Renewable Energy Penetration Using TID Controller. 2022 4th Global Power, Energy [and Communication Conference (GPECOM) https://​doi.​org/​10.​1109/​gpeco​m55404.​2022.​98157​29. (2022).](https://doi.org/10.1109/gpecom55404.2022.9815729) 2. Meng, J. _et al._ Dynamic frequency response from electric vehicles considering travelling behavior in the Great Britain power system. _Appl. Energy_ 162, 966–979 (2016). 3. Elkasem, A. H. A., Khamies, M., Hassan, M. H., Nasrat, L. & Kamel, S. Utilizing controlled plug-in electric vehicles to improve hybrid power grid frequency regulation considering high renewable energy penetration. _Int. J. Electr. Power Energy Syst._ 152, 109251 (2023). 4. Ahmed, M., Khamies, M. & Kamel, S. A robust control approach integrating with optimal fuel cells to strengthen the frequency stability of a diverse-sources power system including renewables. _ISA Trans._ 143, 420–439 (2023). 5. Elkasem, A. H. A., Khamies, M., Hassan, M. H., Agwa, A. M. & Kamel, S. Optimal design of TD-TI controller for LFC considering renewables penetration by an improved chaos game optimizer. _Fract. Fract._ 6, 220 (2022). 6. Ahmed, M., Khamies, M., Hassan, M. H., Domínguez-García, J. L. & Kamel, S. A modified controller scheme for frequency stability enhancement of hybrid two-area power grid with renewable energy sources. _IET Renew. Power Gener._ 17, 1035–1067 (2022). 7. Khezri, R., Oshnoei, A., Oshnoei, S., Bevrani, H. & Muyeen, S. M. An intelligent coordinator design for GCSC and AGC in a two area hybrid power system. _Appl. Soft Comput._ 76, 491–504 (2019). 8. Khamies, M., Kamel, S., Hassan, M. H. & Elnaggar, M. F. A developed frequency control strategy for hybrid two-area power system with renewable energy sources based on an improved social network search algorithm. _Mathematics_ 10, 1584 (2022). 9. Ogar, V. N., Hussain, S. & Gamage, K. A. A. Load frequency control using the particle swarm optimisation algorithm and Pid controller for effective monitoring of transmission line. _Energies_ 16, 5748 (2023). 10. Zamani, A., Barakati, S. M. & Yousofi-Darmian, S. Design of a fractional order PID controller using GBMO algorithm for load– frequency control with governor saturation consideration. _ISA Trans._ 64, 56–66 (2016). 11. Debbarma, S., Saikia, L. C. & Sinha, N. Automatic generation control using two degree of freedom fractional order PID controller. _Int. J. Electr. Power Energy Syst._ 58, 120–129 (2014). 12. Arya, Y. & Kumar, N. BFOA-scaled fractional order fuzzy PID controller applied to AGC of multi-area multi-source electric power generating systems. _Swarm Evol. Comput._ 32, 202–218 (2017). 13. Mi, Y. _et al._ The sliding mode load frequency control for hybrid power system based on disturbance observer. _Int. J. Electr. Power_ _Energy Syst._ 74, 446–452 (2016). 14. Sharma, G., Panwar, A., Arya, Y. & Kumawat, M. Integrating layered recurrent ANN with robust control strategy for diverse operating conditions of AGC of the power system. _IET Gener. Trans. Distrib._ 14, 3886–3895 (2020). 15. Oshnoei, A., Kheradmandi, M. & Muyeen, S. M. Robust control scheme for distributed battery energy storage systems in load frequency control. _IEEE Trans. Power Syst._ 35, 4781–4791 (2020). 16. Guha, D., Roy, P. K. & Banerjee, S. Maiden application of SSA-optimised CC-TID controller for load frequency control of power systems. _IET Gener. Trans. Distrib._ 13, 1110–1120 (2019). 17. Abdulnasser, G., Ali, A., Shaaban, M. F. & Mohamed, E. E. M. Stochastic multi-objectives optimal scheduling of energy hubs with responsive demands in smart microgrids. _J. Energy Storage_ 55, 105536 (2022). 18. Elkasem, A. H. A., Kamel, S., Hassan, M. H., Khamies, M. & Ahmed, E. M. An eagle strategy arithmetic optimization algorithm for frequency stability enhancement considering high renewable power penetration and time-varying load. _Mathematics_ 10, 854 (2022). 19. Mudi, R. K. & Pal, N. R. A self-tuning fuzzy PI controller. _Fuzzy Sets Syst._ 115, 327–338 (2000). 20. Chang, C. S. & Fu, W. Area load frequency control using fuzzy gain scheduling of PI controllers. _Electr. Power Syst. Res._ 42, 145–152 (1997). 21. Yeşil, E., Güzelkaya, M. & Eksin, İ. Self tuning fuzzy PID type load and frequency controller. _Energy Conversat. Manag._ 45, 377–390 (2004). 22. Ahmadi, S. _et al._ FUZZY aided PID controller is optimized by ga algorithm for load frequency control of multi-source power systems. In _2020 IEEE 18th World Symposium on Applied Machine Intelligence and Informatics (SAMI)_ (eds Ahmadi, S. _et al._ ) (IEEE, [2020). https://​doi.​org/​10.​1109/​sami4​8414.​2020.​91087​59.](https://doi.org/10.1109/sami48414.2020.9108759) 23. Kwatny, H. G., Kalnitsky, K. C. & Bhatt, A. An optimal tracking approach to load-frequency control. _IEEE Trans. Power Appar._ _Syst._ 94, 1635–1643 (1975). 24. Aoki, M. Control of large-scale dynamic systems by aggregation. _IEEE Trans. Automat. Contr._ 13, 246–253 (1968). 25. Sharma, M., Dhundhara, S., Arya, Y. & Prakash, S. Frequency excursion mitigation strategy using a novel COA optimised fuzzy controller in wind integrated power systems. _IET Renew. Power Gener._ 14, 4071–4085 (2020). 26. Ali, T., Malik, S. A., Daraz, A., Aslam, S. & Alkhalifah, T. Dandelion optimizer-based combined automatic voltage regulation and load frequency control in a multi-area, multi-source interconnected power system with nonlinearities. _Energies_ 15, 8499 (2022). 27. Ahmed. H. A., E., Kamel, S., Korashy, A. & Jurado, F. Application of Harris Hawks Algorithm for Frequency Response Enhancement of Two-Area Interconnected Power System with DFIG Based Wind Turbine. 2019 21st International Middle East Power Systems [Conference (MEPCON) https://​doi.​org/​10.​1109/​mepco​n47431.​2019.​90079​91. (2019).](https://doi.org/10.1109/mepcon47431.2019.9007991) 28. Ali, T. _et al._ Load frequency control and automatic voltage regulation in a multi-area interconnected power system using nature inspired computation-based control methodology. _Sustainability_ 14, 12162 (2022). 29. Hamdy, A., Kamel, S., Nasrat, L. & Jurado, F. Frequency stability of two-area interconnected power system with doubly fed induc tion generator based wind turbine. _Power Syst._ [https://​doi.​org/​10.​1007/​978-3-​030-​54275-7_​11 (2020).](https://doi.org/10.1007/978-3-030-54275-7_11) 30. Dhanasekaran, B., Siddhan, S. & Kaliannan, J. Ant colony optimization technique tuned controller for frequency regulation of single area nuclear power generating system. _Microprocess. Microsyst._ 73, 102953 (2020). 31. Hasanien, H. M. Whale optimisation algorithm for automatic generation control of interconnected modern power systems includ ing renewable energy sources. _IET Gener. Trans. Distrib._ 12, 607–614 (2017). 32. Paliwal, N., Srivastava, L. & Pandit, M. Application of grey wolf optimization algorithm for load frequency control in multi-source single area power system. _Evol. Intell._ 15, 563–584 (2020). 33. Kumar, N. K. _et al._ Fuzzy logic-based load frequency control in an island hybrid power system model using artificial bee colony optimization. _Energies_ 15, 2199 (2022). 34. Arya, Y. ICA assisted FTIλDN controller for AGC performance enrichment of interconnected reheat thermal power systems. _J._ _Ambient Intell. Hum. Comput._ 14, 1919–1935 (2021). 35. Shiva, C. K. _et al._ Load frequency stabilization of stand-alone hybrid distributed generation system using QOHS algorithm. _Int. J._ _Numer. Model. Electr. Netw. Dev. Fields_ 35, e2998 (2022). 36. Vigya, Shiva, C. K., Vedik, B. & Mukherjee, V. Comparative analysis of PID and fractional order PID controllers in automatic generation control process with coordinated control of TCSC. _Energy Syst._ 14, 133–170 (2021). 37. Saxena, A., Shiva, C. K., Shankar, R. & Vedik, B. Impacts of wind farms with multi-terminal HVDC system in frequency regulation using quasi-opposition pathfinder algorithm. _Int. J. Syst. Assurance Eng. Manag._ 12, 1434–1446 (2021). 38. Vigya, _et al._ A novel chaotic chimp sine cosine algorithm part-II: Automatic generation control of complex power system. _Chaos,_ _Solitons Fract._ 173, 113673 (2023). 39. Mudi, J., Shiva, C. K. & Mukherjee, V. Quasi-oppositional whale optimization optimized load frequency stabilization of hybrid power systems integrated with electric vehicle. _Adv. Theory Simul._ [https://​doi.​org/​10.​1002/​adts.​20210​0510 (2022).](https://doi.org/10.1002/adts.202100510) 40. Jia, H., Rao, H., Wen, C. & Mirjalili, S. Crayfish optimization algorithm. _Artif. Intell. Rev._ 56, 1919–1979 (2023). 41. Pappachen, A. & Fathima, A. P. Load frequency control in deregulated power system integrated with SMES–TCPS combination using ANFIS controller. _Int. J. Electr. Power Energy Syst._ 82, 519–534 (2016). 42. Pradhan, P. C., Sahu, R. K. & Panda, S. Firefly algorithm optimized fuzzy PID controller for AGC of multi-area multi-source power systems with UPFC and SMES. _Eng. Sci. Technol. Int. J._ 19, 338–354 (2016). 43. Chidambaram, I. A. & Paramasivam, B. Optimized load-frequency simulation in restructured power system with redox flow bat teries and interline power flow controller. _Int. J. Electr. Power Energy Syst._ 50, 9–24 (2013). 44. Oshnoei, S., Oshnoei, A., Mosallanejad, A. & Haghjoo, F. Novel load frequency control scheme for an interconnected two-area power system including wind turbine generation and redox flow battery. _Int. J. Electr. Power Energy Syst._ 130, 107033 (2021). 45. Heshmati, M., Noroozian, R., Jalilzadeh, S. & Shayeghi, H. Optimal design of CDM controller to frequency control of a realistic power system equipped with storage devices using grasshopper optimization algorithm. _ISA Trans._ 97, 202–215 (2020). 46. Peddakapu, K. _et al._ A state-of-the-art review on modern and future developments of AGC/LFC of conventional and renewable energy-based power systems. _Renew. Energy Focus_ 43, 146–171 (2022). 47. Choudhary, R., Rai, J. N. & Arya, Y. Cascade FOPI-FOPTID controller with energy storage devices for AGC performance advance ment of electric power systems. _Sustain. Energy Technol. Assess._ 53, 102671 (2022). 48. Enomoto, K., Sasaki, T., Shigematsu, T. & Deguchi, H. Evaluation study about Redox flow battery response and its modeling. _IEEJ_ _Trans. Power Energy_ 122, 554–560 (2002). 49. Selvaraju, R. K. & Somaskandan, G. Impact of energy storage units on load frequency control of deregulated power systems. _Energy_ 97, 214–228 (2016). 50. Gorripotu, T. S., Sahu, R. K. & Panda, S. AGC of a multi-area power system under deregulated environment using redox flow batteries and interline power flow controller. _Eng. Sci.Technol. Int. J._ 18, 555–578 (2015). 51. Shankar, R., Bhushan, R. & Chatterjee, K. Small-signal stability analysis for two-area interconnected power system with load frequency controller in coordination with FACTS and energy storage device. _Ain Shams Eng. J._ 7, 603–612 (2016). 52. Parmar, K. P. S., Majhi, S. & Kothari, D. P. Load frequency control of a realistic power system with multi-source power generation. _Int. J. Elect. Power Energ. Syst._ 42 [(1), 426–433. https://​doi.​org/​10.​1016/j.​ijepes.​2012.​04.​040 (2012).](https://doi.org/10.1016/j.ijepes.2012.04.040) 53. Hasanien, H. M. & El-Fergany, A. A. Salp swarm algorithm-based optimal load frequency control of hybrid renewable power systems with communication delay and excitation cross-coupling effect. _Electr. Power Syst. Res._ 176, 105938 (2019). 54. Pathak, N. & Hu, Z. Hybrid-peak-area-based performance index criteria for AGC of multi-area power systems. _IEEE Trans. Ind._ _Inform._ 15, 5792–5802 (2019). Acknowledgements The icons used through this paper were developed by Freepik, Amethyst Design, Arkinasi and Smash icons [from www.​flati​con.​com.](https://www.google.com/search?q=www.flaticon.com) Author contributions AHAE contributed to conceptualization, methodology, software; SK contributed to conceptualization, methodology, software; MK contributed to conceptualization, methodology, software; LN contributed to conceptualization, software, writing— original draft preparation. Funding Open access funding provided by The Science, Technology & Innovation Funding Authority (STDF) in cooperation with The Egyptian Knowledge Bank (EKB). Competing interests The authors declare no competing interests. Additional information Supplementary Information [The online version contains supplementary material available at https://​doi.​org/​](https://doi.org/10.1038/s41598-024-58189-2) [10.​1038/​s41598-​024-​58189-2.](https://doi.org/10.1038/s41598-024-58189-2) Correspondence and requests for materials should be addressed to S.K. 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://​creat​iveco​mmons.​org/​licen​ses/​by/4.​0/.](http://creativecommons.org/licenses/by/4.0/) © The Author(s) 2024

섹션 본문 168문단 · 59,072자

(제목 없음)

1Renewable energy sources (RESs) have become integral components of power grids, yet their integration presents challenges such as system inertia losses and mismatches between load demand and generation capacity.These issues jeopardize grid stability.To address this, an effective approach is proposed, combining enhanced load frequency control (LFC) (i.e., fuzzy PID-T I D µ ) with controlled energy storage systems, specifically controlled redox flow batteries (CRFBs), to mitigate uncertainties arising from RES integration.The optimization of this strategy's parameters is achieved using the crayfish optimization algorithm (COA), known for its global optimization capabilities and balance between exploration and exploitation.Performance evaluation against conventional controllers (PID, FO-PID, FO-(PD-PI)) confirms the superiority of the proposed approach in LFC.Extensive testing under various load disturbances, high renewables penetration, and communication delays ensures its effectiveness in minimizing disruptions.Validation using a standardized IEEE 39-bus system further demonstrates its efficiency in power networks grappling with significant renewables penetration.In summary, this integrated strategy presents a robust solution for modern power systems adapting to increasing renewable energy utilization.KeywordsFuzzy-PID + (T I D µ ) controller, Crayfish optimization algorithm, Load frequency control, Renewable energy resources, Controlled redox flow batteries, Communication delay time

2Power flow from area-b to area-a via the tie-line T ab

Synchronization coefficient a ab

3Capacity ratio of control area K T

4The thermal unit's participation factor B a Area a's frequency bias K G

5The gas turbine's participation factor B b Area b's frequency bias K H

6The hydropower plant's participation factor T cr Time delay regarding gas turbine combustion reaction Y c

7Lag time constant regarding the speed governor of gas turbine b g

8The gas turbine constant of valve positioner c g

9The valve positioner of the gas turbine T cd Discharge volume-time constant regarding gas turbine compressor T fc

10The fuel time constant of the gas turbine X c

11Lead time constant regarding the speed governor of gas turbine T r

12The time constant of reheater steam turbine T t

13The time constant of turbine K r

14The gain of reheater steam turbine R 1

15The value of thermal turbine regulating constant λ The integrator's fractional-order R 2

16The value of hydropower plant regulating constant µ

17The differentiator's fractional-order R 3

18The value of gas turbine regulating constant T sg

19The time constant of governor P wt Generated wind turbine power V W

20The speed of wind C p

21The coefficient of rotor blades ω T Speed of the rotor A T A turbine's swept area Ρ

22The density of air r T

23The rotor radius

24Turbine coefficients Β

25The pitch angle i

26The intermittent tip-speed ratio

T

27The optimum tip-speed ratio T rs

28The speed governor reset time of the hydro turbine T rh

29The transient droop time constant of the hydro turbine speed governor T ps

30The time constant of power system K ps

31The gain constant of power system T gh

32The speed governor time constant of hydro turbine T w

33The nominal string time of water in penstock

Background

34Energy storage systems (ESSs) are becoming increasingly important as RESs become more prevalent in power systems.ESSs provide distinct benefits while also posing particular barriers in the field of energy storage, engaging a critical role in spanning the gap between energy generation and demand while integrating renewable

State-of-the-art literature review

35The traditional approach to frequency control in power grids involves approximating the system as a linear model based on a specific operating condition without taking into account the dynamics of the generators.One commonly used method for frequency regulation is proportional-integral-derivative (PID) control, which has been commonly applied in the ancient due to its merits such as affordability and simplicity.Nevertheless, PID controllers are susceptible to vagaries in system constraints (e.g., system uncertainty and nonlinearities) 9 .

36However, in recent years, several control strategies, such as fractional order controllers (FOCs) 10,11 , fuzzy logic control (FLC) 12 , sliding mode control 13 , artificial neural network 14 , and model predictive control (MPC) 15 , has been developed to address the frequency deviation problem.In contrast, FOCs offer numerous advantages for power system stabilization, providing a boarder extent of freedom and increased configuration flexibility.These characteristics make FOCs a perfect option for controlling power grids.Unlike traditional PID controllers, FOCs require the fine-tuning of different types of poles, like hyper-damped poles, which expands the stable area and provides increased design flexibility for controllers.As a result, FOCs reduce overshoot, the settling time, as well as undershoot values, surpassing PID controllers and their variations.Furthermore, wide-ranging researches have been conducted on the tender of FOCs in various studies, with two common forms being firstly, the title integral derivative (TID) form as well as the fractional order PID (FOPID) 4 .These FOCs have been thoroughly researched with the goal in order to boost the stability of frequency of today's electrical power grids [16][17][18] .While these controllers have demonstrated promising results in normal operating conditions.

37In addition, the fuzzy controller offers several key benefits, including its straightforward implementation, its ability to effectively respond to system variations, as well as its ability to accommodate variations in the operational situations or system constraints through online updates of the controller constraints.These advantages stem from the controller's simplicity in execution and its high sensitivity to fluctuations in the power grid 19 .The initial application of FLC in addressing the LFC problem involved combining it with a PID controller, as described in 20 .Furthermore, a self-tuning fuzzy-PID controller has been introduced to improve the stability of the frequency of a two-area power grid 21 .Moreover, the fuzzy-PID controller has been employed to stabilize the power structure's frequency that incorporates multiple power sources 22 .According to the merits of FOCs and FLC, the authors proposed the (fuzzy-PID) + (T I D µ ) controller to handle the LFC problematic in the analyzed two-area interconnected power grid.However, the FLC utilizes various strictures such as inputs, scaling factors, membership functions, and rule base.But, there are no fixed rules to determine the values of these parameters.Typically, trial-and-error methods have been employed to choice these values, but they may not always yield optimal performance.To address this issue, a meta-heuristic technique known as the Crayfish Optimization Algorithm (COA) has been used to select the optimal constraints of the proposed controller.

38Lastly, multiple controllers in the LFC issue have been addressed through the application of optimization methods including a tracking methodology 23 and aggregation strategies 24 have been used to address.However, these prior techniques have certain downsides.To address the limitations of traditional optimization methods, which can get trapped in local minimums, require a high number of iterations, and are sensitive to initial conditions, researchers have focused their attention on meta-heuristic optimization methods, for example Coyote Optimization Algorithm 25 , Dandelion Optimizer 26 , Harris Hawks Algorithm 27 , Archimedes Optimization Algorithm 28 , Sine Cosine Algorithm 29 , Ant Colony Optimization 30 , Whale Optimization Algorithm 31 , Grey Wolf Optimizer 32 , Artificial Bee Colony Algorithm 33 , Imperialist competitive Algorithm (ICA) 34 , Quasi-oppositional Harmony Search 35,36 , Quasi-opposition Pathfinder Algorithm 37 , Chaotic Chimp Sine Cosine Optimization Algorithm 38 , Quasi-oppositional Whale Optimization Algorithm 39 .These alternative approaches have gained attention as they offer a way to overcome these limitations and find optimal solutions more efficiently.By leveraging meta-heuristic optimization techniques, researchers can enhance the performance of LFC controllers and find more robust and effective parameter settings.Accordingly, the authors propose appling the COA algorithm to determine the finest constraints of the considered controller.As, the considered COA method has been developed to address the limitations associated with traditional optimization techniques.The COA method offers advantages over conventional optimization algorithms by employing a gradient-free mechanism, which helps overcome the issue of getting stuck in local solutions.Moreover, the COA algorithm has the capability to find global solutions using a small number of search agents, further enhancing its superiority over other optimization methods 40 .In this work, it is the first time to apply the COA technique in handling the LFC issue.

39From a different perspective, when there is a large impact as well as a high penetration of renewable energy, the frequency and tie line may be different for a long time, and oscillations may still occur.In this case, the LFC response may not be sufficient to absorb the frequency change due to the slowness and poor quality of the response.As a result, it is necessary to apply ESSs.However, different studies have applied different energy storage www.nature.com/scientificreports/strategies with rapid rejoinder, like superconducting magnetic energy storage (SMES), fuel cell systems (FCSs), plug-in electric vehicles (PEVs), and redox flow batteries (RFBs), for addressing the LFC issue.The utilization of these devices has emerged as a new and intriguing research area 3,4,[41][42][43][44][45][46][47] .Among these, RFB has shown its advantages over other electronic devices (such as SMES) due to its ability to operate at normal temperature, low loss and long service life.Consequently, RFBs is anticipated to be the most effective solution 48 .In a study described in 49 , the influence of RFBs and SMES units on enhancing the performance of a power grid was investigated.Simulation outcomes indicated that the incorporation of RFB units more effectively dampened dynamic responses in comparison to the SMES units.Additionally, the authors of demonstrated the superior performance of RFBs in combination with the Unified Power Flow Controller and Interline Power Flow Controller in Automatic Generation Control (AGC) on nonlinear power systems 43,50 .Furthermore, the stability is achieved in a nonlinear power system by incorporating integral control of the LFC model with RFBs storage and a Static Synchronous Series Compensator 51 .

Research gap

40Despite the pre-mentioned studies successfully achieved their objectives, these studies did not focus on the high incorporation of RESs in the presence of high load demand.For example, more than one previous study focused on conventional power plants and did not adequately consider the impact of RESs 7,22,41,42 .Nevertheless, the present study emphasizes high renewables penetration like wind and solar energy, which are commonly utilized in both areas of the power grid under examination.Additionally, numerous studies overlook the influence of diverse load perturbation shapes, which can be essential for evaluating the applied controller 25,26,28,30,31 .However, this study considered numerous load perturbation profiles like, step load disruptions (SLD), series SLD, and random load disruptions (RLD) which represent the forced outage of power plants or high change on the load demand.Moreover, most previous studies considered applying different types of ESSs without applying any controller to control their output 5,43 .However, this study consider the controlled ESSs to control the amount of the power which will injected to the overall system.The standard IEEE 39 buses test system is considered.Furthermore, the durability of the indicated controller is examined in this work by considering the challenge of the communication delay time (CDT).The purpose is to validate the effectiveness of the proposed controller in achieving stability and reliability in a practical power system setting.Furthermore, this paper's main objective is to address the limitations uncovered in previously published investigations concerning the frequency stability problem.Therefore, Table 1 provides a clear overview of the variances between this study and other researches in the literature, emphasizing the unique contributions and approaches taken in this paper.

Article motivations and contributions

41The scope and contribution of this research can be summarized as follows:

42• Proposing a concerted strategy based on enhanced LFC in coordination with ESSs (i.e., CRFBs) improves power grid stability during periods of disturbances in load and high RESs penetration.Where the proposed controller in LFC is (fuzzy-PID) + (T I D µ ) controller, whose superiority is confirmed by comparing its performance with other controllers like the (PID, FO-PID, PD-PI and FO-(PD-PI)).• Considering the COA technique to select the optimal parameters of the considered controllers, according to its good optimization properties (i.e., balancing between exploration and exploitation) in order to enhance the performance of the analyzed power grid.• The superiority of the proposed strategy is validated considering high RESs, load disturbances as well as CDT in considered hybrid power grid.Furthermore, the standard IEEE 39 buses is considered to confirm the superiority of the proposed strategy.The remaining content of the manuscript is structured as follows: "Background" provides a detailed overview of the power grid under investigation, emphasizing its substantial penetration of renewable energy sources and the integration of controlled redox flow battery (CRFB) systems within the proposed strategy."State-of-the-art literature review" describes the recommended approach, which involves the fuzzy-PID and (T I D µ ) controller, and formulates the problem under analysis."Research gap" outlines the methodology employed for the crayfish optimization algorithm (COA) procedure."Article motivations and contributions" presents the simulation results obtained from the aforementioned scenarios.Finally, in "Modeling of an investigated system", the study's conclusions and key findings are discussed and reviewed.

Modeling of an investigated system

43The configuration of the considered system base

44The power grid that is mentioned in the literature is a two-identical area, with a three-traditional unit included within each area.A tie-line connecting the two areas is an AC tie-line.Thermal, hydro, and gas turbines are the three conventional units, which are dispersed throughout the two zones.In the present study, a 2000 MW, total capacity electrical system is examined.In contrast, having a 1087 MW, contribution, the thermal unit has the biggest capacity.The second-largest capacity, contributing 653 MW, is possessed by the hydropower facil- ity.And finally, 262 MW, is contributed by the gas turbine capacity.Furthermore, Fig. 1 simplifies the diagram of the examined power grid, while the block diagram of the examined power grid is illustrated as Fig. 2. Next, each block's mathematical equation from Fig. 2 is presented in detail in Table 2.For the purpose of dealing with fluctuations in frequency in each area (e.g., area a -area b) and control the tie-line power flow between them, a (fuzzy-PID) + (T I D µ ) controller is proposed to be implemented for each power plant.The Area Control Error (ACE) serves as the input signal for the controller, while the output signal represents the specific supplementary control action for each power plant.The aim of this procedure is to produce additional active power in order to improve the currently assessed grid performance.Appendix A provides comprehensive information about all the parameters related to the analyzed power grid, including their nominal values 52 .The following equations describe the formularies used to calculate the ACEs related to interconnected areas.

Conceptualization of the wind farm

45As highlighted in this analysis, the study's power grid is a hybrid system that contains a significant proportion of RESs, with a focus on wind generating facilities.The following formulae can be used to calculate wind output power 3,4 .

46The wind output power, denoted as P wt (in MW), is determined by various factors.These factors include the flounced sectioned area, A T (in m 2 ), the tip-speed ratio (TSR), , the power coefficient, C p , of the rotor blades, www.nature.com/scientificreports/ the air density, ρ (in kg/m 3 ), the wind speed, V W (in m/s), and the blade pitch angle, β.The C p can be expressed as follow 53 :

47where ω B specifies the angular velocity value of the blade (rad/sec).

48The wind farm at Zafarana, Egypt, with a total installed capacity of 85 MW, is included in this study.Addi- tionally, Fig. 3 presents the real output power data for the Zafarana windmill.One may theoretically describe (4) C p ( i , β) = 0.5 i − 0.022β 2 − 5.6 ×e −0.17 www.nature.com/scientificreports/ the characteristics of the transfer function, which depicts the behavior of the integrated induction generator in a wind power plant, as 0.3 s for the time constant ( T wind ) and a unity gain ( K wind ).Additionally, the overall capacity applied in this work is ten Zafarana wind farms, with a total capacity of 850 MW.

Conceptualization of the photovoltaic (PV) power plant

49This research also takes into account photovoltaic (PV) power plants, which generate electricity from solar energy besides utilized wind farms.Multiple variables, like the PV cell's surface area, the intensity of solar radiation, and the surrounding air temperature, affect a PV system's output power.For calculating the amount of energy generated by the module of PV in this current study, an equation is employed, taking into account these factors.

50In the PV system, several parameters influence the output power calculation.These parameters include the cell reference efficiency denoted as η sc , the entire solar cell's (SC) surface area denoted as A (measured in m 2 ), the solar radiation denoted as R (measured in W/m 2 ), the transmissivity of the glass denoted as τ g , the absorptivity of the SC denoted as α sc , the PV cell efficiency thermal coefficient denoted as µ sc (measured in %

51• C ), the temperature of the SC denoted as T sc (measured in • C), then the reference temperature signified as T r (measured in • C ).These parameters are used in a formula to determine the PV module's electrical power output.

52Table 2.The mathematical formulas regarding the considered power grid blocks.

Description of A block Formulation of transfer functions

53Power system a Kpsa Tpsa•s+1

54Power system b

55Hydro governor

56Reheater of thermal turbine

57Thermal governor

58Thermal turbine 1 Tt .s+1Gas turbine's speed governor

59Gas turbine dynamics

60Gas turbine's valve positioner

Fuel system and combustor

61Synchronizing coefficient

Controlled redox flow batteries (CRFBs) conceptualization

62The CRFBs functions as an electrochemical power source that has the ability to be recharged.CRFBs can rapidly and efficiently save energy for the power network; additionally it can also employ the generator's kinetic energy when requested 50 www.nature.com/scientificreports/offers excellent features such as improved power quality, load compensation, higher capacity compared to conventional batteries, quick response time, and independence from self-discharge issues.During low load demand periods, the CRFBs stores and saves the energy that is equivalent to the demand variations.This stored energy can then be unrestricted back into the grid during load fluctuations, aiding in the elimination of power grid oscillations.

63In this study, a significant aspect of CRFBs modeling is the utilization of a comprehensive and realistic dynamic model of redox flow batteries, rather than the simplistic first-order transfer function models commonly used in several recent papers.The model incorporates the f (change in frequency) as an input.This paper presents a controller design that incorporates a feedback path to generate control signals for CRFBs.This design enables the CRFBs to respond efficiently to disturbances, resulting in improved performance.The designed controller, denoted as K(s), is considered as a PID controller in this work.The relevant parameters of the CRFBs are provided in the Appendix B. Figure 7 illustrates the block diagram of CRFBs.Equation ( 8) indicates how the CRFBs unit is woven into the studied power grid 45 .

Proposed control mechanism and problem description

64In order to address the difficulties caused by the high renewables penetration, several load profile themes, and communication delays, it is crucial to design a reliable controller that can boost system performance under irregular situations.This paper recommends the utilizing of a (fuzzy-PID) + (T I D µ ) controller to alleviate the deviations resulting from the aforementioned factors.Structure-wise, both the TID and PID controllers are ( 8) www.nature.com/scientificreports/exactly the same, with one significant difference.Instead of the proportional component, the TID controller incorporates a tilted component with a transfer function of s −(1/n) , where n represents the FOCs.The TID controller has numerous benefits over a typical PID controller.It exhibits better disturbance rejection, simplified tuning process, and reduced sensitivity to variations in system parameters, resulting in improved dynamic response.Additionally, another type of FOCs called the fractional-order-integral-derivative (FO-ID) controller is available, which offers enhanced system performance and flexibility.Thus, this study replaced the second and third gains in TID controller by the FO-I and FO-D terms to attain the T I D µ controller.Where the frequency fluctuations of the area ( f i ) attends as the T I D µ controller's input signal.Furthermore, the mathematical expression of T I D µ controller is expressed according to the next equation:

65The Additionally, Fig. 8 illustrates the proposed controller structure for the three considered generating units.Where, the considered controller has dual inputs: the ACE value and the derivative value of ACE.The scalability variables for the inputs are symbolized as K 1 and K 2 , while the scalability variables for the output are symbolized as K 3 and K 4 .Traditionally, determining these scaling factors has been a challenge, often relying on trial-anderror methods.This can make obtaining optimal parameter values that improve system performance difficult.However, this study overcomes this limitation by designing the considered (fuzzy-PID) + (T I D µ ) controller.Furthermore, the COA algorithm is used to determine these optimized values, where, the fuzzy membership function can be either triangular or Gaussian shape.In practical applications of electrical systems, triangular membership is often preferred due to its computational efficiency and simplicity.It is a first-order function of ( 9) www.nature.com/scientificreports/mathematics that decreases computational load.Triangular membership functions are typically used with PID controllers and exhibit abundantly symmetric characteristics in both output as well as input.Furthermore, the mathematical expression of (fuzzy-PID) controller is expressed according to the following equation:

66The constraints of gain values, K 1,i , K 2,i , K 3,i , and K 4,i utilized in this work in both areas of the analyzed power grid are expressed as follows:

67The gain values ( k 1,i(fuzzy−PID) , k 2,i(fuzzy−PID) , k 3,i(fuzzy−PID) , and k 4,i(fuzzy−PID) ) are chosen between [0, 10].The decision about the choice of fuzzy control settings is influenced by the specific characteristics of the system under consideration as well as the designer's expertise.The range of fuzzy function memberships is determined by predicting the system's input and output discourse universes.Typically, a decision-maker defines the acceptable risk level for the output and input variables.In this study, the range intervals are selected between -1 and 1, as deviations beyond this range are not necessary to achieve system stability.Symmetric triangular membership functions with 50% overlap are recommended, and a tuning procedure can be applied to adjust the spread and overlap as needed to achieve satisfactory results.In this study, the fuzzy-PID controller in this work utilizes five triangular membership functions: negative big (NB), negative small (NS), zero (Z), positive small (PS), and positive big (PB).These membership functions, depicted in Fig. 9, are utilized for outputs as well as inputs.Consequently, the fuzzy-PID controller requires 25 rules to generate fuzzy outputs, which play a crucial role in its performance.These rules are presented in Table 3.Also, the arrangement of the considered combination of (fuzzy-PID) and (T I D µ ) controller is depicted in Fig. 8.According to various published studies, the load frequency controller's input signal is usually ACE.In this study, the authors proposed (fuzzy-PID) + (T ( 16) The extra (T I D µ ) controller term employs the f signal to improve system performance.It is obviously true that the total arrangement of the proposed controller demonstrates superior rejection of existing disturbances by mitigating all low-and high-frequency disturbances 4,6 .

68In this study, the authors propose the utilization of the integral time absolute error (ITAE) criteria as a means for minimizing the value of the cost function.Optimizing development is improved by adding the element of a time term to the ITAE criteria and the system constancy will be more enhanced compared to using the integral of squared error (ISE) criteria.Increased efficacy in error reduction is achieved by multiplying the factor of time by the integral of the absolute error.The ITAE principles can be expressed as follows:

69Where J denotes the value of proposed cost function which seeks to be the lowest possible value in this work, | f a | represents the area-a frequency waveform's absolute error, | f b | represents the area-b frequency waveform's absolute error, p tie represents the tie-line's power flow change absolute error, Tsim denotes the overall simulation runtime, and the variable dt symbolizes the error signal sampling period throughout the simulation procedure.

The crayfish optimization algorithm (COA)

70The Crayfish Optimization Algorithm (COA) principles which is proposed by Heming et.al is discussed in detail in this section 40 .Foraging, competition, and summer resort behaviors are the three crayfish behaviors that the COA simulates.To equilibrium the algorithm's exploration and exploitation features, these behaviors are classified into three stages of actions (i.e., summer resort, competition, and foraging).The summer resort stage symbolizes the COA's exploring phase, while the competition and foraging stages indicate the exploitation phase.The temperature has an effect on the algorithm's exploration and exploitation.The initial stage of the algorithm defines a crawfish colony, denoted as X, where X i indicates a solution and describes the position of the ith crayfish.( X i = X i,1 , X i,2 , X i,3 . . .X i,dim , dim is the dimension which denotes the optimization problem's characteristic quantity.Random constants that represent the ambient temperature have an influence on individual's behavior.When the temperatures increase, the COA moves into the stage of summer resort or the competition stage.New solutions are updated at the summer resort stage depending on the position of an individual , X i and the position of cave , X shade .When the ambient temperature is appropriate and warm enough, the COA begins the foraging stage.During this stage, the best location, likewise regarded as an optimal solution, reveals the location of food.The fitness i value of the current solution (gained through X i ) and the optimal solution fitness food value (gained as a result of the optimal solution) define the size of the food.During foraging, crayfish obtain new solutions by considering their position, X i a food intake constant p, and the update of the food position X food .If crayfish want to eat food that is excessively large for them, they will first break it down with their claw foot before alternating between their second and third walking feet.Overall, the COA simulates crayfish behavior by incorporating exploration and exploitation through temperature regulation, updating solutions based on individual and optimal positions, and considering the size and consumption of food.

71This subsection summarizes the methodology of the COA algorithm:

72Initialization process of COA This study proposes a controller with both lower and upper limits for parameters.To accomplish the global goal, the population of the COA method is formed between these boundaries using main mathematical procedures.The population of the COA method can be expressed using Eq. ( 22).

73Where X i,j represents where the individual i is located in the j dimension, LB j represents the jth dimension's lower bound, UB j represents the jth dimension's upper bound, and rand is a random number.

74The COA method starts by generating candidate solutions ( X ) randomly.In each iteration, the obtained solution that is closest to the global goal (target) represents the optimal solution.The obtained solutions' positions are indicated in the next matrix.

75where X refers the initial population position, N refers the population number, dim refers the population dimension.

76The fitness solution, which represents the solution with the best fitness value among the obtained solutions, is calculated as following: www.nature.com/scientificreports/Definition of the crayfish temperature and its intake The behavior of crayfish is influenced by changes in temperature, which determine the stage they enter.Temperature is determined by Eq. ( 25).When the temperature exceeds 30 °C, crayfish will seek out cooler areas for taking a summer vacation.Crayfish will begin to forage when the temperature is appropriate.Temperature influences the amount of food consumed by crayfish.Crayfish prefer temperatures between 15 °C and 30 °C for feeding, with 25 °C being the most favorable.Equation ( 26) provides the mathematical representation of the crayfish intake.

77In this equation, " Temp " denotes the temperature of the crayfish's environment.

78Among them, σ and C 1 is used to regulate crayfish intake at various temperatures, while µ refers to the optimal crayfish temperature.

The exploration stage (summer resort stage)

79When the temperature exceeds 30 °C, it is considered too high, and crayfish will choose to seek refuge in caves to take the period of summer vacation.The cave X shade is identified as listed below:

80In this scenario, X G demonstrates the optimal position attained so far throughout iterations, while X L represents the current population's optimal position.

81The competition among crayfish for caves is a random occurrence.When a randomly generated number rand<0.5, it means that there aren't any other crayfish fighting for caves.In such instances, the crayfish are going to move directly to the cave for their break during the summer vacation.This behavior is governed by Eq. ( 28).

82Where t refers the current iteration number, and t+1 refers the number of the next generation iteration,C 2 refers the decreasing curve, as proved by Eq. ( 29).

83where t indicates the maximum iterations' number.

84Crayfish's goal at the summer resort stage is to go close to the cave, which represents the optimal solution.Consequently, crayfish will move towards the cave in an effort to get closer to the optimal solution.Individuals become closer to the best solution through this process, which also improves the COA algorithm's exploitation capability, thus allowing for faster convergence.

The exploitation stage (competition stage)

85When the temperature exceeds 30 °C and rand≥0.5, it indicates that other crayfish are also captivated by the cave.In this situation, they will engage in a competitive fight to gain access to the cave.As per Eq. ( 30), the crayfish competes over the cave:

86Where z sums up the crayfish's arbitrarily individual, as demonstrated in Eq. ( 31): Crayfish compete over the cave during the competition stage.Each crayfish, denoted as X i , adjusts its position depending on where another crayfish is located, X z as described in Eq. ( 30).This adjustment of positions expands the search range of the COA algorithm, enhancing its exploration ability.

The exploitation stage (foraging stage)

87When the Temp ≤ 30 °C, it seems to be appropriate for feeding crayfish.In this case, the crayfish will keep moving in the direction of the food supply.Once they find the food, crayfish will assess its size.Crayfish will use their claws to rip apart food if it is deemed to be excessively large.Then, they will alternately use their two remaining walking feet to consume their food.Food location, denoted as X food , is defined as follows:

88The food size Q is defined as:

89Here, C 3 refers the factor of food, which represents the largest food size and has a constant value of 3. " fitness i " refers the ith crayfish's fitness value, while "fitness food " refers the food location's fitness value.The crayfish uses the (25) Temp = rand × 15 + 20 www.nature.com/scientificreports/largest food's quantity as a benchmark for determining the size of food.When Q surpasses ( C 3 +1)/2, it implies a large amount of the food.Here, the crayfish is going to utilize their first claw foot for ripping the food.The mathematical equation representing this action is provided as follows:

90This mechanism enables crayfish to adapt their feeding behavior depending on the size of the food available, ensuring efficient consumption and utilization of resources.

91When the food becomes crumbly and smaller, the crayfish will pick it up with their second and third paws alternatively and put it in their mouth.A sine and cosine function combination is utilized to describe this alternating process.Furthermore, the crayfish's food intake is related to the food they get.Foraging is calculated as follows:

92When Q ≤ ( C 3 +1)/2, the crayfish only needs to proceed forward to the food and devour it immediately.The equation for this behavior is provided as follows: Crayfish use a variety of feeding strategies during the foraging stage, which are determined by their food size, denoted as Q .The food location X food represents the optimal solution in this context.If the food Q 's size is appropriate for crayfish feeding, they will approach the food and consume it.However, if Q is too large, it shows that there is a significant difference between the optimal solution and the crayfish.In such cases, X food needs to be adjusted to reduce the difference as well as moving it up close to the food.Furthermore, the randomness of the crayfish food intake enhancement algorithm is under executive control.This ensures that the crayfish can approach the optimal solution more effectively during the foraging stage.Through this process, the COA algorithm gradually converges towards the optimal solution, enhancing its exploitation ability and achieving good convergence performance.Here, Fig. 10 depicts the COA method's flowchart.

Ethical approval

93This article does not contain any studies with human participants or animals performed by any of the authors.

Execution and results discussion

94In this work, a supplementary control scheme called (fuzzy-PID) + (T I D µ ) is proposed as well as implemented for the analyzed power grid.According to the merits of fuzzy logic and fractional order schemes, the proposed controller outperforms superior rejection of existing disturbances by dampening all low-and high-frequency disruptions.This present study addresses the presence of high renewables penetration in the power grid.Multiple scenarios are scrutinized to evaluate how well the suggested control approach coordinates several different (34)

Start

95Set parameters and initialize the population Determine the temperature using Eq. ( 14)

Compute fitness value and obtain XG and XL

96The food intake P and food size Q are obtained using Eq. ( 15) and Eq. ( 22) While Q 2 < Crayfish shreds food using Eq. ( 23) No Crayfish foraging using Eq. ( 25)

97Crayfish foraging using Eq. ( 24)

End

98Yes Determine cave Xshade using Eq. ( 16)

Yes

99While rand > 0.5 Crayfish conducts the summer resort stage using Eq. ( 17)

100Crayfish compete for caves using Eq. ( 20 To optimize the suggested controller, the COA technique is employed to alleviate system frequency excursions.The simulations are conducted using MATLAB/SIMULINK® program (R2016a) on a computer with specific hardware specifications.For optimizing the proposed control structure, an m-file containing the original COA algorithm code and paired with the stipulated power grid model is employed.The several simulation scenarios are executed on a PC with the following specifications: 8.00 GB of RAM with a 2.60 GHz Intel Core i5 processor.Furthermore, the frequency stability assessing takes into consideration varied operational conditions in the scenarios listed below:

101Scenario A Evaluating the analyzed power grid's performance with different varied load pattern profiles.Scenario B Evaluating the examined power grid's performance involving high renewables penetration, aiming to examine the grid's capability to handle this issue.Scenario C Evaluating the suggested controller's robustness in real-time for stability and reliability using the IEEE-39 bus system.The validation includes considering the impact of SLD.Scenario D Evaluating the efficacy of the recommended controller utilizing a real-time IEEE-39 bus system, considering high renewables penetration within the system, to assess its effectiveness with the goal to attain dependability and stability.Scenario E Evaluating the performance of the proposed controller under varying CDT conditions before and after the LFC in the IEEE-39 bus system.This evaluation also considers high renewable energy penetrations.Scenario F Evaluating the proposed strategy's effectiveness by comparing the effectiveness of the IEEE 39 buses system with and without the proposed strategy, considering high renewables penetration.

102Scenario G Stability analysis of the proposed (fuzzy-PID) + (T I D µ ) controller.

103When optimizing the proposed (fuzzy-PID) + (T I D µ ) controller using the COA algorithm, certain arrange- ments should be considered.These include employing 30 search agents and performing 50 iterations.Figure 11 shows the obtained convergence curve, which provides insights into the investigated power grid's performance with the recommended COA-based controller.It should be noted that the presented convergence curve in the figure is obtained assuming a 1% SLD occurring to area-a at t = 10 s within the examined power grid, without considering a high renewables penetration.Whereas, the behavior of proposed controller based on COA is summarized as beginning with a value of the objective function near 0.00201 and dropping with each attempt until it achieves a value near 0.00188.

104Scenario A Evaluating the analyzed power grid's performance with different varied load pattern profiles.

105The following scenario is intended to provide an initial comparison for accurately verifying the suggested controller's efficiency and algorithm in achieving frequency stabilization of the analyzed power grid.To conduct a more detailed analysis, a comparison is made among various aforementioned published controllers.

106Case A.1 In this case, it is assumed that area-a of the assessed power grid includes a step load.The purpose is to assess the effectiveness of the COA algorithm in addressing the frequency stability issue through the use of the supplementary control loop.Assuming a step load of 1% magnitude at t = 10 s, representing either the disconnection of generation power plants or the disconnection of a variety of electrical loads.The obtained controller parameters for the proposed controller and the other mentioned controllers are presented in Table 4. Additionally, the system's performance is depicted in Fig. 12.

107The values of maximum overshoots ( O sh ) and maximum undershoots ( U sh ) obtained from the various con- sidered dynamic responses of the analyzed power grid using the recommended controller relied on the COA method are considerably lower than the results obtained with other mentioned controllers via various different www.nature.com/scientificreports/techniques, as shown in Fig. 12.Furthermore, Table 5 provides an in-depth overview of the system performance in Case A.1.Then, Table 6 further highlights the percentage improvements in O sh and U sh for this specific case, illustrating the enhancements achieved compared to the previous controllers.Case A.2 A series SLD pattern is applied in this case to assess the performance of the proposed (fuzzy-PID) + (T I D µ ) controller.This pattern involves a succession of forced switches of generators or outages of connected loads, which can potentially lead to power grid instability.Figure 13 depicts the series SLD form.Then, Fig. 14 presents the system's various dynamic responses for this case.

108Figure 14 illustrates that the maximum O sh and maximum U sh values obtained from the system's dynamic responses using the proposed (fuzzy-PID) + (T I D µ ) controller relied on COA are significantly lower than the results obtained from the aforementioned published controllers.Furthermore, Table 7 provides the precise values of O sh and U sh for the power flowing in the tie-line and frequencies for both areas.Additionally, Table 8 highlights the system's overall improvement percent achieved in this case.

109Case A.3 Additionally, in area-a of the analyzed power grid, a random load fluctuation form is assumed, occurring at t = 100 s.This form represents a wide range of disruptions in series in industrially interconnected loads, producing similar grid effects, such as grid instability and the occurrence of blackouts.Figure 15 clarifies the applicable RLD pattern.Furthermore, Fig. 16 provides a comparative analysis of the examined power grid's Table 5. Specifications of the analyzed system's transient response for scenario A.1.All values are multiplied by ( 10 −3 ).www.nature.com/scientificreports/dynamic performance according to the recommended controller scheme and the other two aforementioned controllers.

110Figure 16 shows that the maximum O sh and maximum U sh values obtained from the considered power grid's dynamic responses utilizing the recommended (fuzzy-PID) + (T I D µ ) controller relied on COA are significantly lower than the values obtained from the aforementioned published controllers.Furthermore, Table 9 shows the precise values of O sh and U sh for the power flowing in the tie-line and frequencies for both areas.Table 10 also shows the system's overall improvement percent.

111Scenario B Evaluating the examined power grid's performance involving high renewables penetration, aiming to examine the grid's capability to handle this issue.

112The scenario's purpose is to examine the disturbances caused by a significant penetration of renewables in both of the analyzed power grid's areas.Specifically, area-a has been incorporated by 10 windmills and 10 PV power plants at 100 min and 400 min, respectively, utilizing a random demand fluctuation pattern.In area-b, the identical integration parameters for the penetration of renewables are applied; PV power plants integrate at 700 min and windmills at 600 min.The generated power from the RESs integrated into the analyzed power grid, as well as various system dynamic responses, are elucidated in Figs.17,18, respectively.

113Furthermore, Table 11 shows the different acquired values of O sh and U sh for the power flowing in the tie-line and frequencies for both areas applying all of the previously mentioned controllers.Table 12 also clarifies the system's overall improvement percent for this case.

114Scenario C: Evaluating the suggested controller's robustness in real-time for stability and reliability using the IEEE-39 bus system.The validation includes considering the impact of SLD.

115For evaluating the suggested (fuzzy-PID) + (T I D µ ) controller approach for load frequency management, the standard real-world New England IEEE-39 bus system is applied in this scenario.The standard real-world New England IEEE-39 bus system consists of ten reheat thermal generators, nineteen loads, thirty-eight transmission lines, and twelve transformers, as shown in Fig. 19.The system is divided into three interconnected areas, namely area 1, area 2, and area 3, with respective rated area power capacities of P r1 = 1500MW, P r2 = 2000MW, and P r3 = 1500MW .Appendix B provides the system parameter values.In this approach, each area's generating units are substituted with a single equivalent generation unit.The following equations are used to calculate the equivalent inertia constant and speed regulation parameters 54 :

116(37) www.nature.com/scientificreports/where S i , R i and H i refer the specified generation unit's power rating, the factors of both speed regulation and inertia constant respectively related to i th generation units.The simulation results, using the optimized parameters of the suggested controller listed in Table 13, show improved performance compared to previous studies.The frequencies of the three interconnected areas and the power exchange in various tie lines demonstrate shorter settling times, decreased overshoots, and undershoot.Specifically, the suggested controller outperforms the I controller and FO-(PD-PI) controller used in 3,54 respectively.Figure 20 displays the distinct SLD profiles experienced by the three interconnected areas.The dynamic responses of the system, presented in Fig. 21, highlight the proposed controller's substantial performance in minimizing excursions and preserving system stability.

117Figure 21 depicts that the proposed controller improves the system performance by 96.43% and 94.74% when compared to the I controller and FO-(PD-PI) controller, respectively.

118Scenario D: Evaluating the efficacy of the recommended controller utilizing a real-time IEEE-39 bus system, considering high renewables penetration within the system, to assess its effectiveness with the goal to attain dependability and stability.

119Similarly, this scenario involves the suggested controller's real-time validation using the IEEE-39 bus system, but with a specific focus on diminishing frequency excursions.The evaluation takes into account the high renewable energy penetrations within the system as depicted in Fig. 19.In this study, ten wind power plants and ten PV power plants have penetrated into areas 1 and 2 of the IEEE-39 bus system via switches (s1) and (s2) respectively.Figure 22 depicts a fair maiden comparison clarifying the superior performance of the proposed controller in attaining the system frequency to a closely predefined value (≈50 HZ) over the performance of PID controller tuned by COA.Table 14 presents the obtained optimal PID controller parameters optimized by COA.

120Figure 22 shows that the proposed controller strengthens the system performance by 75.19% when compared to the PID controller tuned via COA considering high renewables penetration in the studied system.

121Scenario E: Evaluating the performance of the proposed controller under varying CDT conditions before and after the LFC in the IEEE-39 bus system.This evaluation also considers high renewable energy penetrations.

122To validate the proposed controller, experiments were conducted on the IEEE-39 bus system.The system was designed to incorporate high penetration levels RESs.In these experiments, different CDT values were introduced before and after the supplementary controllers.When the CDT challenge is executed, Fig. 23 provides a sufficient comparison of the considered system dynamic responses.

123The proposed controller demonstrates its capability to effectively handle the perturbations caused by RESs and the challenges posed by CDT.It successfully maintains the frequencies of different areas within predefined values.This highlights the proposed controller's durability in addressing the complexities introduced by RESs and communication delays, ultimately ensuring stable and reliable operation of the system.Scenario F: Evaluating the proposed strategy's effectiveness by comparing the effectiveness of the IEEE 39 buses system with and without the proposed strategy, considering high renewables penetration.In this specific scenario, the IEEE-39 bus system performance is examined while considering a significant integration of RESs.Whereas, wind energy is integrated into area 1 at t = 100 min, and PV energy is integrated into area 2 at t = 200 min.The proposed coordinated strategy involves the incorporation of CRFBs systems in area 1 and area 2. These CRFBs systems work collaboratively by closing switches (s3) and (s4) over different simulation durations.When wind energy penetrates area 1, the CRFBs included in area 1 share their active power with the assessed power system.Additionally, when PV energy penetrates area 2, the CRFBs included in area 2, share their extra active power with the assessed power system.The CRFBs utilize stored energy to enhance LFC and optimize the overall performance of the power system under unusual circumstances.The major objective is to regulate the system frequency, which is prone to considerable fluctuations as a result of the high renewables penetration in both areas.Table 15 illustrates the PID controller variables that were obtained for the proposed www.nature.com/scientificreports/strategy.Figure 24 depicts the CRFBs systems'-controlled output signal, which denotes the outcome of the active power quantity.Additionally, Fig. 25 compares the total dynamic responses of the entire system in the IEEE-39 bus system with and without the proposed strategy.Figure 25 indicates that the proposed strategy, which includes the LFC besides CRFBs, demonstrates its capability to successfully handle the perturbations caused by RESs in the studied system.It successfully maintains the frequencies of different areas within predefined values.Whereas, the proposed strategy improves the system performance by 50% as compared to without it.

Scenario G Stability analysis of the proposed (fuzzy-PID) + (T I D µ ) controller

124Figure 26 illustrates the bode plot of the loop gains of the analyzed power grid using the proposed (fuzzy-PID) + (T I D µ ) controller.The magnitude of the gain margin plot is observed to be more stable across all frequencies when employing the proposed controller.Additionally, the phase margin shows an infinite value, indicating that the suggested controller is capable of handling system uncertainties.

Conclusion

125This study has presented significant findings that contribute to power system stability when transitioning from traditional power stations to renewable energy sources (RESs).Firstly, an effective structure has been presented to ensure stable frequency in the power system during this transition.This structure combines the improved load frequency controller (LFC) and controlled redox flow batteries (CRFBs) to effectively manage frequency fluctuations in considered grid.Furthermore, the controller in LFC depend on (fuzzy-PID) + (T I D µ ) controller.The proposed controller improves the system performance than more on controller such as (PID, FO-PID, PD-PI, and FO-(PD-PI)) controllers.Furthermore, the proposed controller contributes with CRFBs to maintain the system stability during high renewables.The constraints for this proposed scheme have been determined using the crayfish optimization algorithm.LFC controller effectiveness has been validated by comparing its performance to that of other published controllers.Importantly, the proposed strategy demonstrates the ability to maintain system reliability even during periods of high renewable energy penetration.The authors intend to incorporate more ESSs into the system in future research, ensuring its seamless operation throughout the day.Furthermore, as all generation sources will be renewable, the design process took into account the virtual synchronous generator.

( 1 )Figure 1 .

126Figure 1.Schematic diagram of the considered grid.

127i

Figure 2 .

128Figure 2. The linearized model of the Power grid under investigation.

Figure 3 .

129Figure 3. Energy generated by the Zafarana windmill station 53 .

Figure 4 .

130Figure 4.The exact PV power plant power generation 53 .

Figure 5 .

131Figure 5. Radiation and power generation characteristics of the PV energy station.

Figure 6 .Figure 7 .

132Figure 6.Power generation characteristics and ambient temperature of the PV energy station.

133constraints of gain values, k ti,i(TI D µ ) , k i,i(TI D µ ) , k d,i(TI D µ ) , n (TI D µ ) , (TI D µ ) , and µ (TI D µ ) utilized in this work in both areas of the considered power grid are expressed as follows: where i refers scheme of the suggested controller for each of the three mentioned traditional power plants; thus, ( i=1, 2, 3).The gain values ( k ti,i(TI D µ ) , k i,i(TI D µ ) , k d,i(TI D µ ) , n (TI D µ ) , (TI D µ ) , and µ (TI D µ ) ) are chosen between [0, 10], n (TI D µ ) is set among the range [1, 10], the fractional derivative ( µ (TI D µ ) ) and fractional integrator ( (TI D µ ) ) orders are chosen among the range [0, 1].

Figure 8 .

134Figure 8. Considered (fuzzy-PID) + (T I D µ ) controller arrangement.

Figure 9 .

135Figure 9.The triangular membership functions of the FLC's input and output.

13624) f fitness = [f 1f 2f 3 . . . . . . . . . . . .f N ] T Vol.:(0123456789) Scientific Reports | (2024) 14:9576 | https://doi.org/10.1038/s41598-024-58189-2

Figure 11 .

137Figure 11.Obtained convergence curve of the suggested controller tuned by the COA method.

1 k 1

138via AOA 18 k p = 10, k i = 1.5975, k d = 2.7449 k p = 1.5975, k i = 0.0837, k d = 0.0875 k p = 10, k i = 10, k d = 1.2779 0.189 FOPID-optimized via ESAOA 18 k p = 8.9645, k i = 9.9979, k d = 9.7397, λ = 0.7266, µ = 0.8519 k p = 6.6278, k i = 9.1570, k d = 4.631, λ = 0.587, µ = 0.0887 k p = 9.7594, k i = 9.9997, k d = 7.976, λ = 0.9159, µ = 0.3775 0.1233 PD-PI-optimized via HHO 3 k p1 = 5, k d1 = 5, k p2 = 5, k i1 = 5 k p1 = 5 , k d1 = 0.4447, k p2 = 5, k i1 = − 2.6257 k p1 = 5 , k d1 = − 5, k p2 = 5 ,k i1 = 5 0.04312 FO-(PD-PI)-optimized via MRFO 3 k p1 = 8.4889, k d1 = 4.7798, µ = 0.888, k p2 = 3.3705, k i1 = 9.1858, λ = 0.63405 k p1 = 8.3087, k d1 = 7.8085, µ = 0.4372, k p2 = 7.6906, k i1 = 9.3538, λ = 0.13835 k p1 = 0.4128, k d1 = 4.8394, µ = 0.6828, k p2 = 1.8088, k i1 = 0.95754, λ = 0.82713 0.03477 Fuzzy-PID + (T I D µ )-optimized via COA k 1 = 10, k 2 = 9.9229, k 3 = 6.923, k 4 = 10, k t = 10, k i = 9.9827, k d = 5.3442, λ = 0.7279, µ = 1×e −8 , n = 4.682 k 1 = 9.9962, k 2 = 10, k 3 = 9.984, k 4 = 4.039, k t = 5.5703, k i = 10, k d = 9.987, λ = 0.3176, µ = 0.3844, n = = 10, k 2 = 9.9846, k 3 = 7.561, k 4 = 1.6455, k t = 6.771, k i = 9.9041, k d = 8.2064, λ = 0.8804, µ = 1×e −8 ,

Figure 12 .

139Figure 12.LFC controllers' dynamic responses to step load disruption for Case A.1.

140of ( �f a ) Considered dynamic response of ( �f b ) Considered dynamic response of ( P tie ) PID-optimized via AOA 18 O sh = 1.158 O sh = 0.0209 O sh = 0.01107 U sh = − 11.42 U sh = − 4.443 U sh = − 1.249 FOPID-optimized via ESAOA 18 O sh = 0.0802 O sh = 0.0018 O sh = 0.00109 U sh = − 8.344 U sh = − 2.456 U sh = − 0.7403 PD-PI-optimized via HHO 3 O sh = 0.7113 O sh = 0.02308 O sh = 0.0137 U sh = − 5.06 U sh = − 0.760 U sh = − 0.2735 FO-(PD-PI)-optimized via MRFO 3 O sh = 0.0249 O sh = 0 O sh = 0 U sh = − 3.734 U sh = − 0.4837 U sh = − 0.1623 Fuzzy-PID + (T I D µ )-optimized via COA O sh = 0.1983 O sh = 0.0203 O sh = 0.0083 U sh = − 0.4975 U sh = − 0.1839 U sh = − 0.08528

Figure 14 .

141Figure 14.LFC controllers' dynamic responses to series step load disruption for Case A.2.

142of ( �f a ) Considered dynamic response of ( �f b ) Considered dynamic response of ( P tie ) PD-PI-optimized via HHO 3 O sh = 10.121O sh = 1.52 O sh = 0.5469 U sh = − 15.181 U sh = − 2.28 U sh = − 0.82035 FO-(PD-PI)-optimized via MRFO 3 O sh = 7.45 O sh = 0.94914 O sh = 0.31477 U sh = − 11.203 U sh = − 1.451 U sh = − 0.48686 Fuzzy-PID + (T I D µ )-optimized via COA O sh = 1.12 O sh = 0.3051 O sh = 0.1670 U sh = − 1.817 U sh = − 0.5570 U sh = − 0.2364 Vol.:(0123456789) Scientific Reports | (2024) 14:9576 | https://doi.org/10.1038/s41598-024-58189-2

Figure 15 .

143Figure 15.The implemented area-a RLD form.

Figure 16 .

144Figure 16.LFC controllers' dynamic responses to RLD for Case A.3.

3 O

145sh = 3.722 O sh = 0.4714 O sh = 0.1557 U sh = − 5.606 U sh = − 0.72973 U sh = − 0.24566 Fuzzy-PID + (T I D µ )-optimized via COA O sh = 0.664 O sh = 0.20182 O sh = 0.08012 U sh = − 0.795 U sh = − 0.3076 U sh = − 0.1574 Vol.:(0123456789) Scientific Reports | (2024) 14:9576 | https://doi.org/10.1038/s41598-024-58189-2

Figure 17 .Figure 18 .

146Figure 17.The high renewable energy penetration's generated output power in areas (a) and (b) for Case B.

3 O

147-optimized via HHO 3 O sh = 28.742O sh = 28.814O sh = 4.082 U sh = − 7.54 U sh = − 6.32 U sh = − 4.036 FO-(PD-PI)-optimized via MRFO sh = 17.572O sh = 17.774O sh = 2.559 U sh = − 5.395 U sh = − 1.539 U sh = − 2.45 Fuzzy-PID + (T I D µ )-optimized via COA O sh = 8.115 O sh = 8.082 O sh = 1.129U sh = − 2.334 U sh = − 0.7005 U sh = − 1.167 www.nature.com/scientificreports/

Figure 19 .

148Figure 19.The standard IEEE-39 bus system schematic diagram.

149Fuzzy-PID + (T I D µ )-optimized via COA k 1 = 6.6413, k 2 = 8.996, k 3 = 6.1475, k 4 = 5.4056, k t = 4.8275, k i = 5.3264, k d = 5.98, λ = 0.8059, µ = 0.4159, n = 8.0807 k 1 = 10, k 2 = 1.1999, k 3 = 3.7147, k 4 = 10, k t = 9.6025, k i = 0.8318, k d = 3.6435, λ = 0.9964, µ = 0.5549, n = 1.2751 k 1 = 3.8123, k 2 = 6.779, k 3 = 9.8212, 4 = 5.2815, k t = 9.7263, k i = 2.434841, k d = 7.913, λ = 0.5881, µ = 0.1521, n = 6.9069Vol:.(1234567890)Scientific Reports | (2024) 14:9576 | https://doi.org/10.1038/s41598-024-58189-2

Figure 20 .Figure 21 .

150Figure 20.Different load disturbances applied in the three areas.

Figure 26 .

151Figure 26.The bode plot of the power grid loop gains with the proposed (fuzzy-PID) + (T I D µ ) controller.

Table 1 .

152Comparison of the present work's motivation to those of other published studies.

Table 3 .

153Rule base of the FLC.D µ ) controller, which combines two concepts.The first (fuzzy-PID) controller term receives the ACE signal as an input.

154Vol:.(1234567890) Scientific Reports | (2024) 14:9576 | https://doi.org/10.1038/s41598-024-58189-2www.nature.com/scientificreports/I

155fitness food )

156Vol:.(1234567890) Scientific Reports | (2024) 14:9576 | https://doi.org/10.1038/s41598-024-58189-2

) Yes No No t=t+1 Summer resort stage Foraging stage Figure 10.

15740e flow chart of the COA algorithm40.

158Vol.:(0123456789) Scientific Reports | (2024) 14:9576 | https://doi.org/10.1038/s41598-024-58189-2www.nature.com/scientificreports/controllers.The proposed algorithm's performance is additionally assessed in comparison to different techniques.

Table 4 .

159Optimal values of various optimized controllers.

Table 6 .

160Percentage improvements in O sh and U sh for Case A.1.Optimal percentage values are highlighted in bold format.

161Figure13.The implemented area-a series SLD form.Vol:.(1234567890)

Table 7 .

162Specifications of the analyzed system's transient response for scenario A.2.All values are multiplied by ( 10 −3 ).

Table 8 .

163Percentage improvements in O sh and U sh for Case A.2. Optimal percentage values are highlighted in bold format.

Table 9 .

164Specifications of the analyzed system's transient response for scenario A.3.All values are multiplied by ( 10 −3 ).

Table 10 .

165Percentage improvements in O sh and U sh for Case A.3.Optimal percentage values are highlighted in bold format.

Table 11 .

166Specifications of the analyzed system's transient response for scenario B. All values are multiplied by ( 10 −3 ).

Table 12 .

167Percentage improvements in O sh and U sh for Case B. Optimal percentage values are highlighted in bold format.

Table 13 .

168The optimal optimized coefficients of the recommended controller for scenario C.

참고문헌 51건

  1. Small-signal stability analysis for two-area interconnected power system with load frequency controller in coordination with FACTS and energy storage device Ain Shams Engineering Journal · Elsevier BV · 2015 10.1016/j.asej.2015.06.009
  2. The sliding mode load frequency control for hybrid power system based on disturbance observer International Journal of Electrical Power & Energy Systems · Elsevier BV · 2015 10.1016/j.ijepes.2015.07.014
  3. Self tuning fuzzy PID type load and frequency controller Energy Conversion and Management · Elsevier BV · 2003 10.1016/s0196-8904(03)00149-3
  4. Load frequency control of a realistic power system with multi-source power generation International Journal of Electrical Power & Energy Systems · Elsevier BV · 2012 10.1016/j.ijepes.2012.04.040
  5. Area load frequency control using fuzzy gain scheduling of PI controllers Electric Power Systems Research · Elsevier BV · 1997 10.1016/s0378-7796(96)01199-6
  6. Automatic generation control using two degree of freedom fractional order PID controller International Journal of Electrical Power & Energy Systems · Elsevier BV · 2014 10.1016/j.ijepes.2014.01.011
  7. An optimal tracking approach to load-frequency control IEEE Transactions on Power Apparatus and Systems · Institute of Electrical and Electronics Engineers · 1975 10.1109/t-pas.1975.32006
  8. Optimized load-frequency simulation in restructured power system with Redox Flow Batteries and Interline Power Flow Controller International Journal of Electrical Power & Energy Systems · Elsevier BV · 2013 10.1016/j.ijepes.2013.02.004
  9. A self-tuning fuzzy PI controller Fuzzy Sets and Systems · Elsevier BV · 2000 10.1016/s0165-0114(98)00147-x
  10. Control of large-scale dynamic systems by aggregation IEEE Transactions on Automatic Control · Institute of Electrical and Electronics Engineers · 1968 10.1109/tac.1968.1098900
  11. Dynamic frequency response from electric vehicles considering travelling behavior in the Great Britain power system Applied Energy · Elsevier BV · 2015 10.1016/j.apenergy.2015.10.159
  12. Impact of energy storage units on load frequency control of deregulated power systems Energy · Elsevier BV · 2016 10.1016/j.energy.2015.12.121
  13. Load frequency control in deregulated power system integrated with SMES–TCPS combination using ANFIS controller International Journal of Electrical Power & Energy Systems · Elsevier BV · 2016 10.1016/j.ijepes.2016.04.032
  14. Design of a fractional order PID controller using GBMO algorithm for load–frequency control with governor saturation consideration ISA Transactions · Elsevier BV · 2016 10.1016/j.isatra.2016.04.021
  15. Evaluation study about Redox flow battery response and its modeling IEEJ Transactions on Power and Energy · Institute of Electrical Engineers of Japan · 2002 10.1541/ieejpes1990.122.4_554
  16. BFOA-scaled fractional order fuzzy PID controller applied to AGC of multi-area multi-source electric power generating systems Swarm and Evolutionary Computation · Elsevier BV · 2016 10.1016/j.swevo.2016.08.002
  17. 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
  18. Maiden application of SSA‐optimised CC‐TID controller for load frequency control of power systems IET Generation Transmission & Distribution · Institution of Engineering and Technology · 2018 10.1049/iet-gtd.2018.6100
  19. An intelligent coordinator design for GCSC and AGC in a two-area hybrid power system Applied Soft Computing · Elsevier BV · 2019 10.1016/j.asoc.2018.12.026
  20. Hybrid-Peak-Area-Based Performance Index Criteria for AGC of Multi-Area Power Systems IEEE Transactions on Industrial Informatics · Institute of Electrical and Electronics Engineers · 2019 10.1109/tii.2019.2905851
  21. Salp swarm algorithm-based optimal load frequency control of hybrid renewable power systems with communication delay and excitation cross-coupling effect Electric Power Systems Research · Elsevier BV · 2019 10.1016/j.epsr.2019.105938
  22. Optimal design of CDM controller to frequency control of a realistic power system equipped with storage devices using grasshopper optimization algorithm ISA Transactions · Elsevier BV · 2019 10.1016/j.isatra.2019.08.028
  23. Ant colony optimization technique tuned controller for frequency regulation of single area nuclear power generating system Microprocessors and Microsystems · Elsevier BV · 2019 10.1016/j.micpro.2019.102953
  24. Application of Harris Hawks Algorithm for Frequency Response Enhancement of Two-Area Interconnected Power System with DFIG Based Wind Turbine 2019 10.1109/mepcon47431.2019.9007991
  25. Robust Control Scheme for Distributed Battery Energy Storage Systems in Load Frequency Control IEEE Transactions on Power Systems · Institute of Electrical and Electronics Engineers · 2020 10.1109/tpwrs.2020.2997950
  26. FUZZY aided PID controller is optimized by GA algorithm for Load Frequency Control of Multi-Source Power Systems 2020 10.1109/sami48414.2020.9108759
  27. Integrating layered recurrent ANN with robust control strategy for diverse operating conditions of AGC of the power system IET Generation Transmission & Distribution · Institution of Engineering and Technology · 2020 10.1049/iet-gtd.2019.0935
  28. Frequency Stability of Two-Area Interconnected Power System with Doubly Fed Induction Generator Based Wind Turbine Power systems · Springer Nature · 2020 10.1007/978-3-030-54275-7_11
  29. Application of grey wolf optimization algorithm for load frequency control in multi-source single area power system Evolutionary Intelligence · Springer Science+Business Media · 2020 10.1007/s12065-020-00530-5
  30. Frequency excursion mitigation strategy using a novel COA optimised fuzzy controller in wind integrated power systems IET Renewable Power Generation · Institution of Engineering and Technology · 2020 10.1049/iet-rpg.2020.0882
  31. Novel load frequency control scheme for an interconnected two-area power system including wind turbine generation and redox flow battery International Journal of Electrical Power & Energy Systems · Elsevier BV · 2021 10.1016/j.ijepes.2021.107033
  32. Comparative analysis of PID and fractional order PID controllers in automatic generation control process with coordinated control of TCSC Energy Systems · Springer Science+Business Media · 2021 10.1007/s12667-021-00457-5
  33. ICA assisted FTIλDN controller for AGC performance enrichment of interconnected reheat thermal power systems Journal of Ambient Intelligence and Humanized Computing · Springer Science+Business Media · 2021 10.1007/s12652-021-03403-6
  34. Impacts of wind farms with multi-terminal HVDC system in frequency regulation using quasi-opposition pathfinder algorithm International Journal of Systems Assurance Engineering and Management · Springer Science+Business Media · 2021 10.1007/s13198-021-01365-8
  35. Quasi‐Oppositional Whale Optimization Optimized Load Frequency Stabilization of Hybrid Power Systems Integrated with Electric Vehicle Advanced Theory and Simulations · Wiley · 2022 10.1002/adts.202100510
  36. An Eagle Strategy Arithmetic Optimization Algorithm for Frequency Stability Enhancement Considering High Renewable Power Penetration and Time-Varying Load Mathematics · Multidisciplinary Digital Publishing Institute · 2022 10.3390/math10060854
  37. Load frequency stabilization of stand‐alone hybrid distributed generation system using QOHS algorithm International Journal of Numerical Modelling Electronic Networks Devices and Fields · Wiley · 2022 10.1002/jnm.2998
  38. Fuzzy Logic-Based Load Frequency Control in an Island Hybrid Power System Model Using Artificial Bee Colony Optimization Energies · Multidisciplinary Digital Publishing Institute · 2022 10.3390/en15062199
  39. Optimal Design of TD-TI Controller for LFC Considering Renewables Penetration by an Improved Chaos Game Optimizer Fractal and Fractional · Multidisciplinary Digital Publishing Institute · 2022 10.3390/fractalfract6040220
  40. A Developed Frequency Control Strategy for Hybrid Two-Area Power System with Renewable Energy Sources Based on an Improved Social Network Search Algorithm Mathematics · Multidisciplinary Digital Publishing Institute · 2022 10.3390/math10091584
  41. Frequency Stability Enhancement of Hybrid Multi-area Power Grid Considering High Renewable Energy Penetration Using TID Controller 2022 10.1109/gpecom55404.2022.9815729
  42. Stochastic multi-objectives optimal scheduling of energy hubs with responsive demands in smart microgrids Journal of Energy Storage · Elsevier BV · 2022 10.1016/j.est.2022.105536
  43. A state-of-the-art review on modern and future developments of AGC/LFC of conventional and renewable energy-based power systems Renewable energy focus · Elsevier BV · 2022 10.1016/j.ref.2022.09.006
  44. Load Frequency Control and Automatic Voltage Regulation in a Multi-Area Interconnected Power System Using Nature-Inspired Computation-Based Control Methodology Sustainability · Multidisciplinary Digital Publishing Institute · 2022 10.3390/su141912162
  45. Dandelion Optimizer-Based Combined Automatic Voltage Regulation and Load Frequency Control in a Multi-Area, Multi-Source Interconnected Power System with Nonlinearities Energies · Multidisciplinary Digital Publishing Institute · 2022 10.3390/en15228499
  46. A modified controller scheme for frequency stability enhancement of hybrid two‐area power grid with renewable energy sources IET Renewable Power Generation · Institution of Engineering and Technology · 2022 10.1049/rpg2.12659
  47. Utilizing controlled plug-in electric vehicles to improve hybrid power grid frequency regulation considering high renewable energy penetration International Journal of Electrical Power & Energy Systems · Elsevier BV · 2023 10.1016/j.ijepes.2023.109251
  48. A novel chaotic chimp sine cosine algorithm part-II: Automatic generation control of complex power system Chaos Solitons & Fractals · Elsevier BV · 2023 10.1016/j.chaos.2023.113673
  49. Load Frequency Control Using the Particle Swarm Optimisation Algorithm and PID Controller for Effective Monitoring of Transmission Line Energies · Multidisciplinary Digital Publishing Institute · 2023 10.3390/en16155748
  50. Crayfish optimization algorithm Artificial Intelligence Review · Springer Science+Business Media · 2023 10.1007/s10462-023-10567-4
  51. A robust control approach integrating with optimal fuel cells to strengthen the frequency stability of a diverse-sources power system including renewables ISA Transactions · Elsevier BV · 2023 10.1016/j.isatra.2023.09.017