Next Article in Journal
Quantum Surface Topological Code for Bell State Stabilization in Superconducting Physical Qubit Systems
Previous Article in Journal
A Deep Reinforcement-Learning-Based Route Optimization Model for Multi-Compartment Cold Chain Distribution
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Eel and Grouper Optimization-Based Fuzzy FOPI-TIDμ-PIDA Controller for Frequency Management of Smart Microgrids Under the Impact of Communication Delays and Cyberattacks

by
Kareem M. AboRas
*,
Mohammed Hamdan Alshehri
and
Ashraf Ibrahim Megahed
Department of Electrical Power and Machines, Faculty of Engineering, Alexandria University, Alexandria 21544, Egypt
*
Author to whom correspondence should be addressed.
Mathematics 2025, 13(13), 2040; https://doi.org/10.3390/math13132040
Submission received: 21 May 2025 / Revised: 14 June 2025 / Accepted: 18 June 2025 / Published: 20 June 2025
(This article belongs to the Special Issue Mathematical Methods Applied in Power Systems, 2nd Edition)

Abstract

:
In a smart microgrid (SMG) system that deals with unpredictable loads and incorporates fluctuating solar and wind energy, it is crucial to have an efficient method for controlling frequency in order to balance the power between generation and load. In the last decade, cyberattacks have become a growing menace, and SMG systems are commonly targeted by such attacks. This study proposes a framework for the frequency management of an SMG system using an innovative combination of a smart controller (i.e., the Fuzzy Logic Controller (FLC)) with three conventional cascaded controllers, including Fractional-Order PI (FOPI), Tilt Integral Fractional Derivative (TIDμ), and Proportional Integral Derivative Acceleration (PIDA). The recently released Eel and Grouper Optimization (EGO) algorithm is used to fine-tune the parameters of the proposed controller. This algorithm was inspired by how eels and groupers work together and find food in marine ecosystems. The Integral Time Squared Error (ITSE) of the frequency fluctuation (ΔF) around the nominal value is used as an objective function for the optimization process. A diesel engine generator (DEG), renewable sources such as wind turbine generators (WTGs), solar photovoltaics (PVs), and storage components such as flywheel energy storage systems (FESSs) and battery energy storage systems (BESSs) are all included in the SMG system. Additionally, electric vehicles (EVs) are also installed. In the beginning, the supremacy of the adopted EGO over the Gradient-Based Optimizer (GBO) and the Smell Agent Optimizer (SAO) can be witnessed by taking into consideration the optimization process of the recommended regulator’s parameters, in addition to the optimum design of the membership functions of the fuzzy logic controller by each of these distinct algorithms. The subsequent phase showcases the superiority of the proposed EGO-based FFOPI-TIDμ-PIDA structure compared to EGO-based conventional structures like PID and EGO-based intelligent structures such as Fuzzy PID (FPID) and Fuzzy PD-(1 + PI) (FPD-(1 + PI)); this is across diverse symmetry operating conditions and in the presence of various cyberattacks that result in a denial of service (DoS) and signal transmission delays. Based on the simulation results from the MATLAB/Simulink R2024b environment, the presented control methodology improves the dynamics of the SMG system by about 99.6% when compared to the other three control methodologies. The fitness function dropped to 0.00069 for the FFOPI-TIDμ-PIDA controller, which is about 200 times lower than the other controllers that were compared.

1. Introduction

1.1. Background and Motivation

Environmental concerns linked to the use of petroleum and coal in power generation have driven scientists to explore alternative energy sources, such as renewables. One promising solution is the smart microgrid (SMG), which offers enhanced performance when integrating distributed power plants [1,2]. However, renewable energy sources (RESs) introduce frequency control challenges, primarily due to the reduced net inertia in SMG networks [3]. Power imbalances between RESs and loads can lead to frequency instability, compromising the overall stability and reliability of the SMG structure [4]. To address these issues, recent studies have proposed advanced control strategies aimed at balancing generation and demand while ensuring stable power transfer across interconnected systems [5,6].

1.2. Literature Review and Research Gaps

Traditional controllers like PI and PID are structurally simple and effective in many cases but often underperform in complex, nonlinear environments [7]. To overcome these limitations, the TID controller was introduced, replacing the conventional proportional term with a tilting operator. Research shows that this slanted operator, defined by the S 1 n transfer function, allows TID controllers to outperform conventional I, PI, and PID controllers in microgrid frequency regulation [8]. Despite these improvements, limitations in traditional integral and derivative actions have prompted the use of fractional-order (FO) operators in control design [9,10]. FO operators offer additional tuning flexibility and an improved dynamic response by increasing the system’s degrees of freedom. Their effectiveness has been demonstrated across various applications, including practical implementations and industrial hardware [11,12]. In power systems, the fractional-order PID (FOPID) controller has been particularly effective in maintaining frequency stability, especially in contexts involving electric vehicle integration [13]. Achieving optimal performance with parallel control architectures remains challenging due to the interdependence of control actions, which affects the output signal and complicates tuning [14]. This can be mitigated through adaptive parameter adjustment. Alternatively, multistage control architectures have proven effective in addressing the drawbacks of parallel configurations and are widely applied in the load frequency control of standalone microgrids [14,15,16,17]. Combining FO operators with multistage architectures offers a promising approach by leveraging the benefits of fractional dynamics and hierarchical structures [17]. However, microgrid frequency regulation remains complex. FO operators introduce additional optimization variables, increasing the dimensionality and complexity of the design. Thus, while more control parameters may enhance flexibility, they do not necessarily ensure better performance and may even cause deviation from the optimal control trajectory.
In addition to the previously discussed controllers, various control strategies have been employed for frequency regulation in power systems. Fuzzy logic controllers have been widely used due to their adaptability across different operating conditions [18,19], though their reliance on expert knowledge and sensitivity to membership functions can be limiting [20]. Combined droop and sliding mode controllers have been explored for primary and secondary control layers [21]. Hybrid storage systems have also been integrated for voltage control and energy management during on/off-grid operation [22]. In [23], networked SMG systems are managed through voltage/frequency control and power sharing, while centralized observer-controlled electric vehicles help stabilize the network and mitigate load variation effects [24]. A cascade PD-(1 + I) regulator has been proposed for frequency control in SMGs using diverse energy storage devices (ESDs) [25], and a fuzzy type-2 controller based on an equilibrium approach was introduced in [26]. An adaptive control method was developed in [27] for managing frequency with solar and microturbine inputs. Efficient control over distributed energy sources reduces operational costs and improves performance [28]. The role of rapid-acting energy storage devices (RAESDs) in frequency regulation is discussed in [29]. Advanced techniques include equilibrium-optimizer-tuned multistage PID controllers [30], wind energy impact analysis [31], tilted PID control in hybrid systems [32], and a multi-stage PDF + (1 + PI) structure optimized using the grasshopper algorithm [33]. Additionally, [34] investigates the role of cascade regulator topologies and ESDs in frequency stability.
The literature presents a variety of mathematical models and intelligent control approaches for frequency management, primarily aimed at minimizing physical disturbances. However, cyber-attacks introduce cyber–physical disruptions that can trigger cascading failures in existing systems [35]. Therefore, it is essential to evaluate controllers under various cyber-attack scenarios. DoS attacks, in particular, demand attention to ensure the reliability and frequency stability of SMGs. This study focuses on a frequency-tolerant regulator capable of operating effectively despite communication delays or signals being denied to distributed energy resources. Recent regulator designs incorporate advanced optimization methods [36,37,38,39]. For instance, a PID controller using a modified Sine–Cosine Algorithm (SCA) was proposed in [40], while [41] introduced a PDF-PI regulator tuned by the Coyote Optimizer (CO). A fuzzy PD-(1 + I) controller tuned via the Mayfly Optimizer (MFO) was developed in [42]. FOPID controllers optimized using the Atom Search Algorithm (ASA) and Gray Wolf Optimizer (GWO) were suggested for hybrid energy systems [43,44]. Additionally, [45] proposed a regulator fine-tuned with the Salp Swarm Algorithm (SSA) for frequency regulation in a redox flow battery-based system.

1.3. Research Objectives and Main Contributions

An examination of the previous research reveals that many alternative methods with various control and optimization approaches have been proposed for the frequency regulation of diverse networks. However, not every system can be adequately addressed by a single strategy. As a result, this gives us the chance to investigate a different plan by establishing a novel controller framework and a more effective optimization method in order to produce a more effective frequency control strategy. Inspired by the superior effectiveness of fuzzy-logic and FO control methodologies, this study discusses frequency management by presenting a unique EGO-enhanced smart FFOPI-TIDμ-PIDA controller, which has not been used in frequency stability before. A thorough examination of the aforementioned literature indicates that several metaheuristic methods are employed in load frequency control research for the optimal adjustment of controller settings. EGO, a recently introduced metaheuristic method for global optimization in 2024 [46], has demonstrated superior efficacy compared to several algorithms, including SSA, SCA, GWO, the Fox algorithm, Multi-Verse Optimization (MVO), the Whale Optimizer (WOA), PSO, the Chimp Optimizer (ChOA), and Fitness-Dependent Optimization (FDO) across nineteen benchmark functions and various engineering challenges, such as in tension/compression springs, pressure vessels, piston levers, and car side impacts [46]; thus, it is employed for the frequency management of the suggested SMG system. The vital achievements of the work are documented as follows:
  • This cutting-edge controller, known as fuzzy FOPI-TIDμ-PIDA (FFOPI-TIDμ-PIDA), integrates the characteristics of intelligent control (i.e., FLC) and traditional high-efficiency controllers (i.e., FOPI, TIDμ, and PIDA) within a singular framework for the first time in the frequency management of smart microgrids.
  • Moreover, it employs the recently released EGO algorithm to enhance the suggested control structure (FFOPI-TIDμ-PIDA) by meticulously adjusting the settings of the FOPI-TIDμ-PIDA controller, selecting the optimal shape of the membership functions (MFs), and determining the ideal scaling inputs and output factors of the FLC.
  • The superiority of the FFOPI-TIDμ-PIDA structure over traditional controllers such as PID and EGO-based intelligent structures like FPID [47] and FPD-(1 + PI) [48] is verified. Also, EGO showed an outstanding performance in a comparison scenario with the Gradient-Based Optimizer (GBO) [49] and Smell Agent Optimizer (SAO) [50].
  • The efficacy of the proposed frequency management approach against different cyberattacks, such as DoS and communication delays, is examined.

1.4. Organization of Paper

The next sections of this document are structured as follows: Section 2 delineates the recommended frequency response configuration for the SMG system and its constituent parts. Section 3 delineates the architecture of the regulator and the mathematical description of the optimization problem utilized. Section 4 provides a comprehensive examination of the EGO mathematical structure and its implementation inside the SMG system. Section 5 evaluates the simulation outcomes for system performance over various load fluctuation scenarios and cyberattacks, including a comparative analysis of different controllers and optimization approaches. Section 6 delineates the conclusions of this study. Section 7 illustrates the limitations of our work, along with the future investigations.

2. The Investigated SMG System

The smart microgrid (SMG) system shown in Figure 1 is utilized for the design and study of the recommended controller. Electrical vehicles, aqua electrolyzers, fuel cells, diesel engine generators, wind turbine generators, battery energy storage systems, flywheel energy storage systems, and solar photovoltaics are all components of the SG system. The SMG system uses a single centralized regulator for all of its controlled sources. This leads to a control system that is easier to manage (with fewer control parameters) and requires less maintenance. We implement rate constraints for all configurable sources to enhance the system’s realism. The following subsections illustrate the modelling process of the SMG system studied, as seen in Figure 1. Moreover, all values of the SMG system parameters studied can be found in Table 1.

