Preprint
Article

This version is not peer-reviewed.

Adaptive Critic Control of Frequency and Voltage in Islanded Microgrids Considering Energy Storage Systems

Submitted:

18 September 2025

Posted:

19 September 2025

You are already at the latest version

Abstract
This paper addresses the operational challenges introduced by the growing share of intermittent renewable energy sources in islanded microgrids. Traditional unit commitment (UC) methods struggle to manage the continuous variations in demand and renewable generation effectively. To overcome these limitations, a Dynamic Voltage and Frequency Controller (DVFC) is proposed. The DVFC is designed to efficiently manage generation and controllable loads using an adaptive critic design, incorporating technical constraints and look-ahead utility functions. The proposed method is applied to short-term UC, ensuring frequency and voltage regulation while maintaining microgrid stability. This approach enhances cost efficiency and extends batteries life cycle by reducing stress on them. The DVFC’s performance was evaluated using the CIGRE test system under diverse renewable generation and load scenarios. Results demonstrate that the DVFC significantly outperforms conventional UC algorithms in maintaining microgrid stability.
Keywords: 
;  ;  ;  ;  ;  

1. Introduction

The growing use of renewable energy sources in isolated microgrids presents significant challenges for controlling frequency and voltage, which are managed at different levels of control: primary, secondary, and tertiary. When there are changes in load or renewable energy production, the primary control system works to stabilize the grid and increase the resilience of the microgrid, as discussed in [32]. The secondary control level, utilizing a UC algorithm, then sets the optimal generation schedule to support the primary control system. The UC problem mainly focuses on cost optimization and improving the efficiency of battery usage while ensuring proper frequency and voltage regulation. The tertiary control level is responsible for managing the long-term operation of the microgrid [2].
Addressing the challenges of frequency and voltage control, the schedule for distributed generation (DG) units in islanded microgrids based on traditional UC remains fixed between dispatch intervals, despite the continuous changes in demand and renewable energy generation. This fixed schedule creates a stair-step pattern, resulting in significant frequency and voltage fluctuations at the ends of each dispatch period. Moreover, the fixed schedule method is not effective in managing operational costs and the lifespan of energy storage systems (ESS), as it does not properly handle variations in renewable energy and demand fluctuations [2,2]. It is assumed that local frequency, voltage, and net demand stabilize within each dispatch interval, creating a separation in timescales between the rapid response of the primary controller and the slower adjustments of the secondary controller. This separation affects power distribution and the dynamic regulation of frequency and voltage, particularly when there are rapid changes in load or renewable energy production, which needs to be managed [2].

1.1. Literature Survey

The conventional UC models typically include operational constraints for distributed generation (DG) units and energy storage systems (ESS), such as ramp-up/down limits, minimum up/down times, and the state of charge (SOC) of ESS. However, these models often fail to effectively address frequency and voltage regulation due to their reliance on fixed and non-optimal generation schedules between dispatch intervals [2]. In real-world scenarios, variability in renewable energy and load fluctuations result in continuous deviations of frequency and voltage from nominal values, while the output of controllable DGs remains fixed between dispatch intervals [2]. To mitigate these issues, modifications to UC models have been proposed, which include reserve-related constraints [2], load-frequency-sensitive indices [9], and averaged energy-block constraints between dispatch intervals [2]. These adjustments aim to reduce the adverse effects of frequency and voltage control on generation output while helping to balance supply and demand. However, incorporating reserve requirements into hourly energy blocks often proves difficult, as energy profiles created using averaging methods lack the precision needed for accurate supply-demand balancing. In optimization problem formulation, traditional UC approaches have mainly relied on offline methods such as mixed-integer linear programming [2], evolutionary algorithms [10], and model predictive control [11]. While these offline methods are relatively easy to implement, they suffer from long decision-making times, which limit their scalability for larger microgrids. Additionally, due to their inherent limitations, these methods struggle to manage optimization with dynamic technical constraints, such as those encountered in frequency and voltage regulation. Furthermore, prediction errors related to load and renewable energy often lead to deviations in DG reference set points from their intended values [12,13].
To overcome these challenges, recent studies have explored various online approaches for UC, such as neural networks [14], reinforcement learning [15], and adaptive critic design [16]. These techniques offer the advantage of faster decision-making, the ability to adapt to changing microgrid conditions, and the potential to optimize objectives based on real-time data [16,17]. In current research, the reference power for dispatchable units is updated during each dispatch interval using UC models. These adjustments to the reference power move the droop curves either up or down, which helps bring the frequency and voltage back to the desired levels. This adjustment process must take place within a defined time window after the primary controller’s action, influenced by factors such as the size and type of distributed generation (DG) units, the characteristics of the electrical network, and the load profiles.

1.2. Contribution and Paper Outline

Unlike existing research, this paper proposes a unified hybrid mid-level controller that interacts with a diffusive distributed primary controller [2] to optimally share the output power of dispatchable DG units. The proposed controller sets the optimal power output of DGs between dispatch intervals for the secondary controller, while maintaining frequency and voltage stability. The main contributions of this paper are summarized as follows:
  • We develop a mathematical model for a hybrid mid-level controller, integrated with a diffusive distributed controller at the primary level and a UC framework at the secondary level;
  • We propose a two-critic adaptive critic design model to minimize frequency and voltage deviations while ensuring microgrid stability;
  • We present a model-free voltage and frequency controller, based on a dynamic programming algorithm, to achieve economic operation and enhance the lifecycle efficiency of the energy storage system (ESS).
The remainder of this paper is organized as follows. Section II describes the system model of the microgrid. Section III introduces the proposed DVFC. Numerical results are presented in Section IV to evaluate the performance of the proposed DVFC, and Section V concludes the paper.

2. System Model and Problem Description

