Professional Documents
Culture Documents
17559/TV-20180525204445
Original scientific paper
Abstract: The paper presents a methodology based on a Modified Binary Bat Algorithm (MBBA) and Improved Seed Population search that provides nearly optimal solutions
to the power loss minimization problem, considering network reconfiguration and a large number of switches. The existence of many switches leads to a very large number
of combinations, making it hard for algorithms to find a good solution. The proposed method is based on eliminating non-feasible solutions and defining an initial matrix with
improved seed population for searching the optimal solution. This seed is used for the random process of the algorithm to produce new solutions and is continually updated
to obtain better results close to the optimal solutions found during the searching process of the metaheuristic algorithm. This algorithm was tested against the Genetic
Algorithm (GA), Particle Swarm Optimization (PSO), and the Seed Population search alone on the modified versions of the IEEE 13-node test and IEEE 123-node test
feeders. From several runs, the proposed method reached the optimal solution more times than the other algorithms and the remainder achieved near-optimal solutions.
With this result, the MBBA provides good options to improve the solutions in the network reconfiguration problem with a large number of switches.
Keywords: Bat Algorithm; Modified Binary Bat Algorithm; power loss minimization; power optimization; reconfiguration; Seed Population
mathematical representation and when it is closed, the problems. This technique avoids clogging in local minima
number "one" is the correct mathematical representation with the aid of random search and works as an iterative
[2], [3]; thus, the distribution network reconfiguration approach. For a complete explanation of the continuous
process becomes a binary approach. Bat algorithm, refer to Yang’s work [20]. The general
Real distribution systems are large enough to consider binary Bat formulation is summarized in the current section
them as large-scale designs and the larger the system the taken from Mirjalili et al. [17].
bigger the combinatorial problem becomes. This is because Bats perform echolocation by decreasing the loudness
the total number of possible combinations is directly and increasing the rate of emitted ultrasonic frequencies
dependent on the number of switches installed in the that are established within a range from maximum to
system as presented in Eq. (2), where comb is the total minimum [17]. In the standard bat algorithm, an artificial
number of possible combinations that change the topology bat has an initial frequency, velocity, and position vectors,
of the system and n is the number of switches installed in which are updated within the iteration process. A
the system: frequency vector is calculated for every bat and is updated
using Eq. (8), where Fi is the ith bat sound frequency and
comb = 2n . (2) Fmin and Fmax are the minimum and maximum selected
frequencies, respectively. A random value is stated as β to
Once a switching operation is performed, the topology change the value of Fi:
of the system is changed and a power flow must be
achieved for evaluating the state of the system, including Fi =Fmin + ( Fmax − Fmin ) β . (8)
radiality, real power loss, node voltage profile, branch
current limits, and feeding of all nodes [19]. The velocity is referred to as the probability for a bat
The objective function for the combinatorial problem to change its position and is presented in Eq. (9), where vik(t
is stated in Eq. (1) and the constraints are listed in Eqs. (3)– + 1) is the ith bat velocity at dimension k in iteration t+1.
(7), where nbr is the total number of branches, N is the vik(t) is the ith bat velocity in the kth dimension in iteration
number of nodes, A is the adjacency matrix that represents t. xik(t) is the ith bat position in the kth dimension in iteration
the connections between nodes and its determinant states t. Gbest is the best so far found position:
whether all nodes are fed or not, g(x) represents the power
flow, and Eq. (5) guarantees the power balance in the
vik ( t + 1=
) vik ( t ) + xik ( t ) - Gbest Fi . (9)
system. Uimin is the lower voltage node limit, Ui is the
voltage at node i, Uimax is the upper voltage node limit, Il is
the current flowing through branch l, and Ilmax is the upper For binary approaches, the V-shaped transfer function
thermal limit of the conductor material of branch l: is used to convert the calculated velocity to a binary space
as given in Eq. (10), where V(vik(t + 1)) is the V-shaped
nbr= N − 1, (3) transfer function for velocity:
det ( A ) = ±1, (4)
2 π
g ( x ) = 0, (5) V
= (
vik ( t + 1) ) π 2
arctan vik ( t + 1) .
(10)
U imin ≤ U i ≤ U imax , (6)
I l ≤ I lmax . (7) The position in a binary search space is like a
hypercube because "position" is a vector with n bits that
For larger systems, an exhaustive search for the represent each switch installed in the system and may have
configuration that allows the lower real power loss cannot only one state at a time from a binary decision. If a switch
be performed in real scenarios as this would be a highly is closed, then that bit will contain the number 1, otherwise
time-consuming task. This is the reason why, over the last 0. The complete position vector represents a configuration
two decades, nature-inspired algorithms have become for the distribution network. The binary position per bit is
useful tools for finding optimal or near-optimal solutions calculated from Eq. (11), where xik(t+1) is the bat position
in a reasonable time. in dimension k for the iteration t+1. If a random value is
smaller than the V-shaped conversion for velocity at the
3 BINARY BAT ALGORITHM iteration t+1 value, then the binary position for a bat i in
dimension k for iteration t+1 will be the contrary with
The bat algorithm was first proposed by Yang [20] for respect to the position for the same bat i and same
solving combinatorial continuous optimization problems. dimension, but at iteration t. In other words, if the position
Although it has been used for solving some electrical is binary and represented by 0, then it will be changed to 1.
problems [21], [22], the main application is not useful for Otherwise, the position keeps the same value:
discrete or binary approaches. Mirjalili et al. introduced the
binary version for facing binary problems [17]. This
( ) ( ).
k −1
technique was inspired by the use of echolocation by bats xi ( t ) if
→ rand < V vik ( t + 1)
xi ( t + 1) =
k
(11)
searching for prey, avoiding obstacles, and locating their
roosting crevices in the dark [20] while they are flying
xik ( t )
if
(
→ rand ≥ V vik ( t + 1) )
(bats are mostly blind).
Bats may be mathematically analysed to emulate their
behaviour to optimize both continuous and binary
The loudness and pulse emission rate balance= a nbr num _ branches + ssw. (14)
combination between Particle Swarm Optimization (PSO)
and intense local search for avoiding local minimal The number of tie switches is obtained from Eq. (15),
binding. These elements are calculated from Eqs. (12) and where sw is the total number of switches and tsw is the
(13), respectively; where Ai(t+1) and Ai(t) are the loudness required number of tie switches for the case of study:
at iteration t+1 and t, respectively. ri(t+1) and ri(0) are the
pulse emission rate at iteration t+1 and the initial value, sw ssw + tsw.
= (15)
respectively. α is a constant that guarantees that the
loudness will return to 0 as the iterations increase and γ is The sectionalizing switches’ (ssw) and tie switches’
a constant that guarantees that the value of the pulse (tsw) parameters are important to identify only feasible
emission rate will return to its initial value as the iterations configurations.
increase:
Ai ( t + 1) =
α Ai ( t ) , (12)
ri ( t +=
1) ri ( 0 ) 1 − exp ( −γ t ) . (13)
unfeasible configurations, helps earn extra time to find the method is made for every admissible position
optimal solution. Furthermore, this process assures that the (configuration) to calculate real power loss. The best so far
algorithm only evaluates configurations where the number encountered position is saved as Gbest.
of branches is equal to nbr. The above procedure guarantees that the initial bats
From Eqs. (14) and (15), we know both the number of (seeds) have feasible configurations, and allows the
switches (sw) and the number of sectionalizing switches algorithm to find a near-optimal solution in each run.
(ssw). A permutation with no repetitions is performed for
obtaining all the configurations that contain the required 4.7 Binary Bat Algorithm Process
number of branches (nbr). Equation (16) presents the
permutations obtained from two numbers, in this case sw When all initial positions are feasible, the binary bat
and ssw [23] and binary represents the feasible algorithm is performed as presented in Eqs. (8)–(11) and
configurations: Fig. 1. The steps are as follows:
• Frequency updating: Eq. (8).
sw! • Velocity calculation for each dimension of all bats: Eq.
binary = . (16) (9).
ssw!( sw - ssw ) !
• V-shaped transfer function: Eq. (10).
• Position updating: Eq. (11).
As this algorithm was prepared in MATLAB©, the • Local search: if a random number is greater than r, then
function permpos was used for obtaining all the the position vector is crossed with the best so far
permutations calculated from Eq. (16). Every encountered solution.
configuration attained from this step fulfils with Eqs. (3),
(14), and (15). Positions obtained in this process can be unfeasible. To
avoid them, go to the next step.
4.4 Setting Binary Bat Algorithm Parameters
4.8 Evaluation of Updated Positions
Initial parameters are established to develop the
optimization process via the modified binary bat algorithm. The new positions obtained from Eq. (11) may be
Those parameters are the number of bats (n), maximum unfeasible. The simplest form of eliminating these
iterations (max_iter), loudness (A), pulse emission rate (r), positions (configurations) is adding up all bits of the new
maximum and minimum frequencies (Fmax and Fmin), and position vector. As an example, consider the vector x in Eq.
constants α and γ. (17):
4.5 Initializing Bats x = [10011] . (17)
For a single bat, a configuration is selected randomly
from the binary matrix calculated in Eq. (16). For real This example provides three sectionalizing switches
purposes, the number of bats is set and a matrix for all and two tie switches. Thus, when adding all dimensions of
initial bat configurations is described for each bat. This vector X, a total of three closed switches are obtained. For
matrix contains n rows, which is the number of bats, and fulfilling radiality constraints, the sum of all dimensions
sw columns, which is the number of switches installed in must be equal to nbr as presented in Eq. (18), where k is
the system. For developing the random selection, the the number of total dimensions of vector xi, and xi is the
MATLAB© function randi was used. position vector for the ith bat:
It is important to emphasize that the random selection
k
process to determine the initial configuration, calculated
with Eq. (16), is only used to obtain the initial bat positions nbr = ∑ xi . (18)
i =1
and not as a decision variable in the optimization of the tie
switches status.
If a configuration does not comply with Eq. (18), Eqs.
(8)–(11) are calculated again to get a new position vector.
4.6 Testing the Nodes Feeds
This new vector must be evaluated in the same form until
a feasible solution is obtained.
Before performing a power flow, the corresponding
initial position (configuration) for each bat must be tested
4.9 Gbest Updating
to check if all nodes are fed. This step is possible with the
evaluation of the adjacency matrix built by the modified
A power flow evaluation is performed for each bat to
three-phase unbalanced backward/forward sweep-based
calculate real power loss. A position is considered as better
power flow method [24]. Eq. (4) calculates the determinant
than others are, when power loss is smaller than the
of the adjacency matrix. Whether the answer is ±1, all
calculated from other positions. Whether a new position is
nodes are fed, otherwise they are not. When a configuration
better than Gbest and a random number is lower than the
does not comply with this constraint, it is randomly
loudness (A), Gbest is updated with the new position.
changed for another combination from the matrix binary
obtained in Eq. (16). Once a new position is obtained, it
must be evaluated in the same manner. The three-phase
unbalanced backward/forward sweep-based power flow
6.2 Large-scale Evaluation rank value is organized from the best to the worst feasible
configuration obtained from permutations Eq. (16)
The modified IEEE 123-node test feeder is selected to between the total number of switches and required
demonstrate the accuracy of the proposed MBBA. The sectionalizing switches, which is 13 in this case. Only the
results of all algorithms are presented in Tab. 3. The best 2,408 configurations were saved for memory resource
description of this table is similar to Tab. 2. The only reasons.
differences are in rows 3 and 6, which are the first iteration,
where each algorithm found the minima and maxima. The
Each row of Tab. 3 is analysed for comparison the tie switches that are closed for worst configurations
purposes. obtained by each algorithm.
In row 1, only BBA, MBBA, and MPSO reached the Row 6 presents the iteration in which the worst
best configuration that brings the minimal real power loss solution was found for each algorithm. MBBA
of 204.16 kW; however, MGA is close, with its real power encountered this in 14 of 50 permissible iterations. The
loss of 204,89 kW, which is only 0,36% greater. The seed only two algorithms that reached the worst solution in
only achieved the worst scenario with 208.10 kW in power fewer iterations were MGA and Seed, but with worse
loss, which is 1.93% above. In row 2, all the tie switches solutions than the one obtained by MBBA.
that must be closed for the minimal found solution are Row 7 presents the means of all 30 runs, the 30-size
presented. population, and the 50 iterations, which is a total of 45000
Row 3 presents the iteration in which the best solution trials per algorithm. Again, the proposed MBBA
was found for each algorithm. MBBA encountered the accomplished the best figure, with a mean of 206,78 kW;
optimal solution in 16 of 50 permissible, whereas other i.e., only 2,62 kW and 1,28% higher than the best solution.
techniques did the same in fewer iterations. The second best is BPSO with 212,60 kW and 4,13%
The worst encountered configuration is in row 4. The higher than the optimal. In third place is MBPSO with
MBBA was the best in this aspect because its worst 215,89 kW and 5,74% higher than the optimal and in fourth
solution was 210,21 kW; i.e., approximately 6 kW, or place is BBA with 218,34 kW and 6,95% higher than the
2,96% higher than the best solution. The closer solution is optimal. In fifth place is Seed with 219,68 kW and 7,60%
obtained from MBPSO, which is 227,93 kW and 8,43% higher than the optimal. MGA takes sixth place with
greater than that obtained by MBBA and 11,64% above the 219,86 kW and 7,69% higher than the optimal, and the
optimal solution. The worst scenario is registered from worst performer is GA, with 223,85 kW and 9,64% higher
BBA with real power loss of 273,28 kW and 30% above than the optimal.
the worst solution achieved by MBBA. In this aspect, Row 8 presents the standard deviations calculated
MBBA outperforms the other algorithms. Row 5 presents from all solutions obtained per algorithm. The MBBA
attains the lowest standard deviation with 1.76. This brings
a range of 205,02–208,54 kW, or from 0,42% to 2,14% solutions, which is below 5% of deviation from the
higher the optimal solution, which is a small limit when optimal solution, whereas the other algorithms could
considering a 5% threshold. The remaining algorithms not achieve similar results.
reached standard deviations higher than 70% above the
MBBA figure. This is a crucial topic, as the MBBA Considering the above, MBBA is a promising option
overcomes the rest of techniques far enough. to perform distribution network reconfiguration; however
Rows 9 and 10 contain the best and worst obtained better computational machines must be used to obtain
solution rankings. From the evaluation of all feasible faster results. For future work, the execution time must be
combinations, an ascending rank order is organized. The reduced to deal with real-time simulations.
best and worst solutions per algorithm are compared with
the rank for determining how far they are from the optimal 8 REFERENCES
solution. Again, the MBBA is the best algorithm because
the best solution is ranked in the first position and the worst [1] Nguyen, T. T., Nguyen, T. T., Truong, A. V., Nguyen, Q. T.,
solution is ranked in the 26th position. This is the lowest & Phung, T. A. (2017). Multi-objective electric distribution
range; therefore, this technique guarantees topologies very network reconfiguration solution using runner-root
algorithm. Applied Soft Computing, 52, 93–108.
close to the optimal solution. The rest of algorithms present
https://doi.org/10.1016/j.asoc.2016.12.018
good best solutions, but all the worst solutions are ranked [2] Abdelaziz, A. Y., Osama, R. A., & Elkhodary, S. M. (2013).
in positions higher than 600. Distribution Systems Reconfiguration Using Ant Colony
Row 11 shows how many times the optimal solution is Optimization and Harmony Search Algorithms. Electric
reached by all algorithms. BBA and BPSO achieved it Power Components and Systems, 41(5), 537–554.
once, whereas the MBBA achieved it four times and the https://doi.org/10.1080/15325008.2012.755232
rest of algorithms did not reach the optimal solution. The [3] Herazo, E., Quintero, M., Candelo, J., Soto, J., & Guerrero,
MBBA overcomes again the other algorithms in this issue. J. (2015). Optimal power distribution network
Row 12 shows the average spent CPU time for reconfiguration using Cuckoo Search. In The 4th
International Conference on Electric Power and Energy
reaching solutions per algorithm. All algorithms are
Conversion Systems (EPECS) (pp. 1–6). IEEE.
capable of performing 30-size population and 50 iterations https://doi.org/10.1109/EPECS.2015.7368548
in less than 150 seconds (2,5 minutes). The only exclusion [4] Farahani, V., Vahidi, B., & Abyaneh, H. A. (2012).
is traced with the MBBA as it spends about 1747,67 Reconfiguration and Capacitor Placement Simultaneously
seconds in every run process, or 29,13 minutes (slightly for Energy Loss Reduction Based on an Improved
less than a half hour). Besides, this appears to be a very Reconfiguration Method. IEEE Transactions on Power
high drawback, it is necessary to consider that load profiles Systems, 27(2), 587–595.
are normally reported in the system on an hourly basis. In https://doi.org/10.1109/TPWRS.2011.2167688
addition, reconfiguration operation cannot be done every [5] Garcia-Martinez, S. & Espinosa-Juarez, E. (2011).
Reconfiguration of power systems by applying Tabu search
hour because this could reduce the reliability of the system,
to minimize voltage sag indexes. In 2011 North American
causes non-desirable oscillations in the system, and users Power Symposium (pp. 1–6). IEEE.
could experience many disturbances or even transient https://doi.org/10.1109/NAPS.2011.6025100
blackouts [18]. [6] García-Martínez, S. & Espinosa-Juárez, E. (2013). Optimal
From the results, it can be observed that MBBA is a Reconfiguration of Electrical Networks by Applying Tabu
promising technique for reconfiguration to be considered Search to Decrease Voltage Sag Indices. Electric Power
by system operators, as the results were obtained inside a Components and Systems, 41(10), 943–959.
range of near-optimal configurations for power loss https://doi.org/10.1080/15325008.2013.801053
minimization. However, the reconfiguration process not [7] Glover, F. (1989). Tabu Search—Part I. ORSA Journal on
Computing, 1(3), 190–206. https://doi.org/10.1287/ijoc.2.1.4
necessarily has to be done in real-time operation, but in an
[8] Graditi, G., Di Silvestre, M. L., La Cascia, D., Riva
hourly-basis framework from available records, since the Sanseverino, E., & Zizzo, G. (2016). On multi-objective
load holds an overall shape all the year. optimal reconfiguration of MV networks in presence of
different grounding. Journal of Ambient Intelligence and
7 CONCLUSIONS Humanized Computing, 7(1), 97–105.
https://doi.org/10.1007/s12652-015-0304-9
A modified binary bat algorithm was presented [9] Gu, C., Ji, J., & Liu, L. (2014). Research of immune
considering an improved seed population search. This algorithms for reconfiguration of distribution network with
technique was tested in two modified IEEE test systems distributed generations. In The 26th Chinese Control and
Decision Conference (2014 CCDC) (pp. 2156–2160).IEEE.
(13- and 123-node test feeders) to determine how it
https://doi.org/10.1109/CCDC.2014.6852524
responds in a small and a large system. The results were [10] Gupta, N., Swarnkar, A., & Niazi, K. R. (2014). Distribution
also compared with well-known techniques, namely, PSO network reconfiguration for power quality and reliability
and GA, and the proposed Improved seed population improvement using Genetic Algorithms. International
search, showing the following very good solutions: Journal of Electrical Power & Energy Systems, 54, 664–671.
• Where evaluated in a small system as the modified https://doi.org/10.1016/j.ijepes.2013.08.016
IEEE 13-node test feeder, there are no differences [11] Abazari, S. & Soudejani, M. H. (2015). A new technique for
among any of the techniques cited above because the efficient reconfiguration of distribution networks. Scientia
results are very close in all the analysed variables. Iranica, 22(6), 2516–2526.
[12] Abdelaziz, A. Y., Mohamed, F. M., Mekhamer, S. F., &
• Where evaluated in a large system as the modified
Badr, M. A. L. (2010). Distribution system reconfiguration
IEEE 123-node test feeder, MBBA guarantees that the using a modified Tabu Search algorithm. Electric Power
worst solution is inside a range of near-optimal Systems Research, 80(8), 943–953.