Abstract
Frequency stability has become a serious challenge in the case of standalone microgrids where renewable energy sources (RESs) are predominant, due to their variability and the system’s low inertia. The innovation presented in this paper is to control load frequency in an islanded hybrid microgrid including a diesel generator, PV unit, and dynamically controlled redox flow battery (RFB) using a new cascaded fractional-order (FO) (PD-PI) controller that has been optimized using the Crayfish Optimization Algorithm (CrOA). What sets this proposed controller apart from traditional controllers is its dual-loop structure, allowing for a combination of fast dynamic response and precise steady-state regulation while ensuring optimal parameter tuning through the CrOA. The system was evaluated through an extensive series of disturbance scenarios, including step changes, random and cyclic load disturbances, fluctuations in the PV output, and RFB faults. Simulation results showed that the FO-(PD-PI) + CrOA controller outperformed classical PID and other fractional controllers in terms of reducing overshoot, response time, and Integral Time Absolute Error (ITAE), while maximizing energy storage utilization. These results demonstrate the potential of intelligent bioinspired control strategies for microgrid operation with resilience and efficiency.
Keywords
1. Introduction
The rising environmental and economic concerns associated with fossil fuel combustion in conventional power plants have catalyzed the introduction of RESs into modern-day power systems.1–3 RESs such as photovoltaic energy and wind energy are non-polluting, renewable, and almost inexhaustible sources of energy, serving as a viable means of reducing the world’s reliance on finite fossil resources and minimizing greenhouse gas emissions.4,5 However, these RESs have their own disadvantages, such as their intermittent nature and dependence on climate conditions, which pose significant stability challenges, especially in standalone or islanded microgrids with limited inertia. 6 Such systems are highly susceptible to frequency deviations in response to sudden load changes or power fluctuations.7,8 To address these challenges, control strategies like LFC play a crucial role in ensuring that the frequency remains within acceptable limits. 7 Traditionally, the PID controller has been widely accepted due to its simple design and application. 9 However, it becomes less effective when renewable penetration is high and load fluctuations occur randomly, with the major drawback of lacking flexibility and robustness.10,11
Distinctive aspects of the proposed research in comparison to related studies.
The effectiveness of the controller heavily relies on selecting optimal parameters. Traditional parameter tuning methods face challenges such as local optima, slow convergence, and sensitivity to initial conditions. To address these challenges, metaheuristic optimization algorithms are gaining popularity for their global search capabilities and flexibility. Algorithms like ABC, SSA, and WOA have been applied in LFC applications,28,29 but they encounter issues like slow convergence and poor exploitation abilities.30,31 Enhanced variants such as SAS–SCA, ESAOA, and LMRFO have been proposed.32–34 Currently, the MRFO algorithm is considered advantageous due to its simple structure and fewer control parameters, making it suitable for engineering applications.35,36 However, MRFO faces challenges related to exploration and exploitation imbalance, leading to slow convergence. 37 Therefore, this research employs the CrOA, which offers a balance between global search and local refinement, to optimize the parameters of the proposed controller.38–41
Apart from the advanced control design, the integration of ESSs also effectively mitigates frequency deviations. The technologies being studied in this regard are virtual inertia, SMES, battery storage, and flywheels.42,43 This work particularly involves the implementation of dynamic RFB, which provides rapid and flexible active power support in accordance with the DG and PV unit in an islanded MG.44,45 Unlike other similar studies focusing on PEVs or even grid-tied systems,46,47 the present framework focuses on promoting an autonomous frequency regulation approach in a remote stand-alone environment.48–50 The main contributions of this study are summarized as follows: • Development of a CrOA-optimized FO–(PD–PI) controller for enhancing frequency regulation in standalone hybrid MGs. • Integration of a dynamically controlled RFB to support active power balancing during disturbances. • The proposed control scheme was applied to other disturbance scenarios, including step, random, and cyclic loads, as well as PV perturbations and RFB disconnection. • Quantitative validation of the controller’s robustness and dynamic performance compared to existing techniques.
2. Power system model
The discussed standalone MG is set to work in islanded mode and consists of three main components: a dispatchable DG, a PV unit, and a dynamically controlled RFB.51,52 This hybrid setup aims to ensure stable frequency regulation for a wide variety of realistic operating conditions, including step disturbances, cyclic variations, and noise-like load fluctuations. The MG has to supply a typical base load of 20 MW, which might be seen in rural electrification or localized industrial applications.
53
Figure 1 shows the schematic representation of the system architecture. Block diagram of the proposed MG with FO-(PD–PI) controller and RFB.
The DG is modeled as the primary controlled generation unit with a rated power capacity of 30 MW, allowing the system to efficiently respond to sudden power imbalances. The dynamics of the governor and turbine are represented by a second-order transfer function with the governor time constant Tg = 0.2 s, turbine time constant Td = 0.4 s, and a droop setting of R = 2.5%. These values allow for a practical response behavior suitable for real-time control implementation. In parallel, a 6.5 MW PV plant is integrated into the system as a non-dispatchable RES. The output is determined by solar irradiance profiles over time, which is treated as an external disturbance in the control loop, representing the intermittent nature of renewable generation that has to be dynamically compensated by the controller.53,54 A controlled RFB has been employed as the energy storage system to provide additional support to the frequency control. Due to its ability to decouple energy and power capacities, the RFB is highly suited for applications requiring both fast and scalable storage.
Although the MG used in this work is not very large, its layout and dynamic response closely mirror those of typical islanded MGs commonly examined in frequency-regulation studies. In practical control terms, the main elements that shape frequency behavior, such as system inertia, governor and turbine dynamics, droop settings, and the interaction between renewable and dispatchable sources, do not fundamentally change when moving from small systems to larger, multi-area networks. This means that the chosen model still captures all the key dynamic interactions needed to fairly assess the effectiveness and robustness of secondary frequency controllers. In addition, MGs with capacities between 1 and 10 MW are widely deployed in remote communities, research campuses, and hybrid renewable sites, so the system configuration adopted here is both realistic and widely representative. Many previous LFC studies have also relied on microgrids of a similar size as standard benchmarks. Even so, applying the proposed controller to larger or interconnected microgrids remains an important direction for future research and will be explored in upcoming work.
To describe the system dynamics quantitatively, a state-space representation is used. This captures the temporal evolution of internal states and their relationship with control inputs and external disturbances53–55:
Additionally, a simple frequency dynamics model developed in the spirit of the power imbalance approach is presented, suggested for practical applications
56
:
The behavior of the diesel generator’s power is represented as
53
:
In these equations:
Main parameters of the investigated MG components.
The frequency regulation strategy employed in this work follows the conventional hierarchical architecture of islanded microgrids. The primary control loop, consisting of the governor dynamics given in Eq. (7), provides fast local adjustment of mechanical power in response to frequency deviations. These dynamics, together with the inertia–damping model of the DG shown in Eq. (6), determine the inherent short-term stability characteristics of the system. However, primary control alone cannot eliminate the steady-state frequency error following load or renewable disturbances, because its action is fundamentally proportional in nature. To restore frequency to its nominal value, the proposed FO–(PD–PI) controller is implemented as a supplementary secondary control layer. The control law defined in Eq. (9) generates a corrective signal based on the measured frequency deviation Δf, and this signal is injected at the governor input as an additional reference, as illustrated in the updated version of Figure 2. Furthermore, the primary loop provides fast local action through the coordinated action of the FO–(PD–PI) controller whose long-term frequency response ensures that steady-state error is driven to zero. More assertion is incorporated in the revised manuscript. The transfer function model of the unit for RFB.
An RFB may be described basically as an electrochemical power source that can be controlled and recharged dynamically. It ideally stores any excess energy until the demand for power is low and discharges this energy rapidly during system frequency deviations. This ability is extremely useful in supporting renewable-dominated microgrids, rendering the RFB an important element in system stability. The assessment of RFB in this study goes beyond the simple first-order transfer function that has been commonly adopted in recent literature. A more accurate dynamic formulation is thus adopted that better encompasses the internal electrochemical behavior and its interaction with the control system. The model considers Δf as the primary input signal, returning an active power compensation signal
To better justify the adopted RFB dynamics, the gain parameters
3. Design of cascaded FO-(PD–PI) controller
Considering that MGs are constantly faced with situations, such as high penetration of RESs, variable load changes with loads not being dual, and reduced system inertia due to the limited presence of large rotating mass, a reliable and flexible control scheme is needed. These scenarios frequently lead to frequency oscillations and dynamic instability, especially in systems driven by variable sources, such as PV generation and energy storage. To deal with these challenges, a cascaded fractional-order FO-(PD-PI) controller is proposed here. The design of this controller is built on two theoretical foundations: fractional-order control, which provides an additional degree of freedom in the definition of the control law, allowing for better tuning flexibility and an improved dynamic response; and the cascade control structure, which distinguishes the fast disturbance rejection capability (in the inner loop) from steady-state tracking (in the outer loop) of the closed-loop system. Figure 3 shows a state-space representation of a cascaded control system with two interconnected control loops, known as the primary control loop and secondary control loop.
27
Also presented in Figure 4 is the configuration of the proposed controller.
27
The FO cascaded controller utilizing the PD-PI scheme. The structure of the cascaded FO-(PD-PI) control framework.