Consider an isolated microgrid within a distribution network, as illustrated in Figure 1, comprising n i distributed generation (DG) units ( i G ), n j energy storage systems (batteries) ( j E ), n c l controllable loads ( c l CL ), and n l critical loads ( l L ), all connected through buses ( b B ) in the electrical grid.
The microgrid consists of n local controllers (LCs) for DG units and dispatchable loads, which manage frequency and voltage at the primary control level. At the secondary control level, the microgrid central controller (MGCC) ensures stable and optimal operation. The mid-level controller addresses the challenges posed by the timescale differences between the fast-acting primary controller, which enforces synchronization, and the slower secondary controller, by optimizing the droop controller parameters to bridge this gap. Figure 2 illustrates the stair-step pattern employed by the mid-level and secondary controllers, with dispatch time intervals M and T indexed by m and t, respectively. The mid-level control significantly reduces the unsupplied actual net demand P L , m t , which is notably higher at the secondary control level, emphasizing the crucial role of mid-level control in ensuring efficient operation.
During each time interval T, the secondary controller adjusts the reference active/reactive power levels P i , 0 t / Q i , 0 t with the goal of minimizing operational costs and reducing ESS lifecycle degradation. In a traditional UC model, these reference power levels modify the droop control curves at the primary control level, resulting in updated frequency and voltage droop settings. For a larger islanded microgrid with significant renewable energy penetration, frequent adjustments to the active/reactive reference power can lead to system frequency and voltage deviating beyond acceptable operational limits. The mid-level controller reduces these deviations by breaking the dispatch horizon T into n m sub-intervals, each with duration M, and optimizing droop control parameters to enhance microgrid performance. The primary controller then manages frequency and voltage by coordinating the rated and operating active/reactive power levels P i , m t / Q i , m t between neighboring controllable units during each dispatch sub-interval [18].

2.1. Droop Power Sharing Control

An imbalance between the variation in DG power ( Δ P i , m t ) and the variation in net electrical power demand ( Δ P L , m t ), represented as the total power variation ( Δ P i , m t Δ P L , m t ), results in a shift in the nominal frequency ( ω 0 ). Likewise, variations in the total reactive power cause output voltages to deviate from their desired values. To manage these deviations, DG units and controllable loads adjust their generation and consumption power using droop control, based on the power balance principle of synchronous generators (SGs). To integrate the primary controller with the mid-level control model, a modified diffusive-averaging droop controller (DADC) is introduced [2]. Power sharing is achieved by adjusting the droop slope ( m p i ), the diffusive averaging frequency coefficient ( k i , m t ), and the control variable ( Ω i , m t ) for each active generator or controllable load within each dispatch interval/sub-interval, indexed by t and m. Local controllers (LCs) communicate to regulate frequency via diffusive averaging terms a i k ( Ω i Ω k ) i , k G , where a i k = 1 if generators/loads i and k are connected, and a i k = 0 otherwise. The DADC problem is formulated as follows:
ω i , m t = ω 0 m p i ( P i , m t P i , 0 t ) + k i Ω i , m t
Ω ˙ i , m t = ( ω 0 ω i , m t ) + k G a i k ( Ω i , m t Ω k , m t ) ,
where ω i , m t is the frequency of the i t h generator/load. A similar approach is used for voltage droop control, where generators share reactive power based on the voltage droop slope ( n p i ), voltage gain ( β i ), maximum reactive power ( Q ¯ i ), diffusive voltage coefficients ( κ i , m t ), communication matrix ( b i k ), and control variable ( e i , m t ). The DADC regulates the bus voltage V d , i , m t to the nominal value V d 0 using:
V d , i , m t = V d 0 n p i ( Q i , m t Q i , 0 t ) + κ i , m t e i , m t
e ˙ i , m t = β i ( V d 0 V d , i , m t ) + k G b i k Q i , m t Q ¯ i Q k , m t Q ¯ k .

2.2. Components in Frequency and Voltage Control

The components of the islanded microgrid can be categorized into three main groups: inverter-based generators, SGs, and loads.

2.2.1. Inverter-Based Generators

Voltage-source inverters, as part of back-to-back converters (e.g., ESS units), consist of three cascaded control loops: power, voltage, and current controllers. These controllers ensure adequate sharing of active and reactive power, as well as stable operating conditions [19]. A virtual impedance is introduced to the voltage control loop to compensate for output voltage deviations and stabilize the voltage control system. Changes in the operating point lead to changes in the virtual impedance value. The proposed adaptive virtual impedance ( Z v ) is tuned by the mid-level controller, based on a sensitivity analysis of operating active/reactive power ( P e / Q e ), as derived in [20]. Figure 3 illustrates the virtual impedance added to the voltage/current controller.

2.2.2. Synchronous Generators

A typical synchronous generator (SG), such as a diesel generator, consists of several key components: the governor, turbine, exciter, and AC machine [21]. The frequency in an SG changes based on the difference between mechanical driving power and the electrical power generated, as described by swing theory. Here, J represents the inertia coefficient in k W / H z , indicating the power change per unit frequency change. The turbine and governor components, with gains ( K t , K g ) and time constants ( T t , T g ), are used to compensate for power generation changes that occur due to frequency deviations in the microgrid [22]. Voltage is similarly regulated through a sensor ( K s , T s ), exciter ( K e , T e ), automatic voltage regulator ( K A , T A ), and generator ( K G , T G ).

2.2.3. Frequency-Voltage Dependent Load

The loads in the microgrid are typically modeled using a voltage-dependent equation and can be represented as equivalent to a ZIP load. The loads operate at their nominal voltage before any voltage change Δ V b , m t , with the power change Δ P L , b , m t = ( ( 1 + Δ V b , m t ) 1.5 1 ) P L , b , 0 t , where P L , b , 0 t is the active power of the load under nominal operating conditions in the m t h sub-interval. In general, the voltage change is highly dependent on the load characteristics. The relationship between changes in voltage and frequency is given by Δ V = ( 2 Δ ω × H / ( ω 0 P L 0 ) + 1 ) 0.6 1 . A detailed study on frequency-voltage dependent loads demonstrates the validity of these equations [23].

