Next Article in Journal
Harmonic Source Modeling Techniques for Wide-Area Distribution System Monitoring: A Systematic Review
Previous Article in Journal
Development of Bio-Based Low-Conductivity Material from Second-Generation Biofuel Remnants
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

A Practical Operational Framework for Congestion Management in Active Distribution Networks Using Adaptive Radial–Mesh Reconfiguration

by
Thunpisit Pothinun
1,2,
Pannathon Rodkumnerd
1,2,
Sirote Khunkitti
1,
Paramet Wirasanti
1,* and
Neville R. Watson
3
1
Department of Electrical Engineering, Faculty of Engineering, Chiang Mai University, Chiang Mai 50200, Thailand
2
Provincial Electricity Authority, Jatujak, Bangkok 10900, Thailand
3
Department of Electrical and Computer Engineering, Faculty of Engineering, University of Canterbury, Christchurch 8041, New Zealand
*
Author to whom correspondence should be addressed.
Energies 2026, 19(7), 1809; https://doi.org/10.3390/en19071809
Submission received: 14 March 2026 / Revised: 1 April 2026 / Accepted: 4 April 2026 / Published: 7 April 2026

Abstract

The increasing penetration of distributed energy resources (DERs), electric vehicles (EVs), and dynamic loads introduces significant operational challenges in modern distribution networks, including voltage violations, reverse power flows, and congestion. Distribution network reconfiguration (DNR) is widely used to improve network performance; however, most existing approaches focus primarily on radial topology optimization and rarely consider practical switching feasibility or adaptive transitions between radial and meshed configurations. This paper proposes an operational framework for congestion management based on adaptive radial–mesh reconfiguration. The framework integrates radial network optimization, temporary mesh reinforcement for congestion mitigation, and safe switching sequence validation to ensure operational feasibility. A comprehensive operational cost model incorporating power losses, time-of-use energy imports, switching operations, and on-load tap-changer actions is also developed. The proposed method is validated on a real 22 kV distribution feeder operated by the Provincial Electricity Authority in Thailand. The results demonstrate that the framework effectively mitigates congestion and reduces operational costs by 1.57–9.18% relative to baseline operation, highlighting its practical applicability in active distribution networks.

1. Introduction

Distribution networks are changing rapidly as more loads and distributed energy resources (DERs), which are highly dynamic, are integrated into the system. This dynamic nature of these loads and generation makes it difficult for distribution system operators (DSOs) to maintain network security while keeping operational costs down. Fast charging stations for electric vehicles (EVs) are a major load that operates for a relatively short time and can significantly adversely affect the distribution system. It typically increases power demand during evening hours, when many EVs are charged [1]. Solar PV systems stress the distribution network by injecting power into it when the sun shines, with a peak around midday [2,3]. There is, therefore, a significant mismatch between the energy demanded by the loads and what is produced. Both generation and load are dynamic in nature (turn on and off throughout the day at different times), and both can cause issues: “congestion issues” such as voltage violations, reverse power flow, or thermal overload, which can occur during any time period [4,5].
Traditionally, long-term mitigation strategies for congestion rely on network reinforcement: constructing new feeders, upgrading conductors, and upgrading transformers. Although technically effective, these methods require higher capital investment, longer construction time, and land use approvals [6]. Short-term congestion management measures have several significant drawbacks, including demand-side management and generation curtailment. These measures impose economic penalties that also limit the use of DERs and reduce the investor’s return. Frequent curtailment conflicts with decarbonization objectives. Demand response programs are inconvenient for customers. These programs also require complex coordination among stakeholders.
Over the past decade, distribution utilities have deployed remote-controlled load-break switches and SCADA-based automation to accelerate fault isolation and service restoration. Historically, radial operations have been preferred because they simplify protection coordination under unidirectional power flows. However, the radial constraint limits the available line capacity utilization and reduces the distribution network flexibility, whereas meshed configurations can provide this flexibility. With the advent of adaptive protection relays supporting real-time communication and multiple setting groups, along with bidirectional fault-detection functions embedded in load-break switches, DSOs can now operate temporary meshed configurations without compromising the protection coordination or system reliability. These technologies enable reconfiguration between radial and mesh topologies, supporting flexible congestion management and enhancing DER hosting capacity without compromising the security and reliability of the network.
Most distribution networks use a radial topology with sectionalizing load-break switches supplemented by strategically placed tie connections (normally open load-break switches) that enable interconnections between feeder sections. This infrastructure provides significant operational flexibility and the capability to dynamically reconfigure the network topology to optimally match varying load and generation patterns throughout the day. This approach, called distribution network reconfiguration (DNR), leverages existing load-break switch investments and supply-side infrastructure. This method enhances the system efficiency and does not require additional hardware deployment [7]. DNR maximizes distribution network utilization and can decrease both load and generation curtailment. It also represents a cost-effective alternative to traditional congestion management strategies [8].
DNR involves altering the topological structure of distribution feeders by changing the open/closed status of remotely controlled sectionalizing and tie load break switches to achieve multiple objectives, including minimizing power losses, improving voltage profiles, balancing feeder loads, and alleviating congestion [9]. However, the DNR problem is inherently a large-scale, nonlinear, nondifferentiable, and combinatorial optimization challenge, in which finding optimal configurations across exponentially large search spaces poses a significant computational burden. Load and generation patterns are time-varying, necessitating frequent network reconfiguration. Consequently, there is a critical need for computationally efficient optimization algorithms capable of determining near-optimal switching schedules within a practical timeframe while maintaining solution quality and operational feasibility.

1.1. Literature Review

Distribution network reconfiguration (DNR) has been widely investigated as an effective operational strategy for improving distribution system efficiency, reducing power losses, and enhancing voltage profiles. By changing the open or closed status of sectionalizing and tie switches, DNR modifies the network topology to adapt to changing load patterns and distributed generation while maintaining radial operating constraints. However, due to the nonlinear power flow equations and the combinatorial nature of switching states, DNR is recognized as a large-scale optimization problem that requires efficient computational methods.
A wide range of optimization techniques have been proposed to address the DNR problem. Particle Swarm Optimization (PSO) has been one of the most widely adopted methods due to its simplicity and strong global search capability. The improved Binary PSO algorithm proposed in [10] demonstrated effective performance in handling discrete switching states while preserving radial network topology constraints. To enhance convergence performance, hybrid optimization strategies have also been explored. For example, a PSO–Tabu hybrid algorithm was introduced in [11], where Tabu Search improves local exploration while PSO maintains global search capability. Multi-objective optimization formulations have also been investigated. In [12], a multi-objective PSO framework was developed to simultaneously minimize network losses and generation costs in medium-voltage distribution systems. Furthermore, wavelet-oriented evolutionary algorithms have been applied to solve multi-objective optimal power flow problems incorporating flexible AC transmission systems [13].
Genetic Algorithm (GA)-based optimization methods have also been widely applied to the DNR problem. A hybrid GA framework combined with machine learning techniques was proposed in [14] to improve convergence performance while optimizing power losses, load balancing, and switching costs. In addition to classical evolutionary algorithms, several nature-inspired optimization methods have been introduced. The chaos-disturbed beetle antennae search algorithm proposed in [15] demonstrated improved performance in minimizing power losses and voltage deviations. This concept was further extended by social beetle swarm optimization in [16], which improved load balancing and voltage profile performance in distribution networks. Later studies incorporated Lévy flight-based search mechanisms to enhance exploration capability in networks with distributed energy resources and electric vehicle integration [17].
Other swarm-based optimization techniques have also been investigated. The Wild Mice Colony algorithm introduced in [18] focuses on improving reliability metrics such as energy-not-supplied indices. Harris Hawks Optimization was applied in [19] to enhance sustainable network reconfiguration performance, while the Marine Predators Algorithm proposed in [20] improved voltage stability and loss reduction in distribution systems. Similarly, Gray Wolf Optimization has been used to reduce peak demand through coordinated battery energy storage system allocation in distribution networks [21]. Additional heuristic approaches include Tabu Search-based reconfiguration methods [22], frog-migrating algorithms [23], and firefly optimization techniques [24]. To further reduce computational complexity in large-scale networks, search-space reduction techniques were introduced in [25], while geometric mean optimization approaches were proposed to improve convergence stability and solution robustness [26].
More recently, hybrid metaheuristic algorithms have been proposed to combine complementary optimization mechanisms. A hybrid PSO–Simulated Annealing algorithm was proposed to improve global search capability and avoid premature convergence in DNR problems [27].
With the increasing penetration of renewable energy sources and load variability, modern distribution networks require more advanced operational strategies that explicitly consider uncertainty. A stochastic multi-timescale distribution network reconfiguration framework was proposed to coordinate network topology decisions with distributed generators, energy storage systems, and controllable loads under renewable uncertainty conditions [28]. Another research direction focuses on integrating reactive power compensation with network topology optimization. A three-stage optimization framework was proposed to jointly optimize tie-line reconfiguration and capacitor placement in order to reduce network losses and improve voltage stability [29].
Data-driven approaches and advanced market mechanisms have also recently been explored for adaptive network operation. Deep reinforcement learning (DRL) has been applied to coordinate distribution network reconfiguration with Volt–VAR control in real-time environments [30]. Multi-agent DRL frameworks have enabled decentralized control in large-scale systems [31], while sequential DRL methods have shown promising performance [32]. To further enhance flexible operation, recent advancements have introduced dynamic market models, such as Distribution Locational Marginal Pricing (DLMP), which effectively manage network congestion and losses under the severe uncertainties of electric vehicle (EV) charging demands [33]. Similarly, to address complex market pricing and adaptive energy management, hierarchical reinforcement learning algorithms have been proposed to optimize regional energy flexibility [34]. In addition, emerging hybrid quantum–classical techniques, such as QAOA-based frameworks, have been explored to solve the DNR problem while maintaining electrical feasibility [35]. While these cutting-edge AI and market-based approaches offer robust, near-instantaneous responses to load uncertainties, they often require complex market deregulation and massive offline training datasets, and, critically, neural networks struggle to strictly enforce hard topological constraints. Therefore, physical network reconfiguration via remotely controlled switches remains a highly practical and direct corrective measure for DSOs, provided that the transition process itself is mathematically guaranteed to be safe.
In addition to algorithmic advancements, recent studies have begun to explore specific operational requirements for real-world DNR. For instance, to ensure safe and efficient topological transitions, switching-sequence optimization has been proposed to minimize intermediate power losses and avoid constraint violations during the actual switching operations [36,37]. Additionally, recognizing the capacity limits of purely radial networks, closed-loop and meshed reconfiguration strategies have been actively developed to significantly enhance the hosting capacity of distributed energy resources [38]. Furthermore, to align with practical day-ahead operational planning, hourly dynamic reconfiguration models that explicitly incorporate 24 h time-series variations and daily commutation constraints have been investigated [39]. However, while these advanced operational features—safe switching sequences, meshed operation, and hourly operational constraints—have been successfully studied as separate domains, their simultaneous integration into a single operational framework remains largely unaddressed.
To ensure a transparent and reproducible comparison, a structured literature screening was conducted focusing on recent distribution network reconfiguration (DNR) studies employing metaheuristic, heuristic, and data-driven approaches. The inclusion criteria required that selected studies explicitly define their objective functions, clearly specify operational topological constraints (e.g., radial or meshed configurations), and describe their methodologies for validating switching sequences. Based on these criteria, a set of representative studies was identified and is systematically summarized in Table 1.

1.2. Contributions