2.1. Modeling of the PV Unit

The power generation of the photovoltaic (PV) unit is denoted by the following [48]:
P P V = ζ A ψ 1 0.005 T a + 25
where ζ denotes the conversion efficiency of the photovoltaic system (assumed to be 10%), A represents the size of the photovoltaic array (assumed to be 4084 m2), and ψ signifies the amount of solar radiation in kW/m2. The photovoltaic system transfer function can be described as follows:
G P V s = K P V 1 + s T P V = Δ P P V Δ Ψ

2.2. Modeling of the Wind Unit

The wind turbine is characterized by the nondimensional curves of the power coefficient Cp, which are presented as an expression of the blade pitch angle β = 0.1745 and the tip speed ratio λ . The curves can be mathematically represented as follows [9]:
C p = ( 0.44 0.0167 β ) s i n π ( λ 3 ) 15 0.3 β 0.0184 ( λ 3 ) β
In this context, λ denotes the ratio of the blade tip velocity of the wind turbine to the wind velocity and can be defined as follows:
λ = R B ω B V w i n d
where R B = 23.5   m denotes the blades’ radius in the wind turbine, ω B = 3.14   r a d / s represents the speed of rotation and V w i n d depicts the wind speed. The mechanical power output of the wind unit is expressed as follows:
P W P = 1 2 ρ A r C p V w i n d 3  
where   ρ denotes an air density of 1.25   k g / m 3 and A r represents the blades’ swept area of 1735   m 2 . The transfer function used to simply model the wind unit is as follows:
G W T G i s = K w i n d 1 + s T w i n d = Δ P W T G Δ P W P
where i = 1 , 2 , 3 .

2.3. Modelling of the Aqua Electrolyzer (AE) and Fuel Cells (FCs)

The AE generates hydrogen for the fuel cell by utilizing a portion of the electricity produced from renewable sources such as wind and solar energy. The behavior of the AE is characterized by the transfer function shown in Equation (7) [9], utilizing ( 1 K n ) of the total power from wind and photovoltaic sources to generate hydrogen, which is subsequently employed by two fuel cells to provide supplementary power to the grid.
G A E s = K A E 1 + s T A E = Δ P A E ( Δ P W T G + Δ P P V ) ( 1 K n )
where K n represents a constant with a value of 0.6 . In a similar way, the FC behavior can also mathematically be represented as a first-order transfer function as follows:
G F C i s = K F C 1 + s T F C = Δ P F C i Δ P A E
where i = 1 ,   2 .

2.4. Modelling of the Energy Storage System (ESS)

The control strategy of the SMG system encompasses the Battery Energy Storage System (BESS), Flywheel Energy Storage System (FESS), and Electric Vehicle (EV). They are regulated by the signal derived from the controller output. These units operate as the source or load according to the requirements of the SMG system for frequency regulation. The transfer function of each unit can be expressed as follows [48]:
G E V s = K E V 1 + s T E V
G B E S S s = K B E S S 1 + s T B E S S = Δ P B E S S Δ U
G F E S S s = K F E S S 1 + s T F E S S = Δ P F E S S Δ U
The rate constraints nonlinearities that have been considered for the EES are considered as P ˙ E V < 0.01 , P B E S S < 0.2 and P F E S S < 0.9 .

2.5. Modelling of the Diesel Generator (DG)

The DG can make up for the shortfall in power and keep the gap between generation and load demand as little as possible. The DG behaviour characteristics can be simply expressed as a first-order transfer function [48]. However, the DG’s nonlinearity has been taken into account by considering P ˙ D G < 0.01 and 0 < P D G < 0.45
G D G s = K D G 1 + s T D G = Δ P D G Δ U

2.6. Modelling of the Power System

Any alteration in the input to a power network causes an associated fluctuation in frequency, which in turn causes power fluctuation. The power system has the following transfer function:
G P S s = 1 D + s M = Δ F Δ P
Throughout the current research, M is the equivalent inertia constant of the SMG system, and D is the damping constant. The nominal values for M are 0.4 and 0.03 for D .

3. The Suggested FFOPI-TIDμ-PIDA Controller Structure and Problem Formulation

PID regulators are usually employed in control systems due to their simple structure, cost-effectiveness, and applicability in linear systems. Nevertheless, these conventional frameworks are typically inadequate for nonlinear systems. Conversely, Fuzzy Logic Control (FLC) is adaptable, straightforward to understand, and facile to implement. The control system efficacy may be enhanced by the use of a fuzzy logic controller-based PID (FPID) controller. An integral action is required in FPID to eradicate the steady-state inaccuracy. However, decelerating the system reaction leads to an increase in the integral gain. To resolve these conflicts, a multistage framework was developed. In light of the aforementioned, a fuzzy FOPI-TIDμ-PIDA, also known as FFOPI-TIDμ-PIDA, was developed to enhance the frequency performance of the examined SMG system, which comprises multiple green sources, in response to abrupt load variations, fluctuations in renewable energy sources, and diverse cyber-attack scenarios. The structure of the proposed FFOPI-TIDμ-PIDA controller can be seen in Figure 2. This section is separated into the following three subsections to explain the configuration of the suggested regulator’s conventional and intelligent parts, along with the mathematical formulation of the studied problem.

3.1. The Optimum FOPI-TIDμ-PIDA Controller (Conventional Part)

This section delineates the arrangement of the conventional part of our recommended controller, comprising three series regulators that have been utilized independently in the literature to address frequency stability concerns. Nevertheless, the integration of these controllers has significantly enhanced their collective capabilities. This configuration achieves three main objectives: a robust capacity to mitigate disturbances, the ability to monitor set points with dynamic sensitivity, and the assurance of stability inside the closed-loop control system. The following subsections highlight the specific structure of each controller.

3.1.1. FOPI Controller

Fractional-order controllers are based on fractional calculus. In recent years, there has been increasing interest in control engineering with the development of the FOPID controller. Fractional calculus encompasses derivatives and integrals of an arbitrary real order. The predominant definitions of the fractional–integral differential operator in the literature were established by Riemann–Liouville and Caputo [51].
Riemann–Liouville Definition: A function’s a t h order derivative, h ( t ) , is defined in the following way according to Riemann-Liouville:
D t 0 a h ( t ) = 1 Γ ( n a ) d n d t n t 0 t   h ( τ ) ( t τ ) 1 ( n a ) d τ   w h e r e   n 1 < a n , n N .  
Caputo definition: A function’s a t h order derivative, h ( t ) , is defined in the following way according to Caputo:
D t 0 t h ( t ) = 1 Γ ( n a ) t 0 t   h n ( τ ) ( t τ ) 1 ( n a ) d τ , n 1 < a < n d n d t n h ( t ) , a = n
where Γ ( z ) represents the Gamma function. Although fractional calculus is theoretically defined through the Riemann–Liouville and Caputo formulations (as shown in Equations (14) and (15)), these definitions are often difficult to implement directly in control design and simulation due to their non-local, memory-dependent structure. To overcome this, we employ the Oustaloup recursive approximation in the Laplace domain, as shown in Equations (16)–(19) [52]. This method approximates s a , the Laplace transform of a fractional-order derivative, using a rational transfer function that is implementable using standard integer-order system tools. Equation (16) expresses the approximation of s a as a product of first-order filters. Moreover, Equations (17)–(19) define the approximation parameters over a frequency range [ ω b , ω h ] , ensuring a good match in the desired bandwidth. The Laplace transform of the a t h derivative is estimated with the following procedure:
s a K k = N N   s + ω k s + ω k
K = ω h a
ω k = ω b ω h ω b k + N + ( 1 a ) / 2 2 N + 1
ω k = ω b ω h ω b k + N + ( 1 + a ) / 2 2 N + 1
Within the permitted frequency range of [ ω b , ω h ] , N denotes the approximation order in this case. It is important to point out that the corelation s a = s n s γ is valid when a 1 . In this case, n = a γ represents the integer component of a , and s a is determined via the Oustaloup approximation Equation (16). For the mathematical calculation of any fractional terms, the FOMCON toolbox [53] is employed. It is worth noting that the Oustaloup recursive approximation offers several advantages over other approaches. It provides a computationally efficient and numerically stable way to approximate fractional operators over a defined frequency range. It also integrates easily into classical control frameworks and simulation environments such as MATLAB/Simulink. Compared to time-domain numerical methods or the direct implementation of the Riemann–Liouville and Caputo definitions, this frequency-domain approach is more practical for real-time and embedded applications, especially in engineering problems like the issue studied in this paper (LFC). Thus, the use of Laplace-domain approximation via Oustaloup’s method offers a balanced trade-off between theoretical rigor and practical feasibility.
The FOPI controller, a type of fractional-order controller, extends the regular PI controller and bases its operation on fractional calculus. The introduction of an extra parameter λ , termed the fractional operator, to the integral action of PI augments the design freedom. Figure 3 depicts the arrangement of the FOPI controller. Equation (20) provides the transfer function of the FOPI regulator [54].
C F O P I s = K P 1 + K I 1 s λ
where K P 1 and K I 1 represent the proportional and integral action of the FOPI controller, respectively. Moreover, u(t) is the output signal from the FLC, and ΔU1 is the first control law, which serves as the input to the second part of the FOPI-TIDμ-PIDA controller (i.e., the TIDμ component).

3.1.2. TIDμ Controller

The TIDμ controller is derived by transforming the derivative component of the TID regulator into a fractional form (i.e., adding the fractional operator μ to the derivative action). The integral component is not transformed into a fractional form. Furthermore, in contrast to the numerous advancements achieved in FOPID in prior research, fewer efforts have been devoted to TID. Despite this, the influence of the tilt compensator in the TID regulator cannot be disregarded. Furthermore, the TIDμ regulator has demonstrated its efficacy in modern frequency management research, as evidenced in Ref. [55]. Figure 4 illustrates the configuration of the TIDμ regulator. Equation (21) delineates the transfer function of the TIDμ regulator [55].
C T I D μ s = K T 1 s 1 n + K I 2 1 s + K D 1 s μ N 1 N 1 + s
where K T ,   K I 2 ,   K D 1 ,   n and N 1 stand for the tilt, integral and derivative actions, as well as the tilt order and derivative filter coefficient of the TIDμ controller, respectively. Moreover, ΔU1 is the output signal from the previous part (i.e., the FOPI component), and ΔU2 is the second control law, which serves as the input to the third part of the FOPI-TIDμ-PIDA controller (i.e., the PIDA component).

3.1.3. PIDA Controller