3. Small-Perturbation Stability Analysis

The small-perturbation model is analyzed using eigenvalue analysis by linearizing the islanded microgrid. While this approach is only applicable around the operating point, it provides a necessary condition for the microgrid stability [13]. To perform the eigenvalue analysis, a small-signal state-space model of the entire microgrid is developed at a specific operating point. The microgrid state-space model is divided into three sub-modules: generator, network, and load. Models for all lines and loads are derived from [24,25]. A comprehensive model of the islanded microgrid is constructed by integrating the state-space models of generators, the network, and loads using mapping matrices. These matrices link the output currents from generators or loads to specific nodes within the system.

4. Dynamic Voltage and Frequency Controller

As illustrated in Figure 2, the net demand profile does not abruptly transition from P L , m t to P L , m t + 1 at the t t h dispatch interval but rather changes gradually from P L , m t to P L , m t + 1 over the time period T. This gradual change requires real-time adjustments to generation power based on actual measurements taken at time sub-intervals of M.
Dynamic programming is a powerful tool for addressing optimization problems, particularly in complex, non-linear microgrid operations. However, the computational demands of performing feed-forward/backward numerical processes make it challenging to solve such optimization problems, especially in multi-objective microgrid control [16]. To overcome these challenges, adaptive dual heuristic dynamic programming (ADHDP) is developed to approximate the cost-to-go function, involving a model, action, and two critic neural networks (NNs).
As depicted in Figure 4, a two-critic ADHDP architecture is proposed to maintain the microgrid stability margin ( ψ m t ) within an acceptable range while minimizing operating costs and ESS lifecycle degradation ( U m t ). This approach relies on measurements of available microgrid states ( s m t ), approximated system states ( s ^ m t ), and action control variables ( a m t ) at time t over duration T, indexed by m. The action vector comprises four sets of control variables: coefficients ( k i , m t , κ i , m t ) of the diffusive averaging droop controller, virtual impedances ( Z v , i , m t ), and frequency-voltage controller (FVC) gains ( K δ , i , m t ) for the i t h generator [2]. The output states of the microgrid network include seven variables: the active/reactive power of generators and loads ( Δ P i , m t , Δ Q i , m t , Δ P c l , m t , Δ Q c l , m t ), frequency/voltage deviations ( Δ ω i , m t , Δ V i , m t ), and the SOC of storage ( S j , m t ), represented by:
a m t : = { k i , m t , κ i , m t , Z v , i , m t , K δ , i , m t } s m t : = { Δ ω i , m t , Δ P i , m t , Δ Q i , m t , Δ P c l , m t , Δ Q c l , m t , Δ V i , m t , S j , m t }
i G , j E , m { 1 , 2 , . . , n m } , t { 1 , 2 , . . , n T } .
The mathematical representation of the ADHDP model, encompassing action variables, microgrid actual and approximated states, and errors in the model ( e M N , m t ), action ( e A N , m t ), and critic ( e C N , m t ) networks, is illustrated in Figure 5. The details of the ADHDP model are discussed as follows.

4.1. Model Network Design

The islanded microgrid experiences perturbations such as load variations, resulting in different operating conditions for DG units across current and future dispatch intervals. The model network simulates the behavior of the microgrid in response to the current state and control actions, and predicts future system states to facilitate cost-efficient and energy storage system (ESS)-efficient generation scheduling.
As shown in Figure 6, the error signal generated by the frequency control loop is processed through a PI controller with gains K P and K I to minimize the steady-state error. Following this, a lead-lag compensator with time constants τ 1 and τ 2 is applied to the input and output of the voltage control loops. This FVC introduces a gain, K δ i , to dampen oscillations generated by the frequency control loop and to establish the relationship between the system operating frequency and voltage. Similar to the inverter-based generator controller, the FVC is equipped with a low-pass filter/power calculator (LPF/PC) module to compute the average active and reactive power.
Accurate predictions are only possible if the difference e M N , m t between the one-step delayed output of the model network ( s ^ m t ) and the actual microgrid output ( s m t ) is minimized. The model network prepares estimated states for the next step, s ^ m + 1 t , along with the derivatives of the estimated state at the ( m + 1 ) t h sub-interval with respect to the action and actual state variables at the m t h sub-interval, which are used for training the critic networks.

4.2. Feed-Forward Critic Network Process