Despite extensive research on distribution network reconfiguration, several critical gaps persist that limit its practical deployment in real-world distribution system operator (DSO) environments.
First, although multi-objective optimization formulations have advanced significantly, comprehensive operational cost modeling remains insufficiently addressed. Only a limited number of studies [14,23] explicitly incorporate switching costs, while key economic factors such as time-of-use (TOU) energy pricing and on-load tap changer (OLTC) operational costs are often neglected. This limitation is non-trivial, as practical DSO decision making requires full economic visibility across all operational cost components to ensure cost-effective, justifiable actions.
Second, existing approaches typically address different operational stages in isolation rather than within an integrated framework. Based on the systematically screened literature summarized in Table 1, three key observations can be made: (1) the majority of metaheuristic-based studies [10,11,12,13,14,15,16,17,18,19,20] focus exclusively on radial network optimization, neglecting mesh topologies as a viable congestion mitigation strategy; and (2) only a limited number of studies [21,38] consider meshed configurations, yet lack a structured coordination mechanism between radial and mesh operation.
Third, although safe switching sequence, meshed network operation, and cost-aware reconfiguration have each been extensively studied as independent research domains, their integration into a unified operational pipeline remains limited. In practice, DSOs require comprehensive decision-support tools that span the full operational workflow—from economic optimization to severe congestion mitigation and, ultimately, secure implementation. The fragmented nature of existing solutions makes their sequential application within real control room environments both complex and operationally challenging.
To address these gaps, this paper proposes a unified and practically oriented operational framework rather than a standalone optimization algorithm. Consequently, the core novelty of this paper lies explicitly in the hierarchical integration of these operational stages and in its comprehensive validation on a real distribution feeder, rather than in the invention of isolated optimization ingredients. The main contributions of this work are summarized as follows:
  • A comprehensive cost modeling approach is developed, incorporating time-of-use (TOU) energy pricing, switching operation costs, and OLTC degradation, thereby enabling a more realistic and economically grounded representation of day-ahead DSO operations.
  • An integrated hierarchical framework is proposed through a three-stage operational strategy that sequentially combines radial network optimization, temporary mesh reinforcement for severe congestion mitigation, and explicit validation of safe switching sequences. This ensures that all generated network configurations are not only optimal but also operationally feasible and safely executable.
  • The proposed framework is validated on a real 22 kV distribution network, demonstrating its effectiveness and practical applicability as an end-to-end congestion management solution for medium-voltage systems.
The remainder of this paper is organized as follows. Section 2 presents the mathematical formulation of the problem. Section 3 describes the proposed operational framework. Section 4 details the simulation implementation and describes the actual distribution network used in the study. Section 5 presents the simulation results, and Section 6 provides a discussion. Finally, Section 7 concludes the study.

2. Problem Formulation

The total cost objective function ( C T o t a l ) to be minimized over a 24 h operational period is expressed as the summation of five key cost components: the cost of active power losses, cost of load energy imported from different substations, operational cost of switching operations, operational cost of the substation transformer On-Load Tap Changer (OLTC), and penalty cost, as shown in (1).
    m i n C T o t a l = t = 1 24 C l o s s t + C g , l o a d t + C s w t + C o l t c t + C p e n a l t y t
The total cost is formulated as a linear additive function because all cost components are expressed in the same monetary unit (USD), allowing direct aggregation without the need for normalization or weighting factors. This formulation reflects practical DSO decision making, where operational actions are evaluated based on their direct economic impact.

2.1. Operation Cost

Each component of the total operational cost is mathematically modeled as follows: the active power loss cost ( C l o s s t ), given by Equation (2), represents the total energy loss cost at time t. This cost is computed using the active power loss at each time step and the corresponding TOU electricity price of the substation supplying the feeder.
    C l o s s t = 1 g P g , l o s s t · k g , t o u t
The cost of the load energy imported from all feeding substations is calculated in (3). It is the sum of the load power supplied by each substation across all time intervals, multiplied by the corresponding energy TOU price of the substation.
    C l o a d t = 1 g P g , l o a d t · k g , t o u t
The operational costs related to equipment and mechanical wear and tear are modeled in (4) and (5), respectively. The cost of switching operations ( C s w t ) in (4) accounts for the operation of load break switches, which is dependent on the number of changes in the switch status ( S s w t ) between consecutive switches. This dependency is quantified using the Hamming Distance function, denoted d h ( ) . This function calculates the total number of individual switches that change their state (e.g., from open to closed or vice versa) between time t 1 and t , and this count is then multiplied by the unit switching cost K s w . Similarly, the cost of OLTC operation ( C o l t c t ), shown in (5), represents the cost associated with the tap changer operation. This cost is proportional to the magnitude of the tap position change, calculated as the absolute difference between the tap position at time t ( T a p t r t ) and the previous time step ( T a p t r t 1 ), multiplied by its unit operation cost K o l t c .
C s w t = K s w · d h S s w t , S s w t 1
C o l t c t = K o l t c · T a p t r t T a p t r t 1
The switching and OLTC operational costs are modeled as linear functions of the number of switching actions and tap movements, respectively. This assumption is consistent with asset management practices, in which equipment degradation is approximately proportional to the frequency of operations. Using the Hamming distance to quantify switching actions provides a computationally efficient representation of topology changes between consecutive time steps.

2.2. Penalty and Constraints

To ensure that the optimization process remains within secure operational limits, a penalty function is incorporated, as defined in (6)–(10). This function imposes large penalty costs on infeasible or undesirable operating states, thereby accelerating convergence by discouraging violations during each optimization iteration. The total penalty in (6) is the sum of penalties for voltage limit violations, equipment overloading, unsupplied buses, and reverse power flow to the external grid. The penalty for any unsupplied bus in (10) is set to infinity, effectively serving as a hard constraint that strictly prohibits outages in the distribution network.
C p e n a l t y t =   C v o l t t +   C o l t + C r e v e r s e t + C u n s u p p l y t
C v o l t t =   η v N V t
  C o l t =   η o N o l t
C r e v e r s e t = K r e v e r s e · P r e v e r s e t
C u n s u p p l y t = ,     i f   a n y   b u s   i s   u n s u p p l i e d 0 ,         o t h e r w i s e
Penalty functions are introduced to transform operational constraints into the objective function, enabling efficient handling within the optimization process. A linear penalty structure is adopted to maintain computational simplicity and stable convergence behavior. An infinite penalty is assigned to unsupplied buses ( C u n s u p p l y t ) to strictly enforce reliability constraints. This also enables early rejection of infeasible topologies, allowing the algorithm to discard such solutions without further constraint checks or full power flow evaluation, thereby improving computational efficiency.
In this study, the distribution network must maintain a radial topology under normal operating conditions. Under congestion conditions, temporary meshed operation is allowed as a corrective operational action, enabling the network to adapt from a radial to a meshed topology.

3. Proposed Operational Framework

The proposed framework operates as an integrated three-stage approach to address both normal operating conditions and congestion scenarios, including voltage violations, overloads, and reverse power flow, as shown in Figure 1.
The framework begins by importing electrical data, including time-varying load and generation profiles and network topology. From Figure 1, the first stage optimizes the radial network configuration. If congestion occurs in the distribution network, the algorithm transitions to the second stage, that is, the mesh network reconfiguration stage. The final stage performs a safe-switching-sequence search. The proposed framework follows a hierarchical operational structure rather than a single unified optimization problem. Radial network operation is treated as the default and economically preferred mode, while temporary meshed operation is considered only as a corrective action under congestion conditions.

3.1. Stage 1: Radial Network Reconfiguration

In the radial network optimization stage, the optimization algorithm searches for the optimal radial network topology that minimizes the objective cost function in (1) under strict radiality constraints. The population is initialized using the distribution network topology from the previous hour, thereby promoting temporal continuity, reducing unnecessary switching operations, and lowering operational costs.
Prior to fitness evaluation, each candidate configuration is validated to ensure full network connectivity without any outage buses and to confirm a radial structure. Configurations that violate these conditions are excluded from evaluation, thereby reducing computational burden and focusing the optimization on feasible radial solutions, as illustrated in Algorithm 1.
Algorithm 1. Radial Network Optimization
Input:
S s w t 1                 : Previous hour switch configuration.
t                      : Current hour.
Output:
S b e s t r a d i a l            : Set of optimal switch status.
C r a d i a l               : Minimum operation cost.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Begin:
Initialize a population of candidate solutions
S_seed ←  S s w t 1 if IsRadial( S s w t 1 ) else S _ b a s e
    For   i = 1 to M A X _ I T E R A T I O N S do
         For each candidate ( S i ) in population do
              If IsRadialAndEnergized( S i ) is false then
                C o s t S i
              Else
                     Apply S i to network
                     RunLoadFlow( S i )
                       C o s t S i C a l c u l a t e O b j e c t i v e F u n t i o n S i
               End If
         End For
          UpdateOptimizer()
    End For
    Return         S b e s t r a d i a l ,     C r a d i a l
End
Algorithm 1 performs radial network optimization to minimize hourly operational costs while satisfying radiality constraints on the distribution network. The algorithm starts with optimization initialization (lines 1–2). Candidate solutions are generated that represent valid radial topologies. The seeding strategy adapts based on the previous hour’s configuration: S s w t 1 was radial; it serves as the primary seed to maintain temporal continuity and reduce switching frequency.
However, when the previous configuration was meshed (after congestion management), the algorithm used a base radial pattern ( S _ b a s e ) to ensure a feasible starting point.
From Algorithm 1, the main optimization loop (lines 3–14) evaluates each candidate configuration. Line 5–6 enforces hard constraints by assigning an infinite cost to topologies that violate radiality or result in de-energized buses, effectively excluding infeasible solutions. For valid configurations, the algorithm performs a power-flow analysis (line 9) to compute the steady-state operating conditions for the load and generation profiles at hour t. The cost function (line 10) aggregates the costs of multiple objectives. The optimizer state update (line 13) follows the BPSO procedure, where each particle learns from its own best-found switch configuration and the best configuration discovered by the entire swarm, then probabilistically updates its switch states to search for lower-cost topologies. Finally, the algorithm returns the optimal reconfiguration with the minimum operating cost.

3.2. Stage 2: Mesh Network Reconfiguration

When radial reconfiguration fails to find a feasible radial topology with no congestion (Voltage Violation, Overload, Reverse power flow), Stage 2 is entered. In this stage, the framework bypasses the radial optimization process and applies a deterministic mesh reinforcement procedure, enabling temporary mesh operation by closing normally open tie switches. The mesh reconfiguration operates iteratively, beginning with the optimal radial configuration from Stage 1. The framework evaluates closing each available tie switch individually, selecting the switch whose closure most effectively reduces congestion or violation severity while moving toward constraint satisfaction.
This process continues, adding one mesh connection per iteration, until either (1) all congestion and reverse power are satisfied (successful congestion relief) or (2) all available tie switches have been exhausted (partial relief).
Algorithm 2 implements an adaptive mesh reconfiguration strategy that is activated when radial operation cannot resolve network congestion or violations. The algorithm initializes with the best radial configuration from Algorithm 1 (line 1) and identifies all currently open tie switches as candidates for mesh formation (line 2). Tie switches are inter-feeder connections that, when closed, create alternative power flow paths and loops in the network.
The iterative mesh exploration (lines 3–16) employs a greedy level-by-level strategy to minimize the number of closed tie switches while resolving violations. At each level, the algorithm tests whether closing one additional tie switch results in a closed tie (lines 5–13). Each evaluation uses power-flow analysis with mesh topology permissions (line 7) as the system transitions from radial to meshed operation. The cost evaluation in this stage focuses on reducing penalty costs associated with congestion or violations, rather than operational costs such as power losses, switching operations, or OLTC actions. The lowest cost at each level is selected (lines 9–11). This determines the feasible configuration.
The shift in the objective function from economic optimization (Stage 1) to penalty and topology minimization (Stage 2) is a deliberate design choice reflecting practical DSO priorities during severe network stress. When Stage 2 is activated, it indicates that the network is operating under extreme conditions in which no feasible radial configuration exists. In such critical states, operational security strictly supersedes economic optimality. Therefore, the primary objective is to rapidly restore network feasibility by eliminating voltage and thermal violations. Attempting to optimize marginal economic costs (e.g., power losses) during an unresolved emergency would be practically inappropriate. Furthermore, the iterative greedy strategy—which intrinsically seeks the minimum number of closed tie switches—is fundamentally tied to protection coordination. Meshed distribution networks complicate fault detection, often requiring complex directional relaying. By seeking a ‘minimally meshed’ topology (closing only the absolute minimum number of tie switches required to relieve congestion), the framework effectively minimizes disruptions to standard adaptive protection schemes, thereby balancing necessary capacity reinforcement with protection simplicity and operational safety.
Algorithm 2. Mesh Network Optimization
Input:
S b e s t r a d i a l          : Best radial configuration from Stage 1.
S s w t 1                : Previous hour switch configuration.
t                     : Current hour.
Output:
S b e s t m e s h           : Optimal mesh configuration.
C m e s h               : Minimum cost with mesh topology.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Begin:
S c u r r e n t S b e s t r a d i a l , C b e s t ← Evaluate( S c u r r e n t , mesh)
TieSwitches ← {i | S c u r r e n t [i] = 0 and i ∈ TieIndices}
For level = 1 to |TieSwitches| do
          S b e s t _ l e v e l ← null, C b e s t _ l e v e l ← ∞
         For each sw ∈ TieSwitches do
                   S t e m p ←  S c u r r e n t , S t e m p [sw] ← 1
                     RunLoadFlow( a l l o w _ m e s h = T r u e )
                   C t e m p ← Evaluate( S t e m p , mesh)
                  If  C t e m p < C b e s t _ l e v e l then
                          C b e s t _ l e v e l ←  C t e m p , S b e s t _ l e v e l ←  S t e m p
                  End If
           End For
           If  C b e s t _ l e v e l C b e s t then Break // No improvement
            S c u r r e n t ←  S b e s t _ l e v e l , C b e s t ←  C b e s t _ l e v e l
           If Penalty( S c u r r e n t ) = 0 then Break // Feasible found
