Abstract
The hierarchical control strategy enables seamless integration of power electronics-based distributed generators (DGs) into microgrids (MGs). This work presents a distributed coordinated secondary voltage and frequency control strategy of islanded MGs, utilizing distributed model predictive control (DMPC) approach. The Proposed approach is entirely distributed in nature, with plug and play features and requires minimal communication network with information exchange between immediate neighbors. This technique facilitates efficient information exchange and obviates the need for centralized control. Droop control is the primary controller for all the DGs, which leads to the deviations in DG voltage and operating frequency from standard nominal values. Secondary control enables the restoration of DG voltage and frequency to their nominal values. Input–output feedback linearization (IOFL) is used to transform nonlinear dynamics of inverter-interfaced DGs into first-order linear dynamics between input and output. Compared to some published works, the single-integrator dynamics eliminates the need to compute the derivative of the output voltage. Furthermore, DMPC has been used for all DG units as secondary controller, to achieve voltage and frequency regulation. This approach takes advantage of distributed architecture with optimal control actions and enhances reliability and flexibility of MG operations. Moreover, the proposed approach ensures that voltage and frequency of overall system are restored to its reference value while maintaining accuracy in real power sharing. Effectiveness of proposed control scheme is validated with simulations conducted on islanded MG test system using MATLAB/Simulink toolbox.
Introduction
Concept of microgrid (MG) has emerged as a solution to the unpredictable performance of renewable energy sources, caused by their intermittent nature which can significantly impact grid stability (Olivares et al., 2014; Zhang et al., 2023). Typically an MG comprises of distributed generators (DGs) including wind energy, photovoltaic (PV), and energy storage systems (ESS) which work in cohesion and facilitate the optimized use of renewable energy sources (Shan et al., 2021). Typically, MGs operate in grid-connected mode, wherein main grid decides voltage and frequency, and control algorithms strive to achieve these references and ensure stability. However, in islanded operational mode, stability of MG is susceptible to disturbances like load changes (Jamali et al., 2023). In general, hierarchical control strategy is employed to attain control objectives of an islanded MG, which includes primary, secondary, and tertiary control levels (Bagheri Rouch and Fakharian, 2022; Li et al., 2018). Primary control in DG is implemented using droop control strategy.
In conventional power systems, synchronous generators possess inertia, which causes frequency deviations in response to load changes and helps to maintain system synchronism. However, inverter interfaced generators lack the inertia. Hence, in inverter interfaces, DG’s intentional droop in frequency and voltage is introduced and the scheme is called droop control strategy. This helps to keep the MG synchronized without any communication between the DGs. Droop control, which emulates the operating performance of synchronous generators, is typically applied to every DG for primary control in an MG for frequency and output voltage stabilization. Primary control of DG is implemented by inner current, outer voltage control loop, and a power controller (Lou et al., 2016; Singh and Maulik, 2023). Inherent limitation of droop control approach is voltage and frequency deviates from nominal values during load increase (Panda and Subudhi, 2023). Hence secondary control is introduced to restore deviations in MG parameters that occur as a result of primary control. Frequency deviation, inaccuracy in power sharing, and voltage adjustment need to be managed and mitigated by secondary control (Li et al., 2017; Simpson-Porco et al., 2015). Optimizing power flow and managing economic dispatch are the key responsibilities of tertiary control.
A centralized control strategy is conventionally utilized in secondary control of an MG. It relies on information being passed from every single DG to one central computing unit. The central computing unit decides the operating point for each DG and sends the corresponding control signals. Wen et al. (2016) presents a frequency regulation of source-grid-load system, where a centralized MPC approach is applied for allocating the active power to each generator in a power grid. Centralized approach compromises system’s overall reliability, even make it more prone to failures because of single point vulnerability (Cady et al., 2015; Zhang et al., 2023). To address the aforementioned drawbacks, a multi-agent system (MAS)-based distributed control approach has recently been reported in the literature.
The distributed control scheme operates by coordinating local control decisions of DGs with the information from the neighboring DGs. This control technique enhances both the reliability and scalability of the system due to its sparse communication network requirement and decentralized calculation of the control signals (Cady et al., 2015; Guo et al., 2014; Gurmu and Hu, 2025; Liu et al., 2015). A surge in research focused on multi-agent-based cooperative theory has emerged and is yielding significant results in the domain of voltage and frequency restoration in MG (Arora et al., 2024; Babayomi et al., 2020; Bidram et al., 2013; Simpson-Porco et al., 2015). For islanded MGs, Simpson-Porco et al. (2015) proposes a distributed strategy for voltage and frequency control that combines proportional, integral control, and distributed averaging. While this method offers a adjustable trade-off in voltage regulation and reactive power sharing, it overlooks critical need for synchronization of DGs. In Bidram et al. (2013), fully distributed secondary voltage control is proposed, in which highly nonlinear dynamics of DG is tackled using feedback linearization and a linear second-order tracking synchronization problem is formed. Subsequently, the controller gains are found by solving the algebraic Riccati equation. To overcome the uncertainties in the system and communication links, secondary control schemes in distributed manner have been presented in the literature (Ahmed, 2023; Lee et al., 2022; Panda and Subudhi, 2023; Yu et al., 2022).
Other aspects of recent research in distributed control of MG is adaptive and event triggered secondary control schemes, which have been used to handle uncertainties in the system and reduce the communication burden (Ashrafi et al., 2025; Chen et al., 2024a; Ma et al., 2025; Zhao et al., 2023). A distributed adaptive secondary control scheme for frequency regulation in networked MGs is proposed by Kandasamy et al. (2024) using a leader–follower consensus mechanism. To enhance dynamic performance of secondary control of an MG, finite-time convergence algorithms (Chen et al., 2024b; Li et al., 2018; Ning et al., 2020; Pilloni et al., 2017), and for uncertainties sliding-mode control (Abianeh et al., 2021; Alfaro et al., 2021) have been proposed. While these control methods are reliable, they have certain limitations compared to prediction-based algorithm. For instance, they do not explicitly handle constraints such as voltage and frequency limits and lack predictive capabilities. This serves as a motivation for adopting MPC as a secondary controller. Due to the limitations of both droop control and centralized control approaches, there is a clear need for a distributed secondary control strategy in MGs. This is where MPC comes into play. One of the key motivations for adopting MPC is its ability to effectively handle physical constraints such as voltage and frequency limits. In addition, MPC’s predictive and feedback-based nature makes it well-suited for managing MG dynamics, as it helps minimize system disturbances and enhances overall stability.
MPC is a control strategy that optimizes future system behavior by solving an optimization problem at each time step. It effectively handles constraints while finding the control action for the next time step. MPC controller has been designed to address voltage and frequency regulation in an MG. In the published results Lou et al. (2018), Panda and Subudhi (2023) and Bidram et al. (2013) have used MPC as a secondary controller along with feedback linearization. The linearized dynamics used is of second order, with the output voltage and its derivative as the state variables. Both of these state variables are necessary to compute the control action. While the output voltage is directly measurable, the derivative of the output voltage must be synthesized or estimated. However, the published results do not mention how this derivative is obtained. Moreover, the derivative of the output is not a physical variable and hence cannot be measured with the sensor. In contrast, the present work employs a first-order linearized map between input and output, which eliminates the need to calculate the derivative of the output voltage signal.
While MPC controllers have been designed to address voltage and frequency regulation in an MG, they have also successfully addressed challenges like seamless transition from islanded operation to resynchronization with the main grid (Fachini et al., 2024). The study in Kiani et al. (2024) proposes a learning-based MPC scheme for voltage restoration in islanded MGs, integrating Gaussian process regression to predict load uncertainties.
In summary, to ensure the performance of the MG with minimal communication network distributed control is emerging as a key solution. While droop control is invariably the choice for primary control, for secondary control strategies like MPC, finite time convergence control and sliding mode control have successfully been deployed. The key objectives associated with MG secondary control are: (1) effective voltage and frequency restoration while ensuring accurate power sharing via a sparse communication topology, (2) secondary control should achieve fast convergence of voltage and frequency, (3) a robust control scheme is desirable to handle the various uncertainties in DG and MG parameters, and (4) DG’s secondary controllers for islanded MGs in remote areas should have limited tunable parameters and be able to adjust to the variety of operating environments. Model predictive control (MPC) strategy is gaining popularity for its ability to meet the objective optimally and simultaneously handle system uncertainties and the constraints (Aragon et al., 2021; Lou et al., 2016; Shabbir et al., 2022).
In the present work, the problem of voltage and frequency deviation from their nominal values is addressed using distributed model predictive control (DMPC)-based secondary control of DGs. The problem is formulated as a tracker synchronization task, wherein the output voltage and frequency of each DG aim to follow the given reference values. Although the reference is available to only one or a few nodes, the connected nature of the communication graph ensures that all nodes eventually converge to the specified reference values. Since the dynamics of the inverter interfaced DGs is a nonlinear dynamics, the predictive control problem evolves as a nonlinear MPC (NMPC). Furthermore, the optimization to be solved to find the controller also becomes nonconvex. This significantly complicates the solution procedures and requires nonlinear programming (NLP) solvers which are computationally expensive. However the issue has been addressed using input–output feedback linearization (IOFL). Using IOFL, the input–output map is linearized, and hence, the problem can now be addressed using Linear MPC. In linear MPC, to find the controller, convex optimization problem is solved using QP solvers. Thus IOFL is applied to get first-order linear model between input and output and some internal dynamics. It simplifies the control approach, as there is no need to handle complex nonlinear dynamics, which further reduces the complexity of the optimal control computation. The proposed DMPC approach operates in an online mode, where each DG unit independently computes its optimal control actions at every control interval, using local measurements and communication with neighboring units. The control strategy follows a receding horizon principle, allowing each DG to iteratively predict and adjust its inputs based on the latest system state and exchanged neighbor data (Foss and Heirung, 2013; Reigstad and Uhlen, 2021). Key contributions of the present work are as follows:
The proposed method employs IOFL to represent the DG’s nonlinear dynamics into a simplified first-order (single integrator) linear dynamics between input and output. This has an advantage over published IOFL technique that yields second-order dynamics and necessitate to compute output voltage derivative—a requirement that introduces noise sensitivity. By eliminating this dependency, the approach enhances system robustness while reducing implementation complexity.
This work proposes a DMPC-based secondary controller for MG voltage and frequency regulation and ensures voltage and frequency restoration to nominal values, with particular emphasis on achieving accurate proportional power sharing among DGs according to their respective ratings. For the frequency regulation, the designed MPC controller makes use of first-order model dynamics. Compared to the published results where PI controller has been used, the MPC gives better performance being predictive and optimal controller. The DMPC framework simultaneously ensures frequency restoration to nominal values while maintaining power sharing.
The proposed method introduces a fully distributed predictive control framework with plug and play capability, allowing each DG to make optimal decisions based on local and neighboring data. It requires minimal communication infrastructure while ensuring coordinated secondary control.
Hierarchical control framework of MG
MG is a highly distributed system in which the DGs are spread across a wide area. To control the MG, a hierarchical, three-level control structure is adopted. Each level of the hierarchical control architecture of the MG has a specific objective. The principal objectives of the primary control are proportional power sharing between each DG and systematic voltage/frequency stabilization. The secondary control eliminates the inherent deviations introduced by the primary control in preparation for grid connection. At the top of the hierarchy, tertiary control manages power flows between the MG and the main grid, as well as the economic power flow within the MG (Ashtari Mahini et al., 2024; Khosravi et al., 2020).
Primary control
Primary control is referred as the local control for a DG. It operates at the lowest level of the hierarchy and is the quickest to respond to the changes. The droop control scheme is virtually implemented in each DG of the MG to achieve proportional power sharing, formulated as follows:
where
where maximum and minimum permitted voltage is denoted by
Secondary control
Unlike synchronous generators, the inverter interfaced generators are inertia-less. Thus, an intentional droop in frequency and voltage is introduced to keep the MG synchronized without any communication between the DGs. Due to the nature of droop control, there will always be variations from the rated voltage and frequency. The idea of secondary control is to mitigate the deviations in voltage magnitude and network frequency. Secondary control shifts the entire droop curve with an additional offset in vertical direction, which can be expressed as follows:
Conventionally, secondary control is attained through centralized control strategies. Centralized control suffers from the requirement to collect vast amounts of data from each DG through communication link and process it in a centralized computing unit. However, in the present work, cooperative control is used where the offsets are decided based on the information shared among neighboring units.
Large-signal dynamical model of inverter-interfaced DG
A large signal dynamical model of inverter-interfaced DG serves as a foundation for the design of control technique. As seen in Figure 1, each DG contains prime DC source that is typically interfaced with an MG system by voltage source inverter (VSI), an inductor–capacitor (LC) filter, and resistor–capacitor (RC) output connector. Primary control of each DG consists of three control loops: external power control, inner current control, and voltage control loop. Output voltage magnitude and operating frequency references are determined by power controller on the basis of droop coefficients selected for real and reactive powers. Based on voltage reference generated by the power controller, the voltage controller tries to achieve this target value. To do so, the voltage controller generates a current reference signal, which is then used by the current controller (Bidram et al., 2013; Pogaku et al., 2007).

