Next Article in Journal
DriveTDPA: Trajectory-Decision Preference Alignment for Vision-Language Autonomous Driving Planning
Previous Article in Journal
End-to-End Performance Analysis of an Intelligent Zero-Trust Framework for SDN: A Quantitative Evaluation of Latency and Overhead
Previous Article in Special Issue
A Control-Centric Systematic Review of MARL for EV–Grid Coordination: From Predictive Input to Verifiable Feedback
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Microgrid Optimization Technique Using Supervised Learning for Resiliency Enhancement in Power Systems

1
ECE Department, Texas Tech University, Lubbock, TX 79409, USA
2
National Wind Institute, Texas Tech University, Lubbock, TX 79409, USA
3
Renewable Energy Program, Texas Tech University, Lubbock, TX 79409, USA
*
Author to whom correspondence should be addressed.
Electronics 2026, 15(11), 2377; https://doi.org/10.3390/electronics15112377
Submission received: 30 April 2026 / Revised: 26 May 2026 / Accepted: 27 May 2026 / Published: 1 June 2026

Abstract

This paper addresses key limitations in transmission–distribution (T&D) co-simulation for resiliency, including fragmented modeling, high complexity, synchronization issues, weak renewable control, and data access constraints. A unified co-simulation framework is proposed to optimize microgrid formation and operation in high-penetration renewable systems, improving resiliency while reducing costs and network losses. The developed co-simulation platform enables modular, conflict-free synchronization between transmission and distribution networks without additional handshake software, allowing independent data transfer and seamless co-optimization. The technique assists in transmission and distribution dynamic coordination, supports economic dispatch, and performs three-phase optimal power flow (OPF). An Adaptive Neuro-Fuzzy Inference System (ANFIS) is used for load forecasting and optimization modeling, enabling fast convergence and computational efficiency. The framework supports both grid-connected and islanded modes, including dynamic islanding, reconnection, and load prioritization. Case studies using IEEE 14-Bus transmission with 15-Bus and modified unbalanced 123-Bus distribution systems validate the approach. Results show up to a 68% reduction in operating costs and significant reductions in loss, demonstrating improved resilience, scalability, and secure data exchange for modern power systems.

1. Introduction

The increasing penetration of decentralized generation, electric vehicles, and flexible loads has introduced new dynamics and vulnerabilities into modern power systems [1]. At the same time, the growing frequency of extreme weather events and cyber threats has elevated the importance of grid resiliency as a primary operational objective [2]. While microgrids have been widely recognized for their potential in improving system survivability, current implementations often rely on fixed topologies or limited rule-based logic, lacking the ability to adapt dynamically to evolving grid conditions [3].
The operation of a microgrid in island mode is crucial for independently serving loads in the worst cases, when the traditional grid fails due to extreme weather or natural disasters. The increasing complexity of modern power systems, driven by high penetration of renewable energy resources, rapid electrification of transportation, and growing cyber-physical interdependencies, has elevated resilience as a critical requirement for both transmission and distribution networks [4,5]. Conventional centralized grid architectures are often ill-equipped to withstand and recover from natural disasters, cyber-attacks, or cascading failures, as shown in Figure 1.
According to a 2019 World Bank report, “overall, between 2000 and 2017, 54.8% of all recorded power outage events were caused by natural shocks, and 44.2% by non-natural causes (26.9% excluding vandalism)” [7]. In 2023, a Department of Energy (DOE) report established that power outages due to weather-related events account for about 80–83% of the major outages in the United States [8]. The high-impact low-frequency (HILF) events, according to [7,8], are becoming more frequent in recent times, and there is a need for proper mitigation against their undesirable effects.
The microgrid must be able to provide necessary backup for loads, especially critical loads, in the event of grid failure [9]. The state of the microgrid during this critical period must be ascertained to ensure proper control of nominal frequency and voltage [10]. Real power/frequency and reactive power/voltage droop controls are two important aspects of implementing these control techniques. Microgrids with a high share of renewable energy suffer from over-voltage due to the voltage/frequency controller deployed [10].
This research introduces hybridized multi-layer microgrid formation and supervised optimization techniques to improve the resiliency of T&D networks. Unlike previous approaches that focus on either the distribution system (DS) or transmission system (TS) network only, such as the use of electric buses (EBs) for the restoration of the DS network [11], a rolling integrated service restoration strategy using the Mobile Energy Storage System (MESS) to increase the resiliency of the distribution system [12]. Researchers in [13] proposed a multi-task learning framework and a safety layer that can effectively improve topology awareness in the DS network, while [14] proposed a formal approach to evaluate the operational resiliency of a power distribution system (PDS) and quantify the resiliency of a system using a code-based metric for the DS network. In [15], a modernized DS network restoration technique was introduced, geared towards improving the resiliency of the DS network against extreme weather. In [16], a method for defining and enabling the resilience of electric distribution systems with multiple microgrids was introduced.
Research in [17] developed a restoration algorithm to improve the DS network’s resiliency and reliability. In [18], a DS restoration approach was proposed, considering uncertain devices and associated asynchronous information, while [19] proposed a resiliency measurement scheme for transmission power systems using a decentralized Remedial Action Scheme (RAS). Thus, refs. [17,18,19] treat the transmission and distribution layers independently. In [20], a co-simulation platform was developed to enable the analysis of several simulators that suffer from synchronization and code compatibility issues. In [21], the importance of detailed DS network analysis for network stability is demonstrated using a co-simulation platform with a TS sub-transmission network. In [16], a resiliency metric for the DS network short-term planning is developed to assist distribution system operators. In [22,23], the importance of comprehensive, accurate, and computationally efficient modeling techniques was emphasized in the context of practical applications to high-impact, low-probability events, as well as the T&D co-simulation platform performance compared to only DS simulation in power systems. In [24], the authors deployed reinforcement learning and neural-based methods for real-time Energy Management System (EMS) optimization and distributed energy resource (DER) coordination using the mode selection and resource allocation (MSRA-TD3) approach to address a nonconvex optimization problem by learning efficient power and resource allocation policies.
The proposed framework employs a coordinated model with ANFIS-based learning, enabling intelligent, data-driven control across the entire grid hierarchy. The contributions include: (i) development of a scalable T&D co-simulation architecture that integrates transmission and distribution models using a modular and interoperable framework; (ii) implementation of resiliency-oriented analysis and optimization strategies that enable coordinated evaluation of disturbances, renewable variability, and load restoration scenarios; (iii) a real-time microgrid clustering model driven by topological and operational states; (iv) an ANFIS trained model to optimize control strategies under fault conditions; and (v) integrated optimal power flow (OPF) and voltage/reactive optimization routines tailored for T&D coordination. The framework is evaluated against standard resiliency benchmarks using IEEE network cases, demonstrating their robustness and operational value in emergency and recovery scenarios. Power system resiliency (PSR) is the ability of a power grid to withstand, respond to, and recover from major power disruptions. It is a power system’s ability to bounce back from high-impact low-probability (HILP) events, such as extreme weather, accidents on major grid facilities, or cyberattacks [25]. According to [26], Resiliency is defined as the power grid’s capability to withstand and recover quickly from severe incidents, react properly to changing conditions, and prevent future events.
The following are the characteristics of a resilient power system:
  • A resilient power system can reduce the frequency of long-duration outages.
  • It can limit the scope and impact of outages.
  • It can be restored rapidly after outages.