End For
Return  S c u r r e n t , C b e s t
End
Two termination criteria govern the search process. First, the algorithm stops when closing additional tie switches no longer reduces cost (line 13), indicating diminishing returns from further meshing. Second, it terminates upon finding a violation-free solution (line 15), meaning the primary goal of resolving congestion has been achieved. This adaptive approach balances operational constraint satisfaction with network complexity. If no feasible mesh configuration is found after all possibilities are exhausted, the algorithm returns the “least infeasible” solution, flagging the need for operator intervention or alternative congestion-management strategies.

3.3. Stage 3: Safe Switching Sequence Search

This stage constitutes a critical practical consideration often neglected in the DNR literature. Regardless of whether the final configuration is radial or mesh, the framework must verify that a safe, step-by-step switching sequence exists to transition from the previous hour’s configuration to the current optimal configuration. This validation ensures that no intermediate switching state causes customer outages, voltage violations, or temporary overloads.
To strictly guarantee operational safety, the validation process imposes specific constraints at every intermediate switching step. Specifically, the algorithm verifies that (1) all nodal voltages ( V b u s ) remain within the permissible safety limits ( 0.95   V b u s 1.05   p . u . ); (2) no branch loading exceeds the emergency thermal limit ( L b r   L E m e r ), which is set at 90% of the rated capacity during transitions; and (3) there is reverse power flow ( P r e v e r s e 0 ) to the upstream substation. This ensures that transient states do not trigger protection relay tripping due to undervoltage, thermal overload, or unintended reverse power flow. This safe sequence is essential for DSO in practical network reconfiguration.
Algorithm 3 generates safe switching sequences to transition between network configurations without causing temporary service interruptions or constraint violations during reconfiguration. This critical validation step ensures that the optimization results can be practically implemented; even optimal steady-state configurations may be unreachable through safe switching operations. The algorithm identifies required closing and opening operations by comparing start and target configurations (lines 2–3) and then orchestrates them in a carefully designed two-phase sequence.
Algorithm 3. Safe Switching Sequence Search
Input:
S s t a r t             : Starting switch configuration.
S e n d              : Target switch configuration.
Output:
S e q u e n c e       : Safe switching operation sequence.
i s _ s a f e         : Boolean indicating sequence safety.

1
2
3
4
5
6
7

8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
Begin:
If S s t a r t = S e n d then Return “No Change”, True
ToClose ←  { i   |   S s t a r t   [ i ] = 0       S e n d   [ i ] = 1 }
ToOpen ← i   S s t a r t i = 1     S e n d [ i ] = 0 }
Sequence ← []
// Phase 1: Close switches with loop management
While ToClose ≠ do
               s w * a r g m i n s w T o C l o s e { M a x L o a d i n g ( S ) } subject to:
                V m i n v V m a x and L o a d i n g   L e m e r and P r e v e r s e 0
             If s w * = null then Return “UNSAFE_CLOSE”, False
              S c u r r e n t [ s w * ] ← 1, Append “CLOSE   s w * ” to Sequence
             If LoopDetected() then
                    l o o p s w ← FindLoopBreakSwitch(ToOpen)
                   If l o o p s w ≠ null then
                         S c u r r e n t [ l o o p s w ] ← 0, Append “OPEN l o o p s w
                  End If
              End If
End While
// Phase 2: Open remaining switches
For each s w ∈ ToOpen do
          S t e m p [ s w ] ← 0
        If Connectivity( S t e m p ) = Fail or Constraints( S t e m p ) = Fail then
             Return “UNSAFE_OPEN”, False
         S c u r r e n t ←   S t e m p , Append “OPEN s w
End For
Return Join(Sequence, “; ”), True
End
Phase 1 (lines 6–16) prioritizes closing operations using a “make-before-break” philosophy, temporarily creating alternative power paths before removing the existing ones. At each step, the algorithm evaluates all remaining switches to close and selects the one minimizing system loading while maintaining safety constraints (line 7). This greedy selection balances progress toward the target configuration with operational limits. The critical challenge in this phase is managing temporary loops formed when closing tie switches. When a loop topology is detected (line 10) the loop-breaking mechanism searches for an appropriate switch to open. It examines switches planned for opening in the target configuration (line 11), preferring operations that serve dual purposes. This adaptive strategy accommodates situations where the optimal sequence requires temporary deviations from the direct path to the target configuration. In rare cases where no loop-breaking switch maintains safety, the algorithm accepts the meshed state temporarily and continues the sequence.
Phase 2 (lines 19–24) executes the remaining opening operations with rigorous safety validation. Each opening is tested for potential customer outages (island formation) and new constraint violations (line 20) before execution.
This defensive checking is essential because opening switches can shift power flows, potentially overloading other lines or causing voltage drops in areas with weak supply. Any detected unsafe condition immediately terminates sequence generation with a failure status (line 21), preventing the execution of partially complete or potentially dangerous sequences.
Explicit failure reporting enables the optimization framework to reject target configurations with unsafe transition paths, even if those configurations are operationally optimal. The integration of operational feasibility with transition feasibility distinguishes practical network reconfiguration from purely theoretical optimization.
Computational Complexity: Unlike Stage 1, Algorithm 3 employs a deterministic greedy heuristic with linear complexity O ( N o p s × N t i e ) , where N o p s is the number of switching operations in the sequence and N t i e is the number of available tie switches. Validation with the 22 kV network confirms execution times of 1–5 s, demonstrating the algorithm’s high computational efficiency and its ability to rapidly determine safe topology transitions without introducing significant computational delays.

4. Simulation Implementation

This section presents the implementation details for validating the proposed optimization framework. The methodology is tested on a real medium-voltage distribution network. The characteristics of this test system and the simulation software are described in the following subsections.

4.1. Test Network

The proposed operational framework is validated using a real 22 kV distribution network in Thailand, operated by the Provincial Electricity Authority (PEA). The GIS-based representation of the test distribution network is shown in Figure 2, illustrating the geographical layout of interconnected feeders and substations.
The corresponding single-line diagram of the test system is presented in Figure 3, detailing the feeders and remotely controlled switches. This practical test case is a typical medium-voltage distribution configuration. It represents networks found in urban and semi-urban areas. The distribution network consists of five radial feeders supplied by two main substations. The first source, Substation G1 (a 115/22 kV substation), represents a power purchase agreement at the 115 kV level. This substation is operated by PEA, which assumes financial responsibility for all equipment and power losses. It features a 115/22 kV transformer equipped with an On-Load Tap Changer (OLTC) for voltage management. The second source is Substation G2. This is a 22 kV substation. It involves a 22 kV power purchase agreement. In this arrangement, the power transformer is owned by the generation company.
The comparison of time-of-use (TOU) energy import prices from the G1 and G2 substations is shown in Figure 4. The tariff scheme has a dual-period structure. It includes an off-peak period (22:00–09:00) and a peak period (09:00–22:00). During off-peak hours, the energy rate for G1 is USD 77.8/MWh. The rate for G2 is USD 78.6/MWh.
The peak period rates for G1 and G2 are USD 120.7/MWh and USD 140.8/MWh, respectively, which are significantly higher. This data indicates that G1 provides a more economical supply. This is particularly true during the peak period. G1 offers a cost advantage of USD 20.1/MWh over G2.
Network flexibility is provided by remotely controlled load-break switches in the test distribution network, which are classified as normally closed (NC) sectionalizing switches and normally open (NO) tie switches. The eight sectionalizing switches maintain the radial configuration of the feeders during normal operation. The four tie switches are strategically placed at connection points between adjacent feeders.
The 24 h load profiles for all feeders were obtained from SCADA data to ensure realistic operating conditions. Figure 5 illustrates these load profiles. These profiles were applied to each load point. The feeder load-scaling function in PowerFactory 2019 was used. The scaling was based on the rated capacity of the corresponding distribution transformers. The load profile indicates that all feeders reach their peak demand at approximately 20:00. Notably, Feeder G2F1 exhibits the highest peak load of 4.66 MW and the shortest feeder length of 5.46 km, as summarized in Table 2, signifying that it serves a high-load-density area.

4.2. Simulation Tool

The simulation study employs a real distribution network model exported from the Geographic Information System (GIS) and imported into DIgSILENT PowerFactory 2019. PowerFactory was run on an Intel Core i7-9700 CPU with 16 GB of RAM. The proposed operational framework is fully implemented within PowerFactory’s embedded Python 3.7 environment, enabling seamless automation of the entire workflow, including unbalanced power-flow (UPF) analysis.
The distribution model consists of 3861 buses and 3068 line elements. The main 22 kV distribution lines utilize Spaced Aerial Cable (SAC) with a cross-sectional area of 185 mm2, capable of carrying a maximum current of 410 A. According to PEA standards, this results in a calculated maximum power capacity of 14.84 MW at 22 kV with a power factor of 0.95. These calculation conditions are based on the IEC 287-1982 standard [40], assuming direct sunlight exposure, still air, and an ambient temperature not exceeding 40 °C. For branch lines utilizing 50 mm2 SAC, the rated current is 186 A, as detailed in the line parameters in Table 3.
As depicted in Figure 6, the optimization process is executed through a sequence of predefined Python scripts that perform optimization, evaluate network performance, and automatically export the resulting data to CSV files for post-processing and detailed performance assessment.

4.3. Simulation Setting

This study focuses solely on steady-state operational feasibility, ensuring compliance with voltage, thermal, and power-flow constraints during reconfiguration. Detailed short-circuit analysis and dynamic relay coordination for temporary meshed topologies (Stage 2) are beyond the current scope. Instead, practical implementation involves deploying modern adaptive digital relays—synchronized via SCADA—to handle protection transitions. Thus, our feasibility claims are bounded by steady-state security, treating transient protection coordination as a prerequisite managed by existing adaptive infrastructure.
The simulation framework was configured using parameters reflecting both the operational constraints and economic considerations of the studied power system, as detailed below.

4.3.1. Protection Setting

The protection system of the test distribution network utilizes overcurrent relays installed at the substations. The specific protection settings for each substation are presented in Table 4. These settings differ to account for the specific characteristics of the feeders and their load profiles.

4.3.2. Operational Constraint Limits