The PIDA regulator can be considered as an enhancement of the conventional PID regulator, integrating an extra derivative (acceleration) component. This leads to enhanced dynamic reaction and superior disturbance rejection, particularly in systems necessitating precision control [18]. This controller possesses various advantages over PID, including an enhanced performance for extremely fluctuating systems, improved stability in converter-dominated systems, and the incorporation of an acceleration coefficient, which mitigates overshoot and enhances tracking precision. Furthermore, power electronic converters exhibit nonlinearities and rapid dynamics, necessitating superior control beyond PID. The incorporation of renewable energy sources, such as solar and wind, results in frequent load fluctuations and system disruptions. Consequently, PIDA can respond more rapidly than PID and assist in alleviating the rapid transients induced by changes in renewable energy sources [56]. PIDA possesses a greater phase margin than PID, indicating its capacity to endure more substantial communication delays prior to the onset of instability. The structure of PIDA mitigates delay-induced fluctuations, rendering it appropriate for smart grids and linked microgrids [57]. Moreover, the PIDA controller has proven its effectiveness in present-day frequency stability studies, as indicated in Ref. [18]. Figure 5 depicts the architecture of the PIDA controller. Equation (22) specifies the transfer function of the PIDA regulator [18].
C P I D A s = K P 2 + K I 3 1 s + K D 2 s N 2 N 2 + s + K A s 2 1 ( N 2 + s ) ( N 3 + s )
where K P 2 ,   K I 3 ,   K D 2 ,   K A ,   N 2 and N 3 stand for the proportional, integral, derivative and acceleration actions, as well as the derivatives’ filter coefficients of the PIDA controller, respectively. Moreover, ΔU2 is the output signal from the previous part (i.e., the TIDμ component), and ΔU is the final (total) control law.
Finally, it is worth noting that the total transfer function of the conventional part of the proposed controller can be mathematically expressed as follows:
C F O P I T I D μ P I D A s = C F O P I s C T I D μ s C P I D A s
where the input signal to the previous transfer function is u(t) and the output signal is ΔU.

3.2. The Optimum FLC Controller (Intelligent Part)

The intelligent component of the suggested FFOPI-TIDμ-PIDA regulator is the FLC, which has been integrated into the series configuration of the FOPI-TIDμ-PIDA regulator to enhance its capability and performance. The FLC has four primary parts, as seen in Figure 6: the fuzzification interface, the knowledge base, the decision-making unit, and the defuzzification interface. The FLC possesses two input signals: the error (e(t)) and its derivative (de(t)). It also has one output signal (u(t)). More information regarding the FLC components and how they have been manipulated to benefit our study may be found in the following subsections.

3.2.1. Fuzzification Interface

Fuzzification is the process via which a precise value is converted into a fuzzy value by leveraging details from the database. Various types of curves are found in widely employed areas of the fuzzification process, specifically Gaussian, triangular, and trapezoidal membership functions (MFs). In our study, triangular membership functions were chosen for both inputs due to their computational simplicity, ease of implementation, and symmetrical representation of uncertainty. These functions are commonly preferred in control applications where real-time implementation and fast computation are required [18,19]. Additionally, triangular MFs offer a good balance between accuracy and efficiency, making them particularly suitable for systems like load frequency control (LFC), where response speed is essential [31,44]. In this context, the inputs for the fuzzification process consist of the error in the system’s frequency response and its derivative, each multiplied by a scaling factor ( K 1 and K 2 , respectively) prior to their incorporation into the Fuzzy Logic Controller (FLC), to ensure that their values fall within a suitable range for fuzzy inference. Furthermore, the membership functions of inputs range from −50 to 50, which was determined based on the expected dynamic behaviour of the system and empirical tuning to adequately cover the operational range of these signals. Five linguistic variables are employed. The variables are represented by the symbols VN, TN, Z, TP, and VP, which correspond to Vast Negative, Tiny Negative, Zero, Tiny Positive, and Vast Positive, respectively. These terms provide sufficiently fine granularity to describe the state of the system while keeping the rule base manageable in size. To further refine the performance, EGO algorithm was employed to optimize the position and shape parameters of the MFs. Rather than relying solely on heuristics or fixed membership function placements, the EGO algorithm fine-tuned the centers and widths of the MFs to yield an optimal control performance. This optimization ensures that the MFs are not only well-distributed but also adaptively shaped based on the system’s dynamics, thereby enhancing the FLC’s effectiveness. The final, optimized fuzzy sets are shown in Figure 7, which illustrates the resulting MF configurations for both inputs after EGO-based optimization.

3.2.2. Knowledge Base

The knowledge base allows the fuzzification of inputs and delineates the manner in which the inference system will implement the rules to ascertain the fuzzy control output. The knowledge base is made up of two primary parts: the rule base and the data base. The rule base is a collection of IF-THEN rules that explain how input and output variables are related to one another. Table 2 shows the rule base set that was employed for this research. The database outlines the membership functions (MFs) for the fuzzy sets that correspond to each variable. It also establishes the shape (triangular, trapezoidal, Gaussian, etc.) and range of the fuzzy sets.

3.2.3. Decision Making-Unit (DMU)

The DMU is in charge of dealing with fuzzy inputs and executing the rule base, which is derived from expert knowledge or empirical data, in order to identify the fuzzy output. It is often referred to as the Inference Engine or the Fuzzy Inference System (FIS). The functions of the DMU can be summarized as follows:
  • Employing the Fuzzy Rule Base: Applies established fuzzy IF-THEN rules to ascertain the impact of input fuzzy sets on the output.
  • Executing Fuzzy Inference: Employs inference techniques such as Mamdani or Sugeno to obtain fuzzy output values from fuzzy inputs. Our investigation employed a Mamdani fuzzy interface that employs minimum (AND) and maximum (OR) operators for rule evaluation assessment.
  • Integrating Fuzzy Rules: Consolidates the outputs of all relevant rules to provide a definitive fuzzy output set.

3.2.4. Defuzzification Interface

Defuzzification is the process of converting the fuzzy output from the DMU into a single crisp value (i.e., a meaningful control action u(t)). This signal serves as the input for the following part (FOPI-TIDμ-PIDA controller) of the presented methodology. Some of the most frequent defuzzification strategies are the center of gravity (COG), mean of maximum, maximal criteria, and weighted average approach. In this case, we employ the COG approach, which calculates the center of mass of the fuzzy output distribution, since it generates a smooth and balanced output. Furthermore, membership functions are crucial in the defuzzification process, as they characterize the interpretation and conversion of fuzzy output into a definitive control action. Similar to the input membership functions, we employed the EGO method to optimize the shapes of the output membership functions and the output scaling factor ( K 3 ) to attain optimal configurations that produce the most favourable results. The configuration of the output membership functions is the same as the input regarding shape, number, and range. Figure 8 depicts the EGO-based optimum designs of the membership functions for the fuzzy output. Moreover, the surface of the entire control process of the FLC is illustrated in Figure 9.

3.3. The Mathematical Formulation of the Problem

The purpose of the assessment function is critical for identifying errors in any system. It serves as a cognitive channel between the system and the optimization procedure. Minimizing the fitness function (FF) will facilitate the determination of optimal parameters for the FFOPI-TIDμ-PIDA controller using the Eel and Grouper Optimization (EGO) method. Integral Absolute Error, Integral Time Absolute Error, Integral Square Error, and Integral Time Square Error are some of the most well-known fitness functions in the field of frequency stability. These functions are also known as IAE, ITAE, ISE, and ITSE, respectively. All of these functions are important criteria for evaluating errors based on a variety of formulas. In comparison to other standards, the ITSE metrics exhibit high sensitivity, maintain durability, and produce fewer disturbances and overshoots, rendering them valuable criteria for control system development [58]. The below equation represents the ITSE criterion utilized for error computation:
F F = I T S E = 0 T s t F 2     d t
In Equation (24), Δ F signifies the system frequency fluctuation from the nominal value and T s indicates the simulation time interval. The gains of the suggested FFOPI-TIDμ-PIDA regulator are constrained in accordance with Equation (25):
K 1 L B K 1 K 1 U B K 2 L B K 2 K 2 U B K 3 L B K 3 K 3 U B K P 1 L B K P 1 K P 1 U B K I 1 L B K I 1 K I 1 U B λ L B λ λ U B K T L B K T K T U B K I 2 L B K I 2 K I 2 U B K D 1 L B K D 1 K D 1 U B N 1 L B N 1 N 1 U B n L B n n U B μ L B μ μ U B K P 2 L B K P 2 K P 2 U B K I 3 L B     K I 3 K I 3 U B K D 2 L B K D 2 K D 2 U B K A L B K A K A U B N 2 L B N 2 N 2 U B N 3 L B N 3 N 3 U B
where L B and U B denote the lower and upper bounds, respectively. The suggested control method has 18 gains to be optimized using the EGO algorithm. Table 3 delineates the search space range for each parameter during the optimization procedure.

4. Comprehensive Description of the EGO Mathematical Structure

This section introduces the Eel and Grouper Optimization (EGO) algorithm. Then, we give a detailed presentation of the EGO approach together with its mathematical framework.

4.1. Idea and Concept

Groupers (Plectropomus pessuliferus) are large predatory fish that patrol coral reefs in open waters, while moray eels (Gymnothorax javanicus) are nocturnal hunters that weave their way through the complex crevices of the reef. On their own, each is a formidable predator, but when they join forces, their hunting efficiency increases dramatically and the chances of prey escaping drop significantly. If a target seeks shelter within the reef’s nooks and crannies, the moray eel can flush it out—or consume it directly. If the prey flees into open water, it becomes easy pickings for the grouper.
What makes this partnership remarkable is that it represents one of the only known cases—outside of humans—where two unrelated species engage in cooperative hunting. Even more fascinating, groupers have been observed to actively recruit moray eels by performing a distinctive head-shaking signal, inviting them to join the hunt. This behaviour has been likened to a human bringing a hunting dog along to flush out game, highlighting the strategic intelligence and adaptability of these marine predators. The collaboration between groupers and moray eels is a rare and compelling example of interspecies coordination in the wild.
The hunting strategies of these predators varies greatly. The grouper’s hunting style makes victims vulnerable at sea, whereas the moray’s assault mode prevents hiding in holes. For 38 min, two couples maintained a separation that was 1 to 3 times the body length of one grouper [46]. Groupers frequently employ visual cues to engage Moray eels in cooperative search. While swimming, the groupers notify a nearby eel to take it to the prey’s hiding place. The groupers perform a headstand above the prey’s hiding location in the fissure while shaking their heads vigorously. The eel explores the crevices after attaching the grouper. Additionally, hunger correlates with groupers’ signalling rate [46].
According to [59], interspecific participation hunting requires gulping down complete prey, as seen in eels and groupers. Although interspecific predation may enhance mammalian predators’ hunting efficiency, it is seldom observed. Cooperation between eels and groupers falls within the mutualism category of animal interactions. Additionally, hunting is a notable social activity among these fish. Ref. [59] outlines the main processes used by groupers and eels to hunt:
  • Grouper tracking target.
  • Moray eels are signaled by groupers to hunt together and seek hiding locations.
  • Hunger impacts grouper signalling.
  • Attack prey together.
  • Partnership helps both sides.
Next, we mathematically model the eel and grouper cooperative hunting approach to develop the suggested EGO algorithm.

4.2. Building the Mathematical Model

In this part, the mathematical framework that underpins the recommended EGO approach is detailed; this involves the technique used by groupers to track and locate prey (exploration), communication with moray eels, and then attacking the prey together (exploitation).

4.2.1. Exploration Phase (Grouper’s Tracking Technique for Locating Prey)