However, to improve power system resiliency, one or more of the following steps have been considered in the past [11,12,13,14,15,16,17]:
(a)
Strategic deployment of renewable energy resources like solar, wind, water, geothermal, and bioenergy.
(b)
Enhancing power electronics (use of superior controllers in inverters and converter circuits).
(c)
Decentralizing the power supply.
(d)
Improving cybersecurity.
(e)
Developing resilience metrics.
(f)
Enhancing system design for resiliency.
(g)
Improving preparedness and mitigation measures (the system operator plays an important role in this regard).
(h)
Improving system response and recovery.
Analyzing and managing interdependencies, several research efforts have proposed resiliency metrics tailored to the case study under consideration that focus on the network [22]. In the wake of the growing concerns of unpredictable environmental conditions that impact both T&D networks, there is a need for a holistic solution that considers both the downstream and upstream sectors of the power network. In [27], an ANN-based short-term load forecasting model suffers from slow optimization speed and does not consider integration of DER mesh formation models.
The proposed solution achieves faster optimization times and incorporates DER’s integration into the solution formulation. The ANFIS-based solution reduced computational time at deployment while guaranteeing optimization accuracy. In [25], the initial assumption that transmission grids can no longer power distribution systems limits the scope of the study to microgrid formation and restoration optimization. However, the proposed solution considers both transmission (TS) and distribution (DS) networks for an appropriate T&D network solution before going into an island mode of operation with DER allocations. In [28], the transmission and distribution network interactions were left out of the reconfiguration procedure, limiting the robustness of the solution. The proposed solution is robust as it has a T&D co-simulation platform for the incorporation of the transmission network into the reconfiguration solution modeling. In [27], switching operations result in large frequency deviations that are outside normal ranges and cause the collapse of the microgrid. The Grid Friendly Appliances (GFAs) deployed in the grid formation are quite expensive to deploy on a larger power network [27]. Looking at the gaps, such as simulation time and accuracy, the ANFIS-based solution achieved improved accuracy and reduced computational burden. The proposed solution reduces the operational cost, which is cheaper to implement. The resiliency study here is based on simulations.
Among other benefits is a robust T&D co-simulation platform that handles the distribution and transmission network interaction with optimization capabilities, as compared to previous studies [29,30] that focus on the DS network, and [19] on TS. In the worst-case simulated HILF event, 79.84% of the network’s total active power demand is served. Thus, 70.39% of the total network reactive power demand was met, causing less computational burden in terms of simulation time and hardware requirements. With concentrated DERs (four-number DERs), the simulation time stands at 1.885045 s after numerical optimization using the developed ANFIS-enabled co-simulation platform. The 5.954774 s simulation time with 22-DERs distributed on the modified 123-Bus IEEE distribution network, which is faster compared to previous works [31,32]. The cost of operating the optimized network was reduced significantly as compared to conventional network operations, as indicated in the General Algebraic Modeling System (GAMS) numerical optimization model deployed. The scalability and adaptability of the proposed solution from a 15-Bus IEEE distribution network to the modified unbalanced 123-Bus IEEE distribution network yielded similar good results, and a successful simulation of abnormal operating conditions with excellent active power and grid frequency control in grid-tied and island modes of operation. A power serving capacity (PSC) of 75.12% was achieved in the face of the worst HILF event simulated. The remaining part of this paper is divided into sections: Section 2 presents Power Management Concepts’/Metrics’ definitions. Section 3 is the research methodology that details the procedure for the implementation of the proposed solution. Section 4 is the result analysis of the research findings. Section 5 provides the conclusion and recommendations.

2. Power Management Concepts/Metrics Definitions

This section provides a definition of important power management concepts and important resiliency metrics. Load shedding/peak shaving is a quick reduction in power consumption to avoid peak demand charges. This can be achieved by turning off high-energy equipment or adding a local energy source. This is otherwise known as ‘peak shaving’, where a consumer reduces power consumption (“load shedding”) quickly and for a short period of time to avoid a spike in consumption. This is either possible by temporarily scaling down production, activating an on-site power generation system, or relying on a battery. Load shifting is a short-term reduction in electricity consumption followed by an increase in production at a later. This is typically done to capitalize on lower power prices or reduced grid demand. Both load shedding and load shifting are demand-side management techniques that can be optimized with Battery Energy Storage Systems (BESSs). BESS can charge during off-peak hours and discharge during peak hours to smooth out demand spikes. Peak shaving can lead to significant energy cost savings, especially if electricity prices fluctuate widely or if you are a commercial customer with high demand charges. Several efforts have been made to provide robust solutions to power network failures in the face of HILF events, emphasizing the ability of transmission and distribution networks to withstand, adapt, and rapidly recover from disturbances. Foundational studies were led by Raoufi et al. [33] and Lin et al. [4]. The work in [4] defines resilience metrics that go beyond traditional reliability indices, thereby framing the withstand–respond–recover cycle. The National Laboratory of the Rockies (NLR), formally known as the National Renewable Energy Laboratory’s (NREL) resilience framework, further standardizes pre-event and post-event assessment using service continuity, energy not served, and recovery-time indicators [29].

Resiliency, Reliability, and Adequacy

These three terms are intertwined and geared towards the high dependability of the power network. Figure 2 presents the Venn diagram of resiliency, reliability, and adequacy interdependences.
Power network stability focuses on maintaining equilibrium under normal operating conditions and quickly recovering from small disturbances like load fluctuations. It is how the power system quickly adjusts to a sudden increase in load without experiencing voltage drops. Power network adequacy measures how sufficient resources are on the network, while power reliability is the ability of the power network to maintain a consistent power supply to the homes and businesses, even during minor equipment malfunctions. It is aimed at preventing small-scale failures and maintaining a steady power supply, resulting in minimal power supply interruptions. Power network resiliency emphasizes the ability to withstand and recover from major disruptions like extreme weather events (like hurricanes), cyber-attacks, or large-scale equipment failures.

3. Research Methodology

The research methodology is based on a microgrid planning scheme [34]. The microgrid planning procedure serves as the framework for developing this research methodology, which focuses on two key aspects: resource allocation and network reconfiguration. Resource allocation comprises Distributed Generators ( D G s ), Demand Response Systems ( D R S s ), and Energy Storage Systems ( E S S s ), while network reconfiguration ( N R ) involves the placement of tie-lines and the predefined and dynamic formation of microgrids. The research framework is shown in Figure 3.
Figure 4 represents the implementation path for the A N F I S -enabled optimization technique on the Unbalanced IEEE 123-Bus distribution network with four microgrids and four (4) IEEE 14-Bus sub-transmission networks, based on supervised learning training of the model using the network configuration, load, generation, and fault data forecast for decision-making that is geared towards enhancing the overall power network resilience. The health state of the distribution system ( D S ) and transmission system ( T S ) networks is initially monitored using OPF analysis, which utilizes data from the local control centers within the D S & T S networks. The two central control centers ( C 1 & C 2 ) are virtually connected to improve decision-making and network profile restoration in the event of the loss of one center due to an H I L F event. The optimized results are used in contrast by local control centers for important N R . ANFIS acts as a supervisory, surrogate, and predictive model within the co-simulation platform. The supervisory decision layer involves BESS dispatch, load curtailment or prioritization. Predictive layer is made up of PV, wind, and load forecasting with smooth variability. ANFIS handles fragmented modeling challenges of complex power network with several subsystems modeled in different tools/language, making integration inconsistent. However, ANFIS provides a unified mapping creating a single nonlinear input–output mapping for multiple subsystems. Instead of passing full solver-level models between platforms, ANFIS replaces detailed subsystems with a trained function which reduces tool over dependency. This results in simplified co-simulation topology with fewer interfaces and less error-prone data exchange. Finally, ANFIS enables fast evaluation in optimization loops without full physics-level models. Since systems are carefully modeled in modular form with the DS restoration time limited often to 24 h, ANFIS proved very useful with medium data size.

3.1. ANFIS-Enabled Power Management and Optimization Theory

The Adaptive Neuro-Fuzzy Inference System ( A N F I S ) offers a convenient and flexible model that allows various decision-making criteria and their weights to be structured as a mixture of real values, interval values, or fuzzy values/sets. A N F I S is based on a hybridization scheme of Artificial Neural Networks ( A N N s) and Fuzzy Inference System ( F I S ). A N F I S is a five-layer network with supervised learning, as shown in Figure 5.
Membership Layer: The choice of an appropriate membership function is based on the application. Two membership functions are deployed for this work, namely the Gaussian membership function ( g a u s s m f ) and the Generalized Bell membership function ( g b e l l m f ). According to [35,36], the Gaussian membership function is suitable for power generation and load forecasting, while the Generalized Bell membership functions are well-suited for load weight and priority modeling. μ P i j of this layer are Generalized Bell functions given by Equation (1) used for load weight and priority modeling.
The load criticality level is used to tag the DS and TS network load types where critical loads have weight of 1. Averagely critical loads are tagged 0.5. Non-critical loads are 0. The critical loads are first served during the restoration phase followed by averagely critical loads and lastly non-critical loads based on the available sources in the power network. The tags are used to select appropriate membership function and appropriate rule formulation (Generalized Bell function for weight allocation).
μ P i j = 1 1 + x c i j a i j 2 b i j i , j { 1 , 2 , 3 , , n } .
where { a i j , b i j , c i j } is the parameter set regarded as ‘Premise Parameters’. The Gaussian membership function is given by the Equation (2) used for short-term power generation and load forecasting.
μ ( x ) = e ( x c ) 2 2 σ 2
where μ ( x ) is the Gaussian function, ‘c’ is the mean, and ‘ σ ’ is the standard deviation. The function is smooth and symmetrical, and is controlled by the mean (‘c’) and standard deviation (‘ σ ’).
Fuzzification Layer: In this layer, every node is a fixed node labeled π . The node’s output is multiplied by the incoming values. For example,
ω n = μ P i , j ( x n ) μ P i , j ( x n ) , i , j { 1 , 2 , 3 , , n } .
The nodal output represents firing strength (equivalent to fuzzy ‘ A N D ’ operation), which is the minimum operation. Normalization Layer: Every node in this layer is a fixed node marked ‘N’. This is known as the normalization layer. The output of the node is the normalization firing strength ( ω ¯ i ) given by Equation (4):
ω ¯ i = ω i k = 1 i ω i , i { 1 , 2 , 3 , , n } .
Defuzzification Layer: In this layer, every node is an adaptive node. The node output is given by Equation (5):
L O 4 , i = ω ¯ i f i ,
where the function ( f i ) is given by Equation (6):
f i = p i x + q i y + + r i ,
where { p i , q i , r i } is a parameter set. These parameters are known as ‘Consequent Parameters’.
Output Layer: In this layer, there is a single node, which is fixed and labeled as Σ. It computes the overall output by summing all incoming values. So, the output is given by Equation (7),
L O 5 , i = i ω ¯ i f i = i ω i f i i ω i .
This is the way alternative adaptive neural networks function, much like a Sugeno-type FIS. This structure can be streamlined by merging layers three and four. Similarly, weight normalization can be applied at the output stage [37]. The ANFIS suffers from the curse of dimensionality if not well managed; that is, as the number of inputs (n) or the number of membership functions ( m f ) increases, the number of fuzzy rules ( F R ) also increases.
F R = ( m f ) n .
Although A N F I S suffers from the curse of dimensionality, there is a need for precise and definite knowledge of the T&D power system under review, in terms of demand and generation profiles, which, when carefully studied, guides the choice of membership functions in the A N F I S prediction algorithm to prevent unnecessary rule multiplicity and power system model complexity. The F I S regulations and members for this study are well-defined to reflect the actual system’s behavior.