The distributed generation units react to net demand changes based on the DADC mechanism; however, generation scheduling becomes suboptimal if the frequency and voltage controller parameters remain constant during each dispatch interval. The primary function of the critic model is to approximate objective functions, which depend on the current and estimated states and control actions. The optimal strategy of the critic network is to minimize a multi-objective utility function, which includes the operating costs of DGs, ESS lifecycle degradation, and microgrid frequency and voltage regulation. This is represented by the multi-objective operational cost-to-go function J u [ a m t , s m t ] and the microgrid stability margin J s [ a m t , s m t ] , subject to technical constraints.
To ensure the stability of the microgrid within an acceptable margin, the stability critic network operates as an inner control loop of the operational critic network. The stability evaluator checks the stability index (SI) of the DVFC, which reflects stability margin loss or improvement due to changes in effective parameters or loading conditions. Let ψ 0 and ψ m t denote the stability margins for the base load (i.e., no change in load) and the loading condition at the m t h sub-interval of the t t h dispatch time, respectively. Thus, we have:
ψ m t = arg max λ R λ [ a m t , s m t ] , S I = ψ m t ψ 0 × 100 % .
The operational critic network loop, which operates at a slower timescale compared to the stability control loop, aims to mitigate the effects of uncertainties on voltage and frequency control by minimizing ESS lifecycle degradation and operational costs. The output power of DGs influences the voltage V b , m t at the b t h bus and the frequency ω m t of the microgrid. The corresponding utility functions for voltage and frequency are expressed as follows:
U V = f ( V b , m t ) ( voltage utility function )
U ω = f ( ω m t ) ( frequency utility function )
These utility functions represent the relationship between the control objectives and the operating conditions, guiding the operational critic network in optimizing microgrid performance while ensuring system stability.
Δ V m t = b B Δ V b , m t 2 , Δ F m t = Δ ω m t 2 .
The operational cost of dispatchable generation unit i changes in response to Δ P i , m t at operating generation power P i , m t by the quadratic cost utility function ( Δ C m t ) as follows:
Δ C m t = i G ( b i + 2 a i P i , m t ) Δ P i , m t + a i Δ P i , m t 2 + C i s y i , m t + C i d z i , m t .
where a i ( $ / k W s 2 ) and b i ( $ / k W s ) are economic coefficients for the i t h fuel-based generator, and C i s / C i d and y i , m t / z i , m t denote start-up/shut-down costs and the corresponding binary variables. In conventional UC, fast-response generators (e.g., batteries) must respond to frequency changes in a short time interval, which degrades ESS lifecycle. However, the ESS lifecycle utility function, Δ E m t , keeps the discharge depth between minimum and maximum levels for the SOC of the j t h ESS ( S j ̲ , S j ¯ ) by controlling S j , m t as follows:
Δ E m t = j E exp ( S j , m t ) 2 S j ¯ 2 1 + exp S j ̲ 2 ( S j , m t ) 2 1 .
A weighted-sum method is used to determine a balanced energy dispatch among the solutions obtained from the utility functions. This method adjusts the importance of each utility function using scaling weights ( w x , x { V , F , C , E } ), where a higher scaling weight for a specific utility function indicates a higher priority. The overall utility function is:
U m t = w V Δ V m t + w F Δ F m t + w C Δ C m t + w E Δ E m t .
The optimal control problem is to generate the power dispatch of DGs in the m t h sub-interval by minimizing the cost-to-go operational function J u in Bellman’s equation of dynamic programming in a step-by-step way [16]. It also keeps the stability margin of the microgrid within the desired range by maximizing the cost-to-go stability function J s . These functions are given by:
J u [ a m t , s m t ] = m = 1 n m γ m U m t ,
J s [ a m t , s m t ] = m = 1 n m γ m ψ m t ,
where γ ( 0 , 1 ] is the learning factor in dynamic programming. The technical constraints include the following:
1) Power Balance: Unlike conventional UC, the generation power must match demand at each dispatch time, based on equations (1)-(4).
2) Fossil-Fuel Units: Constraints are associated with DG active/reactive power, start-up/shut-down binary variables, and ramp-up/ramp-down power limits for fossil fuel generation units. It is assumed that the ramp-up power equals the ramp-down power ( R i u = R i d ):
u i , m t x i ̲ x i , m t + Δ x i , m t u i , m t x i ¯ , x { P , Q } ,
y i , m t u i , m t u i , m 1 t , z i , m t u i , m 1 t u i , m t ,
| Δ P i , m t | R i u M , i G , m { 1 , 2 , , n m } ,
where u i , m t is a binary variable that determines the on/off status of the DG.
3) ESS Charge/Discharge: The j t h ESS operates in three different modes, i.e., charging ( u c , j , m t = 1 , u d , j , m t = 0 ), discharging ( u c , j , m t = 0 , u d , j , m t = 1 ), and idle status ( u c , j , m t = u d , j , m t = 0 ). The following set of constraints models SOC behaviours:
S j , m t = S j , m 1 t + Δ P j t · η c , j · u c , j , m t u d , j , m t η d , j C j . M
S ̲ j S j , m t S ¯ j
u c , j , m t + u d , j , m t 1 , j E m { 1 , 2 , . . , n m }
where η c , j and η d , j represent the efficiency of charging and discharging, and C j is the ESS capacity.
The DVFC critic network is trained online to approximate the derivatives of estimated cost-to-go J ^ u [ a m t , s ^ m t ] with respect to estimated state variable s ^ m + 1 t of model network called λ ^ m + 1 t , and to minimize the critic network error E C N t = e C N t 2 . Here, e C N t is given by
e C N t = d J u [ a m t , s m t ] γ · J ^ u [ a m t , s ^ m + 1 t ] U m t d s m t = λ ^ m t { U m t s m t + U m t a m t · a m t s m t + γ · λ ^ m + 1 t [ s ^ m + 1 t s m t + s ^ m + 1 t a m t · a m t s m t ] } .
The same convection is applied for the stability critic network.

4.3. Action Network Design

The action network determines the optimum values for action variables (i.e., k i , m t , κ i , m t , Z v , i , m t , K δ , i , m t ) by the the minimization of the cost-to-go function in critic network. This network is trained online to approximate the optimal control law by minimizing the action network error (i.e., E A N , m t = e A N , m t 2 ), given by
e A N , m t = J ^ u [ a m t , s ^ m t ] a m t = U m t a m t + γ λ ^ m + 1 t s ^ m + 1 t a m t
where the partial derivatives are obtained from the model network, critic network, and utility evaluator as shown in Figure 5 [16]. Note that the computational time of the critic network training is much higher than that for the action and model networks, but has less power to change the action variables from their desired values.

4.4. Design and Initialization of DVFC

The pre-training of the three networks accelerates the convergence of the learning process. The model network, which approximates microgrid dynamics over a wide operating range, is initially trained using the error of state variables. Table 1 provides the typical convergence time for each neural network, evaluated using an Intel(R) Core(TM) i7-8650 1.90GHz (4 processors).
Note that the computational time required for simulation depends significantly on the hardware capability. The pre-training of the critic network is performed using results obtained from a mixed-integer non-linear programming (MINLP) method in GAMS, solved using the CPLEX solver for different load and renewable energy perturbations. This pre-training must be done for each test case based on the configuration of the cost-to-go function.
The online adaptation is carried out sequentially for the model, action, and critic networks. During the training of one network, the other networks remain fixed (no weight updates). The feed-forward and backward training of action and critic networks continues until the errors converge within a range of [ 10 3 , 10 3 ] .

