Next Article in Journal
Prospective Evaluation of Gaseous and Mineralized Dual CO2 Sequestration in Mined-Out Area—A Case Study in Yu-Shen Coal Area
Previous Article in Journal
The Impact of Product Environmental Innovation in Process Industries: Evidence from Innovation Efficiency and Performance
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Optimal Power Flow of Unbalanced Distribution Networks Using a Novel Shrinking Net Algorithm

1
Electric Power Research Institute of State Grid Hubei Company Limited, Wuhan 430077, China
2
School of Electrical and Power Engineering, Hohai University, Nanjing 211100, China
*
Author to whom correspondence should be addressed.
Processes 2025, 13(10), 3226; https://doi.org/10.3390/pr13103226
Submission received: 2 September 2025 / Revised: 22 September 2025 / Accepted: 5 October 2025 / Published: 10 October 2025

Abstract

The increasing penetration of distributed energy resources (DERs) in unbalanced distribution networks presents significant challenges for optimal operation, particularly concerning power loss minimization and voltage regulation. This paper proposes a comprehensive Optimal Power Flow (OPF) model that coordinates various assets, including on-load tap changers (OLTCs), reactive power compensators, and controllable electric vehicles (EVs). To solve this complex and non-convex optimization problem, we developed the Shrinking Net Algorithm (SNA), a novel metaheuristic with mathematically proven convergence. The proposed framework was validated using the standard IEEE 123-bus test system. The results demonstrate significant operational improvements: total active power loss was reduced by 32.1%, from 96.103 kW to 65.208 kW. Furthermore, all node voltage violations were eliminated, with the minimum system voltage improving from 0.937 p.u. to a compliant 0.973 p.u. The findings confirm that the proposed SNA is an effective and robust tool for this application, highlighting the substantial economic and technical benefits of coordinated asset control for modern distribution system operators.

1. Introduction

The Optimal Power Flow (OPF) of distribution networks is effective technology to ensure safe and economic operation and overall voltage level. In the distribution network, the on-load tap changer (OLTC) transformers, reactive power compensators, controllable distributed generators, and electric vehicles (EVs) can be used as control devices to improve network performance.
In response to the complex challenges of OPF in modern distribution networks, researchers have proposed a variety of solution methodologies [1,2]. These can be broadly categorized into two main groups: traditional mathematical optimization methods and modern metaheuristic algorithms. Traditional approaches, such as linear programming [3], nonlinear programming [4], and mixed-integer programming [5], can be highly efficient and guarantee optimality for convex problems. However, their effectiveness is often limited when applied to the non-convex and non-differentiable OPF problem characteristic of unbalanced distribution systems. For non-convex problems like OPF, the performance of these solvers is particularly sensitive to the choice of initial values, and they are prone to converging to local optima rather than the global solution. Furthermore, many of these methods require the objective functions and constraints to be differentiable and continuous.
To overcome these limitations, modern metaheuristic algorithms have gained significant popularity. Algorithms such as genetic algorithms (GAs) [6], Particle Swarm Optimization (PSO) [7,8], and others like the crow search optimizer have been successfully applied to various power system optimization problems [9,10], including reactive power planning [7] and economic load dispatch [8]. These methods do not require gradient information, making them well-suited for complex, non-differentiable problems. While powerful, many of these metaheuristics introduce their own set of challenges. Their performance often depends on the careful tuning of several algorithm-specific parameters (e.g., inertia weights in PSO, crossover and mutation rates in GA), and they can be susceptible to premature convergence, especially in the high-dimensional search space of the distribution system OPF problem. This analysis reveals a distinct research gap, highlighting the need for a novel optimization algorithm that combines the robustness of metaheuristics with algorithmic simplicity, requiring minimal parameter tuning while effectively avoiding premature convergence in complex OPF problems. To address this gap, this paper introduces the Shrinking Net Algorithm (SNA). The novelty of SNA lies in two key areas: (1) a unique ‘boundary-in’ search mechanism that initializes the population on the edge of the feasible space to promote a wide initial search; and (2) a simple structure governed by a single primary control parameter: the extension coefficient. These features are specifically designed to enhance robustness while significantly reducing the tuning effort compared to many existing algorithms.
In this paper, with the minimum loss and the reasonable voltage distribution as the objective, the optimization model of modern low-voltage distribution system is established and a novel heuristic intelligent optimization algorithm simulating fishermen fishing, entitled SNA, is proposed. This algorithm, starting from the boundary of the search space and gradually conducting a compressed search toward the interior space, has fewer parameters, stronger global convergence, and is more effective at pursuing the optimal solution. The convergence of the algorithm is mathematically guaranteed, and it is applied to solve the optimization problem of three-phase asymmetrical distribution systems. This paper is arranged as following: Section 2 presents the Optimal Power Flow model; Section 3 discusses the calculation method for power flow; Section 4 proposes a novel heuristic intelligent optimization algorithm—SNA; a case study is implemented in Section 5; and conclusions are drawn in Section 6.

2. Optimal Power Flow Model