Inverter-interfaced DG.
The dynamic model of each DG is developed in its own direct-quadrature (d-q) reference frame. It is assumed that the reference frame of the
All reference frames rotate at common angular frequency because of the frequency droop features given in (1). Droop technique is applied in power controller, and it provides voltage reference values
Direct and quadrature component of output voltage
The primary control strategy includes a voltage controller. The following differential and algebraic equations represent the behavior of the voltage controller:
where ω represents the nominal angular frequency, and
Standard proportional–integral (PI) controller-based current controller provides the reference to bridge inverter. Following differential equations define the model of the current controller:
where
Following differential equations model, the output LC filter and output connector circuit are depicted in Figure 1:
Large-signal dynamic model of inverter-based
where
Secondary voltage control approach works by selecting the nominal voltage
Secondary control based on DMPC
Graph theory and tracking synchronization
In an islanded MG with n DGs, where DGs can share information to their neighbors via a communication network forms a network. By considering DGs as agents, islanded MG can be considered as an MAS. This MAS can be modeled as a directed graph, commonly referred to as digraph. Digraph is typically expressed by
IOFL
The dynamical model of the DGs is nonlinear. In the present work, the IOFL approach has been used to develop a linear model between the input and the output. The approach is discussed below. Consider a affine nonlinear system:
where
If
The notation is convenient for repeated derivatives given as:
According to the Lie derivative, if
This gives the input–output linear map as
DMPC-based voltage restoration
This section presents a linear DMPC-based approach which synchronizes the output voltage
Differentiating (32) gives:
here
where
A discrete-time model is established to support iterative nature of the MPC algorithm. Continuous time state-space system given in (34) can be formulated in discrete time model using the Forward Euler discretization technique. In this method, derivative is approximated as:
and thus, the discrete-time state-space model is written as:
here,
Equations (37)–(39) provide prediction of the system output over a finite prediction horizon
where
Now, the optimal control sequence at
here,
Using (42), the cost function in (41) transforms on an unconstrained quadratic programming (QP) problem in terms of the variable
here,
Explicit solution that minimizes the cost function is given as
As per receding horizon concept of MPC, first component of optimal sequence applied to the procedure allowing that control action to be represented as
The flowchart for the secondary control of MG based on DMPC is depicted in Figure 2. The following is illustration of the corresponding steps:

Flowchart of DMPC-based secondary control of microgrid.
The block diagram for DMPC-based secondary voltage control is illustrated in Figure 3. Control input
where
in the above equation,

Block diagram of DMPC-based secondary voltage control.
DMPC-based frequency restoration
This portion implements a linear DMPC to synchronize frequency
where
where
To apply DMPC approach for frequency control, a discrete-time model is developed using the forward Euler method of discretization of derivative. Thus, the linear state-space system presented in (50) can be stated as:
The linear DMPC approach centers on minimizing error between predicted output and given reference signal. Tracking synchronization in an MAS aims to eliminate local neighborhood error and offer convergence to reference given to the leader node. The subsequent receding horizon optimization index for frequency control of the MG is given as follows (Bordons et al., 2020; Lou et al., 2018):
where
where
where
First component of the optimal control sequence applied to the system allowing control action to be represented as
As per (48), the input to the primary controller from the DMPC for frequency control can be derived as follows:
After execution of the secondary control, output powers of DGs need to be in proportion with their ratings. Thus:
An additional DMPC strategy to meet this requirement can be formulated by regulator synchronization for a linear first-order MAS:
where
and no reference value is given here as it becomes a cooperative regulator synchronization problem. The future incremental control action for sampling instant k in vector form can be given as
where
where
Explicit solution that minimizes the cost function is given as
First component of optimal sequence applied to the procedure allowing that control action to be represented as
Figure 4 shows the block diagram for secondary DMPC-based frequency control and control input is obtained as follows:

Block diagram of DMPC-based secondary frequency control.
This control input ensures both the frequency restoration of the MG to nominal value as well as proportional power sharing among the DGs.
The deployment workflow includes system linearization, model prediction and optimization, and distributed coordination of DGs. A local MPC problem is formulated for each DG unit, at each sampling instant. The problem is formulated using the state evaluation of DG and the neighboring DGs. This problem is solved to minimize a quadratic cost function on a finite prediction horizon, capturing voltage or frequency tracking objectives and control effort minimization.
Case studies
To verify efficacy of MPC-based secondary voltage and frequency control, an MG test system simulated in MATLAB R2024a/Simulink as practical system is illustrated in Figure 5. MG test system comprises four DGs, each connected to individual loads. These DGs are linked via four transmission lines modeled as RL branches with series connection. The specifications for DGs, loads, and transmission lines briefly listed in Table 1. Each DG coordinate with its neighboring DGs through a cyber topology given in Figure 5. DG1 is designated as the leader node in this configuration and has access to voltage and frequency references. The MAS operated in MATLAB/Simulink with the secondary control scheme implemented through MPC. In this section, four scenarios are discussed, focusing on the evaluation of controller’s performance for voltage and frequency control and its robustness for load variations.

Microgrid test system and communication topology.
Parameters of DGs for microgrid test system.
Case 1: Simulation results for various reference voltage tracking
This scenario illustrates transient behavior of proposed DMPC-based voltage controller. At