3.1.1. Advantages of ANFIS over Other Machine Learning Models

ANFIS is a rule-based ML model with transparent and explainable rules. However, other machine learning models, such as Graph-Based Learning (GBL) and LSTM, are based on a black box learning behavior, which makes them difficult to explain decision node-by-node. In power systems, especially Energy Management Systems (EMSs), interpretability is critical for system modeling and optimization. ANFIS performs well on small datasets and can incorporate expert knowledge [37]. LSTM and GBL require large, structured datasets and labeled data for training. This results in computational complexity with the high cost of implementation, as it requires a GPU for a larger network. ANFIS is computationally lightweight with fast training and inference, which makes it easier to deploy for real-time simulation on RTAC or SCADA. LSTM and GBL models are exposed to the risk of overfitting when dealing with small datasets due to several hyperparameter tuning requirements. ANFIS is more robust for small/medium datasets. Table A2 presents a summarized comparison of ANFIS with other ML models.

3.1.2. ANFIS Training and Adaptation

The ANFIS modules are trained offline and updated online due to the ease of deployment for real-time applications. The ANFIS forecasting is modeled to minimize the forecast error using least-square error training objectives, as given by Equation (9):
min Θ L i = 1 4 t = 1 T t r P i , t L P ^ i , t L ( Θ L ) 2
where Θ L contains the premise and the consequent parameters. T t r is the training horizon (which is a resolution of 1 min for this work). P i , t L is the actual load demand in microgrid i at time t and P ^ i , t L is the forecast load. The ANFIS-enabled weight generation is trained against a target supervisory policy given by Equation (10)
min Θ W i = 1 4 t = 1 T t r w i , t target w i , t ANFIS ( Θ W ) 2
where Θ W is the parameter set of the ANFIS model for load-weight estimation. w i , t target is the desired load weight. w i , t ANFIS is the ANFIS-predicted load weight. . 2 is the squared error (Euclidean norm). T t r is the number of training time steps.

3.2. Mathematical Modeling of the Objective Functions

The following are three objective functions of this research:
  • To minimize the outage/loss of load on both the distribution and transmission systems.
  • To minimize the number of active network operations carried out to achieve the first objective. This objective function aims to minimize the restoration time of loads during H I L F events. The more active network operations carried out to restore the power supply, the more complex the restoration procedure and consequently the longer time to achieve the objective (1).
  • Minimization of the costs of generation, switching, and load curtailment.

3.2.1. Modeling Objective Function I

OF min . L = OF min . DL + OF min . TL ,
OF min . DL = min P L i , t D , Q L i , t D i t μ i D P L i , t D + Q L i , t D P R i , t D Q R i , t D ,
OF min . TL = min P L i , t T , Q L i , t T i t μ i T ( P L i , t T + Q L i , t T k P R k , i , t T k Q R k , i , t T ) ,
where μ i T and μ i D are the A N F I S weight coefficient allocations for the transmission and distribution loads, respectively. P L i , t D is the D S active load loss, P R i , t D is the D S ’s active load recovered. Q L i , t D is the D S reactive load loss, Q R i , t D is the D S reactive load recovered, P L i , t T is the T S active load loss, P R i , t T is the T S ’s active load recovered at the coupling point ‘k’, Q L i , t T is the T S reactive load loss, Q R i , t T is the T S ’s reactive load recovered at the coupling point ‘k’, i represents the distribution nodes or transmission buses, and k corresponds to the coupling points between the T S and D S network, where k = 1, 2, 3, 4. μ i T and μ i D are derived from the total power loss, reliability, and self-adequacy indices handled by the ANFIS-designed algorithm. The total power loss index ( λ TPL ) is derived from Equation (14).
λ TPL = Total Power Loss Loss Target .
Total Power Loss = m = 1 M P L o s s ( m ) , m M ,
where M is the total number of microgrids formed in the network.
P L o s s ( m ) = j = 1 M I L j 2 R j , j n , m M ,
where the bus current, except for the slack bus, is estimated as given by Equation (17).
I i = S i V i * , i 1 .
I i is the current of bus i, S i is the complex power of bus i, and V i is the voltage of bus i. By applying Kirchhoff’s Current Law ( K C L ), in a backward sweep, the branch current between two buses is calculated using (18).
I L j = i 1 n I i + I L j + 1 , j { 1 , , n } .
I L j is the current of line j, and I i is the current of bus i. The suffix j + 1 denotes the line next to j, which is used to apply the K C L at the node. Bus voltage is estimated using Kirchhoff’s Voltage Law K V L , in a forward sweep, using Equation (19).
V i + 1 = V i I L j Z j i 1 , j { 1 , , n } .
V i is the voltage of bus ‘i’, I L j is the current of line ‘j’, and Z j is the impedance of line ‘j’. Loss Target is the target value for power losses, calculated when the microgrid is formed, with loss minimization included only in the objective function. P L o s s ( m ) is the power loss in microgrid ‘m’. ‘n’ is the total number of lines between buses in microgrid ‘m’; I L j is the current flow, and R j is the resistance of line ‘j’ of microgrid ‘m’ [34].
λ Adequacy = Adequacy Real Adequacy Target .
Adequacy Real = m = 1 M i , j P G m , i P L m , i P L o s s m , j .
Adequacy Target is the target value of the Index Adequacy calculated when the microgrid is formed, with the adequacy index included only in the objective function. P G m , i is the real power injection at node ‘i’; P L m , i is the load connected at node ‘i’; P L o s s m , j is the power loss in line ‘j’ in microgrid ‘m’ and ‘j’ is the line between two nodes.
Reliability index ( λ Reliability ) is given by Equation (22):
λ Reliability = 1 λ ELL .
λ ELL is the Expected Loss Load (ELL) given by Equation (23):
λ ELL = i = 1 n P i C i L i .
P i ( C i L i ) is the probability of loss of load on day ‘i’, C i is the availability capacity on day ‘i’, and L i is Forecast Peak Load on the day ‘i’ [34]. Thus, the ANFIS weight coefficients can be estimated using Equation (24):
μ i = λ TPL ( i ) + λ Adequacy ( i ) + λ Reliability ( i ) .

3.2.2. Modeling Objective Function II

The following are considered the network active operations for this work:
  • Line Switching operations ( L S ).
  • D E R allocations ( D A ).
  • Load shedding/peak shaving ( P S ).
  • Physical Network Repair by linemen in cases where network power line re-energization could not be established via remote network re-configuration ( N R ).
OF Total = OF min . D + OF min . T ,
where
OF min . D = min i t β i D L S i , t D + D A i , t D + P S i , t D + N R i , t D .
OF min . T = min i t β i T L S i , t T + D A i , t T + P S i , t T + N R i , t T .
β i D & β i T are the A N F I S weight coefficient allocations for the transmission and distribution operations, respectively. L S and D A are correlated (but modeled separately). P S is based on historical data and the generation pattern of the D S & T S . Additionally, control centers are strategically positioned to provide microgrid control from alternative locations in the event of abnormal operating conditions that may make one center inaccessible. The proposed hybridized multi-layer microgrid formation and optimization technique using A N F I S aims to bridge this gap by leveraging adaptive learning and real-time optimization to enhance the grid’s ability to withstand and recover from disturbances.

3.2.3. Modeling Objective Function III

Minimization of generation, switching, and load curtailment costs.
min i G C i , 0 + C i , 1 P g , i + C i , 2 P g , i 2 u g , i + l L C l S l + d D λ d L C d .
The first part of Equation (28) minimizes generation cost using a quadratic cost function; the second part minimizes operation costs (switching and active operation costs); and the last part minimizes load curtailment cost. P g , i is the real power output of generator i; C i , 0 , C i , 1 , C i , 2 represent the generation quadratic cost coefficients; u g , i is the generator switching variable; S l is the switching decision; C l denotes the cost of switching; L C d is the amount of curtailed load; λ d represents penalty cost per unit of curtailed load.

3.2.4. Tie-Line Management and Dynamic Microgrid Design