In general, there are only two types of nodes in traditional low-voltage distribution networks: balance nodes and PQ nodes. With the penetration of distributed power resources and new types of loads, more types of nodes should be defined. Moreover, there are asymmetrical three-phase line impedance and unbalanced three-phase loads that usually exist, and their impedance ratios are relatively larger than those of transmission networks.
The OPF problem in this study is formulated as a static optimization to determine the best operating state of the network at a specific moment in time, typically corresponding to a critical condition such as peak load. The primary goal is to minimize total active power loss while maintaining all node voltages within acceptable limits. To ensure voltage security, any violation of these limits is incorporated as a penalty term in the objective function. This optimization is subject to constraints imposed by the power flow equations and the operational limits of all controllable assets, including reactive power compensators, OLTC transformers, distributed resources, and EVs. The objective function is
min f = ( i , j ) B ν Φ I i j ( ν ) 2 Z i j ( ν ) + η i N ν Φ Δ V i ( ν ) V i ( ν ) max V i ( ν ) min
where the indices i and j represent system nodes from the set of all nodes N = { 1 , 2 , , N B } , where NB is the total number of nodes; the set of all branches is denoted by B N × N , where each branch is an ordered pair (i,j) indicating an upstream–downstream connection; the index ν represents the phase from the set of phases Φ = {A,B,C}; key electrical variables include the voltage V i ( ν ) at any node i, the current I i j ( ν ) . in a branch, and the corresponding branch impedance Z i j ( ν ) ; η is the coefficient of the penalty factor; and Δ V i ( ν ) is the voltage violation at node i, which is determined by the maximum and minimum allowable voltage limits, V i ( ν ) max and V i ( ν ) min .
The power balance for the entire network is expressed in a compact vector form, where the specified net power injection must equal the power calculated from the system’s voltage state:
P g + P e v P l = P c a l c ( e , f )
Q g + Q c Q l = Q c a l c ( e , f )
where P g , P p , P l are vectors representing the active power from generators, EV, and loads for all nodes and phases in the system; Q g , Q c , Q l . are vectors representing the reactive power from generators, compensation devices, and loads for all nodes and phases; P c a l c ( e , f ) and Q c a l c ( e , f ) are vector functions that compute the resulting active and reactive power injections, respectively, based on the system’s voltage state; and e, f are vectors containing the real and imaginary parts of all node voltages, respectively.
The voltage at a downstream node is determined by the voltage at the upstream node and the voltage drop across the connecting branch:
V j ( ν ) = V i ( ν ) Z i j ( ν ) I i j ( ν ) ( i , j ) B , ν Φ
The voltage violation term used in the objective function is defined as
Δ V i ( ν ) = V i ( ν ) V i ( ν ) max V i ( ν ) > V i ( ν ) max 0 V i ( ν ) min V i ( ν ) V i ( ν ) max V i ( ν ) min V i ( ν ) V i ( ν ) < V i ( ν ) min
The branch currents are calculated based on the sum of all downstream currents, as defined by the following relationship:
I i j ( ν ) = I j ( ν ) + m j I j m ( ν )
where I j ( ν ) is the load current of node j of phase ν .
All controllable assets and system voltages must operate within their specified physical and operational limits:
Q c ( ν ) min Q c ( ν ) Q c ( ν ) max c { 1 , , N C } , ν Φ
T t ( ν ) min T t ( ν ) T t ( ν ) max t { 1 , , N T } , ν Φ
P g ( ν ) min P g ( ν ) P g ( ν ) max g { 1 , , N G } , ν Φ
P e v ( ν ) min P e v ( ν ) P e v ( ν ) max p { 1 , , N E V } , ν Φ
where the model incorporates several types of controllable devices, including the reactive power Q c ( ν ) of the cth compensation device, the tap position T t ( ν ) of the tth OLTC transformer, the active power output P g ( ν ) of the gth distributed resource, and the charging/discharging power P p ( ν ) of the pth EV; each of these controllable variables is bound by its respective maximum and minimum limits (e.g., Q c ( ν ) max , Q c ( ν ) min ). Finally, the total numbers of these devices in the system are denoted by NC, NT, NG, and NP, respectively.
Due to the existence of the penalty term η i ν Δ V i ( ν ) V i ( ν ) max V i ( ν ) min , the objective function is the nonlinear and non-differentiable optimization problem, which can be solved by the heuristic intelligent optimization algorithm.
During the optimization process, a key task is to calculate the power flow of the unbalanced three-phase distribution network, which is radial and includes assets such as distributed power resources, EVs, and OLTCs. An effective calculation method is discussed in the next section.

3. Power Flow Calculation Method

To accurately solve the power flow for modern distribution networks, which can be weakly meshed (i.e., containing loop circuits), an advanced solution method is required. Standard forward–backward sweep algorithms are designed for purely radial networks. To handle loops, we employ a common network analysis technique based on Kron’s reduction. The procedure involves notionally opening each loop circuit by removing a single branch within the loop. This converts the network topology into a purely radial one, which can be solved with a standard forward–backward sweep. The effect of the removed branch is then compensated for by calculating and applying a pair of equivalent power injections at the two nodes where the branch was disconnected. This process is iterated until the voltage difference across the “open” points converges to a value near zero, at which point the solution accurately reflects the behavior of the original looped network [11].

3.1. Branch Model

3.1.1. Line

In a low-voltage distribution network, overhead lines and cables coexist. Ignoring the equivalent shunt branch to earth [12], the impedance in matrix is
Z L = Z a a Z a b Z a c Z b a Z b b Z b c Z c a Z c b Z c c
where ZL is a 3 × 3 impedance matrix, whose diagonal elements have self-impedance and the remaining elements have mutual impedance. If a line or cable is two-phase or single-phase, the corresponding self-impedance and mutual impedance would be set as zero.

3.1.2. Transformer