The grouper fish optimally forages according to the proximity of its prey. The initial position of the moray eel is arbitrarily selected from the initial population. To enhance exploration capabilities and encourage divergence from local optima, we introduce two control coefficients, C 1 and C 2 . These coefficients are assigned random values that either exceed 1 or fall below −1, intentionally designed to push the search agent away from currently known optimal solutions. This repulsive mechanism serves to expand the search space and reduce the risk of premature convergence. During the exploration phase of the algorithm, instead of exploiting the best-known solution, a randomly chosen search agent is used to guide the update of another agent’s position. This stochastic update mechanism strengthens the global search ability by preventing overfitting to local optima and encouraging a more diverse search trajectory across the solution space. The behaviour of the algorithm in this phase is mathematically described by the following model:
X i t + 1 = X r a n d   + C 1 X i t C 2 X r a n d  
X G i t + 1 = X i t + 1 ,   i f   f i t n e s s   X i t + 1 > X G i t
C 1 = 2 a × r 1 a
C 2 = 2 r 2
where t denotes the present iteration in the i t h size and X r a n d signifies the arbitrary location vector. The optimal candidate from the earlier iteration is denoted by the position of vector X G . C 1 and C 2 represent the coefficient vectors, r 1 and r 2 generate a randomized value within the range of zero to unity, and · signifies element-wise multiplication. It is essential to acknowledge that if a superior solution is available, X G should be modified in every iteration. The grouper is in motion following its hunt.
The phenomenon of a shrinking encircling action is induced by reducing variable a in Equations (30) and (31). Variable a exhibits a declining pattern as the number of repeats increases. C 1 is a stochastic variable within the interval [ a ,   a ] , whereas C 2 is a stochastic variable within the interval [ 0 ,   2 ] , with a diminishing from 2 to 0 over the course of iterations. The range of variance for C 1 is similarly diminished by variables a . According to Equation (29), C 2 is a coefficient of r 2 . In Equation (32), r a n d represents an arbitrary value within the interval of zero to unity.
a = 2 2 × t M a x i t e r a t i o n r 1 , r 2   i s   a   r a n d o m   n u m b e r   b e t w e e n   0,1
r 3 = ( a 2 ) × r 1 + 2
r 4 = 100 × r a n d

4.2.2. Communicating with Moray Eels

Groupers communicate their attacking locations and insights by head bobbing. Groupers, especially those who are famished and have recently lost their prey to a reef break, approach the closest moray eel in its diurnal concealment and perform an unusual head-shaking dance while fluttering its dorsal fin. The position of each eel relative to the grouper is renewed numerically utilizing Equation (33). The degree of grouper hunger influences signaling in this formula. Elevating the degree of starving in grouper fish enhances the likelihood of persuading the moray eel. In Equation (34), the s t a r v a t i o n _ r a t e is a value ranging from zero to one hundred that escalates over time (number of repeats). r 4 can further be computed using Equation (32). If the eel is unassociated, its location is going to shift to a new arbitrary point.
X E i t = C 2 X G i t ,     i f   r 4 s t a r v a t i o n _ r a t e
s t a r v a t i o n _ r a t e = 100 × t M a x _ i t e r a t i o n

4.2.3. Exploitation (Attacking the Prey Together)

Moray eels pursue their prey by traversing the reef, whereas groupers use the open waters next to coral reefs to encircle their targets. Researchers have found that when hunting together, these two species are five times more effective than when hunting alone. In 58% of observed cases, moray eels first emerged from their hiding places and then both predators moved together across the reef. The probability of prey being caught by either the grouper or the eel is equal. To simulate this cooperative behaviour, there is a 50% chance that a search agent’s position will be updated using either the grouper or the eel hunting model. The parameter r 3 is calculated using Equation (31). The subsequent is the mathematical structure:
X 1 = e b r 3 s i n 2 π r 3 C 1 X E i t X P i t + X E i t
X 2 = X G i t + C 1 X G i t X P i t
X i t + 1 = 0.8 X 1 + 0.2 X 2 2 ,     i f   p < 0.5 0.2 X 1 + 0.8 X 2 2 ,     i f   p 0.5
As shown in Figure 10, the undulating update localization method begins by measuring the distance between the moray eel at coordinates ( X E , Y E ) and the prey at ( X P , Y P ) . A rotational equation is then applied to simulate their positions, capturing the natural, wave-like undulating movement of the eel as it approaches its target. This motion is modeled mathematically in Equation (35). Due to the periodic characteristics of the sine function used in this model, the algorithm allows a smooth and continuous transition between successive positions, ensuring that the space between them is thoroughly explored and no potential solution is overlooked.
In contrast, groupers detect the location of prey and immediately move toward it. When the exact position of the target within the solution space is unknown, the EGO algorithm assumes that the best-known solution so far is either optimal or close to the global optimum. Based on this assumption, all groupers update their positions to converge toward this most promising solution. This directed movement behaviour is captured in Equation (36), reinforcing exploitation in the search process.
Finally, as presented in Equation (37), the algorithm preserves the two best solutions—one from the moray eel and one from the grouper—and guides the remaining search agents to relocate based on the average of these top-performing solutions. The influence of each agent is controlled through empirically derived weighting factors, designed to reflect the natural balance observed in cooperative hunting behaviour. When the probability p < 0.5 , greater significance is assigned to the moray eel’s position X 1 , with an influence factor of 0.8 . Conversely, if p 0.5 , the grouper’s position X 2 takes precedence with the same weight, directing the movement of the rest of the agents. This dynamic adjustment helps maintain a balance between exploration and exploitation throughout the optimization process.
In a three-dimensional space, Figure 11 illustrates the rationale behind Equation (26). The position of the searching agent ( X G , Y G , Z G ) can be modified according to the coordinates of the optimal attainable outcome ( X P , Y P , Z P ) . By utilizing the values of the C 1 and C 2 vectors, many positions surrounding the most efficient agent may be reached from the present place. It is important to observe that the arbitrary vectors r 1 , r 2 , and r 3 can reach any location inside the search region delineated by the key points illustrated in Figure 11. Equation (26) allows any particle to adjust its position near the current optimal solution, emulating prey pursuit in a three-dimensional space.
An identical concept may be applied in an n-dimensional solution space, where search agents navigate within hypercubes surrounding the current optimal solution. As discussed in the previous section, the grouper and the moray eel work in coordination to pursue prey, reflecting a unique form of cooperative hunting. While it is theoretically possible to incorporate crossover operations and other evolutionary techniques into the EGO algorithm to more precisely simulate the natural behaviors of these two predators, our approach deliberately avoids adding such complexities. Instead, we aim to minimize the number of heuristics and reduce the dependency on multiple input parameters. This results in a more streamlined and computationally efficient version of the EGO algorithm, without compromising its core exploratory and exploitative capabilities.
Figure 12 demonstrates how Equation (35) regulates the amplitude of the sine function through successive iterations. As the optimization process advances, the range of the sine wave becomes progressively narrower, effectively refining the search space over time. The figure illustrates that the EGO algorithm performs a fine-tuned local search when the sine function values remain within the standard range of [ 1 ,   1 ] , allowing for precise exploitation near potential optima. Conversely, when the sine values extend into broader ranges such as [ 2 , 1 ] and [ 1 ,   2 ] , the algorithm shifts toward a more exploratory mode, probing less-visited regions of the solution space.
Figure 13 and Equation (37) illustrate the positional dynamics of the search agents within the solution space, which are influenced by the estimated location of the prey. The optimal position is assumed to lie randomly within a circular region defined by the positions of the moray eel and the grouper, representing the area of potential convergence. In one scenario, the grouper actively estimates the prey’s location and moves toward it in a direct manner, while the eel randomly adjusts its position within the vicinity of the grouper. Through this cooperative behaviour, both agents approach the prey using different yet complementary strategies.
Based on these interactions, the EGO algorithm can now be formulated using the mathematical models introduced in the previous subsections. These models define the behaviour and movement rules of the search agents. Figure 14 presents the overall flowchart of the EGO algorithm, outlining each step from initialization to convergence.

5. Results and Discussions

This section presents a comprehensive evaluation of the SMG control framework under a wide range of operational scenarios. These scenarios encompass various load perturbations (including single-step and multi-step disturbances), variability in renewable energy input, and cyber threats such as Denial-of-Service (DoS) attacks and communication latency issues. The proposed control strategy, based on EGO-tuned FFOPI-TIDμ-PIDA, is assessed through a two-phase analysis.
In the first phase, the optimization proficiency of the EGO algorithm is critically examined by benchmarking it against two alternative metaheuristic techniques (i.e., GBO and SAO). This comparison focuses on the parameter tuning of the proposed controller as well as the optimum design of the membership functions of the fuzzy logic controller by each of these distinct algorithms.
The second phase involves a comparative performance analysis of the proposed EGO-based FFOPI-TIDμ-PIDA controller against both traditional and intelligent control structures, all optimized via EGO. These include the classical PID controller, as well as more advanced fuzzy-based schemes such as FPID and FPD-(1 + PI). All simulation experiments were carried out in the MATLAB/Simulink R2024b environment using the ODE45 solver with a variable time step, a maximum step size of 1 × 10 4 , and executed under in normal simulation mode.

5.1. Assessments of Different Optimizations Used for Tuning the Proposed Control

Initially, the efficacy of the EGO optimization technique is determined by a series of tuning trials including several optimization techniques. In order to ascertain the superiority of the EGO optimization strategy, it is compared to contemporary methods such as SAO and GBO. In order to ensure a fair comparison, all the strategies studied employed the same optimization process settings, which included 100 iterations, 30 search agents, and 30 independent runs. The numerical values the EGO parameters settings used in this study are illustrated in Table 4. The optimal gains for the proposed controller, achieved through three different methods, are summarized in Table 5. This study compares the convergence behaviour of EGO, SAO, and GBO, as depicted in Figure 15. Figure 15 clearly indicates that EGO exhibits a superior convergence performance in comparison to SAO and GBO, hence validating its greater optimization capabilities. EGO achieves the minimum fitness function, namely the Integral Time Squared Error (ITSE), with a value of 0.00069. EGO achieves a 99.8% improvement in the ITSE index compared to GBO, and an 84.7% improvement compared to SAO.

5.2. Assessments of Different Controllers Used to Enhance System Performance

In this part and after the demonstration of the efficiency of EGO in the previous subsection, EGO is applied to optimize the settings of all compared controllers (i.e., PID, FPID, FPD-(1 + PI), and FFOPI-TIDμ-PIDA). The optimum settings of these controllers’ coefficients are provided in Table 6. We conducted this test, exposing the system to 0.1 pu of step load variation (ΔPL) and 0.15 pu of constant renewable powers (ΔRPs), to demonstrate the outstanding performance of the proposed FFOPI-TIDμ-PIDA controller. Figure 16 illustrates the system’s frequency response in this particular situation, in which one can clearly see that FFOPI-TIDμ-PIDA outperforms PID, FPID, and FPD-(1 + PI). Furthermore, the control output signals corresponding to the different controllers are illustrated in Figure 17. Table 7 presents the key attributes of the system’s frequency response that were examined when employing several controllers, including Max.OS, Max.US, and Set-Time. The FFOPI-TIDμ-PIDA controller obtains optimal values for Max.OS, Max.US, and Set-Time, namely 0.0221 Hz, 0.0382 Hz, and 6.314 Sec, respectively. In Table 6, the EGO-based FFOPI-TIDμ-PIDA controller shows the smallest fitness function (0.00069) compared to EGO-based PID, FPID, and FPD-(1 + PI) controllers, highlighting the effectiveness of FFOPI-TIDμ-PIDA in this design. The dynamic system responses using the EGO-tuned PID, FPID, FPD-(1 + PI), and FFOPI-TIDμ-PIDA controllers show that FFOPI-TIDμ-PIDA Max.OS is 7 times better than FPD-(1 + PI), 10 times better than FPID, and 16 times better than PID. The subsequent subsections present additional scenarios in which fluctuations in load and power from renewable sources occur, utilizing the optimal parameters of the controllers derived in this specific case (Table 6).