5. Numerical Results

To evaluate the performance of the proposed mid-level controller in an islanded microgrid, a modified CIGRE medium-voltage benchmark network was modeled and simulated exclusively in MATLAB/Simulink. This platform was selected because it provides a comprehensive environment for system-level modeling, control design, and time-domain simulation, offering robust numerical solvers and block libraries well-suited for microgrid dynamics and controller validation. The schematic of the test system is presented in Figure 7 [2]. The benchmark represents a European medium-voltage network with a total installed capacity of 5 MVA, comprising two diesel-based synchronous generators (SGs) connected to buses #1 and #3, a wind turbine (WT) at bus #11, and an energy storage system (ESS) at bus #6. The network includes 13 critical loads, while the feeders are represented by 14 coupled π -sections. Further details on the system configuration and parameters are provided in [2].
The ESSs at buses #6 and #4 have a maximum power rating of 300 kW and an energy rating of 6000 kWh, and are connected through bidirectional voltage source controllers. The minimum acceptable SOC for the ESSs is 600 kWh. The WT at bus #11 has a nominal rating of 800 kVA. The nominal ratings, operating cost coefficients, start-up/shut-down costs, and ramp rates are provided in [2]. The diesel-based SGs connected to buses #1 and #3 are responsible for voltage regulation using the proposed FVC. These diesel-based SGs act as the master controllers for reactive power sharing, while the batteries and wind turbine (WT) serve as slave units supplying or consuming reactive power. The WT generation over a 120-second period is depicted in Figure 8 [2]. Various initial values for the FVC were tested, with the best performance obtained using time constants of τ 1 = 0.015 s and τ 2 = 0.75 s. The effectiveness of the DVFC during wind fluctuations is evaluated by comparing the microgrid response with and without its presence. The wind power fluctuates between 15% and 35% of the 800 kVA rating, as shown in Figure 8. The initial values for utility weights are set to 0.25 for w x , where x { F , V , C , E } . Pre-training of the networks is performed on 15,000 scenarios.

5.1. Dominant Eigenvalue Traces Versus System Parameters

We investigate the impact of DVFC inputs on the microgrid’s small-perturbation stability by monitoring the dominant eigenvalues. Controller gains are varied independently around their nominal values within specific intervals, and the resulting eigenvalue trajectories are shown in Figure 9 with respect to changes in K, κ , K δ , m p , and n p . The eigenvalues for power sharing mode and FVC gains correspond to the low-frequency critical mode of the microgrid, and are particularly sensitive to variations in these parameters. Consequently, eigenvalues along the real axis are closely associated with the frequency dynamics of the ESS and the FVC behavior of the SG, whereas the complex conjugate eigenvalues represent the voltage dynamics of inverter-interfaced ESS. In the DVFC scheme, the stability index (SI) varies from 104 % for 0.8 K i 0 to 80 % for 1.6 K i 0 , demonstrating improved robustness and stability compared to the changes in the frequency droop controller while maintaining the same power-sharing behavior.
Figure 9 shows that increasing K δ initially improves the microgrid damping metric until a point where further increments lead to deterioration in overall microgrid damping. It is observed that K δ = 1.5 results in the best stability margin and microgrid damping, hence, this value is selected as the FVC gain for time-domain simulation studies. We also assess the time delay margin for each controller to ensure microgrid stability. The time delay margins for the mid-level controller and the secondary controller are 13.2 seconds and 55 seconds, respectively, under stable microgrid operation.

5.2. DVFC for Frequency and Voltage Regulation (Scenarios 1 and 2)

In Scenario 1, the weight w F associated with frequency regulation is tested over a range from 0 to 1 to evaluate the effectiveness of the cost-to-go function for frequency response. Figure 10 shows the frequency response under different weights, indicating that w F = 1 yields a smaller frequency deviation from the nominal value compared to the non-optimal DVFC ( w F = 0 ). In Scenario 2, with 0 w V 1 , the voltage regulation is analyzed to minimize the bus voltage deviation from its nominal value. Figure 10 illustrates that the voltage deviation is maintained within the acceptable operating range of [ 0.95 , 1.05 ] pu ( V b a s e = 400 V), compared to a non-optimal solution where the voltage profile drops below 0.95 pu under wind fluctuations. Overall, the DVFC is capable of providing smooth frequency and voltage regulation as wind power increases up to 35%.

5.3. DVFC Versus ESS Penetration (Scenario 3)

An ESS is connected to bus #6 and is charged or discharged based on the power supply imbalance in the microgrid. The ESS has a regulation capacity of 30 MW/Hz [23], which allows for higher frequency response compared to the diesel-based SGs. To achieve a longer ESS lifetime and improve active/reactive power sharing control, we utilize a droop control model based on Equation (1). Initially, the ESSs are fully charged (approximately 94%), and the minimum state of charge (SOC) is set at 10%. The required ESS capacity over the 120-second interval is assumed to be 20 kWh, with wind power fluctuations as shown in Figure 8, repeating periodically 30 times in an hour. Thus, the ESS should be large enough to store 600 kWh. As shown in Figure 11, the DVFC approach results in a reduction of discharged power compared to the non-optimal one, maintaining the ESS’s SOC within a desired range, which improves the ESS lifecycle over the long term. It is assumed that the charging and discharging modes of the ESS follow the pattern shown in Figure 11 more than 30 times per hour. The lifecycle of Li-ion batteries can be doubled by changing the ESS depth of discharge level. Consequently, the ESS lifecycle is estimated at 2000 cycles for non-optimal DVFC ( w E = 0 ), 3500 cycles for optimal DVFC with w E = 0.5 , and 4200 cycles for optimal DVFC with w E = 1 .

5.4. Minimum Operating Cost by DVFC (Scenario 4)

