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
where the indices
i and
j represent system nodes from the set of all nodes
, where
NB is the total number of nodes; the set of all branches is denoted by
, 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
at any node
i, the current
. in a branch, and the corresponding branch impedance
;
is the coefficient of the penalty factor; and
is the voltage violation at node
i, which is determined by the maximum and minimum allowable voltage limits,
and
.
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:
where
,
,
are vectors representing the active power from generators, EV, and loads for all nodes and phases in the system;
,
,
. are vectors representing the reactive power from generators, compensation devices, and loads for all nodes and phases;
and
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:
The voltage violation term used in the objective function is defined as
The branch currents are calculated based on the sum of all downstream currents, as defined by the following relationship:
where
is the load current of node
j of phase
.
All controllable assets and system voltages must operate within their specified physical and operational limits:
where the model incorporates several types of controllable devices, including the reactive power
of the
cth compensation device, the tap position
of the
tth OLTC transformer, the active power output
of the
gth distributed resource, and the charging/discharging power
of the
pth EV; each of these controllable variables is bound by its respective maximum and minimum limits (e.g.,
,
). 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 , 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
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
Based on the symmetrical component method, the phase voltage and phase current satisfy
where
is the transformer voltage ratio;
is the angle difference between the two sides;
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
,
, and
are the positive, negative, and zero sequence impedance of the OLTC transformer, respectively. In general,
. The impedance of the transformer is
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
where
is the impedance of the looped path and
is the compensating current that would flow through the original branch.
The complex power injected at node
i can be expressed as
. If we assume that the system is close to convergence, the voltage magnitude at all nodes is approximately 1.0 p.u. (
) and the voltage angles are small. Under these standard linearization assumptions, the compensating current can be approximated from the compensating power
as
. Substituting this into the voltage difference equation gives
By separating the real and imaginary parts of the voltage difference (
), we can establish a direct relationship between the voltage difference and the compensating power components:
Inverting this matrix relationship allows us to calculate the required active and reactive compensation power (
and
) based on the calculated voltage difference across the open points from the previous power flow iteration:
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 ( and ) 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 ( and ) 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 ( and ) 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, , where is the dimensional component of the node, .
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 .
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 nodes are selected randomly on each hyperplane, the number of nodes in the net surface is , and .
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:
where
,
;
P is the total number of nodes on the net surface;
M is the maximum iteration time;
is
node in the
iteration;
is the current optimal node;
C is the extension coefficient, whose value influences the global and local searching ability of SNA; and
and
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
to the best-known solution
. The influence of these competing terms is scaled by a linearly increasing adaptive weight
, 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 .
Step 2: Calculate the objective function values of each node on the net surface and obtain the global optimal value .
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 , 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
If
is constant in the process of iteration, suppose that
Then
where
is the ratio of the distance between current node and the optimal node in the recent two iterations. If
, as the iteration proceeds, the current node moves further and further away from the optimal one; if
, it means that the current node and the optimal node are getting closer.
According to (23),
, the
element in
, where
, can be expressed as
Because
and
are the random numbers mutually independent and uniformly distributed in [0, 1], the expectation value of
is
Thus, it can be seen that for a sufficiently large M, equals to 0, which is not influenced by the value of extension coefficient C. Equation (24) shows that finally tends to and is irrelevant to .
An expectation value of equaling to 0.75 shows that the nodes on the net surface become closer to the optimal node. In fact, the value of depends on the two random numbers and 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
, according to (25),
When , is in the (0, 1], which means that is gradually getting closer to in one direction, which reflects the local convergence of SNA; when C is not in (0, 1], 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
,
belongs to (0, 1] and is uniformly distributed in the range of its value because of random numbers
and
. If
does not change in the last several rounds of iterations,
is adopted to present
Q(j), then
which shows that, if
m is large enough,
and
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
where
. 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
, and four constant extension coefficients and a variable extension coefficient
are set. In PSO, the group size is also 44, and the value range of the inertia weight
is [0.5, 1.4], and
=
= 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,
, and the extension coefficient is selected as
. Corresponding to the 14 controllable devices, two nodes are selected on each boundary randomly, then the scale of initial nodes is
, 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.