The tap position can be adjusted to regulate the voltage magnitude of the feeders in the secondary side, and the voltage angle difference in the two sides of the transformer is determined after the connection modes of the windings. The equivalent circuit of two windings transformer is shown in Figure 1.
The positive, negative, and zero sequence components of the currents and the voltages at the two sides satisfy
I H ( 1 ) I H ( 2 ) I H ( 0 ) = 1 k I n ( 1 ) e j θ I n ( 2 ) e j θ I n ( 0 )
V n ( 1 ) V n ( 2 ) V n ( 0 ) = 1 k V H ( 1 ) e j θ V H ( 2 ) e j θ V H ( 0 )
Based on the symmetrical component method, the phase voltage and phase current satisfy
I H A I H B I H C = 1 3 k A I n A I n B I n C
V n A V n B V n C = 1 3 k B V H A V H B V H C
A = e j θ + e j θ + λ a e j θ + a 2 e j θ + λ a 2 e j θ + a e j θ + λ a 2 e j θ + a e j θ + λ e j θ + e j θ + λ a e j θ + a 2 e j θ + λ a e j θ + a 2 e j θ + λ a 2 e j θ + a e j θ + λ e j θ + e j θ + λ
B = e j θ + e j θ + λ a e j θ + a 2 e j θ + λ a 2 e j θ + a e j θ + λ a 2 e j θ + a e j θ + λ e j θ + e j θ + λ a e j θ + a 2 e j θ + λ a e j θ + a 2 e j θ + λ a 2 e j θ + a e j θ + λ e j θ + e j θ + λ
where k is the transformer voltage ratio; θ is the angle difference between the two sides; a = e j 120 ° is the rotation factor; and λ is the mode factor of the zero sequence current. λ is set to 0 if the zero sequence current cannot flow back; otherwise, it is set to 1.
Suppose that Z 1 , Z 2 , and Z 0 are the positive, negative, and zero sequence impedance of the OLTC transformer, respectively. In general, Z 1 = Z 2 . The impedance of the transformer is
Z T = Z a a Z a b Z a c Z b a Z b b Z b c Z c a Z c b Z c c = 1 3 Z 0 + 2 Z 1 Z 0 Z 1 Z 0 Z 1 Z 0 Z 1 Z 0 + 2 Z 1 Z 0 Z 1 Z 0 Z 1 Z 0 Z 1 Z 0 + 2 Z 1

3.2. Injection Power Model

3.2.1. The General Load

General loads can be equivalent to three types: constant power (PQ), constant current (I), and constant impedance (Z).

3.2.2. EVs

EVs usually absorb constant charging active power from the power system, and can also be dispatched by the power system under special conditions. Their charging power is changeable, and they can even supply energy for the power system. EVs are seen as PQ nodes in this paper, and their charging and discharging power is assumed to be controllable [13,14].

3.2.3. Distributed Power Resource

There are many kinds of distributed power resources, which can be divided into several types [12] according to their operation characteristics in distribution networks:
  • PV nodes, such as micro gas turbines, fuel cells, and other controllable distributed power resources;
  • Constant current (I) nodes, such as photovoltaic generation systems, energy storage devices, etc.;
  • PQ(V) nodes, such as the combined heat and power asynchronous units of power frequency, whose active power output is constant, while reactive power output is relevant to the node voltage;
  • PQ nodes, such as the combined heat and power synchronous units of power frequency, etc.
I nodes and PQ nodes are transformed directly into the injection current to be calculated in the forward backward sweep method. For PV nodes, some improvements should be implemented when calculated in the forward or backward sweep method.

3.3. Improvement Method for Loop Circuit and PV Node

The traditional forward–backward sweep method cannot be directly applied to networks with loop circuits or multiple PV nodes. The improvement method involves treating each loop and PV node connection as an open point [15,16].
The relationship between voltage and current in a power system is fundamentally described by Ohm’s law. For a branch between two nodes, i and j, which has been notionally opened, the voltage difference across the opening is given by
Δ V i j = V i V j = Z l o o p · I c o m p
where Z l o o p is the impedance of the looped path and I c o m p is the compensating current that would flow through the original branch.
The complex power injected at node i can be expressed as S i = V i I i * . If we assume that the system is close to convergence, the voltage magnitude at all nodes is approximately 1.0 p.u. ( | V i | ) and the voltage angles are small. Under these standard linearization assumptions, the compensating current can be approximated from the compensating power S c o m p as I c o m p ( S c o m p / V i ) * S c o m p * . Substituting this into the voltage difference equation gives
Δ V i j Z l o o p · S c o m p * = ( R + j X ) ( P c o m p j Q c o m p )
By separating the real and imaginary parts of the voltage difference ( Δ V i j = Δ V r e + j Δ V i m ), we can establish a direct relationship between the voltage difference and the compensating power components:
Δ V r e Δ V i m = R X X R P c o m p Q c o m p
Inverting this matrix relationship allows us to calculate the required active and reactive compensation power ( P c o m p and Q c o m p ) based on the calculated voltage difference across the open points from the previous power flow iteration:
P c o m p Q c o m p = 1 R 2 + X 2 R X X R Δ V r e Δ V i m
These calculated compensation powers are then added to the injection power at the relevant nodes in the next iteration of the power flow calculation. The process terminates when the voltage difference across all open points is below a predefined tolerance, indicating convergence.

3.4. Process of the Power Flow Calculation

The complete iterative procedure for calculating the power flow in a weakly meshed, unbalanced distribution network is as follows:
Step 1 (Initialization): Read the network data, including line impedances, load data, and device parameters. Initialize all node voltages, typically to 1.0 p.u.
Step 2 (Topology Modification): Identify all loop circuits and PV nodes. For each loop, select one branch to notionally open. Initialize the compensation power injections ( P c o m p and Q c o m p ) at all open points to zero. The network is now treated as a radial system.
Step 3 (Injection Current Calculation): For the current iteration, calculate the total injection current at each node. This includes contributions from constant power PQ loads, constant current I loads, and the previously calculated compensation powers for loops and PV nodes.
Step 4 (Forward Sweep—Branch Currents): Starting from the network extremities and moving toward the substation, calculate the current flowing in each branch by summing the currents of all downstream branches and the injection current at the downstream node.
Step 5 (Backward Sweep—Node Voltages): Starting from the substation and moving toward the extremities, calculate the voltage at each downstream node using the voltage of its upstream node and the calculated voltage drop across the connecting branch.
Step 6 (Convergence Check and Update): Calculate the voltage differences ( Δ V r e and Δ V i m ) across all the notionally opened points from Step 2. Check if the magnitude of these voltage differences is below a predefined convergence tolerance. If converged, the power flow solution is found. Terminate the algorithm and output the results (voltages, currents, power losses); otherwise, use (20) to update the compensation power injections ( P c o m p and Q c o m p ) for each open point based on the calculated voltage differences. Return to Step 3 for the next iteration.