A multi-microgrid dynamic economic dispatch case study of the modified IEEE 123-Bus network is presented. The mathematical modeling of the power systems involves using the GAMS V43.3.1 for numerical optimization of the network.
min P i , t , P s , t s , P w , t w , Tie t a a * OF = t i a i P i , t 2 + b i P i , t + t i c i .
P i min P i , t P i max .
s a P s , t + w a P w , t + i a P i , t = a * Tie t a a * + L e , t a , i , s , w a , t .
L e , t a is the electric load (kW) in the area ‘a’ in time (t).
Tie t a a * Tie ¯ a a * .
Tie ¯ a a * is the amount of transferable energy between area a and a * .
0 Pw w , t ξ w , t Pw ¯ w .
where Pw ¯ w are the capacities of the wind turbines in kW.
0 Ps s , t ξ s , t Ps ¯ s .
where Ps ¯ s are the solar farms’ capacities in kW. ξ w , t and ξ s , t are wind and solar availability indices at time (t). The Distributed Energy Resource Management System employs the optimization modeling technique described above, ensuring the balance of power and the economic distribution of resources in the power network [38].
Figure 6 and Figure 7 illustrate the power network dynamic coordination, tie-line/ D E R s management, and multiple microgrid formation on the modified IEEE 123-Bus distribution network, with dispatched resources operating in both grid-connected and island modes through T&D network handshake on the developed co-simulation platform. An overview of the expanded distribution power network in Figure 4 is shown in Figure 6.

3.3. Data Exchange in the T&D Co-Simulation

In [20], co-simulation is described as allowing simulators from different domains to interact by exchanging values during the simulation that define other simulators’ boundary conditions. Active power values, bus voltage magnitudes, switch status, dispatched resources, and curtailed load are exchanged at the feeder head through subscription and publication in MATLAB-GAMS (MATLAB v.R2025b, GAMS V43.3.1)data exchange protocols.
These variables are considered network physical variables that are exchanged at regular intervals. A feeder head is technically the coupling point between the transmission network and the distribution load via feeder lines, which transmit power to the loads in the distribution network area via a suitable transformer.
Figure 6 illustrates the T&D co-simulation network configuration, which involves the IEEE 14-Bus T S sub-sections and the modified IEEE 123-Bus D S network. Figure 7 is the summarized dynamic management of D E R s and tie-lines in the predefined 4-microgrid use case on the D S network in Figure 6. The detailed network configuration parameters of Figure 7 are given in Table A1. However, D E R s are gradually integrated into the distribution network to monitor the impact of each resource on the total operating cost of the DS, while operating in island mode based on the modified IEEE 123-Bus network configuration in Figure 6.
The block diagram in Figure 8 illustrates the machine learning component (ANFIS) enhancement of the GAMS numerical optimization engine by providing appropriate load and power generation weights ( W L = Load Weight, and W G = Power Generator’s Weight). Optimized values are fed into the MATPOWER v8.0 environment for optimal power flow analysis for Simulink (MATLAB v.R2025b) model control and, finally, result visualization. Appropriate switch controls come from the GAMS numerically optimized output, ensuring proper network reconfiguration and appropriate resource allocation.

4. Result Analysis

This section is divided into three broad categories, namely:
  • T&D co-simulation case studies;
  • Multi-microgrid dynamic economic dispatch of D E R s ;
  • Comparison of proposed ANFIS approach with LSTM and GNN learning models.

4.1. T&D Co-Simulation Case Studies

Case-1 is the co-simulation results between the IEEE 14-Bus T S and the unbalanced IEEE 123-Bus D S networks, shown in Figure 9, Figure 10 and Figure 11, with two different coupling points (Bus-15 and Bus-123 on the D S network) using Bus-1 on the T S network in both cases. These coupling points are determined after running an optimization subroutine that selects the coupling point with the lowest active power loss following power flow.
Figure 9 presents the bus voltages of both T S and D S networks before and after numerical optimization using the G A M S numerical optimization engine, using Mixed Integer Linear Program (MILP) in C P L E X solver, and Quadratic Constrained Program (QCP) for dynamic microgrid resources management on IPOPT solver. The results included two different coupling points used for the research work based on a systematic search for the best common coupling point to minimize load loss on the networks in an economically viable manner during the H I L F event, as shown in Figure 9. The D S network bus voltages are significantly improved after optimization as compared to the T S network. D S N and T S N are the distribution and transmission network bus voltages before optimization. D S A 15 and T S A 1 are the bus voltages using buses 15 and 1 between D S and T S networks respectively. D S A 123 and T S A 1 * are network bus voltages after optimization using coupling points buses 123 and 1 between D S and T S networks. The objective function (operational cost) reduced from $ 25.76 / h to $ 9.24 / h after network optimization ( O P T ) of the distribution system. This is a 68% reduction in the distribution network operating cost ( $ / h) as compared to normal D S without the developed optimization scheme in Figure 10. The overall active and reactive power losses in the D S network were reduced by 3.23% and 13.3%, respectively, compared with the benchmark IEEE 123-Bus D S network at full load, as shown in Figure 11. The green and light green bar charts to the left are benchmarks, while the optimized results in red and orange bars are optimized results to the right of Figure 11.
From Figure 6, multiple sub-sections of the T S network were used to restore power to the D S microgrid networks (one at a time), ensuring maximum power transfer to the unserved loads with respect to tie-line constraints, ensuring the least active power loss on both networks. While coupling bus-1 of the T S network to bus-15 of the D S network, the measured bus voltages (blue profile in Figure 9) between bus-1 and 61 on the D S network optimized close to 1 p.u. Further away from the point of common coupling, the bus voltages are below 1 p.u. but within the acceptable operating range. From Figure 9, establishing a coupling point between bus-1 T S and bus-123 D S gave the green bus voltage profile with voltages on bus-66 to 123 optimized around 1 p.u, as compared to buses before bus-66. This is in response to the unserved load location. Overall, the network bus voltages were better managed, and power losses were curtailed using the T&D co-simulation platform and proposed optimization solution.
Case-2 study involves the co-simulation results with the IEEE 14-Bus T S and IEEE 15-Bus D S network. The coupling point is between bus-1 on T S and bus-15 on the D S network. The bus voltage profile after network optimization in GAMS O P F is shown in Figure 12.
Figure 12 shows the bus voltage profiles before and after optimization using GAMS O P F and the co-simulation platform. D S N is the distribution network bus voltage before network optimization using the developed co-simulation platform. D S A 15 is the distribution network bus voltage after optimization. T S N is the transmission network bus voltage before optimization. T S A 1 is the transmission network bus voltage after optimization. M i n V o l t and M a x V o l t are the minimum and maximum bus voltage limits. The bus voltage violations observed before the optimization are eliminated after network optimization with the use of the proposed solution on both networks.
Figure 13 shows the P Q power loss bar charts in the T S network, where the active and reactive power losses in the T S network are reduced by 0.81% and 0.87%, respectively. A reduction of 3.23% in active power and 16.7% in reactive power loss is recorded in D S after network optimization, as shown in Figure 14. Overall, the power network bus voltages and power flows are better managed in both networks with the proposed solution.

4.2. Multi-Microgrid Area Dynamic Economic Dispatch of DERs

Case-3 is the dynamic microgrid tie-line management and economic dispatch of D E R s . Figure 7 models the dynamic microgrid formed in Figure 6.
Figure 15 shows the 24 h wind availability ratios of the two microgrid areas ( A 1 and A 3 ) with wind turbines. The solar availability ratio is shown in Figure 16 on microgrid areas ( A 2 and A 4 ).
Figure 17 presents the 24 h ANFIS-enabled multi-microgrid demand predictions to be adopted for the model under consideration, based on historical microgrid load profiles spanning 2 years.
Figure 18 is the multi-time-step 14-conventional generators dispatched on the distribution network (IEEE 123-Bus) after optimization. This is a dynamic economic dispatch of D E R s on the distribution network (in Figure 7), modeled after the modified IEEE 123-Bus network in Figure 7 in island mode of operation, while earlier results on T&D co-simulation are in grid-connected mode of operation.
The wind and solar resources dispatched to meet the set of optimization objective functions are shown in Figure 19 and Figure 20, respectively.
The state of charge of the Battery Energy Storage System ( B E S S ) is given by Figure 21 after O P T , with a minimum B E S S _ S O C charging and discharging power set at 20% maximum S O C and a minimum set at 0% of S O C at any time (t) of simulation. This ensures that the B E S S remains in good operating condition without draining it completely or overcharging the system, which can reduce its lifespan.
From Figure 21, between hours 13 and 17, B E S S _ S O C is at the peak for microgrids corresponding to the time range of peak solar and wind power supply, during which period the B E S S is charging. The charging and discharging profiles of the B E S S are shown in Figure 22. As expected, the BESS charges during the low-load periods and discharges at peak load periods when supply can no longer meet the demand.
Figure 22 presents the efficient charging and discharging capability of the G A M S optimization algorithm on the microgrids, with subsequent charging and discharging of the B E S S for a particular microgrid occurring at different hours as expected. ‘ B E S S 1 c , B E S S 2 c , B E S S 3 c , B E S S 4 c ’ are the hourly battery charging powers ( kW ) requirement on microgrids 1, 2, 3, and 4, respectively. Major battery discharges occur at the 10th and 18th hours, corresponding to the lowest B E S S _ S O C power, as shown in Figure 21. The hours correspond to the peak-load hours. ‘ B E S S 1 d , B E S S 2 d , B E S S 3 d , B E S S 4 d ’ are the hourly battery discharged power ( kW ) requirements to keep microgrid operation at optimal performance on microgrids 1, 2, 3, and 4, respectively.
The inter-microgrid power transfer is illustrated in Figure 23, where the optimal switching of the inter-microgrid tie-line results in economic and safe operation of the distribution network, with a reduction in operating cost when ANFIS-based numerical optimization is deployed. The negative power flows represent reverse power flows to microgrids, with insufficient power to sustain the maximum possible loads on the microgrid (e.g., tie-lines A 3 _ A 1 and some sections of A 2 _ A 4 at hours 10, 13, 14, 16–18, 21). Objective function reduced from $ 74,692.399 to $ 71,015.540 after optimization. The cost of operating the distribution network has reduced by 4.92% after improving resource availability through optimized tie-line switching operations without deploying additional resources.
Figure 24 presents the power serving capacity ( P S C ) of the modified IEEE 123-Bus distribution network, comparing the benchmark phase active–reactive power supplied to the H I L F event-impacted (curtailed load) case, where power lines are disconnected, and D E R s are eliminated from the network due to the impact of the H I L F event simulated. The first set of histograms, from left to right, is the benchmark measurements followed by the curtailed load measurements. A P S C of 75.12% was achieved with the worst H I L F event simulated, using the proposed hybridized multi-layer microgrid optimization solution.