5.2.1. Case 1: Load Variation with Constant Renewable Powers

In this scenario, only load variation (ΔPL) is considered, as shown in Figure 18, while renewable powers (ΔRPs) remain constant. The dynamic system responses using the EGO-tuned PID, FPID, FPD-(1 + PI), and FFOPI-TIDμ-PIDA controllers are presented in Figure 19. One can note from Figure 19 that the performance of the FFOPI-TIDμ-PIDA regulator surpasses that of the PID, FPID, and FPD-(1 + PI) regulators. The power provided by controllable plants under the EGO-tuned FFOPI-TIDμ-PIDA controller during the initial 30 s, when the power imbalance is positive (ΔRPs > ΔPL), is absorbed by controllable sources to reduce the imbalance. Between 30 and 60 s, when the power generation is insufficient to meet the load demand, these energy sources step in to supply the deficit. During this interval, these sources inject additional power into the grid to maintain stability and ensure a continuous supply of electricity. Finally, between 60 and 90 s, when the power imbalance returns to zero, controllable sources neither supply nor absorb power. Table 8 presents the key attributes of the system’s frequency response that were examined when employing several controllers, including Max.OS, Max.US, Set-Time, steady-state error (St.St. Error) and ITSE for Case 1. The FFOPI-TIDμ-PIDA controller obtains optimal values for Max.OS, Max.US, St.St. Error and ITSE, namely 0.1533 Hz, 0.05997 Hz, 7.117 Sec., 0.0001 Hz, and 0.019, respectively.

5.2.2. Case 2: Variations in Solar Irradiance, Wind Speed and Load

For this situation, we take into account the fluctuations in load (ΔPL), solar power (ΔPV), and wind power (ΔPW), as depicted in Figure 20. Figure 21 displays the system frequency responses obtained from the EGO-tuned PID, FPID, FPD-(1 + PI), and FFOPI-TIDμ-PIDA controllers. The FFOPI-TIDμ-PIDA regulator shows a superior performance compared to the PID, FPID, and FPD-(1 + PI) controllers in terms of system performance metrics, including Max.OS, Max.US, and Set-Time. When the amount of renewable power generation (ΔRPs) is greater than the amount of load demand (ΔPL), controlled sources absorb the excess power. Conversely, when the load demand is greater than the renewable generation, these sources send energy to the system in order to maintain balance. Table 9 displays the vital features of the system’s frequency response that were analyzed while using various controllers, such as Max.OS, Max.US, Set-Time, St. St. Error and ITSE for Case 2. The FFOPI-TIDμ-PIDA controller establishes that the best values for Max.OS, Max.US, Set-Time, St. St. Error and ITSE are 0.3913 Hz, 0.07728 Hz, 10.76 Sec., 0.001 Hz, and 0.498, respectively. When comparing FFOPI-TIDμ-PIDA to FPD-(1 + PI), FPID, and PID, the frequency performance is enhanced in terms of Max.US by 74.3%, 74.7%, and 75.4%, respectively. Additionally, in terms of Set-Time, there is an improvement of 25.3%, 32.8%, and 48%, respectively.

5.2.3. Case 3: Various Cyber-Attack Situations

In this scenario, the system’s response is evaluated under various cyberattack circumstances, such as Denial of Service (DoS) and data transmission delays. These cyberattacks can significantly impact the communication between distributed energy resources and the controller, leading to disturbances in frequency regulation. The system’s dynamic performance with EGO-tuned PID, FPID, FPD-(1 + PI), and FFOPI-TIDμ-PIDA controllers is analyzed under these cyberattack conditions. The outcomes demonstrate that the FFOPI-TIDμ-PIDA regulator efficiency is higher than the PID, FPID, and FPD-(1 + PI) regulators, providing better resilience to the effects of cyberattacks. The FFOPI-TIDμ-PIDA controller maintains system stability and ensures reliable frequency control even when subjected to signal disruptions and delays. Various performance metrics, such as integral errors, maximum overshoot, and maximum undershoot, indicate that the FFOPI-TIDμ-PIDA controller achieves a better overall performance, when contrasted to the PID, FPID, and FPD-(1 + PI) controllers during cyberattack scenarios. This proves the resilience of the FFOPI-TIDμ-PIDA regulator in maintaining grid stability despite communication challenges.
(A)
Case 3A: DoS Attack Against Electric Vehicle (EV)
In the present scenario, the electric vehicle unit is entirely withdrawn from the system, but the other components remain unchanged. Figure 22 provides a clear illustration of the outstanding performance of the FFOPI-TIDμ-PIDA controller. An analysis of multiple measures, including undershoot, indicates that the FFOPI-TIDμ-PIDA controller surpasses the PID, FPID, and FPD-(1 + PI) regulators. The recommended controller attains a frequency deviation of 0.0921 Hz, while the PID, FPID, and FPD-(1 + PI) controllers yield deviations of 0.36 Hz, 0.353 Hz, and 0.345 Hz, respectively. FFOPI-TIDμ-PIDA stabilizes within 8 s, exhibiting oscillations around zero with a range of −0.005 to 0.005. In contrast, PID, FPID, and FPD-(1 + PI) oscillate around zero with ranges of −0.2 to 0.16, −0.13 to 0.101, and −0.07 to 0.07, respectively.
(B)
Case 3B: DoS Attack Against EV and Renewable Units
In this specific situation, the electric vehicle (EV) unit and the renewable units (solar and wind) are totally taken out of the system, but the other parts of the system are kept as they are. Figure 23 provides an obvious visualization of the outstanding performance of the FFOPI-TIDμ-PIDA regulator. The FFOPI-TIDμ-PIDA regulator performs better than the PID, FPID, and FPD-(1 + PI) controllers, according to the outcomes of several metrics, including overshoot. The proposed controller obtains a deviation in the frequency response of 0.152 Hz, while PID, FPID, and FPD-(1 + PI) achieve shifts in the frequency of 0.295 Hz, 0.183 Hz, and 0.176 Hz, respectively. In contrast to PID, which has a settling time of 17 s, FPID, which has a settling time of 12 s, and FPD-(1 + PI), which has a settling time of 10 s, the FFOPI-TIDμ-PIDA demonstrates the most promising settling time of 6 s.
(C)
Case 3C: DoS Attack Against EV and FESS Units
In this scenario, the Electric Vehicle (EV) and Flywheel Energy Storage System (FESS) are completely removed from the system, while all other components remain unchanged. The superior performance of the FFOPI-TIDμ-PIDA controller is clearly demonstrated in Figure 24. A comparative analysis of various performance metrics, such as undershoot, highlights the efficacy of the presented regulator in relation to the other control strategies, including PID, FPID, and FPD-(1 + PI). Specifically, the FFOPI-TIDμ-PIDA controller achieves an undershoot value of 0.101 Hz, significantly lower than the values obtained with the PID (0.359 Hz), FPID (0.351 Hz), and FPD-(1 + PI) (0.345 Hz) controllers. Furthermore, the FFOPI-TIDμ-PIDA controller reaches a steady-state condition within 7 s, exhibiting minimal oscillations around zero, with an oscillation range of −0.0041 to 0.0045. In contrast, the PID, FPID, and FPD-(1 + PI) controllers exhibit more pronounced oscillations around zero, with respective ranges of −0.251 to 0.21, −0.16 to 0.12, and −0.091 to 0.092. These results underscore the enhanced stability and dynamics of the presented FFOPI-TIDμ-PIDA regulator compared to conventional control approaches.
(D)
Case 3D: Cyberattacks on Communication Infrastructure and DoS Attacks Targeting the EV
In this specific scenario, the EV unit is entirely removed from the system, while all other components remain unchanged. Additionally, a modification is introduced in the signal transmission latency, increasing it from 10 ms to 20 ms. Despite these changes, the exceptional performance of the FFOPI-TIDμ-PIDA controller remains evident, as illustrated in Figure 25. A detailed comparative analysis reveals that the suggested regulator outperforms the other compared regulators, including PID, FPID, and FPD-(1 + PI), across multiple performance metrics, with a particular emphasis on undershoot. The FFOPI-TIDμ-PIDA controller demonstrates a significantly lower undershoot value of 0.0584 Hz, whereas the PID, FPID, and FPD-(1 + PI) controllers exhibit higher undershoot values of 0.361 Hz, 0.354 Hz, and 0.347 Hz, respectively. This substantial reduction in undershoot highlights the superior disturbance rejection capability of the proposed controller. Moreover, the FFOPI-TIDμ-PIDA controller reaches a steady-state condition within 9 s, further emphasizing its rapid response characteristics. While the controller maintains oscillations around zero, these oscillations are minimal, with a narrow range of −0.0098 to 0.0073. In contrast, the PID, FPID, and FPD-(1 + PI) controllers exhibit significantly larger oscillation ranges of −0.199 to 0.16, −0.14 to 0.101, and −0.082 to 0.077, respectively.
These findings confirm that the FFOPI-TIDμ-PIDA controller not only enhances the transient response by reducing the overshoot and settling time but also improves the steady-state performance by minimizing oscillatory behaviour. The ability of the proposed controller to maintain stability and robustness under increased signal transmission latency further reinforces its effectiveness in dynamic and complex system conditions. Consequently, the FFOPI-TIDμ-PIDA controller emerges as a highly reliable solution for improving system performance compared to existing control strategies.
A summary of the frequency response characteristics for the various cyberattack scenarios examined in Case 3 is presented in Figure 26. The comparative analysis highlights the superior performance of the proposed FFOPI-TIDμ-PIDA controller compared to the other control strategies, including PID, FPID, and FPD-(1 + PI). Under different cyberattack conditions, the FFOPI-TIDμ-PIDA controller consistently demonstrates enhanced robustness and resilience, effectively mitigating the adverse effects of cyber threats on system stability and performance.
For instance, in Case 3C, the FFOPI-TIDμ-PIDA controller achieves a significantly lower ITSE index value of 1.257, representing a substantial improvement over the conventional controllers. Specifically, the proposed controller reduces the ITSE value by a factor of 31.7 compared to the PID controller, 13.9 compared to the FPID controller, and 7.3 compared to the FPD-(1 + PI) controller. This notable reduction in ITSE underscores the superior capability of the FFOPI-TIDμ-PIDA controller in minimizing error accumulation over time, thereby enhancing system reliability and performance in the presence of cyber threats. These results further validate the effectiveness of the FFOPI-TIDμ-PIDA controller in safeguarding system operation against cyberattacks by ensuring rapid error correction and improved dynamic response. The ability of the proposed controller to maintain a superior performance under adverse conditions highlights its potential for practical implementation in cyber-resilient control systems.

6. Conclusions