4. Shrinking Net Algorithm

For solving the optimization model in Section 2, a novel heuristic intelligent optimization algorithm simulating fishermen fishing, entitled the Shrinking Net Algorithm, is proposed. The algorithm begins its compressed search from the boundary of the search space, moving toward the global optimal solution.

4.1. Terms

Dimension: The number of optimization variables, denoted by D.
Node: A feasible value, X i = [ X i 1 , X i 2 , , X i D ] , where X i d is the d t h dimensional component of the i t h node, d = 1 , 2 , , D .
Vertex: A special kind of node, composed of groups of each variable’s upper and lower limits. For a search space of D dimensions, the number of vertices is 2 D .
Net Surface: A collection of all the initialized nodes, composed of vertices and a number of random nodes on the boundary surface, which is formed by the hyperplane of the upper and lower limits of each dimension. If N nodes are selected randomly on each hyperplane, the number of nodes in the net surface is P , and P = 2 D + 2 N D .
Optimal Node: An optimal solution of the current iterative round.
Shrink: The operation of updating the iteration of all nodes.
Extension Coefficient: A key parameter to influence the change in all nodes in the shrinking operation.
Violation: The value of a node out of its upper and lower limits in the process of shrinking.

4.2. Mathematical Analysis of the Update Mechanism

The core of the SNA’s search behavior is encapsulated in the node update equation:
X i ( m + 1 ) = X i ( m ) + C m M ξ ˜ ( m ) ( X b e s t X i ( m ) )           ( C 1 ) m M ς ˜ ( m ) ( X b e s t X i ( m ) )
where i = 1 , 2 , , P , m = 1 , 2 , , M 1 ; P is the total number of nodes on the net surface; M is the maximum iteration time; X i ( m ) is i t h node in the m t h iteration; X b e s t is the current optimal node; C is the extension coefficient, whose value influences the global and local searching ability of SNA; and ξ ˜ ( m ) = [ ξ ˜ 1 ( m ) , ξ ˜ 2 ( m ) , , ξ ˜ D ( m ) ] and ς ˜ ( m ) = [ ς ˜ 1 ( m ) , ς ˜ 2 ( m ) , , ς ˜ D ( m ) ] are the random vectors that evenly distribute between 0 and 1.
The mechanism of (21) is driven by the interplay of a primary convergence vector and an opposing stochastic vector, which are both oriented along the directional axis from the current node X i ( m ) to the best-known solution X b e s t . The influence of these competing terms is scaled by a linearly increasing adaptive weight m M , which ensures that node movements are initially fine-grained and become progressively larger to accelerate convergence in later stages. The use of an iteration-dependent adaptive weight to balance exploration and exploitation is a well-established technique in the field of metaheuristics, notably popularized in variants of PSO [17]. The critical element of this dynamic is the extension coefficient C. It arbitrates the balance between the two randomized terms, directly tuning the algorithm’s exploratory-exploitative character. This strategy of creating a search vector from the interplay of multiple population members shares conceptual similarities with other powerful optimizers, such as Differential Evolution, which uses differences between population vectors to guide its search [18].

4.3. Basic Procedure of SNA

Step 1: Initialize net surface. When the dimension D of optimization space is relatively low, the net surface is composed of the vertices and random nodes on the dimensional hyperplane; when the dimension is relatively high, in order to avoid the dimensional disaster, simplifying the net surface and ignoring all the vertices, the net surface is composed only by random nodes on each dimensional hyperplane, whose number is 2 N D .
Step 2: Calculate the objective function values of each node on the net surface and obtain the global optimal value X b e s t .
Step 3: Shrink. Each node is updated according to (21).
Step 4: Judge violation if any variable’s value after an update exceeds its upper or lower limits.
Step 5: Return to Step 2 until m = M 1 , and then output the optimization results.
The optimal node of each iteration after being updated according to (21) is still itself, and it is replaced only when a more optimal node appears, which ensures the non-inferiority of the nodes. The complete step-by-step process of the proposed SNA is illustrated in the flowchart shown in Figure 2.

4.4. Analysis of Convergence