Scenario 4 is conducted to evaluate the performance of the DVFC in achieving a more efficient dispatch solution in the CIGRE test case. In this scenario, only diesel-based SGs are considered as dispatchable generators, while the wind turbine (WT) serves as the non-dispatchable generator with wind power penetrations of 30% and 35%. Similar to scenarios 1-3, the DVFC’s performance is compared with that of the non-optimal solution ( w C = 0 ) over a 120-second duration. Figure 12 shows the power generation from the diesel unit at bus #3. A higher weight for the cost utility function results in lower power generation from the diesel generators, which act as cost-driven units.
To validate the effects of the operating cost and energy generated by the diesel-based SGs, the system is simulated for 24 hours with dispatch intervals of 55 seconds (i.e., t = 55 s). Table 2 shows that the operating cost of the DVFC is lower compared to conventional UC, indicating that the conventional UC overestimates the required energy from expensive diesel-based SGs during each sub-interval. The DVFC reduces the operating cost by 3.83%, resulting in savings of $2016 per day compared to conventional UC.

5.5. Optimum Performance of DVFC (Scenario 5)

The best performance of DVFC from all utility functions is obtained to demonstrate how the DVFC results in the optimum dispatch solution. We define performance indices (PIs) for frequency and voltage, given by
P I F = t = 1 n T m = 1 n m | ω m t ω 0 | ω 0
P I V = t = 1 n T m = 1 n m b B | V i , m t V 0 | V 0 .
To validate the advantage of the proposed DVFC compared to the conventional UC, three deterministic load and wind turbine (WT) profiles are considered. The conventional UC is evaluated using a MINLP approach with the CPLEX solver over a 24-hour operation period. The multi-objective function is solved using a fuzzy weighted sum algorithm. Optimal solutions for each normalized utility function are obtained separately and then ranked based on a fuzzy Pareto front selection. The optimal weights for all normalized utility functions are w F = 0.12 , w V = 0.15 , w E = 0.28 , and w C = 0.45 (with i { F , V , E , C } w i = 1 ). Table 3 summarizes the differences between the DVFC and the conventional UC based on four different indices. The conventional UC optimizes different objective functions in each iteration, focusing on two main objectives: a cost-driven function (CDF) and an ESS-driven function (EDF).
To evaluate the DVFC’s performance over a 24-hour period, four different models—cost-driven function (CDF), ESS-driven function (EDF), a combined CDF and EDF without frequency and voltage regulation, and the proposed DVFC—are compared in Table 3. The proposed DVFC shows improvements of 40-50% and 60-65% in frequency and voltage performance indices (PIs) compared to conventional UCs, respectively. The minimum ESS lifecycle degradation, denoted as Δ E = 133.1 , is achieved by the individual EDF model, while the minimum operating cost ( Δ C = $ 50 , 688 ) is achieved by the individual CDF model.
Although the DVFC demonstrates higher operating cost and ESS lifecycle degradation compared to the individual CDF and EDF models, it strikes a balance between optimizing operating cost and minimizing ESS lifecycle degradation while maintaining minimal deviations in frequency and voltage from their desired values. Furthermore, the DVFC exhibits superior performance in covering the net demand profile compared to the conventional UC, as shown in Figure 13. The DVFC reduces the uncovered net demand profile to less than 30% of that observed with the conventional UC, reducing the uncovered energy from 14.85 kWh to 4.7 kWh.

5.6. Plug and Play Functionality of DVFC (Scenario 6)

The plug-and-play functionality is tested by disconnecting diesel-based SG #1 at t = 20 seconds and reconnecting it at t = 40 seconds during each minute. This test is repeated for a one-hour simulation (i.e., 60 events) to validate the effectiveness of the DVFC. During the downtime, a synchronization action is performed to synchronize SG #1 with the remaining islanded microgrid before reconnection. Control parameters are the same as in Scenario 1. Two frequency and voltage indices are defined to evaluate the DVFC’s performance during this process. Table 4 presents the average frequency deviation in three cases—UC without ESS, UC with ESS, and DVFC—over the one-hour operation. The DVFC significantly reduces the frequency deviation, n = 1 60 20 40 | Δ ω ( t ) | d t , during the plug-and-play functionality.
Additionally, the impact of this process on the voltage deviation at bus #1, denoted as n = 1 60 20 40 | Δ V 1 ( t ) | d t , is found to be negligible for the DVFC approach compared to the UC model. The ESS utilization is also reported in Table 4, indicating that with the DVFC controller, ESS utilization decreases by 30%, resulting in an active energy saving of approximately 1.32 kWh for each plug-and-play event. Without loss of generality, the DVFC controller ensures accurate power sharing, as well as frequency and voltage regulation, despite the connection and disconnection of SG #1.

6. Conclusion and Future Work

This paper presents a DVFC for an islanded microgrid, aimed at optimizing the operating cost of dispatchable units and extending the ESS lifecycle while maintaining frequency and voltage within a desired range. The DVFC serves as a mid-level controller, bridging the time intervals between the primary and secondary controllers and avoiding the stair-pattern generation scheduling observed in conventional UCs. The DVFC leverages dynamic programming to approximate microgrid operating cost, battery lifecycle, and frequency/voltage regulation requirements for upcoming time steps, thereby determining optimal dispatches for DG units. The DVFC does not require a detailed mathematical model of the microgrid to calculate utility functions such as voltage and frequency regulation. Through several scenarios tested in a modified CIGRE microgrid, it has been demonstrated that the DVFC significantly reduces frequency and voltage deviations from their desired values, and minimizes the operating costs of DGs. The optimal control policy of the DVFC extends the battery lifecycle by up to twofold. With appropriate training and parameter configuration, the DVFC can make islanded microgrids self-adaptive, stable, and efficient in terms of cost and ESS utilization. In future studies, we will focus on extending the DVFC concept to handle the disconnection and reconnection of generation and load units, as well as incorporating dynamic state predictions such as wind power generation.

Abbreviations