This study introduced an advanced frequency management framework for smart microgrid (SMG) systems, integrating a smart FLC with three cascaded conventional controllers—FOPI, TIDμ, and PIDA. The control parameters were optimally tuned using the recently developed Eel and Grouper Optimizer (EGO), which draws inspiration from the collaborative foraging strategies observed between eels and groupers in natural marine environments. This bio-inspired metaheuristic was employed to fine-tune both the controller gains and the fuzzy logic membership functions, with the aim of achieving superior system performance. To evaluate the effectiveness of the EGO algorithm, its results were benchmarked against those obtained using other state-of-the-art optimization techniques, specifically the Gradient-Based Optimization (GBO) and the Smell Agent Optimizer (SAO). Through these comparative analyses, EGO consistently demonstrated better optimization capability. The Integral of Time Squared Error (ITSE) of frequency deviations was adopted as the objective function, ensuring that the tuning process prioritized both fast response and minimal oscillation, thereby enhancing the overall dynamic performance of the system.
The proposed EGO-based FFOPI-TIDμ-PIDA controller was extensively tested under various operating conditions, including the presence of highly fluctuating renewable energy sources, uncertain load variations, and various cyberattacks such as denial of service (DoS) and signal transmission delays. The comparative performance assessment against conventional and intelligent control strategies—namely, EGO-based PID, Fuzzy PID (FPID), and Fuzzy PD-(1 + PI) (FPD-(1 + PI))—demonstrated the clear advantages of the proposed approach in enhancing frequency stability, reducing transient deviations, and improving system resilience under adverse conditions. For instance, in the common case, by exposing the system to a step load variation of 0.1 pu and a constant renewable power variation of 0.15 pu, the proposed controller improved the Max.OS by 93.8% compared to the PID controller, 89.7% compared to the FPID controller, and 85.6% compared to the FPD-(1 + PI) controller. In Case 1, when series variations were applied to the load while maintaining constant renewable power variation, the proposed FFOPI-TIDμ-PIDA controller enhanced the frequency response performance, resulting in an improvement in the fitness function by 99%, 97%, and 91% compared to the PID, FPID, and FPD-(1 + PI) controllers, respectively. Furthermore, in Case 2, where series variations in solar irradiance, wind speed, and load were introduced, the proposed controller yielded enhancements in the Max.US by 74.3%, 74.7%, and 75.4% compared to the PID, FPID, and FPD-(1 + PI) controllers, respectively.
Consequently, the results confirmed that the FFOPI-TIDμ-PIDA controller significantly enhanced the frequency regulation capabilities of the SMG system, achieving an overall performance improvement of approximately 99.6% in comparison to the competing control strategies. Notably, the fitness function value dropped to 0.00069, which is nearly 200 times lower than that obtained using the other compared controllers, underscoring the exceptional accuracy and effectiveness of the proposed framework. Additionally, the controller exhibited superior dynamic performance by reducing overshoot, undershoot, and settling time, thereby ensuring rapid and stable frequency regulation even in the presence of cyber threats and communication delays.
The findings of our study emphasize the potential use of the EGO-based FFOPI-TIDμ-PIDA controller as an effective and cyber-resilient solution for frequency regulation in SMG systems. By ensuring enhanced robustness, rapid response, and improved stability under uncertain and hostile conditions, our suggested controller represents a promising advancement in modern power system control strategies.

7. Limitations and Future Aspects

Despite the promising results, this study has certain limitations that warrant further investigation. First, the proposed controller was tested under a specific set of operating conditions and cyberattack scenarios. However, real-world power grids may encounter more complex and unpredictable disturbances, requiring further validation under diverse real-time scenarios, including large-scale grid integration and multiple attack vectors. Additionally, this study assumes known and fixed system parameters; however, in real-world applications, parameter uncertainties can significantly degrade controller performance. Furthermore, while specific cyberattack scenarios have been considered, the study does not cover the full spectrum of potential threats, such as advanced persistent threats, coordinated multi-point attacks, or zero-day vulnerabilities. These sophisticated cyber threats pose serious risks to system stability and highlight the need for the further development of adaptive and resilient control strategies capable of detecting and responding to novel and evolving attacks. Furthermore, the computational complexity associated with implementing the EGO algorithm, especially difficulties in tuning due to the numerous parameters of the proposed FFOPI-TIDμ-PIDA controller, may pose challenges in systems with stringent processing constraints, necessitating the exploration of lightweight optimization techniques or hardware-based acceleration methods.
Future studies may concentrate on expanding this framework to encompass extensive power networks and distributed energy resources (DER) systems, incorporating supplementary cyber–physical security protocols, and investigating adaptive or real-time optimization methodologies to augment its practical use. Moreover, future research could focus on enhancing the controller’s robustness against parameter variations by incorporating uncertainty modeling techniques such as interval analysis, Monte Carlo simulations, or robust control design (e.g., H-infinity, μ-synthesis). Furthermore, the integration of artificial intelligence (AI)-based predictive control algorithms, reinforcement learning, or hybrid optimization methods could enhance the controller’s responsiveness to dynamic grid conditions. Ultimately, employing real-time simulators such as OPAL-RT or dSpace to evaluate the suggested control approach within a practical SMG testbed will provide insights into its efficacy in real-world applications and the potential challenges that may arise during implementation.

Author Contributions

Conceptualization, K.M.A. and M.H.A.; methodology, K.M.A. and M.H.A.; software, K.M.A. and M.H.A.; validation, K.M.A., M.H.A. and A.I.M.; formal analysis, K.M.A. and M.H.A.; investigation, K.M.A. and A.I.M.; resources, K.M.A.; data curation, K.M.A. and A.I.M.; writing—original draft preparation, K.M.A. and M.H.A.; writing—review and editing, K.M.A. and A.I.M.; visualization, K.M.A. and A.I.M.; supervision, K.M.A. and A.I.M.; project administration, K.M.A. and A.I.M.; funding acquisition, K.M.A. and A.I.M. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Data Availability Statement