Equation (21) can be transformed as
X b e s t X i ( m + 1 ) X b e s t X i ( m ) = 1 C m M ξ ¯ ( m ) + ( C 1 ) m M ζ ¯ ( m )
If X b e s t is constant in the process of iteration, suppose that
Q ( m ) = 1 C m M ξ ˜ ( m ) + ( C 1 ) m M ς ˜ ( m )
Then
X i ( m + 1 ) = X b e s t ( 1 Q ( m ) ) + X i ( m ) Q ( m )              = X b e s t ( 1 Q ( m ) Q ( m 1 ) ) + X i ( m 1 ) Q ( m ) Q ( m 1 )              =              = X b e s t ( 1 j = 1 m Q ( j ) ) + X i ( 1 ) j = 1 m Q ( j )
where Q ( m ) is the ratio of the distance between current node and the optimal node in the recent two iterations. If Q ( m ) > 1 , as the iteration proceeds, the current node moves further and further away from the optimal one; if Q ( m ) < 1 , it means that the current node and the optimal node are getting closer.
According to (23), Q d ( m ) , the d t h element in Q ( m ) = [ Q 1 ( m ) , Q 2 ( m ) , , Q D ( m ) ] , where d = 1 , 2 , , D , can be expressed as
Q d ( m ) = 1 C m M ξ ˜ d ( m ) + ( C 1 ) m M ς ˜ d ( m )
Because ξ ˜ d ( m ) and ς ˜ d ( m ) are the random numbers mutually independent and uniformly distributed in [0, 1], the expectation value of Q d ( m ) is
E Q d ( m ) = 1 M 1 m = 1 M 1 Q d ( m ) = 1 C ( 1 M 1 m = 1 M 1 m M ) ( 1 M 1 m = 1 M 1 ξ ˜ d ( m ) ) + ( C 1 ) ( 1 M 1 m = 1 M 1 m M ) ( 1 M 1 m = 1 M 1 ς ˜ d ( m ) ) = 1 1 2 C ( 1 M 1 m = 1 M 1 m M ) + 1 2 ( C 1 ) ( 1 M 1 m = 1 M 1 m M ) = 1 1 2 1 M 1 1 M M ( M 1 ) 2 = 0.75
Thus, it can be seen that for a sufficiently large M, j = 1 m Q ( j ) equals to 0, which is not influenced by the value of extension coefficient C. Equation (24) shows that X i ( m + 1 ) finally tends to X b e s t and is irrelevant to X i ( 1 ) .
An expectation value of Q d ( m ) equaling to 0.75 shows that the nodes on the net surface become closer to the optimal node. In fact, the value of Q d ( m ) depends on the two random numbers ξ ˜ d ( m ) and ς ˜ d ( m ) and extension coefficient C, so a suitable extension coefficient can accelerate the convergence of SNA.

4.5. Selection of Extension Coefficient

The extension coefficient is the only parameter needed to be set in SNA, and it effects the value of Q d ( m ) , according to (25),
Q d ( m ) [ 1 + ( C 1 ) m M , 1 C m M ] C < 0 [ 1 m M , 1 ] 0 C 1 [ 1 C m M , 1 + ( C 1 ) m M ] C > 1
When 0 C 1 , Q d ( m ) is in the (0, 1], which means that X i ( m + 1 ) is gradually getting closer to X b e s t in one direction, which reflects the local convergence of SNA; when C is not in (0, 1], Q d ( m ) may be less than 0 or more than 1, which reflects the global optimization ability of SNA.
Making further analysis on the final several rounds of iterations, when m is large enough, and C [ 0 , 1 ] , Q d ( m ) belongs to (0, 1] and is uniformly distributed in the range of its value because of random numbers ξ ˜ d ( m ) and ς ˜ d ( m ) . If X b e s t does not change in the last several rounds of iterations, α ˜ ( j ) = [ α ˜ 1 ( j ) , α ˜ 2 ( j ) , , α ˜ D ( j ) ] is adopted to present Q(j), then
X i ( m + 1 ) = X b e s t ( 1 j = 1 m α ˜ ( j ) ) + X i ( p ) j = p m α ˜ ( j )
which shows that, if m is large enough, j = 1 m α ˜ ( j ) and j = p m α ˜ ( j ) tend to be 0, so no matter how the optimal node changes in early iterations, as long as the optimal node tends to be stable in the final several iterations, all nodes will converge to the optimal node.
Based on the analysis mentioned above, the selecting principles of extension coefficient C are as follows: C is set to be a larger number in the early iterations, such as C > 1, to improve the global optimization ability, and C is set to belong to [0, 1] in the later iterations to guarantee the local convergence.

4.6. Performance Test of the Algorithm

In order to verify the analysis results, “Generalized Schwefel’s Problem” function is selected to test the global search performance of the optimization method. The mathematical function expression is
f ( x , y ) = x sin ( x ) y sin ( y )
where x , y 500 ,   500 . Its search space is shown in Figure 3.
The SNA and standard particle swarm algorithm (PSO) are run 200 times, respectively, for comparison test. The maximum number of iterations is set to be 50, that is, M = 50. In SNA, the two-dimensional space has four hyperplanes, the four sides of the quadrilateral shown in Figure 3, and four vertices, and ten nodes are selected randomly on each hyperplane, that is, N = 10, and then the number of initial nodes is P = 2 D + 2 N D = 2 2 + 2 × 10 × 2 = 44 , and four constant extension coefficients and a variable extension coefficient C = f ( m ) = 20 19.5   m / M are set. In PSO, the group size is also 44, and the value range of the inertia weight ω is [0.5, 1.4], and c 1 = c 2 = 2 [19]. The comparison results of the two algorithms are listed in Table 1, and only the result with highest success rate of converge of PSO is shown from when the inertia weight coefficient ω equals 0.7.
The following conclusions can be drawn based on Table 1:
  • Both SNA and PSO have the ability of global optimization, and may have the situation of local optimum with a specified probability.
  • Taken as a whole, SNA has stronger global optimization ability, better stability, and higher accuracy.
  • When the extension coefficient is constant and is less than 1, SNA loses a certain ability of global optimization in the process of each node strictly moving closer to the optimal node. As the extension coefficient increases, the ability of global optimization is significantly improved, and when the extension coefficient is too large, the optimization accuracy is reduced in the later iterations, and each node may even present the state of dispersing in the optimization process, all of which reduce the optimization success rate.
  • By selecting the extension coefficient that automatically adapts to the varying iteration times, the ability of global optimization of SNA is improved and the optimization accuracy is higher, which verifies the selection principles of the extension coefficient mentioned above.

4.7. Application of SNA to the Optimal Power Flow Problem