The main architecture of the suggested controller comprises two nested control loops, out of which the inner loop, denoted by an FO–PD controller C1(s), primarily reacts to instantaneous and high-frequency perturbations associated with disturbances of PV power by sudden load changes. The outer loop acts with an FO-PI controller C2(s), and overall is a stability controller; thus, it regulates frequency and permanence of error suppression. The inner loop will first preprocess and attenuate fast dynamic perturbations that happen before slow dynamics propagate to the outer loop, minimizing the interactions of fast dynamics with slow ones. This hierarchical control structure mathematically might be described as follows:
This control structure has as input to the primary loop
Accordingly, the control architecture has been designated
This setup culminates in the following closed-loop transfer function:
These six controller parameters (
When minimized through CrOA, the ITAE index ensures that the system presents fast dynamic recovery and minimum frequency deviation for various operating scenarios. It penalizes long-lasting errors and encourages faster damping and steady-state convergence. The total simulation time Tsim includes instantaneous frequency deviation
Due to its well-known ability to penalize late-stage and sustained deviations in frequency, ITAE is chosen as the performance index for tuning the proposed FO- (PD-PI). In comparison to indices such as ISE or IAE, which most emphasize large instantaneous errors, the ITAE criterion introduces a factor of time weighting, increasing the cost of long-period oscillations. This is important in islanded microgrids where any small residual frequency deviation can accumulate over time to worsen power quality or destabilize sensitive loads. In addition, ITAE offers smoother control actions with fast damping without excessive overshoot, which, according to the rating, makes it superior to the other methods in addressing secondary frequency regulation problems. In addition, such kind of ITAE selection has already been abundantly used in most contemporary LFC optimization works; hence, it will give a more realistic picture of long-term performance dynamics in terms of which this study aims to achieve.
For practical implementation of the proposed FO-(PD-PI) controller in the digital setup, the fractional derivative and integral operators were approximated using ORA, commonly known for its numerical stability and high fidelity in its representation of non-integer dynamics. According to the method, the fractional operator s^α is replaced with a rational transfer function having a series of real poles and zeros expressed as:
A 5th-order Oustaloup’s filter was used in this work, which spanned the frequency band
A computational load analysis was done post-Oustaloup’s filter discretization to assess the proposed FO–(PD–PI) controller’s effectiveness for practical deployment. The 5th-order ORA implementation yields a rational transfer function with 6 poles and 6 zeros for each fractional operator, giving rise to 12 multiplications and 11 additions for every sampling step. With the sampling time of 0.01 s, the total execution time of the whole FO–(PD–PI) control law remains well underneath the processing budget available in typical real-time controllers. From benchmarking performances carried out on a 150-MHz DSP-equivalent platform, results confirm that overall processor utilization remains below 5%. This demonstrates that the proposed controller does not demand an unwanted computational burden; therefore, the FO–(PD–PI) controller is thus compatible with real-time digital implementations on DSP-, PLC-, and dSPACE-based microgrid control hardware.
4. Applied CrOA technique
The natural behavior of crayfish has inspired CrOA: their foraging strategies, competitive interactions, and seeking cooler regions when the temperature gets too high. The participant behavior models have been algorithmically framed in three behavioral phases as summer resort, competition, and forage by managing exploration and exploitation capabilities of the algorithm.
62
Initially, a candidate solution population called the crayfish colony is randomly generated as =
If, on the contrary, the temperature is in an acceptable biological range for life, the algorithm switches to the forage phase, in which it tends to put more emphasis on fine-tuning solutions. In this phase, each crayfish evaluates its location based on the fitness function and maneuvers on a particular path according to a close distractor, akin to the food source. When size “too big” is referred to as a target, the algorithm derives from the observation that crayfish generally tear large food items with their limbs (interpreted as a fine-tuning step localized in the process of optimization). CrOA fosters adaptive survival mechanisms that reproduce those of real crayfish by constantly switching exploration (influenced by temperature-induced movement) with exploitation (induced through food-seeking behavior). The efficiency of convergence will be optimal or nearly optimal solutions.62,64
4.1. CrOA initialization phase
In this research, the suggested controller operates within preset upper and lower limits for the parameters, thereby edging closer toward having a constrained and meaningful search space. The CrOA algorithm begins with an initial random population of potential solutions uniformly distributed within the specified limits. Uniform distribution limits are defined by Eq. (16) using a mapping procedure62,65:
In this context, rand is a uniformly distributed random number between 0 and 1, where
Every candidate solution is a position vector in the multi-dimensional space and forms a member of the whole population matrix X, which holds the coordinates of all N individuals across dim dimensions and is arranged in the following form as shown in Eq. (17)62,65:
Subsequently, the quality of each solution is evaluated according to a fit function. The fitness values of all individuals are classified into a column vector as follows62,65:
Among the candidate solutions, the one that receives the highest fitness evaluation is considered the current best solution, guiding future iterations in their search direction.
4.2. Definition of temperature and feeding behavior in CrOA
The ambient temperature strongly affects the behavior of crayfish stored in the CrOA, determining which behavior phase will be implemented in the algorithm. Thus, the ambient temperature, in accordance with Eq. (19), determines whether the crayfish will enter the exploratory phase or the exploitation phase. When the temperature exceeds 30 °C, crayfish instinctively migrate to cooler places (this behavior is modeled as the summer resort phase), while they forage when the temperature falls under a fairly permissive range.62,66
This also impacts their feeding efficiency with respect to the temperature. Between 15 °C and 30 °C, crayfish exhibit their maximum feeding behavior, while the ideal temperature is 25 °C. In this way, the relationship between environmental temperature and feeding intake effectiveness is modeled as a Gaussian distribution depicted in Eq. (20).62,66
Here, “Temp” denotes the generated ambient temperature, while C1 and σ are constants defining the shape of the intake function. µ refers to the ideal temperature for feeding.
4.3. Exploration phase: Summer resort behavior
When the temperature rises beyond 30 °C, crayfish adopt the modality of exploratory behavior by retreating into the cooler regions, which also take the form of caves. The target cave position
The cave accessibility is determined randomly by crayfish. If the random number generated is less than 0.5, then the crayfish moves contactless into a recognized cave. This is performed by62,67:
The current and the next iteration indices are
This phase promotes convergence by guiding individuals toward the optimal region, gradually narrowing the search space as the algorithm progresses.
4.4. Exploitation phase: Competition stage
Consequently, if the temperature remains rather high while the random condition rand≥0.5 is met, multiple crayfish are supposed to congregate in the same cave, triggering a competition. In such cases, an individual crayfish will update its position based on the cave location and the influence of a randomly chosen peer, defined by62,68:
The index
The more advantageous form, however, is that competitive interaction appears to enhance the diversity of search processes, thereby increasing the likelihood that the algorithm will explore new areas of solutions.
4.5. Exploitation phase: Foraging stage
When the temperature drops to 30°C or below, the crayfish enters an active searching phase, during which it moves toward the food source. This food source is the present global best position determined as62,69:
The parameter Q, representing the size of the food, is essential in determining the manner in which crayfish tackle the feeding task, and it is calculated as62,69:
Here,
Once the food is fragmented, the crayfish consumes it with the help of alternating movement of legs, which, in this case, is simulated using sine and cosine functions62,69:
Alternatively, if
These feeding strategies serve as adaptive responses of crayfish to food size and accessibility, that is, proximity to the optimal solution, adding to the strength of exploitation and convergence performance of an algorithm.
The entire process flow of CrOA of temperature-based transitions and behavioral dynamics is illustrated in Figure 5. The CrOA application for tuning the FO-(PD–PI) controller is evidenced in Figure 6.
70
In this structure, the frequency deviation Δf is both fed back to the controller and inputted to the CrOA, continuously changing the controller parameters for optimized performance of the system. The output control signal Flowchart of CrOA.
70
Schematic of crayfish behavior phases.

From Figure 7, CrOA clearly has the steepest decline in the fitness value in the first iterations (approximately the first 40-60 cycles), which is a strong exploration mechanism rapidly bringing the search to more promising regions of the solution space. In contrast, HHO and SCA are implemented with a slower initial decline, indicating the weak aggressiveness of global search. Both DOA and GTO optimizers showed moderate initial exploration, but they plateaued early relative to the rest of the algorithms, indicating early convergence and less efficiency to escape from local minima. The chimp optimizer demonstrates very low competitiveness as its slope of convergence remains shallow throughout the run. The convergence characteristics of the six optimization techniques CrOA, HHO, GTO, SCA, DOA, and the chimp optimizer are illustrated in Figure 8. These curves provide clear quantitative insight into the overall exploration and local exploitation abilities of each optimizer, such as a rigorous evaluation determining their capability to reach the optimal controller parameters of the proposed FO-(PD-PI) structure. Optimal fitness compared to iterations. The convergence trajectories of various optimization methods.

As iterations progress, superior exploitation performance was observed by CrOA in Figure 8. After the global-search phase, CrOA can carry out fine-tuning continuously and with minor oscillation in fitness value. This indicates balancing the update step, the adaptive attraction repulsion mechanism, and the memory retention phases of the algorithm. Mathematically, this can be observed through the quick decrease in the objective function:
CrOA consistently outperforms HHO GTO, SCA, DOA, and Chimp in reducing the objective function.
It supports an improvement in frequency settling time while simultaneously reducing RFB actuation stress. The CrOA curve flattens after about 120 iterations, which indicates an entry into a stable convergence phase focusing on micro-adjustments of the fractional order parameters. In contrast, other approaches stagnate (HHO) or show irregular fluctuations (GTO and DOA), indicating instability in their exploitation behavior and sensitivity to local minima.
These observations demonstrate that CrOA is more robust and adaptable in tuning nonlinear fractional controllers under multi-objective LFC criteria. They further demonstrate that the technique has more robust balancing tendencies towards exploration and exploitation, a highly critical need in optimization landscapes dominated by non-convexity and several local optima.
To reduce the stochasticity that usually follows most metaheuristic algorithms, base optimization with CrOA was run to a relatively high number of iterations. Thus, in all experiments, a total of 200 iterations was used, which ensures that the algorithm eventually gets to a stable convergence region, minimizing the risk of premature convergence or random convergence artifacts. The convergence profile that was achieved across these iterations consistently behaved in smooth and reduced terms in the ITAE objective function and thus confirmed that the controller parameters reflect stable performance of the algorithm and not just one outcome based on one realization. Moreover, convergence curves obtained from the repeated runs exhibited an almost identical trajectory, which indicates that the CrOA converges towards the same solution region, irrespective of initialization. This behavioral stability functionally replaces the full statistical table and validates that the parameters are not the product of a single random run.
5. Results and discussion
System component parameters.
System constants.
Simulation signals and inputs.
Controller parameters.
5.1. Scenario 1: Step load disturbance
In this example, there is a step increase in load demand at t = 10 seconds, which simulates a sharp disturbance equivalent to the instantaneous addition of a 2 MW load to the MG. The sudden load changes cause an immediate mismatch between generation and demand that creates a transient drop in system frequency. The controllers are compared in terms of their authority and ability to rectify this deviation and bring the frequency back to the nominal level. The controllers to be studied are: classical PID, the FO–PID, and the cascaded FO–(PD–PI) without optimization, as well as the proposed FO–(PD–PI) controller tuned via the CrOA. The frequency responses in correlation with Figure 9 illustrate that the PID controller shows the highest dip (∼0.20 Hz below nominal) and slowest recovery. With a reduced dip (∼0.12 Hz) and better damping, the FO–PID controller has enhanced its capabilities. The further improvement indicated above is brought about by the unoptimized cascaded FO–(PD–PI), which restricts deviation to around 0.08 Hz. The proposed controller named FO–(PD–PI) +CrOA has the best performance as it limited the frequency drop to around 0.05 Hz and achieved the quickest recovery. In terms of settling time, the PID controller takes above 30 s to settle, while the proposed controller recovers in just about 15 s. This improvement is quantified by the ITAE index, where the proposed controller records the least value. The frequency response of the MG in reaction to step load disturbances for a range of control strategies.
Figure 10 shows the power output for the RFB, where, upon being commanded by the proposed controller, the RFB injects power for up to 1.5 MW instantaneously, considerably lowering the load on the diesel generator. With other controllers, the RFB’s activation is delayed or done at less intensity-FO-(PD-PI) (∼1.2 MW), FO-PID (∼0.8 MW), and PID (∼0.5 MW). Tabulated in Table 7 are the principal performance indicators, and these confirm that FO-(PD-PI) + CrOA has the lowest frequency deviation, quickest settling time, and most utilization of the RFB, thus representing the best method for handling sudden load disturbances. The power output of the RFB in reaction to a sudden load disturbance. Disturbance’s step load.
5.2. Scenario 2: Random load fluctuations
In the second scenario, controller performance is evaluated under unpredictable continuous load fluctuations (which can be said to represent real-life conditions of appliance switching or variable consumer demand) after the step disturbance test in scenario 1. Starting from 10 seconds, stochastic load variations are introduced between plus and minus 5% of the nominal load to create continuous minor disturbances on the system. In contrast to the single-event nature of the previous scenario, this scenario imposes disturbances for an indefinite period, challenging each controller to carry out dynamic frequency control over time. As seen in Figure 11, the classical PID controller is having trouble controlling itself with frequency deviation reaching as much as plus and minus 0.10 Hz, suggesting that it possesses limited agility in responding to disturbances of rapid load changes. The FO–PID controller improves on this by narrowing the frequency variation to approximately plus and minus 0.06 Hz; this is further boosted by the cascaded FO–(PD–PI) controller that restricts fluctuations to within ±0.04–0.05 Hz. The proposed FO–(PD–PI) +CrOA controller showed the utmost performance with frequency excursions being confined to a mere ±0.02–0.03 Hz, showing a noticeably smoother response. Deviations in frequency resulting from random load fluctuations when utilizing diverse controllers.
Fluctuations in load randomly result in disturbances during step loading.
The distinctions in performance are further observable in RFB behavior as depicted in Figure 12. The proposed controller effectively uses the RFB as a high-speed actuator, provoking power injections and absorptions up to maximum limits of ±1.8 MW depending on load fluctuations. In contrast to the PID-controlled system, where performance on the RFB is done conservatively (about ±1.0 MW), larger portions of randomly absorbed load tend to be absorbed by the diesel generator, which does not respond that fast. Intermediate controllers display the pattern of RFB utilizations: ±1.2 MW for FO–PID and ±1.4 MW for FO–(PD–PI). In general, the proposed FO–(PD–PI) + CrOA controller achieves tighter frequency regulation while intelligently coordinating energy storage to filter noise and relieve the generator from high-frequency burden. Hence, this scenario proves the applicability and efficacy of the proposed controller in frequency stabilization under load environment dynamics characterized by unpredictable fluctuations. RFB power behavior during erratic load changes.
5.3. Scenario 3: Cyclic load variation
Due to the random nature and unpredictability of load fluctuations, Scenario 3 points to a much more deterministic but similarly challenging disturbance. This disturbance involves cyclic variations in load caused by periodical behaviors such as daily demand cycles or scheduled industrial operations. It is introduced by a sinusoidal load profile showing moderate amplitude (±10% of nominal load) and a 30-second period starting at t=10s. Unlike the noise-driven dynamics in Scenario 2, this test evaluates how well each controller can synchronize with and suppress predictable, oscillatory disturbances.
As shown in Figure 13, the classical PID controller exhibits phase lag and poor tracking, with frequency oscillating as much as ±0.10Hz, nearly in phase opposition to the load cycle. This performance is typical for such a controller because it has a limited ability to compensate for low-frequency periodic inputs. The FO-PID improves alignment with load waveforms, reducing frequency variation to at most ±0.07Hz. The cascaded FO-(PD-PI) enhances this further, with frequency oscillations reaching about ±0.05Hz. However, the proposed FO-(PD-PI) +CrOA controller provides better tracking fidelity, with frequency variations falling within a range of ±0.025Hz, showing nearly perfect load modulation and no residual errors. Assessment of frequency tracking performance amidst cyclic load variation.
Cyclic load change.
Such discrepancies also manifest in the coordination at the system level. The response of the RFB power across the various controllers is illustrated in Figure 14. With the optimal control mode, the RFB output observes the load variation, injecting and absorbing power depending on the sinusoidal disturbance with a peak value of ±1.8 MW, as developed in this study. This allows the diesel generator to avoid chasing fast-changing loads and operate around an average power level. Contrarily, the response power from the RFB controller is much less utilized by the PID controller (±1.0 MW), which channels more direct relief to the generator and accounts for the larger frequency fluctuations seen. RFB output aligned synchronization with a cyclic load profile.
5.4. Scenario 4: PV power fluctuations
After assessing the performance against structured load cycles, this next scenario is subjected to an alternative source of variability (intermittent PV power fluctuations), representing the generation impacts of passing clouds and changing irradiance. These events are typical challenges encountered in renewable-based MGs, where fast PV drops behave like negative power steps, increasing the net system load. Two important reductions in PV are introduced: a steep drop (∼3 MW) occurring around t = 30 s and a smaller drop (∼2 MW) near t = 70 s. Controllers were tested for their capability to compensate for these shortfalls and maintain frequency stability.
The frequency response is shown in Figure 15. For PID control, the first PV dip resulted in a large frequency deviation of approximately –0.15 Hz, which was slowly recovered with oscillations. The FO–PID shrank its deviation to –0.10 Hz, and through the effort of plugging FO–(PD–PI), the improvement was further extended to –0.06 Hz. It is then that the proposed FO–(PD–PI) +CrOA controller achieved the minimum of –0.03 Hz with a very fast recovery back to nominal frequency (much before PV generation recovers). The same pattern is extended to the second smaller disturbance, confirming the uniform performance under renewable volatility. Deviations in frequency associated with fluctuations in solar photovoltaic power.
Fluctuations in PV power.

The compensatory response of RFB to changes in PV.
Among the messages in this picture is the need to take immediate, concerted action regarding renewable intermittency. Its signature feature is the early detection of generation loss, effective mobilization of storage resources, and minimal deviation duration without compromising system stability, by the FO-(PD-PI) + CrOA controller. The scenario allows us to view high PV penetration microgrids with adaptive and well-tuned control critical to sustaining frequency resilience when faced with natural variability.
5.5. Scenario 5: Combined PV drop and load rise
Following the accounts of isolated PV fluctuation events as assessed in Scenario 4, Scenario 5 addresses a multiple disturbance, or simply the worst-case scenario in the MG, where there is an instantaneous drop in PV generation of about 3 MW and an abrupt step increase in load of about 2 MW at t=10s. Consequently, this would place the system in a state of an immediate net power shortage of about 5 MW, which would greatly stress the frequency stability and controller response.
The dynamics of the positional control under such conditions are demonstrated in Figure 17. Here, the classical PID controller did not adequately attenuate the disturbance, which caused a drop in frequency of about 0.25 Hz with significant overshoot during recovery. The FO-PID limits the dip to something like -0.15 Hz, and the FO-(PD-PI) improves it to -0.10 Hz. The child-thought proposed FO-(PD-PI)+CrOA performs again better than all others and confines the nadir to just -0.05 Hz, with a smooth and overshooting-free restoration. These figures, detailed in Table 11, show the clear advantage of adaptive optimization in a high-stress operating environment. Notably is the settling time is reduced to half as much with the proposed controller as with PID. In addition, its ITAE value affirms that the cumulative error is much reduced. Due to the nature of the disturbance, there is an immediate demand for energy compensation, and the performance of the RFB becomes critical. As seen in Figure 18, the designed controller propels the RFB in almost full capacity conditions by the time of the event (around 4.5 MW), which means that almost the entire deficit should be covered before the diesel generator ramps up. Intermediate controllers use the RFB with varying effectiveness (∼4.0 MW for FO-(PD-PI), ∼3.0 MW for FO-PID), while PID again lags behind (∼2.5 MW), leading to the deepest frequency sag among the four. Frequency behavior during simultaneous PV drops and load rise. Combined PV drop and load rise. Output from the RFB addresses the disturbances resulting from the combination of PV and load.

This situation emphasizes the importance of quickly injecting proportional energy when generation loss meets a load surge. The controller with dual loops and CrOA-tuned parameters can assess the severity of an event and act instantly through the RFB, thus minimizing stress on the diesel unit and providing rapid frequency stabilization. This benefit is not available to the PID controller, which has poor responsiveness and delayed energy dispatch, further aggravating system imbalances.
5.6. Scenario 6: Sudden RFB disconnection
Scenario 6 introduces an internal fault in the system, specifically an unanticipated disconnection of the RFB at t = 10 s, following an exploration of the controller behavior under external disturbances such as load shifts and PV fluctuations. It is assumed that the Redox Flow Battery is operating under stable conditions before the event, with some injection (e.g., ∼1 MW) into frequency control. Its disconnection removes fast-response energy buffering from the system, relying on the diesel generator for balancing. This scenario tests robustness and fault tolerance, considering the controllers’ capacity to maintain frequency stability when a key actuator is lost.
The sudden RFB disconnection immediately dips the frequency, while controller performance diverges widely, as displayed in Figure 19. The PID controller showed the largest deviation (∼0.18 Hz), followed by an oscillatory recovery phase. The FO-PID outperforms the dip, suppressing it to ∼0.14 Hz, and the FO-(PD-PI) further improves it to ∼0.11 Hz. The proposed FO-(PD-PI)+CrOA has shown the most stable response, limiting the frequency drop to only ∼0.08 Hz with little to no overshoot to return to nominal. As detailed in Table 12, all controllers eventually bring the frequency back to nominal conditions, but the distinction in transient performance is evident (along with the overshoot values and ITAE metrics). Unlike earlier scenarios where the RFB played a critical corrective role, in this case, the focus is on quickly shifting the control effort to the diesel unit. Deviation of frequency following abrupt RFB disconnection. Abrupt disconnection of the RFB.
The described controller adapts smoothly by shifting to its PI loop, compensating the generator using a faster integrator with optimized gain. The PID controller, originally tuned with the RFB way, now takes a relatively long time to apply sufficient correction, causing a deeper initial deviation and slower recovery. The fractional-order controllers fare well with medium resilience due to the memory effect and their wider frequency response range. Without some kind of optimization, they have less precision in their tuning.
5.7. Scenario 7: System parameter drift
Scenario 7 introduces a subtler yet critical challenge pertaining to gradual changes in the dynamic characteristics of the system over time, with gradually changing characteristics having far-reaching implications. The parameters in real-life microgrids, such as generator inertia, damping coefficients, and governor gains, may drift owing to component aging, fuel quality changes, or environmental impacts. So, in the simulation, we take 20% off the inertia and make minor changes in damping and droop values to replicate these effects. A small step load increase (1MW) is introduced to the system at t=10s, and the controller responses are verified under these perturbed conditions.
Unlike the previous stress cases, the disturbance here is tiny, yet such a deviation in system response shows how each controller tolerates model mismatch. PID controller response plummets to marked degradation with overshoot increasing to ∼0.22 Hz and much longer oscillations with settling over 35 sec, as shown in Figure 20. The reason for such unflattering dynamics is its fixed gains, which are no longer optimum under reduced inertia and damping. FO-PID and FO-(PD-PI) controllers came out as more robust controllers with just about 0.18 Hz and 0.15 Hz overshoot, respectively, and thus faster settling comparisons have once again favored PID. The proposed controller, FO-(PD-PI) +CrOA, exhibits extreme resilience again, with a minor revision of an establishment of ∼0.12 Hz of overshoot and settling within ∼20 s. Frequency performance within the fluctuations of system parameters.
Drift in system parameters.

RFB usage in the context of variations in system parameters.
5.8. Statistical validation under stochastic variability (Monte Carlo assessment)
Monte Carlo statistical performance under random load fluctuations (N = 30).
Dispersion summary of the proposed controller across 30 runs (optional).
Optimizer-level statistical comparison under Scenario 2 with Wilcoxon significance vs. CrOA.
5.9. Limitations and future work
The work highlights several limitations. The study identifies various limitations associated with the FO-(PD-PI) +CrOA control strategy, which has demonstrated effectiveness in frequency regulation. Firstly, the research relies exclusively on simulations; conducting hardware-in-the-loop tests and real microgrid experiments could uncover additional implementation challenges. Secondly, the fractional-order controller depends on the Outsleep recursive approximation, which heightens computational demands and may restrict its use on low-powered DSPs or microcontrollers. Thirdly, the COA algorithm is stochastic, and despite numerous optimizations, some variability in the tuned parameters may persist. Furthermore, the RFB model employed in this research is significantly simplified, neglecting aspects such as degradation, round-trip efficiency, and long-term state of charge (SoC) constraints. Finally, the sensitivity analysis only addresses fixed parameter drifts; a more thorough uncertainty evaluation (e.g., Monte Carlo or probabilistic analysis) would enhance future research in this domain. These limitations will be tackled in subsequent studies that will concentrate on real-time implementation and robustness analysis beyond the current work’s scope.
While the proposed FO-(PD-PI) +CrOA controller shows promising performance, there remain numerous paths for further exploration and inquiry. • To extend the study to multi-area and large-scale microgrids, including intersecting regions with varying levels of inertia, to assess the scalability and robustness of the proposed FO-(PD-PI) + COA controller. • Conduct a full sensitivity and uncertainty assessment, which may involve Monte Carlo simulations or Sobol indices, to evaluate the controller’s performance under parameter variations related to inertia, damping, droop characteristics, and RFB dynamics. • Utilize advanced and more realistic RFB models that incorporate state of charge (SoC) tracking, coulombic/voltage efficiencies, and long-term degradation effects to enhance the physical accuracy of the energy storage component. • Evaluate the computational burden and real-time feasibility of the fractional controller through embedded implementation on DSPs, FPGAs, or industrial PLC platforms. • Conduct hardware-in-the-loop (HIL) experiments to validate the real-time applicability of the proposed control strategy using systems such as OPAL-RT, dSPACE, or Speedboat. • Compare the proposed controller with a broader range of cutting-edge controllers, including MPC-based automatic control, data-driven reinforcement learning approaches, adaptive sliding mode control, and hybrid metaheuristic optimizers. • Develop hybrid optimization methods that combine COA with other algorithms (e.g., HHO, WOA, or BE-based opposition learning) to enhance convergence speed and reduce stochastic variability. • Evaluate the resilience of the controller against extreme disturbances, cybersecurity-related disturbances, and communication delays under decentralized or distributed control structures. • Implement sensitivity analysis techniques such as Monte Carlo simulations and Sobol-based global sensitivity indices to quantify the impact of uncertainties in system parameters such as inertia constant (H), damping coefficient (D), governor and turbine gains, and RFB dynamic parameters. Integrating probabilistic uncertainty evaluation will enhance the validation of the controller under a wider range of realistic operating conditions.
6. Conclusions
The evaluation of seven disturbance scenarios shows that the proposed FO-(PD-PI) + CrOA controller has the best performance compared to the other schemes. On the other hand, the proposed scheme is capable of presenting improved control system solutions for the measurement and reduction of frequency deviations, shorter recovery times, and better utilization of energy storage. Sophisticated and robust as this decentralized control concept is, the performance of the ordinary PID controller is very poor concerning any disturbance, especially during high disturbance events. In contrast to the classical PID, FO-PID, and non-optimized FO-(PD-PI) show improvement, although neither seems to contend with the precision or robust functionalities of the efficient cascaded control. The proposed state controller shows the least frequency overshoot and fastest convergence to nominal values with transient or continual malfunctions. It performed multiple times better than PID in cases where disturbance is extremely multi-disturbance under the condition of limiting deviations to about one-quarter of those PSD can, with a recovery speed several times quicker.
This controller will give ITAE values much less than PID in signed percentages of 50-80%, while ITAE will give values less than the unoptimized FO-(PD-PI) in signed percentages of 20-40%, thereby substantiating the advantages of CrOA-based tuning. The whole arrangement allows very good coordination in the use of diesel generator and RFB resources to maximize their power absorption during a disturbance, and hence provides balancing in supplies. This employment differentiation maintains stability in the frequency and somewhat minimizes the generator wear and tear.
On the other hand, PID was utilizing the RFB much less and hence produced more frequency swings.
As the disturbance grows in complexity, so does the performance gap of the controllers under consideration. The proposed controller sustains good regulation irrespective of the condition. This intrinsic robustness against system parameter variation by their fractional-order nature has been demonstrated under the parameter drift scenario. The proposed controller throughout is capable of yielding tight control resulting in rapid suppression of oscillations and quick elimination of steady-state errors, both parameters that are universally critical for microgrid applications characterized by variations in load and generation profiles.
Footnotes
Acknowledgments
The authors extend their appreciation to the Deanship of Research and Graduate Studies at King Khalid University for funding this work through the Large Group Project under grant number (RGP.2/702/46)
Funding
The authors extend their appreciation to the Deanship of Research and Graduate Studies at King Khalid University for funding this work through the Large Group Project under grant number (RGP.2/702/46)
Declaration of conflicting interests
The authors declared no potential conflicts of interest with respect to the research, authorship, and/or publication of this article.
Data Availability Statement
The controller parameters and additional numerical results supporting the findings are available from the corresponding author upon reasonable request.