The following abbreviations are used in this manuscript:
UC Unit Commitment
DG Distributed Generation
DVFC Dynamic Voltage and Frequency Controller
ESS Energy Storage System
SG Synchronous Generator
WT Wind Turbine
FVC Frequency and Voltage Controller
SI Stability Index
EDF ESS-Driven Function
CDF Cost-Driven Function

References

  1. Ghasemi, N.; Ghanbari, M.; Ebrahimi, R. Intelligent and optimal energy management strategy to control the micro-grid voltage and frequency by considering the load dynamics and transient stability. Int. J. Electr. Power Energy Syst. 2023, 145, 108618. [Google Scholar] [CrossRef]
  2. Sepehrzad, R.; Hedayatnia, A.; Amohadi, M.; Ghafourian, J.; Al-Durra, A.; Anvari-Moghaddam, A. Two-stage experimental intelligent dynamic energy management of microgrid in smart cities based on demand response programs and energy storage system participation. Int. J. Electr. Power Energy Syst. 2024, 155, 109613. [Google Scholar] [CrossRef]
  3. Abdelaziz, M.M.A.; Shaaban, M.F.; Farag, H.E.; El-Saadany, E.F. A multistage centralized control scheme for islanded microgrids with PEVs. IEEE Trans. Sustain. Energy 2014, 5, 927–937. [Google Scholar] [CrossRef]
  4. Farrokhabadi, M.; Canizares, C.A.; Bhattacharya, K. Unit commitment for isolated microgrids considering frequency control. IEEE Trans. Smart Grid 2018, 9, 3270–3280. [Google Scholar] [CrossRef]
  5. Simpson-Porco, J.W.; Shafiee, Q.; Dörfler, F.; Vasquez, J.; Guerrero, J.; Bullo, F. Secondary frequency and voltage control of islanded microgrids via distributed averaging. IEEE Trans. Ind. Electron. 2015, 62, 7025–7038. [Google Scholar] [CrossRef]
  6. Ahmad, S.; Shafiullah, M.; Ahmed, C.B.; Alowaifeer, M. A review of microgrid energy management and control strategies. IEEE Access 2023, 11, 21729–21757. [Google Scholar] [CrossRef]
  7. Liu, G.; Starke, M.; Xiao, B.; Tomsovic, K. Robust optimisation-based microgrid scheduling with islanding constraints. IET Gener. Transm. Distrib. 2017, 11, 1820–1828. [Google Scholar] [CrossRef]
  8. Morales-Espana, G.; Ramos, A.; Garcia-Gonzalez, K. An MIP formulation for joint market-clearing of energy and reserves based on ramp scheduling. IEEE Trans. Power Syst. 2014, 29, 476–488. [Google Scholar] [CrossRef]
  9. Zhao, Z.; Xu, J.; Guo, J.; Ni, Q.; Chen, B.; Lai, L.L. Robust energy management for multi-microgrids based on distributed dynamic tube model predictive control. IEEE Trans. Smart Grid 2023. [Google Scholar] [CrossRef]
  10. Rios, M.A.; Pérez-Londoño, S.; Garcés, A. Dynamic performance evaluation of the secondary control in islanded microgrids considering frequency-dependent load models. Energies 2022, 15, 3976. [Google Scholar] [CrossRef]
  11. Liu, T.; Chen, A.; Gao, F.; Liu, X.; Li, X.; Hu, S. Double-loop control strategy with cascaded model predictive control to improve frequency regulation for islanded microgrids. IEEE Trans. Smart Grid 2021, 13, 3954–3967. [Google Scholar] [CrossRef]
  12. Rios, M.A.; Garces, A. An optimization model based on the frequency dependent power flow for the secondary control in islanded microgrids. Comput. Electr. Eng. 2022, 97, 107617. [Google Scholar] [CrossRef]
  13. Parvizimosaed, M.; Zhuang, W. Enhanced active and reactive power sharing in islanded microgrids. IEEE Syst. J. 2020, 14, 5037–5048. [Google Scholar] [CrossRef]
  14. Han, F.; Lao, X.; Li, J.; Wang, M.; Dong, H. Dynamic event-triggered protocol-based distributed secondary control for islanded microgrids. Int. J. Electr. Power Energy Syst. 2022, 137, 107723. [Google Scholar] [CrossRef]
  15. Rosini, A.; Mestriner, D.; Labella, A.; Bonfiglio, A.; Procopio, R. A decentralized approach for frequency and voltage regulation in islanded PV-storage microgrids. Electr. Power Syst. Res. 2021, 193, 106974. [Google Scholar] [CrossRef]
  16. Venayagamoorthy, G.K.; Sharma, R.; Gautam, P.; Ahmadi, A. Dynamic energy management system for a smart microgrid. IEEE Trans. Neural Netw. Learn. Syst. 2016, 27, 1643–1656. [Google Scholar] [CrossRef]
  17. Meng, L.; Sanseverino, E.; Luna, A.; Dragicevic, T.; Vasquez, J.; Guerrero, J. Microgrid supervisory controllers and energy management systems: A literature review. Renew. Sustain. Energy Rev. 2016, 60, 1263–1273. [Google Scholar] [CrossRef]
  18. Olivares, D.E.; et al. Trends in microgrid control. IEEE Trans. Smart Grid 2014, 5, 1905–1919. [Google Scholar] [CrossRef]
  19. Abdelaziz, M.A.; Farag, H.E.; El-Saadany, E. Optimum reconfiguration of droop-controlled islanded microgrids. IEEE Trans. Power Syst. 2016, 31, 2144–2153. [Google Scholar] [CrossRef]
  20. Mahmood, H.; Michaelson, D.; Jiang, J. Accurate reactive power Sharing in an islanded microgrid using adaptive virtual impedances. IEEE Trans. Power Electron. 2015, 30, 1605–1617. [Google Scholar] [CrossRef]
  21. Savaghebi, M.; Jalilian, A.; Vasquez, J.C.; Guerrero, J.M. Autonomous voltage unbalance compensation in an islanded droop-controlled microgrid. IEEE Trans. Ind. Electron. 2013, 60, 1390–1402. [Google Scholar] [CrossRef]
  22. Zheng, D.D.; Madani, S.S.; Karimi, A. Closed-loop data-driven modeling and distributed control for islanded microgrids with input constraints. Control Eng. Pract. 2022, 126, 105251. [Google Scholar] [CrossRef]
  23. Farrokhabadi, M.; Canizares, C.A.; Bhattacharya, K. Frequency control in isolated/islanded microgrids through voltage regulation. IEEE Trans. Smart Grid 2017, 8, 1185–1194. [Google Scholar] [CrossRef]
  24. Liang, H.; Choi, B.J.; Zhuang, W.; Shen, X. Stability enhancement of decentralized inverter control through wireless communications in microgrids. IEEE Trans. Smart Grid 2013, 4, 321–331. [Google Scholar] [CrossRef]
  25. Pogaku, N.; Prodanovic, M.; Green, T.C. Modeling, analysis.