To solve the OPF model formulated in Section 2, the SNA is specifically tailored as outlined below. Each component of the SNA is mapped directly to a feature of the OPF problem, ensuring a targeted and efficient search for the optimal operating point.
  • Defining a Node: In the context of this OPF problem, a single node or candidate solution Xi in the SNA population is a multi-dimensional vector. Each element of this vector corresponds to a controllable variable in the distribution network. The dimension of the search space, D, is therefore the total number of controllable assets: D = NT + NC + NG + NEV.
  • Initialization of the Net Surface: The initial population of candidate solutions is generated by creating vectors where the values for each controllable variable are set at or near their operational limits. This aligns with SNA’s boundary-in-search mechanism, ensuring that the initial search covers the entire feasible operating range of the controllable devices.
  • Evaluating the Objective Function: For each candidate solution vector Xi in the population, its fitness is evaluated by solving the full three-phase unbalanced power flow, as described in Section 3. The control variables from the vector Xi are used as inputs to the power flow calculation. The resulting system state is then used to calculate the objective function value f(Xi), which includes both the total active power loss and the penalty for any voltage violations.
  • The Shrinking Process: During each iteration, the SNA’s update equation is applied to every solution vector Xi. The algorithm shrinks the population towards the current best-known solution Xbest. If any variable in a vector is updated to a value outside its operational limits, it is reset to the corresponding boundary value, thus enforcing the inequality constraints of the OPF model. This iterative process continues until the termination criterion is met, yielding the final optimal set of control parameters.

5. Case Study

In this paper, the IEEE 123-node distribution system is adopted as the test [14,20]. To ensure the reproducibility of our results, all line, transformer, and load parameters are used exactly as specified in the official documentation provided by the IEEE PES Working Group, which is a widely accepted benchmark. The system’s network topology is shown in Figure 4. For this study, the base system was modified by adding a number of controllable distributed power supplies and EVs at eight specific nodes. In addition to these, other controllable devices, such as OLTC transformers and reactive power compensation devices (Cap), were also included in the optimization. The specific parameters and operational limits of all controllable devices are listed in Table 2. The upper and lower voltage limits for each phase of each node are set to 1.05 p.u. and 0.95 p.u., respectively.
The established optimization model and the proposed SNA in this paper are used for the optimization calculation. The maximum number of iterations is set to be 50, that is, M = 50 , and the extension coefficient is selected as C = f ( m ) = 20 19.5   m / M . Corresponding to the 14 controllable devices, two nodes are selected on each boundary randomly, then the scale of initial nodes is P = 2 D + 2 N D = 2 14 + 2 × 2 × 14 = 16,440 , which leads to over-computation. Adopt the method of reducing the initial node scale mentioned above and ignore all vertices; then, the number of initial nodes is 56. The PSO was implemented with a linearly decreasing inertia weight from 0.9 to 0.4 and cognitive and social coefficients both set to 2, which are common settings. Both algorithms were executed for 30 independent trial runs to assess their statistical robustness and consistency. The statistical results of the 30 trial runs for both SNA and PSO are summarized in Table 3. The objective function value is used as the primary metric for comparison.
The results in Table 3 clearly demonstrate the superior performance and reliability of the proposed SNA. The SNA consistently found a more optimal solution, with its best result, 65.208 kW, significantly outperforming PSO’s best result, 66.953 kW. More importantly, the SNA exhibits exceptional robustness, as indicated by a standard deviation of only 0.197 kW, compared to PSO’s much larger 1.324 kW. This implies that the SNA is far less susceptible to premature convergence and can reliably find a near-optimal solution on every run, a crucial advantage for real-world operational planning. The convergence curve for the best SNA run is shown in Figure 5.
When the IEEE 123-node system operates at full load status, the active power loss of the system is 96.103 kW, the voltage of each node is lower, and the average voltage is 0.969 p.u. The voltage of phase C of node 104 is the minimum, which is 0.937 p.u. After optimization, the active power loss is 65.208 kW, the distribution of node voltage is more reasonable, all nodes meet the voltage upper and lower limits, and the average voltage is 1.017 p.u. The voltage of phase A of node 114 is the minimum, which is 0.973 p.u. The optimization results of all the controllable parameters are shown in Table 2. The results reveal an intelligent coordination of assets. For example, the capacitor at node 90 was switched off (0 kvar) because its reactive power injection, while locally beneficial, was found to increase total system losses and cause overvoltage at nearby nodes under this specific load condition. Similarly, the charging of the two EVs was curtailed to 0 kW. While EV charging is a primary function, from a grid optimization perspective, reducing this significant load at a critical peak moment provides substantial benefits in both loss reduction and voltage support for adjacent nodes. The main OLTC tap was adjusted to 1.0618 p.u., proactively boosting the voltage profile across the entire feeder to counteract voltage drop.
While the proposed SNA has demonstrated strong performance, it is important to acknowledge its potential limitations, which also suggest avenues for future research. Firstly, while the simplified boundary initialization strategy is effective, the algorithm’s performance may face challenges in extremely high-dimensional optimization problems, a phenomenon often referred to as the curse of dimensionality. Future work could investigate new initialization strategies to maintain search efficiency in such large-scale problems. Secondly, although SNA benefits from having only a single primary tuning parameter, the extension coefficient C, the results indicate that the algorithm’s performance is sensitive to its value. Developing a more robust, problem-independent adaptive strategy for C would be a valuable enhancement. Finally, the current formulation of SNA is designed for continuous variables. To handle the discrete OLTC tap positions in this study, a post-optimization rounding step was applied. Future research could focus on developing a native mixed-integer or discrete version of SNA to handle such variables more efficiently.

6. Conclusions