4.3. Solution Comparison of Proposed ANFIS Approach with LSTM and GNN Learning Models

This section presents solution comparisons between ANFIS-enabled network restoration, LSTM and GNN learning techniques. Since power network restoration is expected to be as fast as possible, a 24 h data window was selected with 14-Bus IEEE TS and modified unbalanced 123-Bus IEEE DS network for the comparison. A data sampling step of 3600 s is adopted in data capture.
The input data is 24 by 12 CSV file data set made up of 12 columns of power network parameters. The input variables are simulation time (s), transmission simulation time-step in seconds ( Δ T T ), distribution simulation time-step ( Δ T D ), total distribution load normalized (p.u.), battery state of charge (0–1), voltage at the coupling point between TS and DS network (p.u.), current at the coupling point between TS and DS network (p.u.), load weight/fuzzy load priority (0–1, used for g b e l l m f ), targeted synchronized time-step output in seconds ( Δ T S y n c ), output weighting factor ( α , 0–1), voltage correction at coupling point between TS and DS network ( Δ V C o r r , p.u.), and current correction at coupling point between TS and DS network ( Δ I C o r r , p.u.). Total distribution load normalized P R norm is given by Equation (35).
P R norm = P R P R max [ 0 , 1 ] .
P R is given by Equation (36).
P R = i = 1 n P i P base ( p . u . ) , i { 1 , 2 , 3 , , n } ,
where P base is the base power of the DS network in M W , which is consistent for all the four microgrids in the DS network. A P base of 5 MW is chosen for the analysis. P i is the load on bus ‘i’. ‘n’ is the total number of load bus in the DS network. P R is further normalized by maximum DS network load ( P R max ) for ANFIS optimization purpose which needed load weights. The voltage correction at P C C is given by Equation (37).
Δ V corr = V desired V measured V base ,
where V desired is the target voltage at P C C (volts). V measured is the actual measured voltage at P C C (volts) and V base is the base voltage of the system (volts).
V base = V rated , line - to - neutral .
A V base of 277V has been chosen for the analysis estimated from V rated , line - to - line (0.48 kV) for the D S network. From the estimated values, corrections are applied accordingly to ensure D S network voltage stability as given by Equation (39).
Δ V corr = V desired p u V PCC p u .
A positive Δ V corr ( Δ V corr > 0) indicates low voltage, requiring voltage increase through either reactive power injection, or transformer tap-up. A negative Δ V corr ( Δ V corr < 0) is an indicator of too high voltage and requires reduction through load increase or generation curtailment.
The current correction at the P C C in p.u. is given by Equation (40).
Δ I corr = I desired p u I measured p u ,
where I desired is the target P C C current (p.u.). I measured is the actual/measured P C C current (p.u.), and I base is the base current of the DS system for p.u. normalization. I base is given by Equation (41).
I base = S base 3 , V LL , base , ( for three - phase system ) ,
where S base is the base apparent power ( M V A ), V LL , base is the base line-to-line voltage (kV). A positive Δ I corr indicates the need for more current injection, which can be achieved through an increase in D E R / B E S S output. A negative Δ I corr means the need to reduce current via load or generation curtailment.
Alpha ( α ) is generally an output weighting factor used in:
  • ANFIS/fuzzy logic systems (as the fuzzy output scaling factor);
  • Weighted aggregation of multiple variables like normalized load, renewable generation, and unserved energy;
  • Multi-objective optimization such as balancing load priorities, cost, and energy not served.
Mathematically, for multiple outputs ( y 1 , y 2 , …, y n ), the weighted output is given by Equation (42).
y weighted = i = 1 n α i y i ,
where 0 α i 1 and i α i = 1 when normalized.
There are four output ( Δ I C o r r , Δ V C o r r , α , and Δ T S y n c ) variables, making the learning models multi-input multi-output (MIMO) systems. The machine learning models are compared over the predicted output variable accuracy and training/simulation time. Figure 25 presents the Δ I C o r r predictions on ANFIS, LSTM, and GNN learning models comparison results. The ANFIS model outperformed the LSTM and GNN models. ANFIS records an accuracy value of 99.99%, RMSE of 0 in 0.13 s. LSTM has an accuracy of 16.7%, RMSE of 0.01 in 3.84 s, while GNN has 0% accuracy, RMSE of 0.138 in 0.001 s. ANFIS has the best forecast on Δ I C o r r with a short prediction window, which is suited for the DS restoration procedure.
Figure 26 presents the Δ V C o r r predictions on the ANFIS, LSTM, and GNN learning models’ comparison results. The ANFIS model outperformed the LSTM and GNN models. ANFIS records an accuracy value of 100%, and an RMSE of 0 in 0.15 s. LSTM has an accuracy of 87.5%, RMSE of 0.032 in 3.48 s, while GNN has 0% accuracy, RMSE of 1.866 in 0.001 s. ANFIS has the best forecast on Δ V C o r r with a short prediction window, which is suited for the DS restoration procedure.
Figure 27 presents the α forecasts on the ANFIS, LSTM, and GNN learning models’ comparison results. The ANFIS model outperformed the LSTM and GNN models. ANFIS records an accuracy value of 100%, RMSE of 0 in 0.18 s. LSTM has accuracy of 16.7%, RMSE of 0.005 in 3.48 s, while GNN has 0% accuracy, RMSE of 0.534 in 0.001 s. ANFIS has the best forecast on α with a short prediction window, which is suited for the DS restoration procedure.
Figure 28 presents the Δ T S y n c forecasts on the ANFIS, LSTM, and GNN learning models’ comparison results. The ANFIS model outperformed the LSTM and GNN models. ANFIS records an accuracy value of 100%, RMSE of 0 in 0.17 s. LSTM has accuracy of 75.0%, RMSE of 0.033 in 2.65 s, while GNN has 0% accuracy, RMSE of 1.377 in 0.001 s. ANFIS has the best forecast on Δ T S y n c with a short prediction window, which is suited for the DS network restoration procedure.

5. Discussion

The ANFIS-enabled Energy Management System developed integrates short-term load forecasting and adaptive weighting of energy resources into the developed multi-microgrid optimal dispatch model. The ANFIS forecasting layer estimates the future power demand of four microgrids, while the ANFIS weighing layer dynamically adjusts conventional generators and load priorities according to forecasted demands, renewable availability, battery SOC, electricity price, and operating mode. The resulting optimization minimizes operating cost, battery degradation, renewable curtailment, and weighted load shedding subject to generators, storage, network configuration, tie-lines, and point of common coupling (PCC) constraints in both grid-connected and islanded operation. The developed unified co-simulation framework goes beyond mere integration by algorithmically addressing synchronization and fragmentation issues. It employs adaptive hierarchical time-stepping, predictive state estimation, and centralized boundary reconciliation to ensure that T&D subsystems share consistent states and accurately track fast dynamics. Compared to conventional RTDS-OPAL-RT or FMI/FMU setups, this approach reduces temporal discrepancies, improves convergence, and maintains numerical fidelity, effectively overcoming the fundamental synchronization and fragmented modeling challenges inherent in T&D coupling.
While the focus of this work is on the integration and real-time operation of a co-simulation platform, it is fully compatible with advanced techniques such as blockchain or homomorphic encryption for privacy-preserving computations in future extensions. The research work establishes the following points:
  • Multiple renewable energy resources improve the power system reliability and resiliency, as shown by the PSC of the networks after a simulated HILF event.
  • The deployment of D E R s reduces the operational cost of the D S network significantly compared to the T S network.
  • However, these benefits come at a cost of computational complexity, which machine learning aims to reduce.
  • The developed co-simulation platform drastically reduces computation time.
  • The developed solution effectively serves as a distributed energy resources management system (DERMS) platform where multiple resources can be managed and optimized.