To ensure secure and reliable network operation, the optimization process was constrained by specific operational limits summarized in Table 5. Voltage magnitudes at all buses were required to remain within the acceptable range of 0.95   V     1.05 p.u. Line and transformer loading under normal conditions was limited to 80% ( L m a x ) of the rated capacity, while a temporary allowance of 90% ( L E m e r   ) was permitted during network topology transitions between time steps. These parameters limit thermal overloading throughout the framework process.

4.3.3. Economic Cost Parameters

The objective function is formulated to minimize the total monetary cost. Consequently, no artificial weighting factors or normalization techniques were required, as all objective components are naturally unified under a common monetary unit (USD). The economic parameters utilized in this framework are summarized in Table 6. These values were derived from the PEA asset management standards to reflect real-world operational expenditures. Specifically, the switching operation cost ( K s w ) was set to USD 16.67 per operation, and the OLTC adjustment cost ( K o l t c ) was set to USD 33.33 per tap step. These values account for equipment depreciation and maintenance requirements.
Since the framework relies on these actual economic values, the optimization results are inherently sensitive to price variations; for example, a higher assigned switching cost will naturally drive the algorithm to reduce the frequency of topology changes. This economic sensitivity ensures that the optimization outcome adapts to the utility’s specific cost structure. Finally, high penalty values were imposed to enforce secure operation, where voltage violations, reverse power flow, and overload conditions each incurred a USD 30,000 penalty.
The penalty coefficients are deliberately set several orders of magnitude above typical operational costs. This design guarantees that any violation (e.g., voltage, thermal, or reverse power flow) is always penalized more severely than any potential economic benefit, thereby enforcing hard constraints within a single-objective formulation.

4.3.4. Binary Particle Swarm Optimization (BPSO)

To solve the nonlinear and combinatorial distribution network reconfiguration (DNR) problem, this study employs the Binary Particle Swarm Optimization (BPSO) algorithm. BPSO is particularly suitable for this application because the decision variables of network reconfiguration are discrete binary variables representing the open or closed status of sectionalizing and tie switches.
BPSO is a population-based metaheuristic inspired by the social behavior of bird flocks. The algorithm searches for optimal solutions by iteratively updating a population of candidate solutions called particles. In the DNR problem, each particle represents a potential network configuration. The position of particle i is defined as a binary vector expressed in (11).
X i = [ x i 1 ,   x i 2 ,   . . . ,   x i d ]
where d is the total number of controllable switches in the distribution network. A value of x i d = 1 indicates a closed switch, whereas x i d = 0 represents an open switch.
The movement of particles in the search space is governed by a velocity vector V . Each particle updates its velocity based on its personal best solution ( p b e s t ) and the global best solution ( g b e s t ) discovered by the swarm. The velocity update rule is given by (12).
V i d t + 1 = w · V i d t   +   c 1 ·   r 1 · p b e s t i d     X i d t + c 2 r 2   g b e s t d     X i d t
where ω is the inertia weight, c 1 and c 2 are the cognitive and social acceleration coefficients, and r 1 and r 2 are uniformly distributed random numbers in the range [0, 1].
Since the DNR problem involves binary decision variables, the continuous velocity is transformed into a probability using a sigmoid function as defined in (13).
S V i d t + 1 = 1 1 + e V i d t + 1
The switch status is then updated probabilistically according to the rule shown in (14)
X i d t + 1 = 1 ,     i f   r a n d ( ) < S ( V i d t + 1 )   0 ,     o t h e r w i s e
The parameters of the BPSO algorithm were determined through a sensitivity analysis conducted over predefined parameter ranges to achieve a trade-off between convergence quality and computational efficiency. The algorithm employed 20 particles with a maximum of 100 iterations, selected based on stable convergence performance across tested configurations. The inertia weight ( w ) was set to 0.9 to balance exploration and exploitation, while the cognitive ( c 1 ) and social ( c 2 ) coefficients were both assigned values of 2 within commonly recommended ranges. These settings demonstrated consistent convergence behavior and solution stability across multiple test runs, as summarized in Table 7.

5. Results

To validate the performance and robustness of the proposed framework for congestion management and operation cost minimization, four case studies were designed to represent different operational scenarios that reflect challenges commonly encountered within the distribution network.
  • Case 1 (Normal Condition): This case operates without any congestion or violations in the test network.
  • Case 2 (Overvoltage): Simulates an overvoltage scenario intentionally caused by modeling high photovoltaic (PV) penetration on feeder G1F2. This is to assess the framework’s voltage regulation capability.
  • Case 3 (Undervoltage): Introduces an undervoltage problem caused by high power demand from a large-scale electric vehicle (EV) charging station connected to the network.
  • Case 4 (Overload and Reverse Power Flow): Examines a thermal overload condition resulting from concentrated PV generation that causes reverse power flow.
These case studies are formulated to evaluate the framework’s effectiveness in detecting and mitigating various types of network congestion and violations, including overvoltage, undervoltage, overload, and reverse power flow, and to compare the optimized performance with the non-reconfiguration in the base case.

5.1. Case 1: Normal Operation

This case evaluates the performance of the proposed operational framework under normal operating conditions, with a typical 24 h load profile that does not initially cause congestion or violations. The primary objective is to minimize the total operational cost. All parameters must be maintained within permissible limits. The optimization process identified one beneficial reconfiguration event, as summarized in Table 8.
At 09:00 a.m., the algorithm recommended closing SW11 and opening SW10, transferring the load from substation G2 to G1. The corresponding topology change is illustrated in Figure 7. This switching action leverages the lower import energy costs from Substation G1 compared to Substation G2 during peak-time-of-use (TOU) tariff periods, thereby reducing the overall operating cost of the distribution network. The BPSO successfully found a solution for all 24-hourly optimization periods. Simulation results are presented in Table 9. Compared with the base case, the BPSO-optimized configuration achieved a 1.81% reduction in total operating cost from USD 32,265.40 to USD 31,680.94 while maintaining all constraints.
As shown in Figure 8a, after this reconfiguration event, the hourly operational cost in the optimized case was always lower than that in the base case. Figure 8b further explains the economic rationale: the framework strategically shifted power import by increasing purchases from the lower-cost G1 substation while decreasing purchases from the higher-cost G2 substation. This dynamic import-cost adjustment is the main driver of overall cost savings.
A small trade-off was seen in terms of increased network losses, which increased by 0.1439 MWh (3.20%), as depicted in Figure 8c. However, the total operational cost savings from reduced imports were much greater than the marginal increase in network losses. Throughout the 24 h period, the optimized configuration remained compliant with all operational constraints. The maximum voltage was sustained at 1.04 p.u., while the minimum voltage stayed above the 0.95 p.u. limit. Moreover, the proposed framework achieved a 9.7% reduction in maximum loading (from 57.21% to 47.42%) while requiring only two switching operations in total, demonstrating the framework’s effectiveness and practicality for network operation.
In this normal operating condition, the proposed framework operated primarily in Stage 1 (Radial Network Reconfiguration), successfully identifying cost-optimal switching actions while maintaining radial topology throughout the 24 h period. Stage 2 (Mesh Network Reconfiguration) was not activated, as no congestion was detected. All switching operations passed Stage 3 (Safe Switching Sequence Search) validation, confirming that the topology transitions could be executed without transient violations. This case demonstrates the framework’s ability to optimize operational costs under normal conditions using only radial reconfiguration, which represents the typical operational mode preferred by DSO.

5.2. Case 2: Overvoltage

This case considers the performance of the proposed operational framework under overvoltage conditions in the distribution network. A 10 MW photovoltaic (PV) system was integrated into feeder G1F2, in the SW4–SW9 section, as illustrated in Figure 9. The PV generation profile shown in Figure 10 reaches its maximum output at midday, corresponding to the typical high-solar-irradiation period.
The optimization switching results, shown in Table 10, reveal three reconfiguration events during the day. The first event occurred at 09:00 a.m., when SW11 was closed, and SW10 was opened. This switching action effectively reduced imported energy costs by shifting the energy source from substation G2 to G1, leveraging the difference in time-of-use (TOU) electricity pricing between the substations, while maintaining voltages and loadings within acceptable limits. At 10:00 a.m., the second reconfiguration involved closing SW9 and opening SW4, as illustrated in Figure 11. In this operation, the PV generation was transferred from feeder G1F2 to G2F1, improving power balance since G2F1 had a higher load demand. The topology change was effectively used to prevent local overvoltage during peak PV output periods.
Figure 12 compares the maximum voltage profiles of the base and optimized configurations. In the base case, the maximum bus voltage rose to 1.051 p.u. around noon due to high PV generation, exceeding the 1.05 p.u. upper voltage limit. After the proposed BPSO-based reconfiguration, the voltage peak was reduced to 1.046 p.u., restoring compliance with operational limits and maintaining voltage stability across the network. This demonstrates the framework’s ability to dynamically adjust feeder connections to prevent overvoltage while preserving radial topology. The final reconfiguration occurred at 2:00 p.m., when SW12 was closed, and SW5 was opened. This switching sequence further optimized the operational cost while maintaining secure operating conditions. All switching operations were verified to preserve radiality and ensure safe operational transitions within the network. The optimized configuration achieved a cost reduction of USD 701.26 (2.37%), lowering total operating cost to USD 28,779.17. This economic gain resulted primarily from import reallocation, where energy was drawn preferentially from the lower-priced substation G1 during peak TOU periods.
Although the total energy losses increased slightly from 4.51 MWh to 5.01 MWh (+11.08%) due to extended power transfer paths, the clear economic benefit thereby obtained far outweighed this minor drawback. Additionally, maximum feeder loading decreased from 57.21% to 47.42% (−9.79%), thereby reducing thermal stress and enhancing network reliability. The minimum voltage remained within limits at 0.973 p.u., ensuring overall system stability.
The results in Table 11 confirm that the proposed framework effectively mitigates overvoltage caused by high PV penetration while minimizing operating costs and preserving the distribution network’s radial topology. Overall, the proposed approach enhances both the technical robustness and economic efficiency of the network.
This overvoltage case utilized Stage 1 (Radial Network Reconfiguration) to address voltage violations caused by high PV penetration. The BPSO algorithm successfully identified three reconfiguration events that maintained radial topology while transferring PV generation to feeders with higher load demand, thereby preventing local overvoltage conditions. The framework did not require activation of Stage 2 (Mesh Network Reconfiguration), demonstrating that radial reconfiguration alone was sufficient to mitigate overvoltage congestion when appropriate load transfer paths were available. All switching sequences were validated through Stage 3 (Safe Switching Sequence Search), ensuring no transient overvoltage occurred during topology transitions.

5.3. Case 3: Undervoltage