This paper introduces the SNA, a novel and conceptually simple metaheuristic designed to solve the complex OPF problem in unbalanced distribution networks. When validated on the IEEE 123-bus system, the proposed SNA framework proved to be highly effective, reducing active power loss by a significant 32.1% while eliminating all voltage violations. A comparative analysis against standard Particle Swarm Optimization further confirmed SNA’s superior solution quality and robustness, establishing it as a valuable new tool for enhancing grid efficiency and reliability. Despite its strong performance, the SNA presents limitations that also highlight clear avenues for future research. A key limitation is the algorithm’s sensitivity to its single control parameter, the extension coefficient C, which suggests that developing a more robust adaptive strategy would be a valuable enhancement. Additionally, the current continuous version of SNA requires post-processing for discrete variables. A primary direction for future work is therefore the development of a native mixed-integer SNA to handle such optimization tasks more efficiently and expand its applicability.

Author Contributions

Conceptualization, X.X., H.L. and J.W.; methodology, X.X. and L.X.; software, X.X.; validation, X.X.; formal analysis, X.X. and L.X.; investigation, X.X.; resources, M.X.; data curation, M.X.; writing—original draft preparation, X.X.; writing—review and editing, X.X. and J.W.; visualization, X.X.; supervision, H.L. and J.W.; project administration, X.X., L.X. and M.X.; funding acquisition, X.X., L.X. and M.X. All authors have read and agreed to the published version of the manuscript.

Funding

This work is supported by the State Grid Hubei Electric Power Co., Ltd., Technology Project “New Power System Full Voltage Level Simulation Calculation Platform Based on Real time Measurement” (Grant No. B31532241284).

Data Availability Statement

The original contributions presented in this study are included in the article. Further inquiries can be directed to the corresponding author.

Conflicts of Interest

Authors Xun Xu, Liangli Xiong and Menghan Xiao were employed by the company Electric Power Research Institute of State Grid Hubei Company Limited and this study received funding from the State Grid Hubei Electric Power Co., Ltd. The remaining authors declare that they have no known competing financial interests or personal relationships that could have appeared to influence the work reported in this paper.

Abbreviations

The following abbreviations are used in this manuscript:
OLTCon-load tap changer
EVselectric vehicles
SNAshrinking net algorithm
PSOparticle swarm algorithm

References

  1. Naderi, E.; Narimani, H.; Pourakbari-Kasmaei, M.; Cerna, F.V.; Marzband, M.; Lehtonen, M. State-of-the-Art of Optimal Active and Reactive Power Flow: A Comprehensive Review from Various Standpoints. Processes 2021, 9, 1319. [Google Scholar] [CrossRef]
  2. Grigoras, G.; Livadariu, B.; Neagu, B.-C. Data Clustering-Driven Fuzzy Inference System-Based Optimal Power Flow Analysis in Electric Networks Integrating Wind Energy. Processes 2025, 13, 676. [Google Scholar] [CrossRef]
  3. Fan, Z.; Lou, L.; Zhang, J.; Zhou, D.; Shi, Y. Improving Linear OPF Model via Incorporating Bias Factor of Optimality Condition. IEEE Trans. Power Syst. 2024, 39, 6753–6763. [Google Scholar] [CrossRef]
  4. Shaheen, A.M.; El-Sehiemy, R.A.; Elattar, E.E.; Abd-Elrazek, A.S. A modified crow search optimizer for solving non-linear OPF problem with emissions. IEEE Access 2021, 9, 43107–43120. [Google Scholar] [CrossRef]
  5. Ali, A.; Abbas, G.; Keerio, M.U.; Koondhar, M.A.; Chandni, K.; Mirsaeidi, S. Solution of constrained mixed-integer multi-objective optimal power flow problem considering the hybrid multi-objective evolutionary algorithm. IET Gener. Transm. Distrib. 2023, 17, 66–90. [Google Scholar] [CrossRef]
  6. Shaheen, M.A.; Hasanien, H.M.; Turky, R.A.; Ćalasan, M.; Zobaa, A.F.; Abdel Aleem, S.H. Opf of modern power systems comprising renewable energy sources using improved chgs optimization algorithm. Energies 2021, 14, 6962. [Google Scholar] [CrossRef]
  7. Candra, O.; Alghamdi, M.I.; Hammid, A.T.; Alvarez, J.R.N.; Staroverova, O.V.; Hussien Alawadi, A.; Marhoon, H.A.; Shafieezadeh, M.M. Optimal distribution grid allocation of reactive power with a focus on the particle swarm optimization technique and voltage stability. Sci. Rep. 2024, 14, 10889. [Google Scholar] [CrossRef] [PubMed]
  8. Salaria, U.A.; Menhas, M.I.; Manzoor, S. Quasi oppositional population based global particle swarm optimizer with inertial weights (QPGPSO-W) for solving economic load dispatch problem. IEEE Access 2021, 9, 134081–134095. [Google Scholar] [CrossRef]
  9. Meraihi, Y.; Gabis, A.B.; Ramdane-Cherif, A.; Acheli, D. A comprehensive survey of Crow Search Algorithm and its applications. Artif. Intell. Rev. 2021, 54, 2669–2716. [Google Scholar] [CrossRef]
  10. Jiang, M.; Xu, Y.; Zhang, D.; Liu, Y.; Du, Q.; Gao, X.; Qi, S.; Zou, H. Research on an Active Distribution Network Planning Strategy Considering Diversified Flexible Resource Allocation. Processes 2025, 13, 2254. [Google Scholar] [CrossRef]
  11. Kumar, B.V.; Farhan, A. Optimal simultaneous allocation of electric vehicle charging stations and capacitors in radial distribution network considering reliability. J. Mod. Power Syst. Clean Energy 2024, 12, 1584–1595. [Google Scholar] [CrossRef]
  12. Mi, X.; Liu, Q.; Geng, B.; Zhu, Y. Research on site selection and capacity determination problem based on improved particle swarm algorithm. Sci. Rep. 2025, 15, 21201. [Google Scholar] [CrossRef]
  13. Shi, X.; Xu, Y.; Guo, Q.; Sun, H.; Zhang, X. Day-ahead distributionally robust optimization-based scheduling for distribution systems with electric vehicles. IEEE Trans. Smart Grid 2022, 14, 2837–2850. [Google Scholar] [CrossRef]
  14. Jian, J.; Zhang, M.; Xu, Y.; Tang, W.; He, S. An analytical polytope approximation aggregation of electric vehicles considering uncertainty for the day-ahead distribution network dispatching. IEEE Trans. Sustain. Energy 2023, 15, 160–172. [Google Scholar] [CrossRef]
  15. Bijwe, P.; Raju, G.V. Fuzzy distribution power flow for weakly meshed systems. IEEE Trans. Power Syst. 2006, 21, 1645–1652. [Google Scholar] [CrossRef]
  16. Bizzarri, F.; del Giudice, D.; Linaro, D.; Brambilla, A. Partitioning-based unified power flow algorithm for mixed MTDC/AC power systems. IEEE Trans. Power Syst. 2021, 36, 3406–3415. [Google Scholar] [CrossRef]
  17. Yang, X.; Yuan, J.; Yuan, J.; Mao, H. A modified particle swarm optimizer with dynamic adaptation. Appl. Math. Comput. 2007, 189, 1205–1213. [Google Scholar] [CrossRef]
  18. Pant, M.; Zaheer, H.; Garcia-Hernandez, L.; Abraham, A. Differential Evolution: A review of more than two decades of research. Eng. Appl. Artif. Intell. 2020, 90, 103479. [Google Scholar] [CrossRef]
  19. Altaf, M.; Yousif, M.; Ijaz, H.; Rashid, M.; Abbas, N.; Khan, M.A.; Waseem, M.; Saleh, A.M. PSO-based optimal placement of electric vehicle charging stations in a distribution network in smart grid environment incorporating backward forward sweep method. IET Renew. Power Gener. 2024, 18, 3173–3187. [Google Scholar] [CrossRef]
  20. IEEE PES Distribution System Analysis Subcommittee’s Distribution Test Feeder Working Group. 123-Bus Test Feeder Case. Available online: http://ewh.ieee.org/soc/pes/dsacom/testfeeders/index.html (accessed on 7 March 2025).