Figure 1. A schematic illustration of the microgrid hierarchical control system.
Figure 1. A schematic illustration of the microgrid hierarchical control system.
Preprints 177358 g001
Figure 2. (a) Stair-pattern provision of net demand profile. (b) Net demand coverage of mid-level and secondary controllers.
Figure 2. (a) Stair-pattern provision of net demand profile. (b) Net demand coverage of mid-level and secondary controllers.
Preprints 177358 g002
Figure 3. Inverter controller design with virtual impedance consideration.
Figure 3. Inverter controller design with virtual impedance consideration.
Preprints 177358 g003
Figure 4. General layout for ADHDP with two critic networks.
Figure 4. General layout for ADHDP with two critic networks.
Preprints 177358 g004
Figure 5. Detailed mathematical representation of DVFC: (a) critic network; (b) utility evaluator; (c) action network; and (d) model network.
Figure 5. Detailed mathematical representation of DVFC: (a) critic network; (b) utility evaluator; (c) action network; and (d) model network.
Preprints 177358 g005
Figure 6. The FVC model for the i t h SG [19,23].
Figure 6. The FVC model for the i t h SG [19,23].
Preprints 177358 g006
Figure 7. Microgrid test case based on modified CIGRE benchmark [2].
Figure 7. Microgrid test case based on modified CIGRE benchmark [2].
Preprints 177358 g007
Figure 8. The measured wind turbine generation at bus #4 [2].
Figure 8. The measured wind turbine generation at bus #4 [2].
Preprints 177358 g008
Figure 9. Eigenvalue traces of the microgrid control system for different values of ADHDP controller and FVC gains. Gains increase in the direction of arrows.
Figure 9. Eigenvalue traces of the microgrid control system for different values of ADHDP controller and FVC gains. Gains increase in the direction of arrows.
Preprints 177358 g009
Figure 10. (a) Frequency regulation in Scenario 1. (b) Voltage response to wind power fluctuation in Scenario 2.
Figure 10. (a) Frequency regulation in Scenario 1. (b) Voltage response to wind power fluctuation in Scenario 2.
Preprints 177358 g010
Figure 11. (a) Active power (b) SOC of ESS during wind fluctuations in Scenario 3.
Figure 11. (a) Active power (b) SOC of ESS during wind fluctuations in Scenario 3.
Preprints 177358 g011
Figure 12. Dispatch of diesel-based SG at bus #3 in Scenario 4.
Figure 12. Dispatch of diesel-based SG at bus #3 in Scenario 4.
Preprints 177358 g012
Figure 13. (a) Coverage of net demand profile. (b) Total uncovered net demand profile for both conventional UC and the proposed DVFC.
Figure 13. (a) Coverage of net demand profile. (b) Total uncovered net demand profile for both conventional UC and the proposed DVFC.
Preprints 177358 g013
Table 1. Typical convergence time for neural networks.
Table 1. Typical convergence time for neural networks.
Training Cycle Model Action Critic
Time (s) 10 μ 150–250 <200 ∼600
Table 2. Energy of diesel-based SGs P 1 , 2 , 3 s g (kWh) and operating cost in Scenario 4.
Table 2. Energy of diesel-based SGs P 1 , 2 , 3 s g (kWh) and operating cost in Scenario 4.
Algorithms P 1 s g P 2 s g P 3 s g Δ C ($)
Non-optimal DVFC 1877 1660 2055 365
Optimal DVFC ( w C = 0.5 ) 1842 2140 1610 355
Optimal DVFC ( w C = 1 ) 1817 2320 1455 351
Table 3. Optimal DVFC vs the conventional UC for 24 hr of operation in Scenario 5.
Table 3. Optimal DVFC vs the conventional UC for 24 hr of operation in Scenario 5.
Methods P I F P I V Δ E Δ C ( $ )
UC(CDF) 9.10 9.42 165.21 50,688
UC(EDF) 10.89 8.45 133.1 53,435
UC(CDF+EDF) 9.55 9.70 146.05 52,298
DVFC 4.42 6.11 143.13 51,264
Table 4. Comparison of Parameters for UC Without ESS, UC With ESS, and DVFC.
Table 4. Comparison of Parameters for UC Without ESS, UC With ESS, and DVFC.
Parameters UC without ESS UC With ESS DVFC
Frequency Deviation (Hz) 0.21 0.03 0.02
Voltage Deviation (p.u.) 0.06 0.05 0.01
ESS Utilization (kWh) - 4.44 3.12
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.
Copyright: This open access article is published under a Creative Commons CC BY 4.0 license, which permit the free download, distribution, and reuse, provided that the author and preprint are cited in any reuse.
Prerpints.org logo

Preprints.org is a free preprint server supported by MDPI in Basel, Switzerland.

Subscribe

Disclaimer

Terms of Use

Privacy Policy

Privacy Settings

© 2026 MDPI (Basel, Switzerland) unless otherwise stated