This case investigates the effectiveness of the proposed operational framework in mitigating undervoltage conditions arising from high evening load demand. A 6.5 MW load with a power factor of 0.8, representing a large-scale electric vehicle (EV) charging station, was connected to feeder G1F2 in the SW6–SW3–SW12 section, as shown in Figure 13.
The corresponding load profile (Figure 14) shows a sharp increase in power demand to 6.5 MW during the evening hours (19:00–20:00), leading to significant voltage drops across the feeder. To maintain the voltage within acceptable limits, the proposed framework executed an adaptive radial–mesh reconfiguration sequence. At 09:00 a.m., the framework initiated a cost-oriented switching action by closing SW11 and opening SW10, thereby transferring the import source from substation G2 to the lower-cost substation G1, while maintaining radial operation. During the evening peak (19:00–20:00), SW3 was closed to form a temporary meshed topology between feeders G1F1 and G1F2, as illustrated in Figure 15, enabling real-time voltage support and current sharing under heavy load conditions. Once the undervoltage event subsided, SW5 was opened at 21:00, restoring the network to a radial configuration.
The complete switching sequence applied in this case is summarized in Table 12. All switching operations were validated using the safe-switching-sequencing logic embedded in the proposed framework, ensuring that no infeasible or unsafe transitions occurred during the process. As a result, the system maintained continuous, secure power delivery throughout the event without compromising network integrity or violating operational constraints.
However, at 20:00, although the optimization stage identified a target configuration (Close SW10, Open SW11), the safe switching sequence validation (Stage 3) determined that no feasible intermediate switching sequence could satisfy all operational constraints. Consequently, this transition was rejected, and the system remained in the meshed configuration. This outcome further highlights the critical role of Stage 3 in actively preventing unsafe or infeasible topology transitions, rather than merely providing a binary validation result.
Figure 16 illustrates the improved voltage performance. It compares the minimum-voltage profiles of the base case and the optimized configurations. In the base case configuration, the voltage dropped to 0.94 p.u. This drop occurred during the evening peak. This violated the 0.95 p.u. lower bound. The minimum voltage improved to 0.97 p.u. after optimization. This improvement effectively eliminated undervoltage violations.
The quantitative results presented in Table 13 further confirm the technical and economic benefits of the proposed strategy. The total operational cost decreased from USD 33,915.86 in the base case to USD 33,381.75 after optimization. This shows a cost reduction of USD 534.11, which is equal to a 1.57% decrease. While this reduction is moderate, the technical improvements are substantial. The minimum bus voltage increased by 0.03 p.u., and the maximum feeder loading decreased from 74.61% to 64.01%, representing a 14.21% improvement and indicating more balanced current sharing among feeders. The total active power losses decreased from 5.66 MWh to 5.37 MWh, which represents a 5.13% reduction achieved by the algorithm. The optimized configuration maintained all node voltages above 0.95 p.u. throughout the day, demonstrating that the proposed framework effectively alleviates undervoltage conditions.
This undervoltage case represents the first scenario requiring the complete three-stage framework. Stage 1 (Radial Network Reconfiguration) was initially applied, but could not fully resolve the severe voltage drop caused by the 6.5 MW EV charging station while maintaining radial topology. Consequently, the framework automatically transitioned to Stage 2 (Mesh Network Reconfiguration), temporarily closing SW3 to create a meshed topology between feeders G1F1 and G1F2 during the evening peak (19:00–20:00). This temporary mesh operation enabled current sharing and voltage support under heavy loading conditions. Once the undervoltage event subsided, the framework restored radial operation at 21:00. Critically, all topology transitions, including both radial-to-mesh and mesh-to-radial transitions, were validated in Stage 3 (Safe Switching Sequence Search) to ensure no customer outages or transient violations occurred during the reconfiguration. This case demonstrates the framework’s adaptive capability: Stage 1 handles normal conditions, Stage 2 provides mesh reinforcement when radial solutions are insufficient, and Stage 3 ensures practical implementability throughout.

5.4. Case 4: Overload and Reverse Power Flow

This case demonstrates the proposed optimization framework to address overload conditions and reverse power flow in the distribution network. An 11 MW photovoltaic (PV) system with voltage control capability was integrated into feeder G2F2, located between switches SW11 and SW10, as illustrated in Figure 17. The PV generation profile, identical to that used in case 2, peaks at 11 MW at approximately 12:00 p.m.
During periods of high PV generation, excess PV active power from feeder G2F2 flows back toward substation G2, resulting in a reverse power flow condition that is undesirable as no power purchase agreement (PPA) is established for reverse energy export. Moreover, reverse power flow can negatively impact system stability and economic performance.
The optimized switching schedule, summarized in Table 14, consists of four key reconfiguration events executed between 10:00 a.m. and 3:00 p.m. The reconfiguration sequence is designed to dynamically manage power flow and prevent reverse energy injection from feeder G2F2 during high PV generation periods.
The first three switching actions (at 10:00, 11:00, and 12:00) aim to increase the load demand on the PV-connected feeder G2F2, thereby using the excess generation and preventing reverse power flow toward substation G2. At 10:00 a.m., SW11 is closed, and SW7 is opened to modify the feeder interconnection, allowing additional load transfer into G2F2.
At 11:00 a.m., SW12 and SW3 are closed while SW2 and SW6 are opened to further extend the loading area of the PV feeder. A third adjustment at 12:00 p.m. involves closing SW6 and opening SW4 to optimize the network configuration for efficient PV power absorption. Finally, at 15:00, SW4 is closed, and SW11 is opened to reconfigure the network to a cost-optimal radial arrangement after PV output has substantially decreased, thereby minimizing operational cost under normal loading conditions. All switching actions were verified as safe and maintained radial operation throughout the optimization process.
During the PV-generation peak at 12:00 p.m., the optimized configuration (Figure 18) allows feeder G2F2 to extend its service area, creating additional load demand that uses locally produced PV power. This strategy prevents reverse power injection to substation G2 while maintaining network voltage and thermal conditions within secure operating limits.
The results presented in Table 15 show that the proposed framework is effective and has achieved its objective. The total operational cost decreased. The base case cost was USD 28,644.36. The optimized case cost was USD 26,015.14. This represents a 9.18% reduction. This improvement primarily results from eliminating reverse-power penalties at the G2 substation. It also comes from the enhanced utilization of PV generation within the distribution network.
As illustrated in Figure 19a, the proposed framework reduced the maximum loading from 130.62% to 63.43%, ensuring compliance with thermal-loading limits. The comparison of import active power from substation G2, shown in Figure 19b, reveals that the base case exhibited significant reverse flow from feeder G2F2 to substation G2, while the optimized network maintained unidirectional flow during all PV generation periods. Although total active power losses increased by 1.93% from 5.17 MWh to 5.27 MWh due to increased feeder utilization, this was more than offset by a 9.18% reduction in costs. A plot of the hourly operational costs in Figure 19c shows that the optimized network achieved lower total operational costs during high-generation hours.
This overload and reverse power flow case demonstrates the framework’s advanced capabilities in Stage 1 radial optimization for managing complex congestion that involves both thermal constraints and economic penalties. Stage 2 (Mesh Network Reconfiguration) was not required, as the radial reconfiguration provided sufficient operational flexibility. This case illustrates that Stage 1 alone can address certain forms of severe congestion when the network has adequate tie-switch infrastructure for load transfer. In contrast, Stage 2 availability provides additional capacity when radial solutions are exhausted.

5.5. Sensitivity Analysis

To evaluate the parametric robustness of the proposed framework, a one-at-a-time (OAT) sensitivity analysis was performed by varying the per-operation switching cost ( K s w ) within a range of ±40% from the base case value (16.67 USD/operation) under the overvoltage scenario. The results, presented in Table 16 and Figure 20, demonstrate that the total operational cost is highly insensitive to variations in switching costs, with a maximum deviation of only +2.13% across the full parametric range. Conversely, the total number of switching operations exhibits significant sensitivity to negative cost deviations, increasing by 100% (from 6 to 12 operations) when K s w is reduced by 20% to 40%. At elevated switching costs, the reconfiguration frequency decreases by up to 33.33% (specifically under the +40% scenario), while energy losses are reduced by up to 7.83%. Although energy loss exhibits a non-monotonic response—peaking at an increase of +31.93% under the −20% scenario—no voltage violations or thermal overloads were recorded across any of the evaluated conditions. These findings validate the stability of the proposed objective formulation across the evaluated parametric range. It should be noted that the base-case value of 16.67 USD/operation corresponds to the actual switching cost currently applied by the PEA in practice, thereby confirming the practical relevance and direct applicability of the proposed framework to the real PEA 22 kV distribution network.

5.6. Benchmarking Against Representative DNR Methods

Table 17 presents a feature-level comparison between the proposed framework and two representative approaches: a dynamic cost-aware method and a switching-sequence-aware method. The comparison covers key aspects, including objective functions, time-of-use (TOU) pricing consideration, hourly reconfiguration capability, support for temporary meshed topology, and switching sequence validation.
The results indicate that the proposed framework provides a more comprehensive and practically oriented solution. It uniquely integrates TOU-based cost modeling, hourly adaptive reconfiguration, and the ability to transition between radial and temporary meshed topologies.

6. Discussion

The proposed three-stage operational framework, validated in a real 22 kV distribution network, demonstrates significant potential to help DSOs mitigate network congestion and optimize operational costs. This framework enables dynamic reconfiguration between radial and temporary mesh topologies based on congestion conditions, with safe switching sequences validated.
The distribution of stage activations across the four case studies warrants further clarification. Stage 2 (Mesh Network Reconfiguration) was activated only in Case 3, while Cases 1, 2, and 4 were fully resolved through Stage 1 (Radial Network Reconfiguration) alone. This pattern is not a limitation of the framework but rather a reflection of its hierarchical, conservative design philosophy, which prioritizes radial operation in line with standard DSO practice. The fact that radial reconfiguration successfully mitigated overvoltage (Case 2) and severe overload with reverse power flow (Case 4) demonstrates the sufficiency of Stage 1 under most congestion scenarios when adequate tie-switch infrastructure is available. Stage 2 was deliberately reserved for situations where voltage violations cannot be resolved within the radial topology constraint. This condition arose exclusively in Case 3 under the extreme 6.5 MW EV charging demand. This selective activation confirms that the framework correctly identifies when mesh reinforcement is operationally necessary rather than applying it indiscriminately. Furthermore, all four cases activated Stage 3, confirming that safe switching sequence validation is universally required regardless of whether the final topology is radial or meshed, and underscoring the practical value of this stage across all operational conditions.
Although this study employs Binary Particle Swarm Optimization (BPSO), the proposed framework is inherently algorithm-agnostic. BPSO was selected as a representative metaheuristic due to its suitability for discrete binary decision variables, such as the open/closed states of distribution switches, and its proven robustness in solving non-linear optimization problems. While more advanced optimization techniques have been proposed in the recent literature, BPSO offers a practical balance between solution quality and computational efficiency, achieving convergence within 21–33 min.
Despite the promising performance of the proposed framework, several limitations should be acknowledged. The scalability of the approach may be constrained in large-scale networks due to the combinatorial complexity of the DNR problem, potentially requiring advanced or parallel optimization techniques. The framework also depends on accurate network data; inaccuracies or missing data may degrade solution quality, necessitating fallback strategies such as using historical or previous time-step data. In addition, performance may be affected under high-uncertainty conditions, particularly with intermittent DER generation, while communication delays in SCADA systems may delay the timely execution of switching actions. Although the current framework is designed for day-ahead operation, real-time implementation is feasible with high-performance computing or dedicated workstations; however, this requires reliable data acquisition, and alternative mitigation strategies must be employed in cases of data loss or communication failure.
It is important to emphasize that this computational time is intended for day-ahead operational planning rather than real-time control. In this context, generating a complete 24 h switching schedule within approximately 30 min is operationally acceptable and well aligned with standard utility planning practices. Therefore, the computational burden does not limit real-world applicability.
Furthermore, it is important to position the proposed methodology within the context of recent AI-based and data-driven approaches, such as Deep Reinforcement Learning (DRL). These approaches offer significant advantages in fast online decision making and adaptive energy management. However, their application to physical network topology reconfiguration introduces fundamental challenges. In particular, neural network-based models have inherent difficulty in strictly enforcing hard combinatorial constraints, such as maintaining radial topology and preventing network islanding. As a result, DRL-based methods may generate infeasible or unsafe intermediate switching actions during the decision process.
In contrast, the proposed framework incorporates a deterministic, rule-based heuristic in Stage 3 to explicitly ensure safe, feasible switching sequences. This approach ensures that all operational constraints are satisfied at every step of the reconfiguration process without requiring iterative correction. Consequently, the proposed method provides a robust balance between operational cost optimization and dynamic congestion mitigation, while maintaining the strict operational security requirements mandated by real-world distribution system operators (DSOs).
The primary contribution of this work lies in demonstrating the effectiveness of coordinated radial and temporary meshed operation, rather than in benchmarking optimization algorithms. Nevertheless, the modular design of the proposed framework enables straightforward integration of more advanced optimization methods, which may further enhance convergence speed and scalability as network complexity increases.
Regarding operational security under fault conditions, particularly during temporary meshed operation, this study assumes the utilization of a dynamic protection scheme supported by modern distribution automation. Modern protection devices, such as digital relays and reclosers, support multiple protection setting groups and directional fault detection capabilities. In the proposed framework, these setting groups are assumed to be remotely adjusted via the SCADA system to align with the active topology (radial or mesh). This allows automated, synchronized adaptation of protection coordination alongside scheduled topology changes, ensuring fault currents are correctly detected and isolated, even in looped configurations. Furthermore, for Fault Location, Isolation, and Service Restoration (FLISR), the inclusion of directional fault indicators in the remote-controlled switches enables the system to accurately localize faults despite the bidirectional power flows inherent in meshed topologies. Therefore, while detailed relay setting calculations are outside the scope of this optimization study, the framework is inherently compatible with these standard adaptive protection technologies.
Given the temporal scope and uncertainty, a 24 h optimization horizon was selected to align with the standard day-ahead operational planning cycle and the daily TOU tariff structures typical of utility operations. However, the proposed framework is inherently scalable to longer time horizons. Since the optimization algorithm operates sequentially, utilizing the network topology from the previous time step ( t 1 ) as the initialization seed for the current step ( t ), it can continuously and effectively manage network operations over extended periods (e.g., weekly or seasonal) provided that corresponding load and generation data are available. Furthermore, while this study employs deterministic load and generation profiles to validate the hierarchical reconfiguration logic, the framework is designed to be adaptable to uncertainties. Future iterations can incorporate stochastic optimization or robust optimization modules at the data input stage to account for forecast errors in renewable generation and EV charging behavior. In the near term, however, forecast uncertainty and short-term load fluctuations could cause the deterministic algorithm to recommend overly frequent topology changes in pursuit of marginal cost benefits. To mitigate this in practical DSO operations, the framework’s parameters can be conservatively adjusted. As demonstrated in the sensitivity analysis (Section 5.5), artificially elevating the unit switching cost ( K s w ) effectively penalizes and reduces the reconfiguration frequency. Alternatively, operators can introduce a hard constraint on the maximum allowable daily switching operations to prevent excessive mechanical wear and tear driven by forecasting noise. This ensures that the generated switching schedules remain stable and practically executable, further enhancing the framework’s robustness.
Finally, the limitations of the current validation should be acknowledged to provide a balanced perspective on the framework’s applicability. The study is based on a single 22 kV distribution network with a limited number of tie switches and assumes deterministic inputs and ideal adaptive protection performance. Regarding generalizability, while the proposed hierarchical logic is mathematically and operationally applicable to larger, more complex distribution networks, practical deployments may face scalability constraints. Because the network reconfiguration problem is highly combinatorial, increasing the network size and the number of remotely controlled switches will exponentially expand the search space. Although the proposed framework is explicitly designed for day-ahead operational planning rather than real-time control—making current computational times highly manageable—excessive computational delays in massive networks could still pose a challenge for timely schedule generation or intraday forecast updates. To apply this framework to large-scale networks, future research must address these computational bottlenecks, potentially by employing network partitioning techniques or integrating faster-converging optimization solvers.