DG terminal voltages for Case 1 and Case 2: (a) when
Case 2: Simulation results for secondary voltage control during load switching
The performance of the MG is analyzed during load switching in this case as depicted in Figure 6(d), where additional loads are connected and disconnected to observe the system’s response. Additional RL loads are connected at bus 2 with rating
Case 3: Simulation results for frequency restoration and proportional power sharing
Performance of the MG under DMPC-based frequency control is demonstrated in this case. As depicted in Figure 7(a), during droop control, operating frequency initially drops from nominal value. However, once secondary control applied at

Frequency results for Case 3: (a) active power without load switching, (b) frequency restoration with DMPC, (c) active power during load switching, (d) frequency restoration during load switching, (e) active power of 10 DG system, and (f) frequency restoration for 10 DG system.
Case 4: Plug and play capability
In this study, performance and robustness of proposed controller is evaluated under plug and play condition. The active power results are shown in Figure 8(a), DG 4 is disconnected from the MG system at

Plug and play capability results for Case 4: (a) active power of DGs, (b) output voltages of DGs, and (c) frequency of DGs.
Case 5: Comparison of proposed controller with Sun et al. (2022) and satya nagasri Dangeti and Marimuthu (2025)
Output terminal voltage of DGs proposed in Sun et al. (2022) is illustrated in Figure 9(a). The output DG voltages of the proposed work are presented in Figure 9(b). Control methods presented in both works are applied in same MG test, and secondary control is applied in

Comparison between the voltage and frequency control approach for Case 5: (a) voltage restoration results in Sun et al. (2022), (b) voltage restoration results in this paper, (c) frequency restoration in satya nagasri Dangeti and Marimuthu (2025), and (d) frequency restoration in this paper.
Conclusion
In this work, a distributed MPC-based secondary control scheme for the regulation of voltage and frequency in an islanded MG is proposed. Although the original dynamics of the inverter-interfaced DG is highly nonlinear, IOFL is used to define a linear model between control input and output variables, that is, voltage and frequency. Following this transformation, a secondary voltage regulation strategy, which is based on linear DMPC, is implemented. This distributed control works on exchange of information between local and neighboring DGs and obviates the need of a centralized controller, enhancing reliability and improving overall system performance. Moreover, the proposed approach is equipped with the plug and play feature that allows to easily connect or disconnect the DG without affecting rest of the MG. DMPC-based secondary control also facilitates frequency restoration when a droop in frequency occurs during droop control and guarantees the proportional power sharing between the DGs. The effectiveness of the proposed control scheme is demonstrated through simulation results across various test scenarios. The simulation results validate the control strategy by restoring the frequency and output voltage of the MG to their reference values in the presence of uncertainties such as load variations, while maintaining accuracy in active power sharing.
Footnotes
Acknowledgements
The authors would like to acknowledge the support of Dr B R Ambedkar National Institute of Technology Jalandhar, India.
Author contributions
A.C. and V.S. designed the controller, and D.S. made the conclusions and edited them.
Declaration of conflicting interests
The authors declared no potential conflicts of interest with respect to the research, authorship, and/or publication of this article.
Funding
The authors received no financial support for the research, authorship, and/or publication of this article.
Data availability statement
The data that support the findings of this study are available from the corresponding author upon reasonable request.
