Introduction

Microgrids (MGs) deliver dependable and cost-effective energy to specified locations, such as residences, communities, and industrial zones. Advance software and control systems allow them to function as a single unit and to manage the demand and supply of energy in real-time1. Most notably, MGs benefit companies and clients by strengthening dependability by integrating mobility at the transmission system’s local layer, improving energy efficiency using dynamic demand management, and lowering greenhouse gas emissions2. MGs can integrate sustainable and conventional inverter-based systems (IBS) for dependable electrical energy delivery to regional clients. These components create a self-contained autonomous system that can operate independently or in parallel with the primary power grid, depending on the needs and goals3,4. Sustainable energy-based distributed MGs provide an opportunity to increase energy efficiency, improve energy security, and reduce environmental impact while providing economic benefits to local communities. Relying on the conventional power generation has several vulnerabilities that can impact energy security, financial stability, and public health and safety. Transitioning to renewable energy-based distributed MGs can help to address these vulnerabilities by providing energy independence, resilience, and environmental benefits. Additionally, decentralized power resources (DPRs) can provide numerous benefits, including energy security, economic savings, enhanced energy access, and ecological protection5,6. Nonetheless, renewable energy sources such as solar, wind, and hydropower are referred to as ”intermittent” because they rely on time-varying natural resources. This is a difficulty for the energy operators that preserve the resilience of the electrical network by balancing the electrical supply and demand in real-time. In addition, advancements in smart grid technology make it simpler for grid managers to foresee and regulate fluctuations in the amount of renewable energy produced. This improves the grid’s overall dependability and efficiency7. While MGs offer a promising option for incorporating sustainable DPRs, significant initiatives are needed to create sophisticated control mechanisms to guarantee MGs’ safe, reliable, and cost-effective functioning.

Several issues need to be addressed to realize the full potential of DPRs in MGs. Some of the most significant challenges are (1) power electronic connectivity regulation for infrequent as well as non-dispatchable sustainable DPRs8, (2) preserving energy equilibrium to ensure stable voltage as well as frequency levels on the grid9, (3) reducing disturbances caused by the occurrence of asymmetrical and non-convex demands in compact MGs10, (4) developing safe communication channels for MGs as a preventative measure against hackers11,12 and (5) realistic modeling imbalanced events and perturbations in MGs13,14. Current research has shown a significant progression towards decentralizing, distributed, and multilevel control systems that divide these operational functions among several units15,16,17. When more distributed generation (DG) units are added to MGs, each sub-grid can reach its own safety and regulatory goals with little help from other sub-grids. On the other hand, decentralized control schemes rely on synchronized communication between components to assign control functions. This keeps subsystems from becoming overloaded18. Once this synchronization is performed, centralized control architecture (auxiliary controls) can be applied.

Generally, DG units are linked to the MG system via power electronics-based devices. Depending on their role in the network, these devices must be controlled differently. Ensuring reliability and establishing precise power exchange between these units require a central control to regulate the potential difference and ampacity at the outputs of these devices (inverters)19. The earlier control approaches implemented for MGs mainly restricted themselves to traditional droop approaches for power electronic coupling DPRs20. Such schemes were based on the premise that the production susceptibility of a converter is entirely inductive. Traditional droop was shown to be insufficient for accomplishing correct dynamic energy sharing when system impedance discrepancies existed among converters that were linked in a parallel configuration. As a result, various scholarly studies have suggested alternative versions of standard droop approaches to accomplish this control goal21,22,23. MGs based on geographically scattered inverters require complex control strategies to address their coherence and synchronization limitations. Hence, it leads to an increase in the adaptation of new non-droop data-driven control strategies24,25,26,27.

Intermediate control in an MG refers to the procedures that regulate the MG’s power flow to maintain stability and dependability. Secondary control occurs at the hardware level, keeping the overall production and demand harmony. Secondary control’s primary objective is to preserve steady frequency and voltage levels inside the MG by controlling the power production of various DPRs, including solar panels, wind turbines, and energy storage systems. The secondary control system continuously checks the power consumption and supply in the MG and regulates the production of the DPRs to guarantee that the total power produced is equal to the power consumption28. Distributed secondary control techniques with data transmission have replaced the centralized MG controller (CMGC) used in conventional secondary control29. Tertiary control, applied for maximizing the system’s profitability worldwide, might also be included in CMGC. It interacts only with upstream infrastructure to facilitate workable MG by allocating resources most effectively30.

The purpose of this research is to present an overview of the development of control methods in MG and to conduct a systematic evaluation of the various strategies for MG control that have been proposed in the published literature. Many publications have covered the numerous MG control techniques in depth31,32,33,34. Several system-of-systems (SoS)-oriented discussions on MG control techniques are found in35; nevertheless, the primary emphasis is on adapting SoS to MGs. The researchers of5 covered the fundamentals of MGs while also addressing emerging issues and potential from various fields, including law, economics, and regulation. MG control innovation was reviewed in36, with an emphasis on energy storage facilities (ESFs). A comprehensive literature analysis on the fully functioning-based taxonomy of MG control was presented in37. In light of the growing interest in MG control, this study presents a concise assessment of the state of the art in MG controls, as well as a discussion of its implications and the obstacles standing in the way of further study. The scope of this study includes the following:

  1. 1.

    Intermittent renewables problems, issues with the reliability of power and frequency, potential difference irregularities, and cyber-security problems are only some of the constraints and implications that sustainable energy MG has on the larger energy grid.

  2. 2.

    It describes advanced centralized control techniques like multi-agent systems oriented control (MASOC), model-predictive control systems (MPCSs) at the converter and strategic levels, consensus-oriented approaches, and machine learning-enabled monitoring approaches.

  3. 3.

    It identifies and classifies different control approaches from current research into one of the following control stages: (1) primary control, (2) secondary or intermediate control, and (3) tertiary or auxiliary control. Moreover, this categorization is helpful for scholars because it allows them to distinguish between control values, based on the time length at which their operations occur and the architecture criteria they must meet.

  4. 4.

    It assesses the difficulties experienced in MG control to suggest potential research topics.