7. Conclusions

This paper has presented a three-stage operational framework for distribution network reconfiguration that integrates a detailed operational cost model with an adaptive radial–mesh topology and incorporates a validated safe switching sequence. The framework has demonstrated its ability to maintain network security under both normal and congested conditions. One of the strong points of the proposed approach is its ability to switch dynamically between a radial and a temporary mesh configuration, enabling the network to mitigate congestion that cannot be mitigated under strict radial operation. Validation using a real 22 kV distribution showed that the framework can mitigate all major congestion types, such as overvoltage and undervoltage, thermal overload, and reverse power flow, through reconfiguration. The method restores all bus voltages and line loadings within the limits in the four different case studies and eliminates the violations that occur due to reverse flow. The framework can achieve operational cost reduction bounds of 1.57% to 9.18% and equipment loading reductions of 9.79% to 51.44%, thereby providing technical and economic benefits. Overall, the proposed framework strengthens the DSO’s ability to manage increasingly dynamic load and generation patterns while reducing operational and investment costs. Future work will focus on incorporating adaptive protection coordination to support real-time topology changes.

Author Contributions

Conceptualization, T.P. and P.W.; methodology, T.P.; software, T.P.; validation, T.P., P.R., S.K., P.W. and N.R.W.; formal analysis, T.P. and P.W.; investigation, T.P., P.W. and N.R.W.; resources, T.P. and P.R.; data curation, T.P. and P.W.; writing—original draft preparation, T.P., P.W. and N.R.W.; writing—review and editing, T.P., P.R., S.K., P.W. and N.R.W.; visualization, T.P., P.W., S.K. and N.R.W.; supervision, P.W. and N.R.W.; project administration, T.P.; funding acquisition, T.P. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by the PEA–CMU Academic Collaboration Project, a joint research program between the Provincial Electricity Authority (PEA) of Thailand and Chiang Mai University (CMU).

Data Availability Statement

The distribution network model used in this study is the property of the Provincial Electricity Authority (PEA), Thailand, and cannot be publicly released. The Python code used to support the findings of this study is available from the corresponding author upon reasonable request.

Acknowledgments

The authors would like to thank the Provincial Electricity Authority (PEA) of Thailand and Chiang Mai University (CMU) for their support through the PEA–CMU Academic Collaboration Project. The authors also acknowledge the University of Canterbury, New Zealand, for facilitating this research collaboration.

Conflicts of Interest

Authors Thunpisit Pothinun and Pannathon Rodkumnerd were employed by the company Provincial Electricity Authority. The remaining authors declare that the research was conducted in the absence of any commercial or financial relationships that could be construed as a potential conflict of interest.

Nomenclature

The following symbols and abbreviations are used in this manuscript:
t Index of time (hour)
t r Index of transformers
i , j Index of buses
s w Index of switches
b r Index of network branches (lines and transformers)
g Index of substation
K p Average cost of energy for active power losses (USD/kWh)
K s w Cost per single switching operation (USD/operation)
K o l t c Cost per single tap changer step (USD/step)
K r e v e r s e Cost of reverse power flow (USD/kWh)
k g , t o u t Time-of-use (TOU) energy price for g during hour t (USD/kWh)
V m i n Minimum bus voltage limits (p.u.)
V m a x Maximum bus voltage limits (p.u.)
L m a x Maximum thermal loading limit (%)
L E m e r Emergency maximum thermal loading limit (%)
L b r Percentage loading of branch b r (%)
T a p t r m i n Minimum tap positions of transformer t r
N s w Total number of controllable switches
N t r Total number of transformers with OLTCs
N b u s Total number of buses in the network
t Time interval for the simulation (h)
C T o t a l Total operational cost (USD)
C l o s s t Cost of active power losses during hour t (USD)
C g , l o a d t Cost of energy load imported from power station g at hour t (USD)
C s w t Cost of switching operations during hour t (USD)
C o l t c t Cost of OLTC operations during hour t (USD)
C p e n a l t y t Penalty cost for violations during hour t
C r e v e r s e t Penalty cost for reverse power flow during hour t
P l o s s t Active power loss during hour t (MW)
P g t Active power load imported from substation g during hour t (MW)
S s w t Set of binary status of switch s w during hour t
T a p t r t Tap position of transformer t r during hour t
d h Hamming distance between switch states during time t and t 1
N V t Number of buses voltage violation during hour t
η v Penalty factor for voltage
η o l Penalty factor for overload
DNRDistribution network reconfiguration
DSODistribution system operator
GISGeographic Information System
PEAProvincial Electricity Authority, Thailand
puPer Unit