The authors confirm that the data supporting the findings of this study are available within the article.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. John, T.; Ping Lam, S. Voltage and Frequency Control during Microgrid Islanding in a Multi-Area Multi-Microgrid System. IET Gener. Transm. Distrib. 2017, 11, 1502–1512. [Google Scholar] [CrossRef]
  2. Olivares, D.E.; Mehrizi-Sani, A.; Etemadi, A.H.; Canizares, C.A.; Iravani, R.; Kazerani, M.; Hajimiragha, A.H.; Gomis-Bellmunt, O.; Saeedifard, M.; Palma-Behnke, R.; et al. Trends in Microgrid Control. IEEE Trans. Smart Grid 2014, 5, 1905–1919. [Google Scholar] [CrossRef]
  3. Khooban, M.-H. Secondary Load Frequency Control of Time-Delay Stand-Alone Microgrids with Electric Vehicles. IEEE Trans. Ind. Electron. 2018, 65, 7416–7422. [Google Scholar] [CrossRef]
  4. Ahmed, M.; Meegahapola, L.; Vahidnia, A.; Datta, M. Stability and Control Aspects of Microgrid Architectures–a Comprehensive Review. IEEE Access 2020, 8, 144730–144766. [Google Scholar] [CrossRef]
  5. Zeidan, M.A.; Hammad, M.R.; Megahed, A.I.; AboRas, K.M.; Alkuhayli, A.; Gowtham, N. Enhancement of a Hybrid Electric Shipboard Microgrid’s Frequency Stability with Triangulation Topology Aggregation Optimizer-Based 3DOF-PID-TI Controller. IEEE Access 2024, 12, 66625–66645. [Google Scholar] [CrossRef]
  6. Khudhair, M.; Ragab, M.; AboRas, K.M.; Abbasy, N.H. A Newly Resilient Combination of PIDD2 and PD Controllers to Boost the Frequency Response in a Two-Area Hybrid Power System with Nonlinearities Using Wild Horse Optimizer. In Proceedings of the 2021 International Conference on Electrical, Computer and Energy Technologies (ICECET), Prague, Czech Republic, 20–22 July 2022; Volume 14, pp. 1–11. [Google Scholar] [CrossRef]
  7. Shayeghi, H.; Younesi, A. Fuzzy PID Control of Microgrids. In Microgrid Architectures, Control and Protection Methods; Power systems; Springer International Publishing: Cham, Switzerland, 2019; pp. 555–575. [Google Scholar] [CrossRef]
  8. Khadanga, R.K.; Padhy, S.; Panda, S.; Kumar, A. Design and Analysis of Tilt Integral Derivative Controller for Frequency Control in an Islanded Microgrid: A Novel Hybrid Dragonfly and Pattern Search Algorithm Approach. Arab. J. Sci. Eng. 2018, 43, 3103–3114. [Google Scholar] [CrossRef]
  9. Pan, I.; Das, S. Fractional Order AGC for Distributed Energy Resources Using Robust Optimization. IEEE Trans. Smart Grid 2016, 7, 2175–2186. [Google Scholar] [CrossRef]
  10. Singh, A.; Suhag, S. Frequency Regulation in an AC Microgrid Interconnected with Thermal System Employing Multiverse-Optimised Fractional Order-PID Controller. Int. J. Sustain. Energy 2019, 39, 250–262. [Google Scholar] [CrossRef]
  11. Izadbakhsh, A.; Khorashadizadeh, S.; Kheirkhahan, P. Real-Time Fuzzy Fractional-Order Control of Electrically Driven Flexible-Joint Robots. AUT J. Model. Simul. 2018, 52, 11–18. [Google Scholar] [CrossRef]
  12. Koszewnik, A.; Pawłuszewicz, E.; Ostaszewski, M. Experimental Studies of the Fractional PID and TID Controllers for Industrial Process. Int. J. Control Autom. Syst. 2021, 19, 1847–1862. [Google Scholar] [CrossRef]
  13. Babaei, F.; Safari, A. SCA Based Fractional-Order PID Controller Considering Delayed EV Aggregators. J. Oper. Autom. Power Eng. 2020, 8, 75–85. [Google Scholar] [CrossRef]
  14. Khadanga, R.K.; Padhy, S.; Panda, S.; Kumar, A. Design and Analysis of Multi-Stage PID Controller for Frequency Control in an Islanded Micro-Grid Using a Novel Hybrid Whale Optimization-Pattern Search Algorithm. Int. J. Numer. Model. Electron. Netw. Devices Fields 2018, 31, e2349. [Google Scholar] [CrossRef]
  15. Shayeghi, H.; Rahnama, A. Designing a PD-(1+PI) Controller for LFC of an Entirely Renewable Microgrid Using PSO-TVAC. Int. J. Tech. Phys. Probl. Eng. 2020, 12, 19–27. [Google Scholar]
  16. Khokhar, B.; Dahiya, S.; Singh Parmar, K.P. A Robust Cascade Controller for Load Frequency Control of a Standalone Microgrid Incorporating Electric Vehicles. Electr. Power Compon. Syst. 2020, 48, 711–726. [Google Scholar] [CrossRef]
  17. Zaheeruddin; Singh, K. Intelligent Fractional-Order-Based Centralized Frequency Controller for Microgrid. IETE J. Res. 2020, 68, 2848–2862. [Google Scholar] [CrossRef]
  18. Hossam-Eldin, A.A.; Negm, E.; Ragab, M.; AboRas, K.M. A Maiden Robust FPIDD2 Regulator for Frequency-Voltage Enhancement in a Hybrid Interconnected Power System Using Gradient-Based Optimizer. Alex. Eng. J. 2022, 65, 103–118. [Google Scholar] [CrossRef]
  19. Alghamdi, S.; Alqarni, M.; Hammad, M.R.; AboRas, K.M. First-of-Its-Kind Frequency Enhancement Methodology Based on an Optimized Combination of FLC and TFOIDFF Controllers Evaluated on EVs, SMES, and UPFC-Integrated Smart Grid. Fractal Fract. 2023, 7, 807. [Google Scholar] [CrossRef]
  20. Younesi, A.; Shayeghi, H. Q-Learning Based Supervisory PID Controller for Damping Frequency Oscillations in a Hybrid Mini/Micro-Grid. Iran. J. Electr. Electron. Eng. 2019, 15, 126–141. [Google Scholar] [CrossRef]
  21. Roozbehani, S.; Hagh, M.T.; Zadeh, S.G. Frequency Control of Islanded Wind-Powered Microgrid Based on Coordinated Robust Dynamic Droop Power Sharing. IET Gener. Transm. Distrib. 2019, 13, 4968–4977. [Google Scholar] [CrossRef]
  22. Pannala, S.; Patari, N.; Srivastava, A.K.; Padhy, N.P. Effective Control and Management Scheme for Isolated and Grid Connected DC Microgrid. IEEE Trans. Ind. Appl. 2020, 56, 6767–6780. [Google Scholar] [CrossRef]
  23. Wu, X.; Xu, Y.; He, J.; Wang, X.; Vasquez, J.C.; Guerrero, J.M. Pinning-Based Hierarchical and Distributed Cooperative Control for AC Microgrid Clusters. IEEE Trans. Power Electron. 2020, 35, 9865–9885. [Google Scholar] [CrossRef]
  24. Pham, T.N.; Trinh, H.; Hien, L.V. Load Frequency Control of Power Systems with Electric Vehicles and Diverse Transmission Links Using Distributed Functional Observers. IEEE Trans. Smart Grid 2016, 7, 238–252. [Google Scholar] [CrossRef]
  25. Nayak, P.C.; Bisoi, S.; Prusty, R.C.; Panda, S. Performance Analysis of PDF+(1+PI) Controller for Load Frequency Control of the Multi Microgrid System Using Genetic Algorithm. In Proceedings of the 2019 International Conference on Information Technology (ICIT), Bhubaneswar, India, 19–21 December 2019. [Google Scholar] [CrossRef]
  26. Khadanga, R.K.; Kumar, A.; Panda, S. Frequency control in hybrid distributed power systems via type-2 fuzzy PID controller. IET Renew. Power Gener. 2020, 15, 1706–1723. [Google Scholar] [CrossRef]
  27. Mu, C.; Zhang, Y.; Jia, H.; He, H. Energy-Storage-Based Intelligent Frequency Control of Microgrid with Stochastic Model Uncertainties. IEEE Trans. Smart Grid 2020, 11, 1748–1758. [Google Scholar] [CrossRef]
  28. Wang, Y.; Li, F.; Yu, H.; Wang, Y.; Qi, C.; Yang, J.; Song, F. Optimal operation of microgrid with multi-energy complementary based on moth flame optimization algorithm. Energy Sour. Part A Recover. Util. Environ. Eff. 2019, 42, 785–806. [Google Scholar] [CrossRef]
  29. Zhao, H.; Hong, M.; Lin, W.; Loparo, K.A. Voltage and Frequency Regulation of Microgrid with Battery Energy Storage Systems. IEEE Trans. Smart Grid 2017, 10, 414–424. [Google Scholar] [CrossRef]
  30. Kumar, A.; Khadanga, R.K.; Panda, S. Reinforced modified equilibrium optimization technique-based MS-PID frequency regulator for a hybrid power system with renewable energy sources. Soft Comput. 2021, 26, 5437–5455. [Google Scholar] [CrossRef]
  31. Bevrani, H.; Daneshmand, P.R. Fuzzy Logic-Based Load-Frequency Control Concerning High Penetration of Wind Turbines. IEEE Syst. J. 2011, 6, 173–180. [Google Scholar] [CrossRef]
  32. Khadanga, R.K.; Kumar, A.; Panda, S. A novel sine augmented scaled sine cosine algorithm for frequency control issues of a hybrid distributed two-area power system. Neural Comput. Appl. 2021, 33, 12791–12804. [Google Scholar] [CrossRef]
  33. Nayak, P.; Prusty, R.; Panda, S. Grasshopper optimization algorithm optimized multistage controller for automatic generation control of a power system with FACTS devices. Prot. Control Mod. Power Syst. 2021, 6, 1–15. [Google Scholar]
  34. Murugan, S.; Jaishankar, M.; Premkumar, K. Hybrid DC–AC Microgrid Energy Management System Using an Artificial Gorilla Troops Optimizer Optimized Neural Network. Energies 2022, 15, 8187. [Google Scholar] [CrossRef]
  35. Li, Z.; Shahidehpour, M.; Alabdulwahab, A.; Abusorrah, A. Bilevel Model for Analyzing Coordinated Cyber-Physical Attacks on Power Systems. IEEE Trans. Smart Grid 2015, 7, 2260–2272. [Google Scholar] [CrossRef]
  36. Sekar, K.; Arasan, E.; Chandrasekaran, K. Greywolf Optimization and Fed Fast Terminal Sliding Mode Controllers Based on Interleaved Boost Converters for Symmetric PV Systems under Asymmetric Partial Shading. Symmetry 2023, 15, 1339. [Google Scholar] [CrossRef]
  37. Govindaraju, S.K.; Sivalingam, R.; Panda, S.; Sahu, P.R.; Padmanaban, S. Frequency Control of Power System with Distributed Sources by Adaptive Type 2 Fuzzy PID Controller. Electr. Power Compon. Syst. 2023, 52, 487–508. [Google Scholar] [CrossRef]
  38. Raghuraman, S.; Subramani, C.; Dash, S. A modified whale optimization algorithm-based adaptive fuzzy logic PID controller for load frequency control of autonomous power generation systems. Automatika 2017, 58, 410–421. [Google Scholar]
  39. Raghuraman, S.; Subramani, C.; Dash, S. A hybrid stochastic fractal search and local unimodal sampling based multistage PDF plus (1+PI) controller for automatic generation control of power systems. J. Frankl. Inst. 2017, 354, 4762–4783. [Google Scholar]
  40. Khokhar, B.; Dahiya, S.; Parmar, K.S. Load frequency control of a microgrid employing a 2D Sine Logistic map based chaotic sine cosine algorithm. Appl. Soft Comput. 2021, 109, 107564. [Google Scholar] [CrossRef]
  41. Abou El-Ela, A.A.; El-Sehiemy, R.A.; Shaheen, A.M.; Diab, A.E.G. Design of cascaded controller based on coyote optimizer for load frequency control in multi-area power systems with renewable sources. Control Eng. Pract. 2022, 121, 105058. [Google Scholar] [CrossRef]
  42. Shayeghi, H.; Rahnama, A.; Alhelou, H.H. Frequency control of fully-renewable interconnected microgrid using fuzzy cascade controller with demand response program considering. Energy Rep. 2021, 7, 6077–6094. [Google Scholar] [CrossRef]
  43. Irudayaraj, A.X.R.; Wahab, N.I.A.; Umamaheswari, M.G.; Radzi, M.A.M.; Sulaiman, N.B.; Veerasamy, V.; Prasanna, S.C.; Ramachandran, R. A Matignon’s Theorem Based Stability Analysis of Hybrid Power System for Automatic Load Frequency Control Using Atom Search Optimized FOPID Controller. IEEE Access 2020, 8, 168751–168772. [Google Scholar] [CrossRef]
  44. Padhy, S.; Panda, S. Application of a simplified GreyWolf optimization technique for adaptive fuzzy PID controller design for frequency regulation of a distributed power generation system. Prot. Control Mod. Power Syst. 2021, 6, 1–6. [Google Scholar] [CrossRef]
  45. Sharma, M.; Dhundhara, S.; Arya, Y.; Prakash, S. Frequency stabilization in deregulated energy system using coordinated operation of fuzzy controller and redox flow battery. Int. J. Energy Res. 2020, 45, 7457–7475. [Google Scholar] [CrossRef]
  46. Mohammadzadeh, A.; Mirjalili, S. Eel and grouper optimizer: A nature-inspired optimization algorithm. Clust. Comput. 2024, 27, 12745–12786. [Google Scholar] [CrossRef]
  47. Yakout, A.H.; AboRas, K.M.; Kotb, H.; Alharbi, M.; Shouran, M.; Abdul Samad, B. A novel ultra local based-fuzzy PIDF controller for frequency regulation of a hybrid microgrid system with high renewable energy penetration and storage devices. Processes 2023, 11, 1093. [Google Scholar] [CrossRef]
  48. Pachaiyappan, R.; Arasan, E.; Chandrasekaran, K. Improved Gorilla Troops Optimizer-Based Fuzzy PD-(1+ PI) Controller for Frequency Regulation of Smart Grid under Symmetry and Cyber Attacks. Symmetry 2023, 15, 2013. [Google Scholar] [CrossRef]
  49. Ahmadianfar, I.; Bozorg-Haddad, O.; Chu, X. Gradient-based optimizer: A new metaheuristic optimization algorithm. Inf. Sci. 2020, 540, 131–159. [Google Scholar] [CrossRef]
  50. Salawudeen, A.T.; Mu’azu, M.B.; Yusuf, A.; Adedokun, A.E. A Novel Smell Agent Optimization (SAO): An extensive CEC study and engineering application. Knowl.-Based Syst. 2021, 232, 107486. [Google Scholar] [CrossRef]
  51. Podlubny, I. Fractional Differential Equations: An Introduction to Fractional Derivatives, Fractional Differential Equations, to Methods of Their Solution and Some of Their Applications; Elsevier: Amsterdam, The Netherlands, 1998. [Google Scholar]
  52. Oustaloup, A.; Levron, F.; Mathieu, B.; Nanot, F.M. Frequency-band complex noninteger differentiator: Characterization and synthesis. IEEE Trans. Circuits Syst. I Fundam. Theory Appl. 2000, 47, 25–39. [Google Scholar] [CrossRef]
  53. Tepljakov, A.; Tepljakov, A. FOMCON: Fractional-order modeling and control toolbox. In Fractional-Order Modeling and Control of Dynamic Systems; Springer: Cham, Switzerland, 2017; pp. 107–129. [Google Scholar]
  54. Sharma, D.; Yadav, N.K. LFOPI controller: A fractional order PI controller based load frequency control in two area multi-source interconnected power system. Data Technol. Appl. 2020, 54, 323–342. [Google Scholar] [CrossRef]
  55. Tabak, A.; Duman, S. Maiden application of TIDμ1NDμ2 controller for effective load frequency control of non-linear two-area power system. IET Renew. Power Gener. 2024, 18, 1269–1291. [Google Scholar] [CrossRef]
  56. Huba, M.; Bistak, P.; Vrancic, D. Parametrization and Optimal Tuning of Constrained Series PIDA Controller for IPDT Models. Mathematics 2023, 11, 4229. [Google Scholar] [CrossRef]
  57. Kumar, M. Resilient pida control design based frequency regulation of interconnected time-delayed microgrid under cyber-attacks. IEEE Trans. Ind. Appl. 2022, 59, 492–502. [Google Scholar] [CrossRef]
  58. Daood, O.; Najeeb, M.; Ali, I.I. An Efficient Load Frequency Control for Multiple Power Systems Using Fuzzy Logic-Proportional Integral Derivative Controller. Int. J. Electr. Electron. Res. 2024, 12, 654–661. [Google Scholar] [CrossRef]
  59. Bshary, R.; Hohner, A.; Ait-el-Djoudi, K.; Fricke, H. Interspecific communicative and coordinated hunting between groupers and giant moray eels in the Red Sea. PLoS Biol. 2006, 4, e431. [Google Scholar] [CrossRef] [PubMed]