Figure 1. Equivalent circuit of transformer.
Figure 1. Equivalent circuit of transformer.
Processes 13 03226 g001
Figure 2. Flow chart of the proposed shrinking net algorithm.
Figure 2. Flow chart of the proposed shrinking net algorithm.
Processes 13 03226 g002
Figure 3. The search space of the test function.
Figure 3. The search space of the test function.
Processes 13 03226 g003
Figure 4. IEEE 123-node system.
Figure 4. IEEE 123-node system.
Processes 13 03226 g004
Figure 5. Convergence curve of SNA.
Figure 5. Convergence curve of SNA.
Processes 13 03226 g005
Table 1. Statistics of optimization results.
Table 1. Statistics of optimization results.
AlgorithmMinimumAverageStandard DeviationConvergence Rate
SNAC = 0.5−837.966−812.05645.92777.5%
C = 5−837.966−822.56939.93187.0%
C = 15−837.966−833.88620.96998.5%
C = 30−837.966−804.49762.29380.0%
C = f(m)−837.966−835.00518.53897.5%
PSO−837.966−753.52989.55746.5%
Table 2. The parameters of controllable devices and the optimization results.
Table 2. The parameters of controllable devices and the optimization results.
NodePhaseTypeLimitInitial ValueOptimal ValueUnit
26CDG[0, 280]0226.337kW
32ADG[0, 100]0100kW
60ADG[0, 40]040kW
67ABCDG[0, 100]0100kW
76ABCDG[0, 100]0100kW
95ABCDG[0, 100]0100kW
36BEV[−40, 0]−400kW
109AEV[−4.8, 0]−4.80kW
83ABCCap[0, 600]600600kvar
88BCap[0, 50]5050kvar
90BCap[0, 50]500kvar
92CCap[0, 500]5050kvar
150–149ABCOLTC[0.9, 1.1]11.0618p.u.
61–610ABCOLTC[0.9, 1.1]11p.u.
Table 3. Statistical comparison of SNA and PSO for the OPF problem.
Table 3. Statistical comparison of SNA and PSO for the OPF problem.
AlgorithmBest Result (kW)Worst Result (kW)Mean (kW)Std. Deviation (kW)
SNA65.20865.81265.4310.197
PSO66.95371.24568.8161.324
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

Xu, X.; Xiong, L.; Xiao, M.; Liu, H.; Wang, J. Optimal Power Flow of Unbalanced Distribution Networks Using a Novel Shrinking Net Algorithm. Processes 2025, 13, 3226. https://doi.org/10.3390/pr13103226

AMA Style

Xu X, Xiong L, Xiao M, Liu H, Wang J. Optimal Power Flow of Unbalanced Distribution Networks Using a Novel Shrinking Net Algorithm. Processes. 2025; 13(10):3226. https://doi.org/10.3390/pr13103226

Chicago/Turabian Style

Xu, Xun, Liangli Xiong, Menghan Xiao, Haoming Liu, and Jian Wang. 2025. "Optimal Power Flow of Unbalanced Distribution Networks Using a Novel Shrinking Net Algorithm" Processes 13, no. 10: 3226. https://doi.org/10.3390/pr13103226

APA Style

Xu, X., Xiong, L., Xiao, M., Liu, H., & Wang, J. (2025). Optimal Power Flow of Unbalanced Distribution Networks Using a Novel Shrinking Net Algorithm. Processes, 13(10), 3226. https://doi.org/10.3390/pr13103226

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