References

  1. Watson, J.D.; Watson, N.R. Impact of electric vehicle chargers on harmonic levels in New Zealand. In Proceedings of the 2017 IEEE Innovative Smart Grid Technologies Asia (ISGT-Asia), Auckland, New Zealand, 4–7 December 2017. [Google Scholar] [CrossRef]
  2. Watson, J.D.; Watson, N.R.; Santos-Martin, D.; Wood, A.R.; Lemon, S.; Miller, A.J.V. Impact of solar photovoltaics on the low-voltage distribution network in New Zealand. IET Gener. Transm. Distrib. 2016, 10, 1–9. [Google Scholar] [CrossRef]
  3. Li, H.; Lekić, A.; Li, S.; Jiang, D.; Guo, Q.; Zhou, L. Distribution network reconfiguration considering the impacts of local renewable generation and external power grid. IEEE Trans. Ind. Appl. 2023, 59, 7771–7788. [Google Scholar] [CrossRef]
  4. Asiamah, R.; Zhou, Y.; Zamzam, A.S. Machine learning-assisted distribution system network reconfiguration problem. In Proceedings of the 2025 IEEE PES Grid Edge Technologies Conference & Exposition, San Diego, CA, USA, 21–23 January 2025. [Google Scholar] [CrossRef]
  5. Loji, K.; Sharma, S.; Loji, N.; Sharma, G.; Bokoro, P.N. Operational Issues of Contemporary Distribution Systems: A Review on Recent and Emerging Concerns. Energies 2023, 16, 1732. [Google Scholar] [CrossRef]
  6. Behbahani, M.R.; Jalilian, A.; Bahmanyar, A.; Ernst, D. Comprehensive review on static and dynamic distribution network reconfiguration methodologies. IEEE Access 2024, 12, 9510–9525. [Google Scholar] [CrossRef]
  7. Mahdavi, M.; Javadi, M.S.; Wang, F.; Catalão, J.P.S. An efficient model for accurate evaluation of consumption pattern in distribution system reconfiguration. IEEE Trans. Ind. Appl. 2022, 58, 3102–3111. [Google Scholar] [CrossRef]
  8. Mahdavi, M.; Schmitt, K.; Chamana, M.; Jurado, F.; Bayne, S.; Marfo, E.A.; Awaafo, A. A mixed-integer programming model for reconfiguration of active distribution systems considering voltage dependency and type of loads and renewable sources. IEEE Trans. Ind. Appl. 2024, 60, 5291–5303. [Google Scholar] [CrossRef]
  9. Liu, Y.; Li, J.; Wu, L. Coordinated optimal network reconfiguration and voltage regulator/DER control for unbalanced distribution systems. IEEE Trans. Smart Grid 2019, 10, 2912–2922. [Google Scholar] [CrossRef]
  10. Pegado, R.A.; Rodriguez, Y.P.M. Distribution network reconfiguration with the OpenDSS using improved binary particle swarm optimization. IEEE Lat. Am. Trans. 2018, 16, 1677–1683. [Google Scholar] [CrossRef]
  11. de Araujo Junior, J.B.; de Souza, B.A. Power distribution network reconfiguration: Hybrid PSO-Tabu search approach for computational effort reduction. Int. J. Appl. Sci. Res. 2025, 8, 105–114. [Google Scholar] [CrossRef]
  12. Gielnik, F.; Pinter, P.; Leibfried, T. Multi-objective particle swarm optimization for comparison of optimal distribution grid reconfiguration tasks. In Proceedings of the 59th International Universities Power Engineering Conference (UPEC), Cardiff, UK, 2–6 September 2024. [Google Scholar] [CrossRef]
  13. Naderi, E.; Mirzaei, L.; Trimble, J.P.; Cantrell, D.A. Multi-objective optimal power flow incorporating flexible alternating current transmission systems: Application of a wavelet-oriented evolutionary algorithm. Electr. Power Compon. Syst. 2024, 52, 766–795. [Google Scholar] [CrossRef]
  14. Jo, S.; Oh, J.-Y.; Lee, J.; Oh, S.; Moon, H.S.; Zhang, C.; Gadh, R.; Yoon, Y.T. Hybrid genetic algorithm with k-nearest neighbors for radial distribution network reconfiguration. IEEE Trans. Smart Grid 2024, 15, 2614–2624. [Google Scholar] [CrossRef]
  15. Wang, J.; Wang, W.; Yuan, Z.; Wang, H.; Wu, J. A chaos disturbed beetle antennae search algorithm for a multiobjective distribution network reconfiguration considering the variation of load and DG. IEEE Access 2020, 8, 97392–97407. [Google Scholar] [CrossRef]
  16. Chen, Q.; Wang, W.; Wang, H.; Wu, J.; Wang, J. An improved beetle swarm algorithm based on social learning for a game model of multiobjective distribution network reconfiguration. IEEE Access 2020, 8, 200940–200953. [Google Scholar] [CrossRef]
  17. Wang, J.; Wang, W.; Wang, H.; Zuo, H. Dynamic reconfiguration of multiobjective distribution networks considering DG and EVs based on a novel LDBAS algorithm. IEEE Access 2020, 8, 216881–216894. [Google Scholar] [CrossRef]
  18. Dehghany, N.; Asghari, R. Multi-objective optimal reconfiguration of distribution networks using a novel meta-heuristic algorithm. Int. J. Electr. Comput. Eng. 2024, 14, 3557–3569. [Google Scholar] [CrossRef]
  19. Helmi, A.M.; Carli, R.; Dotoli, M.; Ramadan, H.S. Efficient and sustainable reconfiguration of distribution networks via metaheuristic optimization. IEEE Trans. Autom. Sci. Eng. 2022, 19, 82–98. [Google Scholar] [CrossRef]
  20. Shaheen, A.M.; El-Sehiemy, R.A.; Kamel, S.; Elattar, E.E.; Elsayed, A.M. Improving distribution networks’ consistency by optimal distribution system reconfiguration and distributed generations. IEEE Access 2021, 9, 67186–67200. [Google Scholar] [CrossRef]
  21. Ahmed, A.; Catchpole, K.; Skobeleva, A. Optimal BESS allocation in radial and meshed distribution network. In Proceedings of the 2024 Australasian Universities Power Engineering Conference (AUPEC), Sydney, Australia, 20–22 November 2024. [Google Scholar] [CrossRef]
  22. Ñaupari Huatuco, D.Z.; Filho, L.O.P.; Pucuhuayla, F.J.S.; Rodriguez, Y.P.M. Network reconfiguration for loss reduction using Tabu search and a voltage drop. Energies 2024, 17, 2744. [Google Scholar] [CrossRef]
  23. Asrari, A.; Ansari, M.; Khazaei, J.; Fajri, P.; Amini, M.H.; Ramos, B. The impacts of a decision making framework on distribution network reconfiguration. IEEE Trans. Sustain. Energy 2021, 12, 634–645. [Google Scholar] [CrossRef]
  24. Gerez, C.; Silva, L.I.; Belati, E.A.; Sguarezi Filho, A.J.; Costa, E.C.M. Distribution network reconfiguration using selective firefly algorithm and a load flow analysis criterion for reducing the search space. IEEE Access 2019, 7, 67874–67888. [Google Scholar] [CrossRef]
  25. Samman, M.A.; Mokhlis, H.; Mansor, N.N.; Mohamad, H.; Suyono, H.; Sapari, N.M. Fast optimal network reconfiguration with guided initialization based on a simplified network approach. IEEE Access 2020, 8, 11948–11963. [Google Scholar] [CrossRef]
  26. Kamel, S.; Khasanov, M.; Jurado, F.; Kurbanov, A.; Zawbaa, H.M.; Alathbah, M.A. Simultaneously distributed generation allocation and network reconfiguration in distribution network considering different loading levels. IEEE Access 2023, 11, 105916–105934. [Google Scholar] [CrossRef]
  27. Simeon Pucuhuayla, F.J.; Ñaupari Huatuco, D.Z.; Rodriguez, Y.P.M.; Reyes Llerena, J. Optimal Distribution Network Reconfiguration Using Particle Swarm Optimization-Simulated Annealing: Adaptive Inertia Weight Based on Simulated Annealing. Energies 2025, 18, 5483. [Google Scholar] [CrossRef]
  28. Huang, W.; Xu, M.; Zhang, X.; Zheng, L. An Efficient Heuristic Algorithm for Stochastic Multi-Timescale Network Reconfiguration for Medium- and High-Voltage Distribution Networks with High Renewables. Energies 2025, 18, 5861. [Google Scholar] [CrossRef]
  29. Mohammadi Vaniar, A.; Mansouri, M.; Assadi, M. Topology and Reactive Power Co-Optimization for Condition-Aware Distribution Network Reconfiguration. Energies 2025, 18, 6062. [Google Scholar] [CrossRef]
  30. Wang, R.; Bi, X.; Bu, S. Real-time coordination of dynamic network reconfiguration and Volt-VAR control in active distribution network: A graph-aware deep reinforcement learning approach. IEEE Trans. Smart Grid 2024, 15, 3288–3301. [Google Scholar] [CrossRef]
  31. Gao, H.; Wang, R.; He, S.; Wang, L.; Liu, J.; Chen, Z. A cloud-edge collaboration solution for distribution network reconfiguration using multi-agent deep reinforcement learning. IEEE Trans. Power Syst. 2024, 39, 3867–3880. [Google Scholar] [CrossRef]
  32. Oh, J.Y.; Oh, S.; Lee, G.-S.; Yoon, Y.T.; Jo, S. Sequential control of individual switches for real-time distribution network reconfiguration using deep reinforcement learning. IEEE Trans. Smart Grid 2025, 16, 3666–3684. [Google Scholar] [CrossRef]
  33. Zhu, L.; Yang, R.; Wang, W.; Wu, Q.; Huang, Q. DLMP-Based Congestion Management Model for Power Distribution Network Considering Network Loss and EV Charging Demand Uncertainty. IEEE Trans. Smart Grid 2026, 17, 1414–1429. [Google Scholar] [CrossRef]
  34. Yang, R.; Wang, M.; Wang, J.; Zhang, X.; Wu, Q. Price-Matching-Based Regional Energy Market with Hierarchical Reinforcement Learning Algorithm. IEEE Trans. Ind. Inform. 2024, early access. [Google Scholar] [CrossRef]
  35. Bosmediano, J.L.; Aguila Téllez, A.; Martínez, R.A.O. Optimal Distribution Network Reconfiguration with Renewable Generation Using a Hybrid Quantum–Classical QAOA for Power Loss Minimization. Energies 2026, 19, 1148. [Google Scholar] [CrossRef]
  36. Badran, O.; Mekhilef, S.; Mokhlis, H.; Dahalan, W. Optimal switching sequence path for distribution network reconfiguration considering different types of distributed generation. IEEJ Trans. Electr. Electron. Eng. 2017, 12, 874–882. [Google Scholar] [CrossRef]
  37. Badran, O.; Jallad, J. Multi-Objective Decision Approach for Optimal Real-Time Switching Sequence of Network Reconfiguration Realizing Maximum Load Capacity. Energies 2023, 16, 6779. [Google Scholar] [CrossRef]
  38. Home-Ortiz, J.M.; Macedo, L.H.; Vargas, R.; Romero, R.; Mantovani, J.R.S.; Catalão, J.P.S. Increasing RES Hosting Capacity in Distribution Networks Through Closed-Loop Reconfiguration and Volt/VAr Control. IEEE Trans. Ind. Appl. 2022, 58, 4424–4435. [Google Scholar] [CrossRef]
  39. Rajić, T.; Stojanović, B. Algorithm for distribution network reconfiguration and reactive power compensation with battery energy storage systems. Electr. Power Syst. Res. 2025, 244, 111547. [Google Scholar] [CrossRef]
  40. IEC 287-1982; Calculation of the Continuous Current Rating of Cables (100% Load Factor). International Electrotechnical Commission (IEC): Geneva, Switzerland, 1982.