6. Conclusions

This research comprises two major case studies of power networks: the 14-Bus IEEE transmission system with 15-Bus IEEE distribution networks (Case I) and the 14-Bus T S with an unbalanced 3 - ϕ 123-Bus IEEE (modified) D S network (Case II), respectively. These two power systems were synthesized on MATLAB Simulink and optimized using a numerical optimization tool ( G A M S ). The systemic ANFIS-based optimization technique enhanced system resiliency while maximizing load. Unbalanced three-phase voltage analysis and use of G A M S , M A T P O W E R , and M A T L A B S i m u l i n k targeted at making informed decisions and initiating appropriate controls. Optimal power flow analysis of the system ( O P F ), in conjunction with an Adaptive Neuro-Fuzzy Inference System ( A N F I S ) implemented in the allocation of weight factors to constraints considered in the definition of the objective function, achieved a 68% reduction in the operating cost of the unbalanced 123-Bus IEEE distribution network with the right network interaction when compared with the network running independent of the TS network and without optimization. Running the DS network in the island mode without the optimization algorithm developed will result in a higher operation cost.
In Case-1, there is a reduction in the estimated active and reactive power losses across the T&D network (0.81% and 0.87% reductions in the active and reactive power losses of the transmission network, while 3.23% and 16.7% reductions are achieved in the active and reactive power losses of the distribution network, respectively). In case II, active and reactive power losses were reduced by 3.23% and 13.3%, respectively, with the implementation of the proposed solution. The computational time was equally reduced as compared to the situation where the developed co-simulation platform was not used. The microgrid formation and allocation of Distributed Energy Resources ( D E R s ) within the power network are governed by constraints, such as the grid frequency and voltage limitations, load type (critical loads), and the cost of generation, power line capacity, among others. The mix of these constraints is assigned a weight using the A N F I S system, and the result is used by the Simulink model to optimally allocate required and available resources within the network.
The interaction between the distribution and transmission network is established using a robust co-simulation platform. Actual implementation was carried out on the MATLAB Simulink model of an IEEE-123 bus D S network, where switches, tie-lines, power line segments, and D E R s are controlled for optimal results. A N F I S is deployed in the prediction of load profiles for the research work. The research framework addressed, among others, the need for a robust T&D co-simulation platform, dynamic microgrid formation, network switching, operation cost minimization, Optimal Power Transfer between the networks, network loss curtailment, and load management.
Although ANFIS suffers from the curse of dimensionality if not well managed, the proposed solution handles the power system networks in a modular form, where memberships are carefully determined based on the expert knowledge of the system. The proposed solution is well-suited for short term restoration purposes.
Future research will focus on applying the proposed solution to larger power networks. Moreover, future deployment of the developed optimization solution on the real-time simulator (RT-Lab-based testbed, OPAL-RT, Hyper-Sim) will further evaluate real-time benefits of the proposed solution compared to the conventional methods.

Author Contributions

Conceptualization, A.A. and O.A.; methodology, A.A.; software, A.A.; validation, A.A., O.A., M.C., S.B., A.B., M.S.M., D.G., and T.A.; formal analysis, A.A., O.A., M.C., S.B., A.B., M.S.M., D.G., and T.A.; investigation, A.A., O.A., M.C., S.B., A.B., M.S.M., D.G., and T.A.; resources, A.A., O.A., M.C., S.B., A.B., M.S.M., D.G., and T.A.; data curation, A.A., O.A., M.C., S.B., A.B., M.S.M., D.G., and T.A.; writing—original draft preparation, A.A.; writing—review and editing, A.A., O.A., M.C., S.B., A.B., M.S.M., D.G. and T.A.; visualization, A.A., O.A., M.C., S.B., A.B., M.S.M., and T.A.; supervision, A.A., O.A., M.C., S.B., A.B., M.S.M., D.G., and T.A.; project administration, A.A., O.A., M.C., S.B., A.B., M.S.M., D.G., and T.A. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Informed Consent Statement

Not applicable.

Data Availability Statement

Details of the data supporting reported results can be found at https://hdl.handle.net/2346/105223 (accessed 30 November 2025).

Conflicts of Interest

The authors declare no conflicts of interest.

Abbreviations

The following abbreviations are used in this manuscript:
ANFISAdaptive Neuro-Fuzzy Inference System
ANNArtificial Neural Network
BESSBattery Energy Storage System
DADER Allocation
DERsDistributed Energy Resources
DERMSDistributed Energy Resources Management System
DSDistribution Network
D S N Distribution Network bus voltages before optimization
DGsDistributed Generators
DRSsDemand Response Systems
DOEDepartment of Energy
ELLExpected Loss Load
ESSEnergy Storage System
FISFuzzy Inference System
FRFuzzy Rule
GAMSGeneral Algebraic Modeling System
GFAsGrid Friendly Appliances
HILFHigh-impact, low-frequency events
L S Line Switching Operation
MILPMixed Integer Linear Program
MIMOMulti-Input Multi-Output
m f Membership Function
G P U Graphic Processing Unit
L S T M Long Short-Term Memory
R T A C Real-Time Automation Controller
S C A D A Supervisory Control and Data Acquisition
M L Machine Learning
NNumber of FIS rules
NRNetwork Reconfiguration
NRELNational Renewable Energy Laboratory
NLRNational Laboratory of the Rockies
TSTransmission Network
T&DTransmission and Distribution Network
OPFOptimal Power Flow
OBJObjective Function
OPTOptimization
P S Peak Load Shaving
PSCPower Serving Capacity
PSRPower System Resiliency
QCPQuadratic Constrained Program
RMSERoot Mean Square Error
SOCState-of-Charge
T S N Transmission Network bus voltages before optimization
P Q Active and Reactive Power
ω n Original firing strength
ω ¯ i Normalized firing strength-weight
μ i T ANFIS weight coefficient allocations for DS
μ i D ANFIS weight coefficient allocations for TS
λ TPL Power Loss Index
W L Load Weight
W G Power Generator’s Weight
ξ w , t wind availability index at time (t)
ξ s , t solar availability index at time (t)
β i D A N F I S weight coefficient allocations for the distribution operations
β i T A N F I S weight coefficient allocations for the transmission operations

Appendix A

Table A1. Network configuration details of Figure 7.
Table A1. Network configuration details of Figure 7.
SymbolQuantityQuantity Values
A 1 _ A 2 Tie-line inequality constraint between microgrid A 1 and A 2 . 100 P 12 100 ( kW )
A 1 _ A 3 Tie-line inequality constraint between microgrid A 1 and A 3 . 400 P 13 400 ( kW )
A 1 _ A 4 Tie-line inequality constraint between microgrid A 1 and A 4 . 300 P 14 300 ( kW )
A 2 _ A 3 Tie-line inequality constraint between microgrid A 2 and A 3 . 500 P 23 500 ( kW )
A 2 _ A 4 Tie-line inequality constraint between microgrid A 2 and A 4 . 200 P 24 200 ( kW )
A 3 _ A 4 Tie-line inequality constraint between microgrid A 3 and A 4 . 600 P 34 600 ( kW )
E S S 1 Battery Energy Storage System in microgrid area ( A 1 ).200 kW
E S S 2 Battery Energy Storage System in microgrid area ( A 2 ).100 kW
E S S 3 Battery Energy Storage System in microgrid area ( A 3 ).200 kW
E S S 4 Battery Energy Storage System in microgrid area ( A 4 ).100 kW
P g 1 Convention Gen-1 constraint. 20 P g 1 150 ( kW )
P g 2 Convention Gen-2 constraint. 40 P g 2 200 ( kW )
P g 3 Convention Gen-3 constraint. 30 P g 3 300 ( kW )
P g 4 Convention Gen-4 constraint. 30 P g 4 350 ( kW )
P g 5 Convention Gen-5 constraint. 10 P g 5 70 ( kW )
P g 6 Convention Gen-6 constraint. 20 P g 6 80 ( kW )
P g 7 Convention Gen-7 constraint. 40 P g 7 450 ( kW )
P g 8 Convention Gen-8 constraint. 50 P g 8 130 ( kW )
P g 9 Convention Gen-9 constraint. 100 P g 9 340 ( kW )
P g 10 Convention Gen-10 constraint. 40 P g 10 130 ( kW )
P g 11 Convention Gen-11 constraint. 40 P g 11 650 ( kW )
P g 12 Convention Gen-12 constraint. 30 P g 12 350 ( kW )
P g 13 Convention Gen-13 constraint. 15 P g 13 125 ( kW )
P g 14 Convention Gen-14 constraint. 40 P g 14 650 ( kW )
P s 1 & P s 2 Solar Peak Power Ratings on microgrids A 2 and A 4 . P s 1 = 100 kW, P s 2 = 150 kW
P w 1 & P w 2 Wind Peak Power Ratings on microgrids A 1 and A 3 . P w 1 = 250 kW, P w 2 = 350 kW
Table A2. Comparison summary of ANFIS and other machine learning models.
Table A2. Comparison summary of ANFIS and other machine learning models.
FeatureANFISLSTMANNGNN
InterpretabilityVery highLowLowLow–medium
Data requirementLowHighMediumHigh
Training speedFastSlowMediumSlow
Real-time useExcellentLimitedGoodLimited
Co-simulation efficiencyHighMedium–lowMediumLow
Uncertainty handlingExcellentModerateModerateModerate
Rule-based controlYesNoNoNo