The remainder of the study is structured as follows: “The theory of MGs” covers the fundamentals and designs of MGs. The third section discusses the issues associated with sustainable MGs integrated within the energy-delivering facilities, while “Prerequisites for DPR implementation in grid codes” summarizes IEEE DG connectivity criteria. “Advance hierarchical control” describes multilevel MG control, incorporating all conventional connectivity standards and resilient control levels to minimize connectivity problems. The last section summarizes the research.

The theory of MGs

MG is a decentralized energy network that can function independently or in cooperation with a broader electricity network38. MGs are DPRs that include photovoltaic power, wind generators, batteries for storing energy, and backup systems, and are linked to a smaller-scale distribution network. MG systems offer greater autonomy over energy production and transmission to provide dependable, economical, and sustainable energy to the local population. Independent of the primary power grid, MGs can function in “island mode”, running their own systems and providing their own ancillary services like peak shaving and demand management39. Production resources, ESFs for smoothing out power oscillations and unbalance, demands, and a point of common connectivity (PCC) for joining and detaching MGs from the primary network to let it function in grid linked manner or islanded operation are all parts of a typical MGs design40. In addition, an MG central controller (MGCC) is often set up to regulate the MG power equilibrium and DPRs effectively. Micro sources track DPR functioning states and send that data to the MGCC, which then uses that data to send out minimal set-points to the individual DPR controllers41.

The dimensions, power supply, control technique, and function of MGs are just a few of the many ways they can be categorized. MGs can be either alternating current (AC), direct current (DC), or a mix of the two, depending on their resources, how much power they use, and how it gets to them. The literature, however, provides many detailed and extensive MG architectural models. For example, the models of MGs designs can be seen in42, wherein three feeds with delicate demands and the ability to island from the network through a fixed flip were addressed. It has a number of non-critical demands that can be met even if something goes wrong, as well as four micro-sources that can be controlled by peer-to-peer techniques. In43, the investigators provide an identical design wherein sustainable DPRs supply essential and non-critical home demands via three distribution system. MGs with a solitary bus architecture34, such as those depicted in Fig. 1a,b, are widely deployed because of their suitability for small and intermediate voltage systems. Besides (a) multi-level architecture for covering bigger regions with spatially dispersed DPRs44,45 and (b) multiple-bus design for increasing dependability in an urban region46, there are additional possible generalized MG architecture. Both of them are depicted in Fig. 2a,b.

Figure 1
figure 1

MG designs with a solitary bus.

Since AC MGs are already compatible with the architecture of existing AC networks, most development has been focused on learning more about and growing these systems. A more accurate distribution of reactive and active power, as well as enhancements in electric quality and frequency control, is among these advancements. In terms of dependability and efficiency, DC MGs are superior to AC MGs. Because DC MGs lack the concerns associated with imbalances, synchronization, and harmonics, they are not affected by these problems. Among the developments made in DC MGs are the implementation of synchronized control schemes, dependable power administration, and a set of voltage-regulating algorithms. Hybrid MGs have both alternating and direct current transmission systems, and DPRs possess direct current and are connected to an identical power system. As energy-storing devices and the DPRs are easily linked to the hybrid power grids network, there is less need to coordinate. Therefore, hybrid MGs are an attractive approach to merging future alternative power DPRs and e-mobility with minimal alteration to the existing transmission system and to lower total expenses47.

Figure 2
figure 2

MG designs with multi-bus.

Even though MGs are distinguishable from the rest of the transmission network due to their stability, their control and operation are complex. Depending on their architecture and function, they can function in various ways. The most prominent modes are black start mode, grid support, grid connection, and island mode16. The primary constraints and objectives for micro-assets, demand controllers, and MGCCs are to transfer surplus energy or acquire inadequate energy via the converter in a grid-connected manner and to manage frequencies and voltages in stand-alone mode to achieve the regional balance of power.

Problems and implications of MGs powered by sustainable sources on the power network

Uncertainty of sustainable energy sources

The uncertainty of the technologies brought about by IBS in MGs has resulted in major difficulties in the functioning of the electrical system, despite the fact that these advancements have made enormous strides. There is a possibility that the amounts of energy production would change, which would make the MG vulnerable to frequency as well as voltage fluctuations at PCC. Additionally, as such incorporation of the unpredictability of wind power in MGs increases, the adverse effects of power surges in the middle frequency band (0.01 and 1 Hertz) become more pronounced48,49. Therefore, control mechanisms that have an essential function in the operation of MGs by guaranteeing continuity and dependability need to be developed to mitigate the effects of these connectivity complexities34,50,51. The uncertainty handling strategies can be broken down into eight distinct classes, which are as follows:

  1. 1.

    Incorporating a variety of various forms of sustainable power, all of which will supplement the others to achieve an improved power profile52,53.

  2. 2.

    Allowing power transmission in both directions across MGs for energy planning54.

  3. 3.

    Using energy storage devices to flatten out the production of sustainable power sources and significantly reduce intermediate frequency variations to ranges of 19–38%55,56,57.

  4. 4.

    Designing dynamic control techniques for decoupling linked to wind farms to satisfy power system criteria58.

  5. 5.

    Allowing for demand reduction to optimize power equilibrium59.

  6. 6.

    Integration of dispatchable units to offer support during times of low production from sustainable energy resources60,61.

  7. 7.

    Applying MPC-based normalized wind energy supply to power networks to minimize reduced frequency fluctuations related to intermediate band wind energy, which has a higher oscillation rate62.

  8. 8.

    Using hybrid approaches integrating two or more techniques to mitigate unpredictable power63.

Resilience of frequency and system inertia

A change in frequency has a direct relation (proportional) to the system inertia and also results from any discrepancy between power generation and consumption. These shifts in dynamic behavior are described by the following models (1)–(4).

$$\begin{aligned} I = \int {{R^2}dm = {R^2}M}, \end{aligned}$$
(1)
$$\begin{aligned} K.E = 0.5\left( {I\alpha _M^2} \right) , \end{aligned}$$
(2)
$$\begin{aligned} \frac{d}{{dt}} = 0.5\left( {I\alpha _M^2} \right) = {P_M} - {P_E}, \end{aligned}$$
(3)
$$\begin{aligned} J = \frac{{K.E}}{\omega } = \frac{{0.5\left( {I\alpha _M^2} \right) }}{\omega }. \end{aligned}$$
(4)

Synchronous machine inertia as well as kinetic energy are determined via mathematical expressions (1) and (2), wherein R is the radius of the synchronous units rotating portion, M is the units mass in kilograms, and \(\alpha _M\) is the synchronous units relatively stable angular rotor velocity. The swing model in expression (3) indicates that the mean accelerating energy directly impacts the energy supply’s reliability. The \(\alpha _M\) value shifts whenever there is a mismatch involving the mechanical \(P_M\) and electric powers \(P_E\). J, the inertia factor, is defined as the resilience towards frequency variations caused by conserved kinetic energy in rolling element bearings during energy discrepancies by model (4), and \(\omega \) is the production capability of the energy network under consideration.In conventional energy networks, the kinetic energy of synchronous machines offers steadiness subject to grid disturbances or demand and production discrepancies, thereby restricting the change rate of frequency (CRF). Nevertheless, increased adoption of solar and wind IBS reduces the mechanical inertia, leading to an increase in CRF. The CRF defined by the following model (5) denotes frequency divergence (following a quick imbalance among production and demand) as

$$\begin{aligned} CRF = \frac{{\Delta P \times f}}{{2J \times \omega }}, \end{aligned}$$
(5)

where \(\Delta P\) represents the disparities among production and demand and f represents the system’s frequency.

Frequency changes are more significant and could cause the demands or IBS to break when an electric grid contains a synchronous machine and a sustainable energy supply that does not add to the system’s stability. Thus, an MG with a high percentage of sustainable energy sources needs to operate reliably during a significant CRF. The authors of the study64 presented a thorough analysis of the many methods through which wind farms and specific wind turbines can implement frequency management control schemes. The V/f modal control suggested in65 has been used to maintain safe voltage and frequency levels in an MG. Because sustainable DPRs are non-linear, a battery is used to smooth out the resulting frequency fluctuations. Other methods to reduce MG lag time include

  1. 1.

    Control strategies for synchronous machines that utilized virtual inertia were adopted in integrators66.

  2. 2.

    Use of batteries for energy storage to aid in the frequency management of MGs powered by photovoltaic cells67.

  3. 3.

    An inverter’s energy phase can be regulated by simulating non-linear harmonics with the system frequency as that of the natural frequency68.

MG system voltage stability

Long-distance power cables are the main cause of voltage instability in traditional energy grids. MGs have negligible voltage dips due to their short feeder linkages. Yet, there may be an increase in voltage instability challenges if MGs become more prominent in the transmission network of the present day. MGs nowadays experience voltage imbalances due to issues like extremely low stable and fluctuating voltages, poor synchronization of DPR power flow against voltage (QV) droop curves, the failure of IBS DPRs to keep a constant voltage throughout the battery bank, and the DPRs’ inability to accommodate for future load growth69.

Conventional energy grids manage reactive production by adjusting end voltages at the generation or adjusted demand. However, MGs respond to any system-wide alteration in the DPR node voltages. As network voltage adjustments are linked to decentralized energy resource (DER) voltage regulations, a well-coordinated set of DER QV curves is required to reduce voltage disparity between buses, limit reactive current flow, and damp voltage swings70. Certain aspects of an MG network degrade the aggregate voltage pattern and net power generation when interruptions occur71.

Conventional approaches to managing reactive energy exchange fluctuations across various DPRs in an MG use QV droop features. The following model in (6) can be used to express this45:

$$\begin{aligned} Q = \frac{\upsilon }{{{R^2} + {X^2}}}\left[ { - R{\upsilon _2}\sin \theta + X\left( {{\upsilon _1} - {\upsilon _2}\cos \theta } \right) } \right] . \end{aligned}$$
(6)

In Eq. (6), \(\upsilon _1\) and \(\upsilon _2\) represent the potential difference magnitude of two vertices in MGs infrastructures isolated by energized line impedance \(Z=R+jX\), and \(\theta \) represents the phase angle across the \(\upsilon _1\) and \(\upsilon _2\).

MGs with tiny levels of and substantial inductive injectors or feeders \(X \gg R\) allow R to be ignored in favor of \(\sin \theta \approx \theta \) and \(\cos \theta \approx 1\)45. Therefore, reactive energy is proportional to the potential, but the assumption that inductive links drive MGs is debatable because inverters might have different yield impedances. As a result, this standard droop process frequently fails to attain the anticipated precision level in distributing reactive energy. Several enhanced droop and non-droop monitoring strategies have been implemented for parallel-linked inverters in DG networks. Additional information on this topic will be provided in “Advance hierarchical control”. In addition, because voltage assessments change across the MGs network, they could not indeed be utilized to ensure a balanced distribution of global reactive energy. If the highest voltage dip of an MG network can indeed be specified by knowing the system parameters of that system, then the voltage pattern can be kept under reasonable parameters.

Quality of power and oscillations

The prevalence of asymmetrical and fluctuating demands has increased the incidence of power quality issues in small-scale island-mode MG networks. As the harmonics produced by IBS grow to unacceptable levels, they lead to power outages, tripped circuit breakers, lost communications, and overloading. Supraharmonics (potential difference and current pattern disruption in the spectrum of 1–140 kilo-Hertz) are created when distributed sustainable energy supplies are present in an intermediate voltage system72. Harmonics output has been subjected to the rules and regulations established by the grid system to guarantee that the grid’s current and voltage patterns are compatible. Harmonic disturbance of voltage levels and current must be at most five percent according to all regulations and criteria, except for the more stringent rules in the UK, which mandate that present harmonics must be at most three percent73.

There are currently minimal restrictions or criteria for supra-harmonics in the energy grid. Because of this, additional research and studies into this topic are required to satisfy customers’ demands in a dependable and adaptable way. The researcher may find it helpful to consult publications74,75 for a comprehensive summary of the published literature concerning power quality reduction approaches.

Problems with cyber security

A cyber system controls all networked data, networking systems, and physical power elements, including IBS, energy storage devices, and demands. The significant interdependence between those schemes increase the likelihood of problems, including transmission breakdowns, compromised data security, and excessive data management. Threats to MGs, analyzed through a cyber-physical network lens, have been the subject of multiple publications76,77. Researchers have addressed them as follows in78:

  1. 1.

    Cyberattacks through side channels allow an adversary to deliberately obstruct elements of a system’s adaptive processing or conceal power network disturbances.

  2. 2.

    Attacks, known as distributed denial of service (DoS), can cause authorized users to lose login to a network for an extended period.

  3. 3.

    Attacks against measures designed to leak private information, which, when successful, manipulate detecting or controlling data and cause the functioning of the physical process to become unreliable.

  4. 4.

    Threats posed by viruses and code, including Stuxnet, are increasing, causing portions of the MGs to self-destruct.

  5. 5.

    Attacks that involve the exploitation of information lead to weaknesses in the embedded devices of grids.

It is widely acknowledged that ensuring the safety of MGs, which can be considered for hybrid cyber-physical infrastructures, is a significant challenge. As a result, most recent research has concentrated on developing methods for identifying and isolating a malicious activity. For example, the researchers in79,80 propose new collaborative algorithms for locating and minimizing the effects of cyber attacks, often known as “stealth attacks”, in the auxiliary frequency as well as voltage regulation sublayers, respectively. Model (7) demonstrates that cooperative voltage, as well as frequency auxiliary regulators, can accomplish the following operational objectives under common functioning situations:

$$\begin{aligned} \mathop {\lim }\limits _{x \rightarrow \infty } {M_y}\left( t \right) = {M^*},\mathop {\lim }\limits _{y \rightarrow \infty } {W_{av}},d{c_i}\left( y \right) = W_{DC}^* \end{aligned}$$
(7)

In Eq. (7), \(M^*\) is the required worldwide system frequency and \(W_{DC}^*\), \(W_{av}\), and y are the appropriate global network voltage, average reference voltage, and associated layer. This metric may identify cyber attacks like denial of service and blocking. However, stealth attacks can sneak into the network without alerting users and compromise various sensors and communication channels. Nevertheless, in the event of a cyber attack, the consensus mechanism built on cooperation shifts to model (8) as

$$\begin{aligned} M_y^f\left( t \right) = {M_y}\left( t \right) + yM_y^a,\mathop {\lim }\limits _{y \rightarrow \infty } {V_{av}},d{c_i}\left( y \right) = V_{DC}^a. \end{aligned}$$
(8)

In Eq. (8), \(y=1\) shows attack component with the notation \(M_y^a\) and \(V_{DC}^a \ne V_{DC}^*\). However, it does not provide an adequate condition to determine the junctions of an attack, as every remnant matching requires a global knowledge. In this scenario, a sign of an attack is the controller’s effort at setting the final value to a fixed reference voltage.

As a result, mitigating the effects of stealth operations on frequency and voltage require both a collaborative security for vulnerabilities element and an event-driven robust control system81,82. A supplementary frequency monitoring built on a persistence measure is a method made by the researchers of83 for islanded AC MGs. According to the findings, there is a one-to-one relationship between improving the durability score and improving the susceptibility of convergence to cyber attacks that involve inserting false data. In addition, the denial of service, replay, and false data or information injection attacks have been modeled and analyzed for potential effects on the system characteristics of volts, frequency, and proactive and reactive energies in isolated AC MGs in84. The frequency network was shown to be the highest sensitive form of data link, while the reactive energy line was found to be the lowest susceptible. The MG network will remain stable thanks to a supplementary controller based on a flexible transmission line. This will continue till the cyber attack has indeed been located and eliminated. The first strategy for coping with cyber challenges in MGs includes finding and countering cyber-security attacks. The second strategy includes establishing decentralized adaptable control schemes for minimizing the negative impacts of malicious attacks without sensing, classifying, and then attempting to remove or restore the vulnerable agents84,85. Identifying and countering cyber-security attacks becomes a way to solve cyber problems in MGs.

Yet, MGs require a self-healing capability to continue functioning even when under attack. In order to restore a system in the modern era, the restoration process must be fully autonomous and programmed, unrelated to any transmission system operator (TSO)86. Plug-and-play management and transient reliability of converters are necessary for development, however, grid-forming configuration switching may be autonomous at the inverter level. Maintaining MG functioning requires grid-level cooperation and an understanding numerous power sources working in concert.

Prerequisites for DPR implementation in grid codes

At the delivery level, classical electrical energy systems (EES) lacked backup and active production facilities. Yet, as more and more MGs are connected to the power grid, there will be an increased demand for power system professionals to ensure the continued efficiency and security of the system. The Institute of Electrical and Electronics Engineers (IEEE) is developing the necessities and processes necessary to properly incorporate DPRs into current energy systems to homogeneously supply consumers’ energy demands.

The methods87,88 aim to establish two essential functions; the delivery function, which is necessary for computing and providing predefined DPRs and variable load demand, and the conversion function, which is tasked with handling the switch among grid-engaged and standalone modes. The following are the most essential DPRs functional topics89,90:

  1. 1.

    Reactive power management and voltage regulation

  2. 2.

    Production of reactive power

  3. 3.

    Flexibility in voltage and frequency of the power system

  4. 4.

    Capacity to withstand faults and disturbances

  5. 5.

    Energy reliability in the power system.

  6. 6.

    Isolation and safety measures

The DPR’s primary duty under the design codes is to maintain a constant voltage through the management of active and reactive allocation. By maintaining the power flow inside the potential limitations as stipulated by the TSO, the IBR facility must maintain the power factor consistently. The system ought to be capable of regulating the flow of reactive power in response to changes in voltage (VQ mode) as well as active power (PQ mode) (please refer to Fig. 3a,b)34,91.

Figure 3
figure 3

DPRs distinctive voltage-reactive-power profile34,91.

DPRs are required to infuse (over-excited) or collect (under-excited) reactive energy inside the dynamic power potential limits defined in Table 1 for active output power ranges up to the highest limit92. The classes provide specific attributes and capacities for voltage fluctuations within the acceptable range of operation. These specifications apply to DPRs classed under standard performance requirements Class 1 and 2. The operational limits correspond to working at an active power output above five percent but below twenty percent of the rated active power. In this range, the DPRs must be able to exchange reactive power up to the lowest level specified in Table 1. This minimum value is determined by multiplying the active power output by the ratio of the minimum reactive power to twenty percent of the designed active power. The numbers 44 and 25 in the column indicate the ability to absorb reactive power, expressed as a percentage of the device’s nominal apparent power rating (kVA). This is the second network code criterion.

Table 1 The lowest potential for injecting and absorbing reactive power.

The least consistent active power potential (Pmin) or 5% of recommended active power (Prated) can always be exceeded by the delivered active power (kW). TSO can control the need for reactive electricity both regionally and globally. Reactive energy production during significant DPR integration falls within class 2, whereas the lowest productivity criteria for class 1 can be found in moderate DPR participation.

The acceptability criterion for both voltage and frequency on the system mandates that DERs must continue functioning even if the utility’s voltage and frequency fluctuate within a specific range of values. Nonetheless, IBS units are disconnected due to grid disruptions. IBS units must maintain their functionality as if they were active production units to prevent the sudden disengagement from disrupting the electric grid. The three possible voltage levels, (a) zero-voltage, (b) low-voltage, and (c) high-voltage, are included in the FRT requirement’s scope92. Functional parameters for a DPR beyond the ongoing operation zone are defined by the first, second, and third atypical functioning behavior classes, respectively. For example, the requirements for extensive connectivity of DERs are specified under Class First atypical operational behavior.

In the IEEE benchmark92, topics such as DC current infusion limits, voltage spikes contributions, abrupt voltage fluctuations, strobe generation at PCC, and periodic current disturbance are discussed. DPR should restrict DC current infusion to 0.5% of the maximum nominal generating current. The mean RMS voltage variation rate above one second at PCC’s intermediate voltage range must not exceed 3% the standard level per second. Step or gradient variations in RMS voltage shall remain less than 5% of the standard level per second during a one-second over time, and the DPR must enforce this restriction for reduced voltage performance. Distortion product ratios are restricted in how much they can distort currents and the overall allowed current. As DPR is an active screen, the electrical grid administrator and DPR administrator can collaborate on any additional settings.

The MG equipment’s standalone and safety needs necessitate the transfer operation’s effective performance, avoiding destroying or producing an electromagnetic arc to the MG components. The transfer operation supervises the functioning of the control scheme throughout transitioning between grid-connected, standalone, and reconnected modes. It controls migration for many situations: (1) islanding by design, (2) islanding by chance, (3) reintegration, and (4) black start. Under purposeful islanding, IEEE benchmark92 necessitates the DPR to de-energize and break within 2–5 s of settlement period. The many essential typical prerequisites for DPRs are failure ride-through and safety functionality.

Advance hierarchical control

Because MGs come in many different shapes and sizes, their controllers must be strong, flexible, and capable of essential computations at high speeds. Using a hierarchical control scheme with multiple time levels is especially interesting when you think about how fast things are for managing outcomes and how slow things are for economic scheduling. An MG controller design with data transmission, a global controller, and localized control systems can be centralized or decentralized. An MG with centralized control uses a transmission network and a central hub. An MG with decentralized control uses local data and cooperation between micro-sources, capacity controllers, and MGCCs to control tasks. While a centralized server maintains global control performance by being aware of every network location, the vulnerability of massive-scale MGs to single-point breakdowns and under attacks renders the adoption of centralized processors impractical93,94. On the same point, an entirely distributed strategy cannot be implemented since special hardware is too expensive. As a result, a modern mix of the two strategies is adopted. This strategy is known as multilevel MG administration, consisting of three operational layers, as illustrated in Fig. 4: (1) primary (field type), (2) intermediate (MG type), and (3) auxiliary (grid type).

Figure 4
figure 4

Hierarchical MG control design.

Hierarchical MG control systems have been chosen as the primary control method. Still, the changing behavior of alternative energy DPRs and demands makes it hard to set limits on hierarchical control. So, decentralized and distributed strategies are being used to make it easier to use MG control systems95,96.

Recent research suggests how the traditional three levels of the hierarchical management scheme are combined into smaller systems to realize plug-and-play functionality97. Optimal control designs, also known as laminar monitoring designs, were stated in98 for the development of distributed equipment and networks by incorporating limitations on data flow among layers (formation of control schemes and segmenting targets into sub-tasks). Such integrated control systems reduce control messages and adequately express control algorithms between systems while still optimizing. However, integrating levels to improve MGs’ speed, effectiveness, and acceptability requires further investigation. Even so, hierarchical MGs control is still the best99, as flexible control structures and precise control mechanisms are still being made. Hierarchical control attains a good balance between fully centralized and distributed control mechanisms and manages many customizable parts while meeting strict quality goals. It has a dependable and robust networking system and compatible routing protocols. Thus, the subsequent sections elaborate on these three control layers (primary, intermediate, and auxiliary).

Primary-level control

Primary-level control systems consist of localized controllers. These controllers govern energy distribution across micro-sources, regulate the current and voltage characteristics of digital power inverters, and maintain the frequency of the entire system. It also serves as the initial line of defense against electrical voltage and frequency fluctuations in an MG, and it works on the slowest time scales95. By using neighborhood data, variations can be reduced to a minimum; therefore, a communication network may or may not be needed (see Table 2).

Current source converters (CSCs) and voltage source converters (VSCs) are two kinds of power semiconductor inverters that may be used to transform the alternating or direct current from clean energy sources47. A grid-forming VSI regulates potential differences and system frequency, making it well-suited for MGs operating in an isolated configuration. In contrast, a grid-following VSI regulates both reactive and active energy.

However, control of inverters is required for controlling production characteristics of both voltage and current, in addition to the proper proportions of outer feedback loops, i.e., droop or non-droop-based regulation and maximum power point tracking100. The subsequent section analyses in further depth the inner control dynamic characteristics of such inverter classes and the outside energy-sharing control approaches.

Table 2 Analysis of primary class (droop and non-droop) energy exchange approaches.

Grid-following: inner current control

A DPR integrated with a grid-following voltage source converter coupled to the power grid depicted in Fig. 5 demonstrates the corresponding 3-phase dynamical model represented by (9)109:

Figure 5
figure 5

Grid-following control configuration.

$$\begin{aligned} dt\left( {{U_{{c_{abc}}}} - {U_{PC{C_{abc}}}}} \right) = {L_f}d{i_{abc}} + {R_f}{i_{abc}}\left( {dt} \right) . \end{aligned}$$
(9)

For dq benchmark, the corresponding model for currents and potential difference is represented as given below:

$$\begin{aligned}{} & {} dt\left( {{U_{{c_d}}} - {U_{PC{C_d}}}} \right) = {L_f}d{i_d} + {R_f}{i_d}\left( {dt} \right) - co{L_f}{i_q}\left( {dt} \right) , \end{aligned}$$
(10)
$$\begin{aligned}{} & {} dt\left( {{U_{{c_q}}} - {U_{PC{C_q}}}} \right) = {L_f}d{i_q} + {R_f}{i_q}\left( {dt} \right) - co{L_f}{i_q}\left( {dt} \right) . \end{aligned}$$
(11)

Here (10) and (11) are the reference values for the d-axis and q-axis components of the output voltage respectively. The model (10) and (11) are linked with \(co{L_f}\) and final potential is shown in model (12) and (13) as provided below:

$$\begin{aligned} {U_{cd}}= & {} {V_{id}} + {U_{PC{C_d}}} - co{L_f}{i_q}, \end{aligned}$$
(12)
$$\begin{aligned} {U_{cq}}= & {} {V_{iq}} + {U_{PC{C_q}}} - co{L_f}{i_d}. \end{aligned}$$
(13)

Here (12) and (13) are dq-frame voltages. The coefficients of the filter resistance and inductance are denoted by \(R_f\) and \(L_f\), respectively, while co indicates the system frequency.

Grid-following: energy and potential control

For integrating energy from green sources (such as photovoltaic and wind power), the most common type of inverter used is a VSC that follows the grid or feeds electricity back into it. Its primary function is interacting with an alternating current system and trading reactive and active electricity. A VSC is often built to supply current. This paper also takes into account this design pattern. A power station or grid-forming inverter is necessary for island mode functioning of an MG because the MG cannot produce the required voltage as well as frequency without them110.

Reference currents \(i_d^*\) and \(i_q^*\) are often supplied by an energy regulator in grid-following inverters that regulate the energy sent to the system and consumed by the localized demand. The following expressions represent the power elements.

$$\begin{aligned} \begin{aligned} P&= {U_{PC{C_d}}}{i_d},\\ Q&= - {U_{PC{C_d}}}{i_q}. \end{aligned} \end{aligned}$$
(14)

In Eq. (14), P denotes active power, where Q represents the reactive power. As shown in Fig. 5, \(i_q\) may also be employed to change the potential111.

Grid-forming: inner potential control

Figure 6 displays the control design of a grid-forming converter109, which is comparable to that of a grid-following converter except for the two circular cascaded cycles. An outside cycle monitors the benchmark voltages to compute current for an inside current control cycle. The dynamic model for grid-forming is given as below:

Figure 6
figure 6

Grid-forming control configuration.

$$\begin{aligned}&{C_f}d\left( {{U_{Ld}}} \right) = dt\left[ {{i_d} - {i_{Ld}} + co{C_f}{U_{Lq}}} \right] ,\nonumber \\&{C_f}d\left( {{U_{Lq}}} \right) = dt\left[ {{i_q} - {i_{Lq}} + co{C_f}{U_{Ld}}} \right] . \end{aligned}$$
(15)

In model (15), \(i_L\) and \(v_L\) represents the demand current and voltage respectively.

Grid-forming: outer droop control loop

The bulk of energy exchange strategies for grid-forming converters depend on droop management as an external feedback controller to maintain the standard MG frequency as well as voltage during PCC112 (see also Table 2). To accomplish that, we reduce the stable operation of synchronous generators by using linear exchange equations involving voltage (V), frequency (f), reactive power (Q), and real power (P). The visual correlation across the droop coefficients is shown in Fig. 7.

Figure 7
figure 7

Typical features of a droop109.

Energy distribution varies owing to demand and grid redesign113, however, it continues to be a complicated process to calculate the magnitude of this impedance. Thus, developing more complex droop mechanisms for precise reactive energy pooling is a current field of study. While these controls’ concepts, parameters, and used cases vary, a few examples are shown below.

  1. 1.

    A global droop mechanism in114 is considered so that neither impedance nor resistance can be overlooked any further. It is possible to eliminate the tight correlation across both energies by implementing a linear rotational mapping function to change active and reactive power.

  2. 2.

    A consensus-oriented decentralized voltage regulation is presented in115 for linked MGs that are managed by converters and include inductive energy cables and configurable power designs. The algorithm successfully regulated all variables’ amplitude and frequency to their rated set points, enabling it to perform precise reactive power distribution.

  3. 3.

    Harmonic energy exchange and eliminating swirling harmonic components are fixed using a consensus approach in116 that modifies the converter impedance and resistance outcomes.

  4. 4.

    A power factor orientation droop adjustment in117 is provided that is independent of power transmission impedance and demand kind when the system is operating in a standalone configuration. This control allows a seamless shift between the grid-connected model and the standalone design.

Grid-forming: droop-less oriented control approaches

An increase in information exchange control techniques for inverter control118,119 can be attributed to address the shortcomings of droop regulation approaches, like sluggish dynamic response and laborious tweaking of control settings. Droop-less network-based control approaches for dynamic demands and unpredictable situations enhance frequency and voltage control. They depend on a data network to regulate the power produced by sustainable DPRs and may be deployed in a centralized or distributed design. One option is a bounded control setting approach that has reduced objective function computations and computation latency. Other applications involve advanced control approaches such as inductive reasoning, neural network computing, and evolutionary computing120,121.

On the primary layer of control, much research has been carried out, although they are still in the early stages. The primary purpose of this work is to update existing methods even though droop reduction solutions for MGs with many random components have already been the topic of substantial research. As a result, cutting-edge techniques such as the meta-heuristic algorithm described in122 are utilized to regulate the frequency and the voltage in an offshore MG in relation to the limits imposed by its operational capabilities.

Control approaches at intermediate level

In the MG system, any power and frequency irregularities caused by primary control are brought back under secondary or intermediate control for correction. It functions on a shorter time scale to send task signals to the primary layer, which the primary element uses to manage the economy and synchronize MG networks with the utilities. Secondary administration can be implemented in either a hierarchical or distributed design. This helps to decrease distortions and energy imbalances by controlling DPRs in accordance with the primary regulators of said relevant devices (refer Table 3). In a configuration where the MG is controlled centrally, the MG administrator plays a pivotal role in synchronizing DPRs and achieving optimal MG performance73. A few examples are shown below:

  1. 1.

    Using a dominant micro station (master) to establish reference amplitude as well as frequencies for subordinate micro stations (slaves) is one example of the master-slave regulation method discussed in123.

  2. 2.

    Machine learning-based power administration approaches are described in84,124,125. These algorithms optimize MG operations, reduce grid electricity instabilities, extend the lifetime of battery storage, and harvest the highest amount of energy from sustainable DPRs.

  3. 3.

    An integrated voltage and frequency peripheral regulation is presented in126 to enhance the robustness and functionality of an isolated mode. A master MGs control system regulates the principal droop profiles of DPRs to restore equilibrium to the reactive and active energy and the voltage and frequency parameters.

  4. 4.

    An observer-based centrally located faulty damper secondary approach is presented in the reference127 for fault assessment and service denial.

Even though they work effectively in various functioning situations, these approaches are vulnerable to breakdown at a specific point since they rely heavily on centralized transmission. On the opposing side, the decentralized design divides the task of regulation optimizing between the allocation network provider, the MGs control system, and the local processors. Distributed secondary supervision approaches employ independent and specialized regional controllers who use neighbour data to lower the price of operations and the characteristics of the system that backs them up. For example, in128, a secondary control scheme that relies on two types of processors for every DG unit is presented. The mechanism can accurately share reactive energy, and return frequency as well as voltage to their reference values. Secondary control systems are positioned across the network connectivity, and the primary control system generates a command signal for the first layer. Further examples of this can be seen in Table 3.

Table 3 Analysis of secondary control approaches.

Control approaches at auxiliary level

As the uppermost level of governance in grid-connected MGs, tertiary or auxiliary control governs how the MGs communicate with each other and the upstream system. Table 4 lists the research on tertiary control techniques. For efficient scheduling, optimal performance planning, and controlling power flow in both directions between the power network and MG30,137, tertiary management functions are performed at the minimum time scale. Centralized tertiary regulation systems were more generally utilized to control MGs; however, in138, a highly decentralized tertiary controller has been established for every DG unit. Decentralized primary control systems (DPCS), decentralized secondary control systems (DSCS), and decentralized tertiary control systems (DTCS) are the three components that make up the unified supervision approach, which offers enhanced adaptability and dependability. A conventional droop mechanism is the foundation of DPCS, whereas a non-convex droop adjustment serves as the basis for DTCS. The control scheme is modelled by model (16), which has the following form:

$$\begin{aligned} {T_i} = {T_p}\left( {{P_i}} \right) + {T_s}\left( {\eta ,{T_{i,m}}} \right) + {T_t}\left( {\mu ,{P_i},{\psi _i}\left( {{P_i}} \right) } \right) . \end{aligned}$$
(16)
Table 4 Analysis of tertiary-level methods.

The gain parameters for DTCS and DSCS are denoted by \(\eta \) and \(\mu \), while the yield frequency and observed frequency are indicated by \(T_i\) and \(T_{i,m}\). Several decentralized tertiary control systems are now working to handle a variety of MG difficulties, including black start functioning, reserve power planning, and general harmonic aberration adjustment46,143. Tertiary control also helps balance demand and makes switching between grid-connected and standalone operations easy. For example, the authors of123 describe a master-slave peer-to-peer fusion control method that allows smooth changes among the two operational modes of MGs. The MG controls frequencies and amplitudes under grid-connected functioning while keeping necessary energy production constant. MGs are more resilient because they use a peer-control strategy that takes precedence when the information network fails. Furthermore, in a three-phase delivery network, voltage fluctuations can be introduced by single-phase demands or asymmetrical electrical transmission. This could cause damage to voltage-sensitive devices. Tertiary supervision is a cost-effective method for balancing the restoration operations of numerous DGs. Further compensation devices, such as series or shunt-activated power diffusers in144,145, were introduced to minimize imbalance. The technique considers various lines and DGs’ compensating constraints and voltage stability requirements.

Modern control approaches

According to existing scholarly publications, this part presents several contemporary control strategies. In contrast to traditional linear control systems, these approaches offer higher dynamic characteristics under all working situations despite disadvantages, including the stuttering problem and extensive mathematical formulation (for details, please see Table 5).

Table 5 Synopsis of principal features of control methods146.

Introduction to multi-agent system (MAS)

To achieve the MG monitoring objectives, a multi-agent system (MAS) involving a group of autonomous agents can be employed147,148. Agents are distinguished in terms of MG security, control efficiency, and economic functioning by their independence, societal interactivity, responsiveness, and identity149,150. A decentralized MAS method may more easily share data and coordinate operations by dividing a vast power grid into smaller, more manageable components. A single controller governs similar units in a cooperative MAS system to draw inferences about their control systems. To sum up, MAS employs hierarchy to improve MG management in a dynamic context by classifying agents based on their respective power status. Entities in a MAS’s system primary, intermediate, and auxiliary levels undertake diverse control roles and rely on distinct information pathways to carry out their activities autonomously151. The accessibility of elements, the control functions performed by those agents, and the type of data provided between those agents affect the aggregate efficiency of the managed system. These three parts are controlled and built the same way as most MAS structures.

MPC-oriented approaches at grid level

MGs increasingly use MPC in their planning to overcome nonlinear economic optimization barriers152. Both the grid-level and converter-level variants of the MPC algorithm include a prediction framework, a solution mechanism, and an objective function. These three essential components are included in the grid-level version as well. Unlike its predecessor, this technique maximizes the MGs’ efficiency while considering several competing objectives and constraints153. For example, the work of154 presents an MPC-based regulator for home power systems with a distributed generation and storing system. The controllers perform storing device optimization, power consumption forecasting, and power trading.

Also, in155, researchers looked at how MPC can be applied to control backup devices in MGs. A solar energy system and rechargeable batteries in an ESS MG are managed using a combined MPC156. In157, an MPC-based technique is used to control a faster magnetic energy storage device so that changes in the unit’s electrical current and power don’t cause chromatic oscillations. When applied to voltage control with a DC/DC compressor in an SMES network in MGs, the proposed control approach can reduce eddy current losses for the DC power of a superconducting circuit, resulting in favorable effects.

AI-oriented control approaches

When problems with reliability and unpredictability are worst, more than logical analysis and computer simulations of MG networks are needed for reliable control systems. Intelligent controllers powered by artificial intelligence can adjust to complexities and do not necessitate any existing understanding of the system’s functioning. Thus, their potential use in MGs, including electricity supply and demand restoration, capacity proportioning, security, energy delivery optimization, and demand management, has garnered a lot of attention158.

The photovoltaic forecast program in159, an artificially intelligent neural network, allows MGs to be regulated in real-time. MG controllers use the predictions application’s outputs as one factor in making predictions about photovoltaic units’ electricity production. As a result, MG recovery mechanisms like fuel inverters only activate when required. In addition, the following are examples of other machine learning-based controllers used for MG electricity supply and consumption regulation:

  1. 1.

    A prospective controller powered by a cognitive system (ANNs) is used in160 to maximize the efficiency of simulated synchronous machines operating in low-voltage MG systems. The controller comprises an artificial neural network responsible for developing the conceptual framework and an optimizer to reduce the effect of anomaly.

  2. 2.

    In161, MG networks are controlled by an ANN architecture operating at the secondary layer. After experiencing perturbations such as network separation and variations in design variables (rotor gain, automated voltage converter yields, and cutoff frequency), the secondary regulator restores the steady state voltages and the system’s frequency.

  3. 3.

    A controller parameter set constructed using neural networks for MG groups to lower frequency variation is proposed in162. After being presented with approximately 5000 multiple combinations of arbitrary data for both input and output, the modified neural network improved the PID gain parameters for the lowest level of frequency fluctuation.

Integrated MGs have yet to be completely investigated despite the increasing significance of ANN-enabled solutions in the MG area. Hence, approaches for autonomous market pricing, energy pooling, and optimal energy supply control in networks of MGs must be investigated in upcoming studies.

Reinforcement learning (RL)-oriented approaches

Traditional controllers are no longer useful because of changes to the network, such as the redesign and integration of more dispersed generation and demand. MGs are particularly vulnerable to the effects of these occurrences since they happen so regularly. Improved agent behavior while optimizing the objective functions is the goal of sophisticated control mechanisms, including RL-oriented management approaches. Arithmetically, RL consists of a Markov chain of events with three independent variables: the actor, the incentive indication, and the surrounding context. An agent’s actions in the world have consequences, both deterministically and stochastically163. Some examples of RL-oriented approaches that have been used in the past are as follows:

  1. 1.

    Because they are exposed to distribution characteristic modifications, linked impedance, and capacitive demand fluctuations, the frequency indications of distributed generators can be quickly converged to the standard level of 50 Hz with an RL-oriented intermediate frequency regulation of MGs, as described in164. It is unnecessary to pump large amounts of energy into the network because the operational energy values are kept under the specifications.

  2. 2.

    For droop-controlled MAS-oriented mega MGs, the work in165 suggested a decentralized auxiliary control of frequency and voltage recovery depending on RL. Agents determine their regional voltage and frequency and share that data. The baseline settings of both frequencies and voltages are changed after 0.1 s, while RL-oriented methods keep the rest of the systems in check.

  3. 3.

    To research the delayed advantage-actor dissent-oriented MAS RL technique described in166, a four-line rechargeable ESD simulation was carried out. When harmonic frequency management and SOC balance synchronization can be done jointly in the face of DoS attacks, the suggested system can attain its full potential as a system.

Consensus-based leader and leaderless oriented approaches

The MAS idea was considered in MGs, and the consensus model has indeed been employed as the fundamental concept for cooperative control of bots167. Every agent uses the data available locally and the consensus algorithm to cooperatively collaborate with the neighbors in its neighborhood to arrive at a consensus168,169.

Second-level multilevel MG management has implemented a consensus technique to restore frequency and voltage characteristics in MGs. This is especially true when synchronizing grid building and grid tracking inverters, for which consensus-based collaborative control mechanisms have been developed. The authors of138 provide a joint control analysis of grid-forming and grid-following converters, which guarantees MG plug-and-play functionality and maximizes energy produced from sustainable sources. To bring the voltages of multiple DGs into agreement, we use a paradigm federalization technique to combine control conditions and design a global second-order feedback control technique.

Power administration in MG networks is another area where consensus supervision has been used. For instance, in170, the consensus concept has been used to address the energy dispatch issue for an MG with five lines using a quadratic objective model. To strike a good compromise between production and consumption, we determine the incremental cost that each device should update. Using a consensus mechanism to maximize the cost-effectiveness of MG electricity networks has much promise. How to use this concept to provide synchronization among many variable components, such as storage devices and generation machines, in an MG network is an intriguing area for further study.

Conclusion

This study provided an overview of recent developments in microgrid administration and conducted an in-depth evaluation of the three layers of the hierarchical system: primary, intermediate, and tertiary. It established centralized, decentralized, and distributed control systems, comprehensively categorizing numerous control techniques reported in the research and placing them in these three groups. According to academic research, multiple droop-based and non-droop-based active and reactive energy pooling strategies exist at the primary level. However, there is still a potential for more development. In addition, secondary-level control was offered to detect secondary voltage and frequency faults, resulting in a network’s primary control and ensuring an efficient strategy. With either a centralized or distributed architecture, this was accomplished by the MGs’ centralized processors governing particular components of the MG network. Furthermore, tertiary-level used in a microgrid network was addressed, emphasizing its potential for establishing the MGs’ ideal power supply and achieving the most efficient system functioning. We accomplished this by synchronizing nearby MGs with upstream/distribution energy infrastructure while considering the characteristics of MG operations and other circumstances. It was also noted that using a mix of modern control methods is on the upswing, which bodes well for making MGs easier to regulate. Sustainable, resilient, and adaptable MGs developing and managing solutions are the way of tomorrow. Several factors, including the increasing prevalence of green energy sources, the development of modern storage methods for energy, and the rise of electric vehicles are shaping the power landscape. These shifts are being prompted by our shared duty to deal climate change and create a better tomorrow, as well as the demand for green and sustainable energy sources. As the vanguard of this revolutionary movement, MGs carry the potential of a more effective, environmentally sustainable, and robust energy ecosystem. Further investigation is required to ascertain whether developing cooperative control schemes and integrating hierarchical control levels may enhance functional resilience in advanced sustainable MG systems.