Figure 1. Flowchart of the three-stage operational framework.
Figure 1. Flowchart of the three-stage operational framework.
Energies 19 01809 g001
Figure 2. GIS-based representation of the test distribution network, showing the interconnected feeders and substations.
Figure 2. GIS-based representation of the test distribution network, showing the interconnected feeders and substations.
Energies 19 01809 g002
Figure 3. Single-line diagram of the test distribution network illustrating substations, feeders, and remotely controlled switches.
Figure 3. Single-line diagram of the test distribution network illustrating substations, feeders, and remotely controlled switches.
Energies 19 01809 g003
Figure 4. TOU energy import price of G1 substation and G2 substation.
Figure 4. TOU energy import price of G1 substation and G2 substation.
Energies 19 01809 g004
Figure 5. Twenty-four-hour load profiles for five distribution feeders.
Figure 5. Twenty-four-hour load profiles for five distribution feeders.
Energies 19 01809 g005
Figure 6. Process flow of the proposed framework.
Figure 6. Process flow of the proposed framework.
Energies 19 01809 g006
Figure 7. The topology diagram at 9:00 a.m. shows the load transfer from feeder G2F2 to G1F3 caused by closing SW11 and opening SW10.
Figure 7. The topology diagram at 9:00 a.m. shows the load transfer from feeder G2F2 to G1F3 caused by closing SW11 and opening SW10.
Energies 19 01809 g007
Figure 8. Comparison of hourly profiles: (a) total operation cost; (b) substation import cost; and (c) grid active power loss.
Figure 8. Comparison of hourly profiles: (a) total operation cost; (b) substation import cost; and (c) grid active power loss.
Energies 19 01809 g008
Figure 9. Case 2 topology with PV added at feeder G1F2 in the SW4–SW9 section.
Figure 9. Case 2 topology with PV added at feeder G1F2 in the SW4–SW9 section.
Energies 19 01809 g009
Figure 10. PV profile in 24 h.
Figure 10. PV profile in 24 h.
Energies 19 01809 g010
Figure 11. The topology diagram at 10:00 a.m. By opening SW4 and closing SW9, the PV system is transferred from feeder G1F2 to G2F1.
Figure 11. The topology diagram at 10:00 a.m. By opening SW4 and closing SW9, the PV system is transferred from feeder G1F2 to G2F1.
Energies 19 01809 g011
Figure 12. Comparison of the maximum voltage profiles in the distribution network. The base case shows significant overvoltage at noon due to high PV penetration, which is mitigated after topology reconfiguration.
Figure 12. Comparison of the maximum voltage profiles in the distribution network. The base case shows significant overvoltage at noon due to high PV penetration, which is mitigated after topology reconfiguration.
Energies 19 01809 g012
Figure 13. The topology diagram of case 3: undervoltage.
Figure 13. The topology diagram of case 3: undervoltage.
Energies 19 01809 g013
Figure 14. EV load profile for case 3: undervoltage.
Figure 14. EV load profile for case 3: undervoltage.
Energies 19 01809 g014
Figure 15. The network topology at 19:00–20:00 during the undervoltage condition, with feeders G1F1 and G1F2 meshed by closing SW3.
Figure 15. The network topology at 19:00–20:00 during the undervoltage condition, with feeders G1F1 and G1F2 meshed by closing SW3.
Energies 19 01809 g015
Figure 16. Comparison of the minimum-voltage profile in case 3: undervoltage.
Figure 16. Comparison of the minimum-voltage profile in case 3: undervoltage.
Energies 19 01809 g016
Figure 17. The topology diagram of case 4: overload and reverse power flow.
Figure 17. The topology diagram of case 4: overload and reverse power flow.
Energies 19 01809 g017
Figure 18. Optimized network topology at 12:00 during maximum PV generation.
Figure 18. Optimized network topology at 12:00 during maximum PV generation.
Energies 19 01809 g018
Figure 19. Comparison of hourly profiles: (a) thermal loading; (b) active power import from substation G2; and (c) total operation cost.
Figure 19. Comparison of hourly profiles: (a) thermal loading; (b) active power import from substation G2; and (c) total operation cost.
Energies 19 01809 g019
Figure 20. Sensitivity of operational objectives to variations in the switching cost.
Figure 20. Sensitivity of operational objectives to variations in the switching cost.
Energies 19 01809 g020
Table 1. Comparison of algorithms for dynamic reconfiguration.
Table 1. Comparison of algorithms for dynamic reconfiguration.
RefAlgorithmMulti-objective Function/Key FeaturesRadial
Topology
Mesh
Topology
Safe Switching
Sequence
Operational
Coverage
[10]BPSOLoss, voltage--Optimization
[11]PSO-TabuLoss--Optimization
[12]PSOLoss, generation cost--Optimization
[13]Wavelet-Oriented
Evolutionary
OPF, loss--Optimization
[14]GA + k-NNLoss, load balance, switch cost--Optimization
[15,16,17]Beetle-baseLoss, load balance, voltage--Optimization
[18]WMCLoss, ENS, CAIDI--Optimization
[19]HHOLoss--Optimization
[20]EMPALoss, stability--Optimization
[21]Gray WolfReduce peak demand with BESS-Optimization
[22,23,24,25,26]Various heuristicsLoss--Optimization
[27]PSO-SALoss--Optimization
[28]Stochastic
Multi-timescale DNR
Loss, uncertainty--Optimization
[29]PSO + Reactive Power
Co-optimization
Loss, voltage--Optimization
[30,31,32]DRLMulti-objective-Control
[33]Hybrid QAOALoss--Optimization
[36,37]FA/BPSOLoss, maximize load capacity-Optimization
[38]MISOCPMaximize PV hosting
(closed-loop)
-Optimization
[39]Kruskal + SALoss, hourly 24 h profile,
Switch commutations
--Optimization
This WorkBPSOLoss, TOU import, OLTC,
switch cost
Optimization +
operation
implementation
Table 2. The parameter data of the test distribution network.
Table 2. The parameter data of the test distribution network.
FeederPeak Load
[MW]
Power FactorCustomersFeeder Length
[km]
Switch Devices
G1F12.660.983465914.823
G1F22.700.989426711.783
G1F31.580.996232610.202
G2F14.660.99069495.462
G2F24.100.99549398.452
Table 3. Distribution line parameters.
Table 3. Distribution line parameters.
Line TypeLine Parameters
R1X1R0X0
SAC185 mm20.2106590.2985850.4029421.857875
SAC50 mm20.8219350.3395181.0193291.897538
Table 4. Protection setting of the test network.
Table 4. Protection setting of the test network.
SubstationOvercurrent Protection Setting
Pick-Up Current [A]CurveTMS
G1504VI0.05
G2420EI0.20
Table 5. Operational constraint parameters.
Table 5. Operational constraint parameters.
ParameterSymbolValueUnit
Minimum voltage V m i n 0.95p.u.
Maximum voltage V m a x 1.05p.u.
Maximum loading limit L m a x 80.00%
Emergency loading limit L E m e r 90.00%
Table 6. Economic cost parameters.
Table 6. Economic cost parameters.
Cost ComponentSymbolValueUnit
Switching Operation K s w 16.67USD/operation
OLTC Tap Change K o l t c 33.33USD/step
Reverse Power Flow K r e v e r s e 30,000USD/MWh
Voltage Violation Penalty η v 30,000USD/violation
Overload Penalty η o l 30,000USD/overload
Table 7. BPSO algorithm parameters.
Table 7. BPSO algorithm parameters.
AlgorithmParameterValue
Binary PSO (BPSO)Number of Particles20
Maximum Iterations100
Inertia Weight ( w )0.9
Cognitive Coefficient ( c 1 )2
Social Coefficient ( c 2 )2
Table 8. Switching sequence results for case 1: normal operation.
Table 8. Switching sequence results for case 1: normal operation.
TimeTarget Configuration
Change (Stage 1,2)
Exact Executed
Sequence (Stage 3)
Topology ChangeNetwork
Topology
9:00Close SW11, Open SW101. Close SW11
2. OpenSW10
Radial
Table 9. Simulation results and performance comparison for case 1: normal operation.
Table 9. Simulation results and performance comparison for case 1: normal operation.
MetricBase CaseProposed FrameworkImprovement
Total CostUSD 32,265.40USD 31,680.94USD 584.46 (1.81%)
Total Energy Losses4.5011 MWh4.6450 MWh+0.1439 MWh (+3.20%)
Switching Operations02-
OLTC Tap Changes00Maintained
Maximum Voltage 1.04 p.u.1.04 p.u.Maintained
Minimum Voltage 0.98 p.u.0.97 p.u.−0.01 p.u.
Maximum Loading57.21%47.42%−9.7%
Network TopologyRadialRadialMaintained
Calculation Time-21.37 Min-
Table 10. Switching sequence results for case 2: overvoltage.
Table 10. Switching sequence results for case 2: overvoltage.
TimeTarget Configuration
Change (Stage 1,2)
Exact Executed
Sequence (Stage 3)
Topology Change Network
Topology
9:00Close SW11, Open SW101. Close SW11
2. OpenSW10
Radial
10:00Close SW9, Open SW41. Close SW9
2. OpenSW4
Radial
14:00Close SW12, Open SW51. Close SW12
2. OpenSW5
Radial
Table 11. Simulation results and performance comparison for case 2: overvoltage.
Table 11. Simulation results and performance comparison for case 2: overvoltage.
MetricBase CaseProposed
Framework
Improvement
Total CostUSD 29,489.44USD 28,779.17USD 701.26 (2.37%)
Total Energy Losses4.51 MWh5.01 MWh+0.5 MWh
(+11.08%)
Switching Operations06-
OLTC Tap Changes00Maintained
Maximum Voltage 1.051 p.u.1.046 p.u.−0.005 p.u.
Minimum Voltage 0.981 p.u.0.973 p.u.−0.008 p.u.
Maximum Loading57.21%47.42%−9.79%
Network TopologyRadialRadialMaintained
Calculation Time-22.35 Min-
Table 12. Switching sequence results for case study 3: undervoltage.
Table 12. Switching sequence results for case study 3: undervoltage.
TimeTarget Configuration
Change (Stage 1,2)
Exact Executed
Sequence (Stage 3)
Topology ChangeNetwork
Topology
9:00Close SW11, Open SW101. Close SW11
2. OpenSW10
Radial
19:00Close SW31. Close SW3Mesh
20:00Close SW10, Open SW11No safe switch
sequence
Mesh
21:00Open SW51. OpenSW5Radial
Table 13. Simulation results and performance comparison for case 3: undervoltage.
Table 13. Simulation results and performance comparison for case 3: undervoltage.
MetricBase CaseProposed FrameworkImprovement
Total CostUSD 33,915.86USD 33,381.75USD 534.11 (1.57%)
Total Energy Losses5.66 MWh5.37 MWh−0.29 MWh
(−5.13%)
Switching Operations04-
OLTC Tap Changes44Maintained
Maximum Voltage 1.04 p.u.1.04 p.u.Maintained
Minimum Voltage 0.94 p.u.0.97 p.u.+0.03 p.u.
Maximum Loading 74.61%64.01%−14.21%
Network TopologyRadial onlyRadial + Mesh-
Calculation Time-24.45 Min-
Table 14. Switching sequence results for case 4: overload and reverse power flow.
Table 14. Switching sequence results for case 4: overload and reverse power flow.
TimeTarget Configuration
Change (Stage 1,2)
Exact Executed
Sequence (Stage 3)
Topology ChangeNetwork
Topology
10:00Close SW11, Open SW71. Close SW11
2. Open SW7
Radial
11:00Close SW12, Close SW3
Open SW2, Open SW6
1. Close SW12
2. Close SW3
3. Open SW2
4. Open SW6
Radial
12:00Close SW6, Open SW41. Close SW6
2. Open SW4
Radial
15:00Close SW4, Open SW111. Close SW4
2. Open SW11
Radial
Table 15. Simulation results and performance comparison for case 4.
Table 15. Simulation results and performance comparison for case 4.
MetricBase CaseProposed FrameworkImprovement
Total CostUSD 28,644.36USD 26,015.14USD 2629.22
(9.18%)
Total Energy Losses5.17 MWh5.27 MWh0.10 MWh
(+1.93%)
Switching Operations010-
OLTC Tap Changes00Maintained
Maximum Voltage 1.04 p.u.1.05 p.u.+0.01 p.u.
Minimum Voltage 0.98 p.u.0.97 p.u.−0.01 p.u.
Maximum Loading 130.62%63.43%−51.44%
Network TopologyRadial Radial -
Calculation Time-32.51 Min-
Table 16. Sensitivity of operational performance indicators to switching cost variations—overvoltage case study.
Table 16. Sensitivity of operational performance indicators to switching cost variations—overvoltage case study.
Rate   of   Change   in   K s w (%)Total Switching Operations (ops)Total
Operational Cost (USD/day)
Δ Total
Operational
Cost (%)
Daily
Energy Loss (MWh)
Δ Energy Loss (%)Congestion
−401233,335.02−0.145.08+1.50None
−201233,662.15+0.846.60+31.93None
0 (Base)633,381.750.005.010.00None
+20633,535.31+0.464.61−7.83None
+40434,092.78+2.134.69−6.34None
Table 17. Feature-level comparison of the proposed framework against representative dynamic cost-aware and switching-sequence-aware DNR methods.
Table 17. Feature-level comparison of the proposed framework against representative dynamic cost-aware and switching-sequence-aware DNR methods.
FeatureDynamic Cost-Aware Method [39]Switching-Sequence-Aware Method [36,37]Proposed Framework
Objective
function
Hourly: active power loss + capacitor bank cost +
unsupplied energy cost
Daily power loss ratio +
voltage stability index
TOU energy import cost + OLTC operational cost + switching cost
TOU energy
pricing
No No Yes (dual-period TOU from
substations G1 and G2)
Hourly
reconfiguration
Yes (1008 h; prior-hour topology used as warm-start)No (single fixed configuration determined for the full day)Yes (independent optimization at each hourly interval)
Temporary meshed
topology
No (radial topology is an
inherent property of the Minimum Spanning Tree)
No (radial enforced by
graph-theory check)
Yes (Stage 2: temporary meshed operation activated when radial reconfiguration is insufficient)
Switching
sequence
validation
Not addressedYes (Stage 2 FA: optimal
sequence minimizing transitional losses; close-before-open enforced to prevent bus disconnection)
Yes (Stage 3 deterministic heuristic: voltage and loading feasibility guaranteed at every switching step for both radial and meshed
topology transitions)
Test networkIEEE 118-bus, 11 kVIEEE 33-bus, 12.66 kVReal PEA 22 kV network
Key reported
result
Active power loss reduced from 1298 kW to 253 kW; switching cost USD 1459 over 1008 hDaily power loss reduced by 79.36%; no voltage violations recorded during switching
sequence
Operational cost reduction of 1.57–9.18%; all operational
constraints satisfied across four
congestion case studies
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

Pothinun, T.; Rodkumnerd, P.; Khunkitti, S.; Wirasanti, P.; Watson, N.R. A Practical Operational Framework for Congestion Management in Active Distribution Networks Using Adaptive Radial–Mesh Reconfiguration. Energies 2026, 19, 1809. https://doi.org/10.3390/en19071809

AMA Style

Pothinun T, Rodkumnerd P, Khunkitti S, Wirasanti P, Watson NR. A Practical Operational Framework for Congestion Management in Active Distribution Networks Using Adaptive Radial–Mesh Reconfiguration. Energies. 2026; 19(7):1809. https://doi.org/10.3390/en19071809

Chicago/Turabian Style

Pothinun, Thunpisit, Pannathon Rodkumnerd, Sirote Khunkitti, Paramet Wirasanti, and Neville R. Watson. 2026. "A Practical Operational Framework for Congestion Management in Active Distribution Networks Using Adaptive Radial–Mesh Reconfiguration" Energies 19, no. 7: 1809. https://doi.org/10.3390/en19071809

APA Style

Pothinun, T., Rodkumnerd, P., Khunkitti, S., Wirasanti, P., & Watson, N. R. (2026). A Practical Operational Framework for Congestion Management in Active Distribution Networks Using Adaptive Radial–Mesh Reconfiguration. Energies, 19(7), 1809. https://doi.org/10.3390/en19071809

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