References

  1. Hamidieh, M.; Ghassemi, M. Microgrids and Resilience: A Review. IEEE Access 2022, 10, 106059–106080. [Google Scholar] [CrossRef]
  2. Mahat, P.; Chen, Z.; Bak-Jensen, B.; Bak, C.L. A Simple Adaptive Overcurrent Protection of Distribution Systems with Distributed Generation. IEEE Trans. Smart Grid 2011, 2, 428–437. [Google Scholar] [CrossRef]
  3. Onate, L.D.J.B.; Munsi, M.S.; Alao, A.B.; Chamana, M.; Adeyanju, O.M.; Bayne, S. Robust Planning Tool for Enhancing ERCOT Transmission Network Resiliency Against Extreme Weather Events. In Proceedings of the 2025 IEEE Power & Energy Society General Meeting (PESGM), Austin, TX, USA, 27–31 July 2025; Volume 2, pp. 1–5. [Google Scholar] [CrossRef]
  4. Lin, J.-H.; Wu, Y.-K. Review of Power System Resilience Concept, Assessment, and Enhancement Measures. Appl. Sci. 2024, 14, 1428. [Google Scholar] [CrossRef]
  5. Liang, G.; Zhao, J.; Luo, F.; Weller, S.R.; Dong, Z.Y. A Review of False Data Injection Attacks Against Modern Power Systems. IEEE Trans. Smart Grid 2017, 8, 1630–1638. [Google Scholar] [CrossRef]
  6. Alao, A.B. Hybridized Multi-Layer Microgrid Formation & Optimization Technique Using Supervised Learning (ANFIS) for Resiliency Enhancement in T&D Power System. 2025, pp. 6–93. Available online: https://hdl.handle.net/2346/105223 (accessed on 30 November 2025).
  7. Rentschler, J.; Obolensky, M.; Kornejew, M. Candle in the Wind? Energy System Resilience to Natural Shocks; World Bank Policy Research Working Paper; World Bank Group: Washington, DC, USA, 2019. [Google Scholar]
  8. DOE. Department of Energy Report; Report form OE 417; DOE: Washington, DC, USA, 2023.
  9. Igder, M.A.; Liang, X.; Mitolo, M. Service Restoration Through Microgrid Formation in Distribution Networks: A Review. IEEE Access 2022, 10, 46618–46632. [Google Scholar] [CrossRef]
  10. Munsi, M.S.; Siddique, A.B.; Das, S.K.; Paul, S.K.; Islam, M.R.; Moni, M.A. A Novel Blended State Estimated Adaptive Controller for Voltage and Current Control of Microgrid Against Unknown Noise. IEEE Access 2019, 7, 161975–161995. [Google Scholar] [CrossRef]
  11. Li, B.; Chen, Y.; Wei, W.; Huang, S.; Mei, S. Resilient restoration of distribution systems in coordination with electric bus scheduling. IEEE Trans. Smart Grid 2021, 12, 3314–3325. [Google Scholar] [CrossRef]
  12. Yao, S.; Wang, P.; Liu, X.; Zhang, H.; Zhao, T. Rolling Optimization of Mobile Energy Storage Fleets for Resilient Service Restoration. IEEE Trans. Smart Grid 2020, 11, 1030–1043. [Google Scholar] [CrossRef]
  13. Wang, Y.; Qiu, D.; Sun, X.; Bie, Z.; Strbac, G. Coordinating Multi-Energy Microgrids for Integrated Energy System Resilience: A Multi-Task Learning Approach. IEEE Trans. Sustain. Energy 2024, 15, 920–937. [Google Scholar] [CrossRef]
  14. Chanda, S.; Srivastava, A.K.; Mohanpurkar, M.U.; Hovsapian, R. Quantifying Power Distribution System Resiliency Using Code-Based Metric. IEEE Trans. Ind. Appl. 2018, 54, 3676–3686. [Google Scholar] [CrossRef]
  15. Chen, C.; Wang, J.; Ton, D. Modernizing Distribution System Restoration to Achieve Grid Resiliency Against Extreme Weather Events: An Integrated Solution. Proc. IEEE 2017, 105, 1267–1288. [Google Scholar] [CrossRef]
  16. Chanda, S.; Srivastava, A.K. Defining and Enabling Resiliency of Electric Distribution Systems with Multiple Microgrids. IEEE Trans. Smart Grid 2016, 7, 2859–2868. [Google Scholar] [CrossRef]
  17. Bosisio, A.; Berizzi, A.; Lupis, D.; Morotti, A.; Iannarelli, G.; Greco, B. A Tabu-search-based Algorithm for Distribution Network Restoration to Improve Reliability and Resiliency. J. Mod. Power Syst. Clean Energy 2023, 11, 302–311. [Google Scholar] [CrossRef]
  18. Bedoya, J.C.; Xie, J.; Wang, Y.; Zhang, X.; Liu, C.-C. Resiliency of Distribution Systems Incorporating Asynchronous Information for System Restoration. IEEE Access 2019, 7, 101471–101482. [Google Scholar] [CrossRef]
  19. Tushar; Nie, Z.; Srivastava, A.; Basumallik, S. Measuring and Enabling Transmission Systems Resiliency with Renewable Wind Energy Systems. IEEE Trans. Ind. Appl. 2024, 60, 2321–2331. [Google Scholar] [CrossRef]
  20. Hardy, T.D.; Palmintier, B.; Top, P.L.; Krishnamurthy, D.; Fuller, J.C. HELICS: A Co-Simulation Framework for Scalable Multi-Domain Modeling and Analysis. IEEE Access 2024, 12, 24325–24347. [Google Scholar] [CrossRef]
  21. Thakar, S.; Vittal, V.; Ayyanar, R.; Rojas, C. The Impact of Detailed Distribution System Representation in Dynamic Sub-Transmission-Distribution Co-Simulation. IEEE Open Access J. Power Energy 2016, 10, 90–502. [Google Scholar] [CrossRef]
  22. Miah, M.S.; Shah, R.; Amjady, N.; Surinkaew, T.; Islam, S. Resiliency Assessment and Enhancement of Renewable Dominated Edge of Grid Under High-Impact Low-Probability Events—A Review. IEEE Trans. Ind. Appl. 2024, 60, 7578–7598. [Google Scholar] [CrossRef]
  23. Jain, H.; Palmintier, B.; Krad, I.; Krishnamurthy, D. Studying the Impact of Distributed Solar PV on Power Systems Using Integrated Transmission and Distribution Models. In 2018 IEEE/PES Transmission and Distribution Conference and Exposition (T&D); IEEE: New York, NY, USA, 2018; pp. 1–5. [Google Scholar] [CrossRef]
  24. Liu, X.; Xu, J.; Zheng, K.; Zhang, G.; Liu, J.; Shiratori, N. Throughput Maximization with an AoI Constraint in Energy Harvesting D2D-Enabled Cellular Networks: An MSRA-TD3 Approach. IEEE Trans. Wirel. Commun. 2025, 24, 1448–1466. [Google Scholar] [CrossRef]
  25. Oraibi, W.A.; Mohammadi-Ivatloo, B.; Hosseini, S.H.; Abapour, M. Multi Microgrid Framework for Resilience Enhancement Considering Mobile Energy Storage Systems and Parking Lots. Appl. Sci. 2023, 13, 1285. [Google Scholar] [CrossRef]
  26. Mahzarnia, M.; Moghaddam, M.P.; Baboli, P.T.; Siano, P. A Review of the Measures to Enhance Power Systems Resilience. IEEE Syst. J. 2020, 14, 4059–4070. [Google Scholar] [CrossRef]
  27. Schneider, K.P.; Tuffner, F.K.; Elizondo, M.A.; Liu, C.-C.; Xu, Y.; Backhaus, S.; Ton, D. Enabling Resiliency Operations Across Multiple Microgrids with Grid Friendly Appliance Controllers. IEEE Trans. Smart Grid 2018, 9, 4755–4764. [Google Scholar] [CrossRef]
  28. Shawon, S.M.R.H.; Liang, X. A Two-Stage Performance Optimization-Based Microgrid Formation in Distribution Networks with Distributed Generations. IEEE Trans. Ind. Appl. 2023, 59, 5539–5549. [Google Scholar] [CrossRef]
  29. Yao, Y.; Liu, W.; Jain, R. Power System Resilience Evaluation Framework and Metric Review. In 2022 IEEE Power & Energy Society Innovative Smart Grid Technologies Conference (ISGT); IEEE: New York, NY, USA, 2023; pp. 1–5. [Google Scholar] [CrossRef]
  30. Qiu, D.; Wang, Y.; Wang, J.; Zhang, N.; Strbac, G.; Kang, C. Resilience-Oriented Coordination of Networked Microgrids: A Shapley Q-Value Learning Approach. IEEE Trans. Power Syst. 2024, 39, 3401–3416. [Google Scholar] [CrossRef]
  31. Menazzi, M.; Qin, C.; Srivastava, A.K. Enabling Resiliency Through Outage Management and Data-Driven Real-Time Aggregated DERs. IEEE Trans. Ind. Appl. 2023, 59, 5728–5738. [Google Scholar] [CrossRef]
  32. Hossain, M.S.; Enyioha, C. Multi-Agent Energy Management Strategy for Multi-Microgrids Using Reinforcement Learning. In 2023 IEEE Texas Power and Energy Conference (TPEC); IEEE: New York, NY, USA, 2024; pp. 1–6. [Google Scholar] [CrossRef]
  33. Raoufi, H.; Vahidinasab, V.; Mehran, K. Power Systems Resilience Metrics: A Comprehensive Review of Challenges and Outlook. Sustainability 2020, 12, 9698. [Google Scholar] [CrossRef]
  34. Billinton, R.; Allan, R.N. Reliability, Adequacy. In Reliability Evaluation of Power Systems; Springer: Berlin, Germany, 1996; pp. 70–158. [Google Scholar] [CrossRef]
  35. Jang, J.S.R. ANFIS: Adaptive-network-based fuzzy inference system. IEEE Trans. Syst. Man Cybern. 1993, 23, 665–685. [Google Scholar] [CrossRef]
  36. Haykin, S. Gaussian Distribution. In Neural Networks and Learning Machines, 3rd ed.; Pearson Prentice Hall: New York, NY, USA, 2009; pp. 89–158. [Google Scholar]
  37. Alao, A.B.; Adeyanju, O.M.; Chamana, M.; Bayne, S.; Bilbao, A. Photovoltaic Farm Power Generation Forecast Using Photovoltaic Battery Model with Machine Learning Capabilities. Solar 2025, 5, 26. [Google Scholar] [CrossRef]
  38. Soroudi, A. Multi-Area Economic Dispatch of resources. In Power System Optimization Modeling in GAMS; Springer: Dublin, Ireland, 2017; pp. 87–118. [Google Scholar]
Figure 1. Power network interactions with high-impact low-frequency (HILF) events [6].
Figure 1. Power network interactions with high-impact low-frequency (HILF) events [6].
Electronics 15 02377 g001
Figure 2. Resiliency, reliability, and adequacy Venn diagram [6].
Figure 2. Resiliency, reliability, and adequacy Venn diagram [6].
Electronics 15 02377 g002
Figure 3. Expanded microgrid planning framework.
Figure 3. Expanded microgrid planning framework.
Electronics 15 02377 g003
Figure 4. Multi-level A N F I S network coordination of T&D power system [6].
Figure 4. Multi-level A N F I S network coordination of T&D power system [6].
Electronics 15 02377 g004
Figure 5. ANFIS layers [6].
Figure 5. ANFIS layers [6].
Electronics 15 02377 g005
Figure 6. Multi-microgrid distributed D E R s on the distribution network [6].
Figure 6. Multi-microgrid distributed D E R s on the distribution network [6].
Electronics 15 02377 g006
Figure 7. Multi-microgrid tie-line and DER management using GAMS [6].
Figure 7. Multi-microgrid tie-line and DER management using GAMS [6].
Electronics 15 02377 g007
Figure 8. Summarized block diagram of the optimization scheme [6].
Figure 8. Summarized block diagram of the optimization scheme [6].
Electronics 15 02377 g008
Figure 9. T&D co-simulation with IEEE 14-Bus T S and 123-Bus D S voltages before/after optimization (*) [6].
Figure 9. T&D co-simulation with IEEE 14-Bus T S and 123-Bus D S voltages before/after optimization (*) [6].
Electronics 15 02377 g009
Figure 10. D S objective function before and after network optimization [6].
Figure 10. D S objective function before and after network optimization [6].
Electronics 15 02377 g010
Figure 11. D S Network active–reactive power demands before and after network optimization [6].
Figure 11. D S Network active–reactive power demands before and after network optimization [6].
Electronics 15 02377 g011
Figure 12. T S & D S voltages before/after optimization using GAMS [6].
Figure 12. T S & D S voltages before/after optimization using GAMS [6].
Electronics 15 02377 g012
Figure 13. P Q losses on the T S network before and after optimization [6].
Figure 13. P Q losses on the T S network before and after optimization [6].
Electronics 15 02377 g013
Figure 14. P Q losses on the D S network before and after optimization [6].
Figure 14. P Q losses on the D S network before and after optimization [6].
Electronics 15 02377 g014
Figure 15. Availability ratios of wind farms in areas A 1 and A 3 in Figure 7 [6].
Figure 15. Availability ratios of wind farms in areas A 1 and A 3 in Figure 7 [6].
Electronics 15 02377 g015
Figure 16. Availability ratios of solar farms in areas A2 and A4.
Figure 16. Availability ratios of solar farms in areas A2 and A4.
Electronics 15 02377 g016
Figure 17. Multi-microgrid demand profiles as shown in Figure 7 [6].
Figure 17. Multi-microgrid demand profiles as shown in Figure 7 [6].
Electronics 15 02377 g017
Figure 18. Conventional generators dispatched after optimization.
Figure 18. Conventional generators dispatched after optimization.
Electronics 15 02377 g018
Figure 19. Dispatched wind turbine powers on microgrid sites A1 and A3.
Figure 19. Dispatched wind turbine powers on microgrid sites A1 and A3.
Electronics 15 02377 g019
Figure 20. Solar power resources dispatched on microgrid sites A2 and A4.
Figure 20. Solar power resources dispatched on microgrid sites A2 and A4.
Electronics 15 02377 g020
Figure 21. B E S S S O C power on microgrid sites A 1 , A 2 , A 3 , and A 4 .
Figure 21. B E S S S O C power on microgrid sites A 1 , A 2 , A 3 , and A 4 .
Electronics 15 02377 g021
Figure 22. BESS-charging/discharged power on sites A 1 , A 2 , A 3 , and A 4 .
Figure 22. BESS-charging/discharged power on sites A 1 , A 2 , A 3 , and A 4 .
Electronics 15 02377 g022
Figure 23. Tie-lines’ optimal switching for economic operations.
Figure 23. Tie-lines’ optimal switching for economic operations.
Electronics 15 02377 g023
Figure 24. P S C of IEEE 123-Bus network under H I L F event with the benchmark vs. curtailed load [6].
Figure 24. P S C of IEEE 123-Bus network under H I L F event with the benchmark vs. curtailed load [6].
Electronics 15 02377 g024
Figure 25. ANFIS-LSTM-GNN forecasts of current correction at P C C ( Δ I C o r r ).
Figure 25. ANFIS-LSTM-GNN forecasts of current correction at P C C ( Δ I C o r r ).
Electronics 15 02377 g025
Figure 26. ANFIS-LSTM-GNN forecasts of voltage correction at P C C ( Δ V C o r r ).
Figure 26. ANFIS-LSTM-GNN forecasts of voltage correction at P C C ( Δ V C o r r ).
Electronics 15 02377 g026
Figure 27. ANFIS-LSTM-GNN Alpha predictions ( α ).
Figure 27. ANFIS-LSTM-GNN Alpha predictions ( α ).
Electronics 15 02377 g027
Figure 28. ANFIS-LSTM-GNN targeted synchronized time-step output ( Δ T S y n c ) predictions.
Figure 28. ANFIS-LSTM-GNN targeted synchronized time-step output ( Δ T S y n c ) predictions.
Electronics 15 02377 g028
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Alao, A.; Adeyanju, O.; Chamana, M.; Bayne, S.; Munsi, M.S.; Alexander, T.; Graves, D.; Bilbao, A. Microgrid Optimization Technique Using Supervised Learning for Resiliency Enhancement in Power Systems. Electronics 2026, 15, 2377. https://doi.org/10.3390/electronics15112377

AMA Style

Alao A, Adeyanju O, Chamana M, Bayne S, Munsi MS, Alexander T, Graves D, Bilbao A. Microgrid Optimization Technique Using Supervised Learning for Resiliency Enhancement in Power Systems. Electronics. 2026; 15(11):2377. https://doi.org/10.3390/electronics15112377

Chicago/Turabian Style

Alao, Agboola, Olatunji Adeyanju, Manohar Chamana, Stephen Bayne, Md Shahin Munsi, Tyreek Alexander, David Graves, and Argenis Bilbao. 2026. "Microgrid Optimization Technique Using Supervised Learning for Resiliency Enhancement in Power Systems" Electronics 15, no. 11: 2377. https://doi.org/10.3390/electronics15112377

APA Style

Alao, A., Adeyanju, O., Chamana, M., Bayne, S., Munsi, M. S., Alexander, T., Graves, D., & Bilbao, A. (2026). Microgrid Optimization Technique Using Supervised Learning for Resiliency Enhancement in Power Systems. Electronics, 15(11), 2377. https://doi.org/10.3390/electronics15112377

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

Article Metrics

Back to TopTop