Figure 1. The block diagram configuration of the explored SMG system.
Figure 1. The block diagram configuration of the explored SMG system.
Mathematics 13 02040 g001
Figure 2. The EGO-based FFOPI-TIDμ-PIDA controller design.
Figure 2. The EGO-based FFOPI-TIDμ-PIDA controller design.
Mathematics 13 02040 g002
Figure 3. FOPI controller design.
Figure 3. FOPI controller design.
Mathematics 13 02040 g003
Figure 4. TIDμ controller design.
Figure 4. TIDμ controller design.
Mathematics 13 02040 g004
Figure 5. PIDA controller design.
Figure 5. PIDA controller design.
Mathematics 13 02040 g005
Figure 6. Block diagram of FLC.
Figure 6. Block diagram of FLC.
Mathematics 13 02040 g006
Figure 7. Optimum triangular MFs for FLC inputs: (a) e(t) and (b) de(t).
Figure 7. Optimum triangular MFs for FLC inputs: (a) e(t) and (b) de(t).
Mathematics 13 02040 g007aMathematics 13 02040 g007b
Figure 8. Optimum triangular MFs for u(t).
Figure 8. Optimum triangular MFs for u(t).
Mathematics 13 02040 g008
Figure 9. Surface viewer of the control process for the proposed FLC.
Figure 9. Surface viewer of the control process for the proposed FLC.
Mathematics 13 02040 g009
Figure 10. The updating process of moray eel.
Figure 10. The updating process of moray eel.
Mathematics 13 02040 g010
Figure 11. The best solution that has been found thus far involves three-dimensional location vectors and the potential future placements of these vectors (XP, YP, and ZP).
Figure 11. The best solution that has been found thus far involves three-dimensional location vectors and the potential future placements of these vectors (XP, YP, and ZP).
Mathematics 13 02040 g011
Figure 12. The manner in which Equation (34) constricts the range of the sine function.
Figure 12. The manner in which Equation (34) constricts the range of the sine function.
Mathematics 13 02040 g012
Figure 13. The location procedure of the EGO approach.
Figure 13. The location procedure of the EGO approach.
Mathematics 13 02040 g013
Figure 14. EGO flowchart [46].
Figure 14. EGO flowchart [46].
Mathematics 13 02040 g014
Figure 15. Convergence curves for different optimizations techniques.
Figure 15. Convergence curves for different optimizations techniques.
Mathematics 13 02040 g015
Figure 16. Frequency regulation response using several controllers that have been EGO-optimized.
Figure 16. Frequency regulation response using several controllers that have been EGO-optimized.
Mathematics 13 02040 g016
Figure 17. Control output signals of the four competing controllers.
Figure 17. Control output signals of the four competing controllers.
Mathematics 13 02040 g017
Figure 18. Load variation profile.
Figure 18. Load variation profile.
Mathematics 13 02040 g018
Figure 19. Frequency deviation response of the studied system for Case 1.
Figure 19. Frequency deviation response of the studied system for Case 1.
Mathematics 13 02040 g019
Figure 20. Load variation and renewable sources fluctuation pattern.
Figure 20. Load variation and renewable sources fluctuation pattern.
Mathematics 13 02040 g020
Figure 21. Frequency deviation response of the studied system for Case 2.
Figure 21. Frequency deviation response of the studied system for Case 2.
Mathematics 13 02040 g021
Figure 22. Frequency deviation response of the studied system for Case 3A.
Figure 22. Frequency deviation response of the studied system for Case 3A.
Mathematics 13 02040 g022
Figure 23. Frequency deviation response of the studied system for Case 3B.
Figure 23. Frequency deviation response of the studied system for Case 3B.
Mathematics 13 02040 g023
Figure 24. Frequency deviation response of the studied system for Case 3C.
Figure 24. Frequency deviation response of the studied system for Case 3C.
Mathematics 13 02040 g024
Figure 25. Frequency deviation response of the studied system for Case 3D.
Figure 25. Frequency deviation response of the studied system for Case 3D.
Mathematics 13 02040 g025
Figure 26. Histogram representation of system performance metrics for the different controllers compared under the impact of different cyber-attacks: (a) Maximum overshoot; (b) Maximum undershoot; (c) Settling time; (d) Fitness function.
Figure 26. Histogram representation of system performance metrics for the different controllers compared under the impact of different cyber-attacks: (a) Maximum overshoot; (b) Maximum undershoot; (c) Settling time; (d) Fitness function.
Mathematics 13 02040 g026
Table 1. The studied SMG system parameters.
Table 1. The studied SMG system parameters.
UnitGain (K)Time Constant (T)
PV11.8
EV11
Wind11.5
Diesel Engine0.0032
Aqua Electrolyzer0.0020.5
Flywheel Energy Storage−0.010.1
Battery Energy Storage−0.0030.1
Fuel Cell0.014
Table 2. The employed fuzzy rule base set.
Table 2. The employed fuzzy rule base set.
e(t)de(t)
VNTNZTPVP
VNVNVNTNTNZ
TNVNTNTNZTP
ZTNTNZTPTP
TPTNZTPTPVP
VPZTPTPVPVP
Table 3. The proposed controller parameters’ search space range.
Table 3. The proposed controller parameters’ search space range.
The FFOPI-TIDμ-PIDA ControllerFLCFOPITIDμPIDA
ParameterRangeParameterRangeParameterRangeParameterRange
K 1 0 → 3 K P 1 0 → 1 K T 0 → 5 K P 2 0 → 5
K 2 0 → 3 K I 1 0 → 5 K I 2 0 → 5 K I 3 0 → 2
K 3 0 → 3 λ 0 → 1 K D 1 0 → 1 K D 2 0 → 2
N 1 100 → 500 K A 0 → 2
n 1 → 10 N 2 100 → 500
μ 0 → 1 N 3 100 → 500
Table 4. The parameter setting of the suggested EGO.
Table 4. The parameter setting of the suggested EGO.
ParameterSymbolValue
Population size N 30
Maximum iterations number M a x i t e r a t i o n 100
arbitrary vectors r 1 ,   r 2 = [ 0 : 1 ] 30
Coefficient vector C 2 = [ 0 : 2 ] 1000
Grouper attraction coefficient β 1.6
Damping ratio λ 0.9
Table 5. FFOPI-TIDμ-PIDA optimum parameters using different optimization techniques.
Table 5. FFOPI-TIDμ-PIDA optimum parameters using different optimization techniques.
OptimizationController PartParametersValueITSE
SAO K 1 2.3680.368
K 2 0.214
K 3 1.452
FOPI K P 1 0.562
K I 1 1.356
λ 0.893
TIDμ K T 2.579
K I 2 0.214
K D 1 0.12
N 1 356
n 1.436
μ 0.769
PIDA K P 2 4.325
K I 3 1.528
K D 2 0.115
K A 1.658
N 2 429
N 3 500
GBOFLC K 1 0.9860.0045
K 2 1.121
K 3 1.432
FOPI K P 1 0.234
K I 1 3.769
λ 0.653
TIDμ K T 3.338
K I 2 4.682
K D 1 0.085
N 1 467
n 8.671
μ 0.293
PIDA K P 2 1.864
K I 3 0.259
K D 2 1.245
K A 0.368
N 2 500
N 3 243
EGOFLC K 1 1.7890.00069
K 2 0.593
K 3 0.864
FOPI K P 1 0.379
K I 1 2.722
λ 0.984
TIDμ K T 1.561
K I 2 3.158
K D 1 0.022
N 1 482
n 9.727
μ 0.253
PIDA K P 2 2.579
K I 3 0.122
K D 2 0.011
K A 0.116
N 2 500
N 3 479
Table 6. Optimum controllers’ parameters using EGO optimization technique.
Table 6. Optimum controllers’ parameters using EGO optimization technique.
ControllerITSE
PID1.041
K P K I K D
19.97619.5150.516
FPID0.461
K 1 K 2 K P K I K D
1.9960.01115.73115.9513.978
FPD-(1 + PI)0.1616
K 1 K 2 K P 1 K D K P 2 K I
1.9870.1963.0590.0781.2481.208
FFOPI-TIDμ-PIDA (Proposed)0.00069
K 1 K 2 K 3 K P 1 K I 1 λ K T K I 2 K D 1
1.7890.5930.8640.3792.7220.9841.5613.1580.022
N 1 n μ K P 2 K I 3 K D 2 K A N 2 N 3
4829.7270.2532.5790.1220.0110.116500479
Table 7. Characteristics of the frequency deviation response of the system using different controllers.
Table 7. Characteristics of the frequency deviation response of the system using different controllers.
ControllerMax.OS (Hz)Max.US (Hz)Set-Time (Sec.)
PID0.3540.0485322.01
FPID0.21450.0476714.1
FPD-(1 + PI)0.15320.0467213.8
FFOPI-TIDμ-PIDA0.02210.03826.314
Table 8. Characteristics of the frequency deviation response of the system using different controllers under the impact of Case 1.
Table 8. Characteristics of the frequency deviation response of the system using different controllers under the impact of Case 1.
ControllerMax.OS (Hz)Max.US (Hz)Set-Time (Sec.)St.St.
Error (Hz)
ITSE
PID0.34720.07958220.00061.919
FPID0.21110.0783713.220.00030.612
FPD-(1 + PI)0.16440.0766711.40.00030.211
FFOPI-TIDμ-PIDA0.15330.059977.1170.00010.019
Table 9. Characteristics of the frequency deviation response of the system using different controllers under the impact of Case 2.
Table 9. Characteristics of the frequency deviation response of the system using different controllers under the impact of Case 2.
ControllerMax.OS (Hz)Max.US (Hz)Set-Time (Sec.)St.St.
Error (Hz)
ITSE
PID0.64810.314620.710.1523
FPID0.45150.30615.980.110.15
FPD-(1 + PI)0.53070.301214.410.076.168
FFOPI-TIDμ-PIDA0.39130.0772810.760.0010.498
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

AboRas, K.M.; Alshehri, M.H.; Megahed, A.I. Eel and Grouper Optimization-Based Fuzzy FOPI-TIDμ-PIDA Controller for Frequency Management of Smart Microgrids Under the Impact of Communication Delays and Cyberattacks. Mathematics 2025, 13, 2040. https://doi.org/10.3390/math13132040

AMA Style

AboRas KM, Alshehri MH, Megahed AI. Eel and Grouper Optimization-Based Fuzzy FOPI-TIDμ-PIDA Controller for Frequency Management of Smart Microgrids Under the Impact of Communication Delays and Cyberattacks. Mathematics. 2025; 13(13):2040. https://doi.org/10.3390/math13132040

Chicago/Turabian Style

AboRas, Kareem M., Mohammed Hamdan Alshehri, and Ashraf Ibrahim Megahed. 2025. "Eel and Grouper Optimization-Based Fuzzy FOPI-TIDμ-PIDA Controller for Frequency Management of Smart Microgrids Under the Impact of Communication Delays and Cyberattacks" Mathematics 13, no. 13: 2040. https://doi.org/10.3390/math13132040

APA Style

AboRas, K. M., Alshehri, M. H., & Megahed, A. I. (2025). Eel and Grouper Optimization-Based Fuzzy FOPI-TIDμ-PIDA Controller for Frequency Management of Smart Microgrids Under the Impact of Communication Delays and Cyberattacks. Mathematics, 13(13), 2040. https://doi.org/10.3390/math13132040

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop