1. Introduction
Distribution Network Operators take into account the implementation of smart solutions to improve both the voltage level in the subordinate networks and the power factor, with the aim to maintain the balance between power generation and consumption while meeting the quality of supply standards and regulations.
In this context, the use of capacitor banks is an easy solution to be implemented with technical and economic benefits to the smart grid, maximizing the long-term return on investment as the network develops. An intelligent control of capacitor banks leads to improved energy efficiency and voltage level in the buses of distribution networks, resulting in an increase in the percentage of energy delivered to consumers [
1].
The advantages of integrating capacitor banks in the flexible smart grid communication and control infrastructure are the increase of network energy efficiency and power quality improvement [
2]. Thus, the technologies and modern techniques enable today the large-scale integration of capacitor banks managed with smart control algorithms.
In the literature, many methods have been proposed to solve the Optimal Capacitor Banks Allocation (OCBA) in distribution networks as a combinatorial optimization problem. These techniques can be grouped in four main categories: numerical [
3]; analytical [
4]; heuristic [
5,
6,
7]; and artificial intelligence, population based (Artificial Neural Networks, metaheuristics) [
8,
9]. An overview about the metaheuristics used for the problem of capacitor banks allocation is made in the following, highlighting their specific purpose. The OCBA solution for power losses or cost minimization is obtained using a genetic algorithm in [
10,
11], a fuzzy technique in [
12] and an artificial neural network in [
9]. Regarding the metaheuristics, a significant number of papers consider the joule loss minimization, voltage bus improvement, and total cost minimization. Thus, in [
13,
14,
15] a Multi-Objective Particle Swarm Optimization (MOPSO) algorithm is proposed. For active power loss reduction using load flow computation, the branch and bound method is generally preferred, for its reduced computation time. For example, for the minimization of the total annual costs, the Crow Search Algorithm (CSA) is used in [
16,
17], the Particle Swarm Optimization (PSO) and hybrid PSO algorithm are adapted in [
18,
19,
20,
21], the Flower Pollination Algorithm (FPA) is preferred in [
22,
23], and an Improved Harmony Algorithm is chosen in [
24]. On the other hand, the OCBA problem based on active power minimization was approached in [
25,
26] using the Bacterial Foraging Optimization Algorithm, the Intersect Mutation Differential Evolution (IMDE) Algorithm in [
27], the Artificial Bee Colony (ABC) in [
5,
28] and the Ant Lion Optimization Algorithm in [
29]. The improvement of the voltage profile carried out using the Symbiotic Organisms Search Algorithm (SOSA) in [
30]. Another paper proposes the JAYA optimization algorithm [
31] for power factor correction. For voltage profile improvement, the Oppositional Cuckoo Optimization Algorithm (OCOA) was used in [
32]. It must be mentioned that the authors’ previous approaches regarding the OCBA problem used several metaheuristic algorithms, such as PSO, BOA, Fireworks Algorithm (FWA), and WOA [
33].
A brief description of the papers that use metaheuristics in the CBA problem considering both objective functions (OF) and constraints (C) is presented in
Table 1. The considered objective functions are: OF1, active power losses minimization; OF2, voltage profile improvement; OF3, voltage deviation minimization; OF4, cost minimization; OF5—net savings maximization; OF6, voltage stability improvement. The main constraints for the OCBA problem are a combination of the following: C1, bus voltage allowable limits; C2, current flow limits on the branches; C3, bus reactive allowable limits; C4, maximum stock of capacitors; C5, bus apparent power balance; C6, maximum number of transformer tap changer steps; C7, the total reactive power injected should not exceed the total reactive power demand; C8, power flow limits on the branches; and C9, bus power factor limits.
This paper is focused on a comparative study of several metaheuristic algorithms adapted for solving the OCBA problem with the objective of energy loss minimization in MV distribution networks. During the analysis, the well-known GA and PSO are tested against two newer metaheuristics that have seen previous uses in power engineering applications, the BOA and WOA, and another recent but much less used method, the SWA. The latter is shown to outperform all its predecessors, when tested on two MV distribution networks with different characteristics: the smaller IEEE 33—bus test network [
5,
13,
25] and a larger 215—bus 20/0.4 kV distribution network from Romania. During the case study, the algorithms use the same initial population and fitness function. Results are shown regarding active power and energy losses and bus voltage levels, for which the best results are obtained with the SWA.
2. Metaheuristic Algorithms
Metaheuristics are a special class of algorithms that can be used to solve search and optimization problems. As described in [
34], they are approximate, usually non-deterministic methods that aim to search for solutions near the global optimum, exploring this space through a partly guided and partly random search. While the main disadvantage of metaheuristics is the uncertainty of reaching the global optimal solution, their advantages lie in not being problem-specific (allowing the flexibility of applying the same solving principle to several types of problems) and having intuitive mathematical models, borrowing concepts and approaches from the natural world, rather than from theoretical mathematical models. This contributes to their accessibility for a wider range of users. Most modern metaheuristics are population-based, starting from an initial group of solutions, called ‘population’, generated randomly, and refining it in an iterative process, according to a set of specific steps, until a stopping criterion is met. The performance of each individual from the population is assessed by computing its fitness function. The basic block diagram of a population-based metaheuristic algorithm (PMA) is depicted in
Figure 1, where the steps common to all algorithms are represented with white boxes, and the part specific to each algorithm, delimited by symbols (A) and (B) is presented in gray.
The initial parameters are partially common to all algorithms, such as population size
N or maximum number of iterations
maxit, and partially specific to each algorithm, such as the mutation rate
rmut for the Genetic Algorithm (GA) or inertia value
w for the Particle Swarm Optimization (PSO). An individual from a population with
N members, denoted in the following as
is encoded as a vector with length
m, and element types and values dictated by the problem that needs to be solved. It usually represents an input parameter combination or a possible solution for the problem, which must satisfy all the constraints of the optimization model. The fitness evaluation of each population member requires the decoding of the information contained in the solution that it represents, solving the problem and evaluating the results. The optimality degree of the solution is assessed with the fitness function value associated to the respective population member. For a population with
N members,
Xi, i = 1, ...,
N,
N fitness functions will be computed and ranked.
The (A) to (B) section from
Figure 1 consists of several steps, which describe each specific metaheuristic algorithm. While in the figures accompanying
Section 2.1,
Section 2.2,
Section 2.3,
Section 2.4 and
Section 2.5 are presented all the details specific to each algorithm, delimited by (A) to (B),
Table 2 summarizes their main steps, emphasizing their particularities.
Among the various metaheuristic algorithms available in the literature, those from
Table 2 were chosen taking into account the following reasoning: the genetic algorithm and the particle swarm optimization are the best known and widely used metaheuristics, with numerous applications in power systems, which makes them a valid basis for comparison. The bat algorithm and the whale optimization algorithm are newer algorithms, previously used by the authors in solving similar optimization problems and shown to improve the quality of the results, compared with GA and PSO [
35,
36]. On the other hand, the sperm whale algorithm is a novelty in solving optimization problems in the power systems field. The results from the case study will show that the SWA outperforms the previous algorithms, making it a viable new alternative for solving optimization problems related to power systems applications.
The best-known PMAs are the genetic algorithm and the particle swarm optimization, which also describe two fundamental search principles used by metaheuristic algorithms: the evolutionary and performance-based patterns.
2.1. Genetic Algorithms
The Genetic Algorithm (GA), proposed in [
37], is probably the best-known metaheuristic algorithm. In the GA, population members are named ‘chromosomes’, and their elements are ‘genes’. The search and optimization mechanisms use Darwinist natural evolution, based on perpetuation through genetic material exchange and mutation inside a population of same-species individuals, across a significant number of generations (iterations).
For finding new and improved solutions for an optimization problem, the GA relies on changing the population by using in each iteration the three main genetic operators (
Figure 2):
Selection: From the existing population, whole individuals are selected based on their performance, expressed by the fitness function. The better-adapted individuals are favored for surviving. In the standard GA, the population size is constant. Thus, the lesser adapted individuals, which are discarded, are replaced by clones of the survivors.
Crossover: Pairs of parent chromosomes exchange a number of genes, the resulting offspring having new characteristics, possibly resulting in better solutions for the problem.
Mutation: Randomly generated variations on gene values, resulting in chromosomes with minor structural changes, simulating genetic mutations of real living organisms.
Optionally, an elitist procedure can also be incorporated in the GA, which ensures the preservation of the best-found optimal solution and its fitness function across generations.
The literature offers a high variety of selection [
38] and crossover [
39] types, which together with the user-chosen crossover and mutation rates provide significant customization possibilities, making the GA a flexible problem-solving tool.
In this paper, the tournament selection method was used, which draws randomly p members from the existing population, out of which retains the best q, according to their fitness function. The procedure is repeated until a new population of size N is created.
The method of choice for the crossover operator was the uniform crossover, illustrated in
Figure 3. Two parents are randomly chosen from the population and, for each gene, a random number is generated. The parents swap the genes only if the generated random number exceeds a customizable threshold
tr.
2.2. Particle Swarm Optimization
On the other hand, the PSO algorithm [
40] uses a different search method, based on variable travel speeds and position shifting in the search space. Each individual (‘particle’) from the population (‘swarm’) changes its speed in each iteration based on its current distance from two reference points: The best solution found so far by the swarm leader and the best position ever achieved by the particle itself. Compared with the GA, the PSO mechanism, presented in
Figure 4, is very simple, requiring for each particle
j, j = 1, ...,
N, only the computation of its new speed and position:
followed by the update of each particle’s best position and the change of the leader position, if better solutions are found. The particle speeds are initialized with low random values, which would not influence the search direction.
In Equations (2) and (3), spj(it) and spj(it − 1) are the speed of particle xj (j = 1…N) in the previous (it − 1) and current (it) iteration, rnd1 and rnd2 are random vectors, x j,best(it) and x j,crt(it) are the best personal and the current position of particle xj, leader(it) is the position of the leader in iteration it, and xj(it) is the position of particle x in the current iteration. The factor w from Equation (2) is an inertia term, which decreases over the iteration count, larger initial values encouraging exploration, and smaller final values enabling the exploitation or local search around the best-known optimal solution.
It should be noted that while the GA explores the search space using crossover to make random changes of the information that is already present in the population, the mutation probability being much smaller, PSO changes randomly the speed of each particle element, moving it in the direction of the leader and personal best position.
The newer metaheuristic methods used in this paper, while sharing the natural inspiration of GA and PSO, combine elements found in the two algorithms and increase the number of input parameters and the complexity of their mathematical model in order to improve their optimization performance. They are the Bat Optimization Algorithm (BOA), Whale Optimization Algorithm (WOA) and Sperm-Whale Algorithm (SWA).
2.3. The Bat Optimization Algorithm
Bats hunt for prey using echolocation. In the initial search stage, they emit high amplitude/low frequency ultrasound impulses, with low emission rate (10–20 imp/sec), decoding in real time the reflected waves in order to identify the approximate position of the prey. When a potential target is identified, the bat increases the pulse rate up to 200 imp/sec, and the pulse frequency, which enables it to search accurately the space separating it from the prey, identifying the obstacles in its path and precisely locating the victim and its movement pattern.
The bat optimization algorithm [
41] uses the PSO principle of changing the speed and position of the population members (here called ‘bats’), but the speed update formula is more elaborated, considering the principle of raising the signal frequency and pulse rate as the bats are getting close to the prey, i.e., to the optimal solution. The basic flowchart of a BOA iteration is depicted in
Figure 5.
The bats’ speeds are initialized in the same manner as in the PSO algorithm but are accompanied by the initial signal amplitude, Aj, maximum pulse rate, rj,max and random pulse frequency fj ∈ [fmin, fmax], j = 1, ..., N.
In each iteration it, every bat from the population performs three operations:
Speed update, with an equation inspired from (2):
Position update, identical to the formulation from (3):
The BOA also includes a local search. The best individuals from the population are randomly moved in the search space, with
where
is the average bat amplitude for iteration
it and
pp ∈ [–1, 1].
The new bat positions computed with Equations (4) to (7) are accepted in the population with random probability and only if the newly obtained position is better than the previous.
At the end of each iteration, if a bat improves its position, its signal amplitude is decreased:
and its pulse emission rate increases:
where
α ∈ (0, 1) and
γ > 0.
This behavior, much like the inertia term for PSO, increases the probability of performing local searches when the iteration count is nearing itmax.
2.4. The Whale Optimization Algorithm
The hunting behavior of humpback whales is the source of inspiration for the Whale Optimization Algorithm (WOA). The whales hunt in groups, and when they find their prey, consisting of schools of krill or small fish near the water surface, they attack it from below using two maneuvers: encircling and spiraling.
The WOA uses a population of vector solutions (‘whales’), which are hunting for prey independently, guiding their search by following a reference individual, usually their leader, i.e., the whale closest to the problem solution (‘food’), according to its fitness function.
During the algorithm, whales use initially encircling, then spiral attack, in the same way PSO and BOA use the broad exploration and the exploitation of the search space near the optimal solution.
In each iteration
it, the encircling performed by each whale
j from the population is described by [
42]:
where
The coefficient a from equation (11) is a scalar value decreasing during the iterative from a positive value to 0. The (∙) sign denotes the element-by-element multiplying of vectors, and | |, an absolute value.
For the extreme values of a = 0 and a = 1, equations (10) to (12) show that position xj(it+1) will always lie between xj(it) and reference(it), thus moving any whale towards the reference solution used to guide the population. If values larger than 1 are given to a, factor A from (11) will also increase, moving the wales beyond the target and exploring a possibly uncharted portion of the search space.
If the reference position is reference(it) = leader(it), the leader from the current iteration, when A decreases, whales get closer to the leader, encircling the prey or the optimal solution. If another whale is used as reference, reference(it) = random(x(it)), the search will shift towards its path, simulating the exploration of the sea in search for food performed by real whales.
The spiral attack phase is described by an equation that combines oscillatory and exponentially variating components:
with
In equation (13),
b is a constant, and
l is a random value from the [–1, 1] interval [
42].
The initially large, then gradually decreasing values of
a, so that first |
A| > 1, then |
A| < 1, |
A| → 0, first move the whales away from the leader in exploration, then encourage encircling, followed by spiral attack. If
p denotes a random number, the general equation for changing the position of a whale follows as:
The flowchart of a WOA iteration is presented in
Figure 6.
WOA has two specific parameters that can be tuned for better performance: coefficient a from Equation (11) and constant b from (13).
2.5. The Sperm-Whale Algorithm
The search used by the SWA mimics the hunting behavior of sperm whales, which live alone or in small groups at the bottom of the sea and must come to the surface to hunt and breathe [
43]. In each iteration, the population of the SWA is split into smaller search groups consisting in uniformly distributed better and worse adapted members (‘sperm whales’). Consequently, the search for the optimal solution occurs independently in each group. First, the sperm whales change their position from the bottom of the sea to the surface. This step is simulated only for the worst adapted member of the group, for which the opposite position is computed. The positions of the leader and of the worst individual in a group
g,
leader(g,it) and
worst(g,it), are used to compute an in-between distance
dist(g,it):
The reflex position of
worst(g,it) is then computed with Equation (17).
The newly computed individual
reflex(g,it) will replace
worst(g,it) only if its fitness function is better. At the beginning of the iterative process, when the inertia
w from Equation (16) is large, the individual will search beyond
leader(g,it) (exploration phase,
Figure 7a). As
w decreases, the search will focus between
worst(g,it) and
leader(g,it), exploiting the search space around the known optimal solution (
Figure 7b).
In the second stage, a Good Gang is formed within the group, gathering the best
gg individuals ranked according to their fitness function. Every Good Gang member performs several local searches in which its elements
k are displaced randomly, within a small radius
r:
The original Good Gang members are replaced only if better sperm-whale positions are found during the local search.
Finally, the best Good Gang member from the group (the dominant sperm-whale) performs genetic crossover with all other group individuals. One of the two resulting children is chosen randomly to replace the worst of the two parents.
At the end of the iteration, the groups are reunited in the final population, which will repeat the search process until the stopping criterion of the algorithm is met. The basic flowchart of a SWA iteration is presented in
Figure 8.
The SWA offers several tuning options for the user. The population size, number of search groups within the population, the inertia w and its decrement, the Good Gang size and number of local searches for its members, the local search radius r, and the crossover method can be adjusted for better performance.
3. The Implementation of the Optimal Reactive Compensation for Loss Minimization Problem
The five metaheuristic algorithms presented in the previous chapter were run in an implementation of the Optimal Capacitor Banks Allocation (OCBA) problem for active energy loss minimization. The approach used in this paper is stated as follows: Find the optimal buses in an EDN where capacitor banks (CB) should be installed and the amount of reactive load compensation in each bus, with the objective of operating the EDN with minimal active power and energy losses for the interval of a typical day. For an EDN with
NN buses (nodes) and
NB branches, the mathematical expression of the objective function of the OCBA problem was defined as:
The mathematical model of the fitness function considered the following constraints:
Cr1. The available CB stock cannot be exceeded:
Cr2. The compensation level in each bus cannot exceed the reactive bus load (avoid reversed reactive power flows):
Cr3. Branch current flows after compensation cannot exceed the branch rated current:
Cr4. Bus voltages after compensation cannot exceed the maximum allowed value:
In Equations (19) to (22), ΔP[%] is the percent active power loss in the EDN over 24 h, ΔPh is the active power loss in the EDN at hour h, NCBbus is the number of CBs installed in a generic bus; qCB is the reactive power rating of a CB, Qbus is the reactive load of a generic bus, stockCB is the CB stock; Ibr is the current flow on a generic branch br, Imax,br is the rated current of branch br, Ubus is the voltage of a generic bus after compensation, and Umax,bus is the maximum bus voltage allowed in a generic bus.
All the algorithms tested in the case study used the same solution encoding for their population members. They were generated as vectors of the type described by Equation (1), with integer numbers and length equal to the number of buses in which compensation was possible in the network. The significance of the value of a generic element represented the number of CBs placed in the bus to which it was designated. All the algorithms started in the first iteration with the same population, generated randomly but considering constraint Cr2 of maximum allowed number of CBs in each bus and Cr1, the maximum CB stock (
Figure 9).
The fitness of the optimal solutions was assessed in all the algorithms using the objective function (19), which also considered the constraints from Equations (20) to (23). The methodology employed for calculating the fitness of each solution is described in
Figure 10.
By applying any of the equations (2) to (18) or by genetic crossover and mutation, the changes undergone by population members can result in their invalidation because of
Non-integer values, leading to invalid number of CBs installed in a bus;
Values exceeding the interval [0, NCBbus] allowed by the constraint Cr2;
Violation of constraint Cr1, by exceeding the available CB stock;
Solutions otherwise valid but which lead to the violation of the constraints Cr3 or Cr4.
Thus, every newly generated population member, for each algorithm, must pass through a validation procedure before being allowed in the population created for the next iteration.
If constraint Cr1 is not satisfied, the solution is always discarded as unfeasible. If the constraint Cr2 is not fulfilled, the solution is modified by setting the unfeasible values to the nearest allowed value, using for each element
xj from
Figure 1 and
Figure 9 the following correction:
For each population member, the active power losses used in equation (19) are computed with the Newton–Raphson load flow (LF) algorithm, which is slower, but generally considered more accurate than the branch-and-bound methods preferred in the analysis of distribution networks. The LF algorithm also provides the results required for checking the constraints Cr3 and Cr4, bus voltage and branch current flow limits. Prior to computing the LF, the compensation solution is simulated subtracting from the bus reactive loads the CB injection for each compensated bus, according to the population member/solution being tested.
4. Results
The OCBA problem was solved using the metaheuristics presented in
Section 2, with the aim of comparing the performance of the newer algorithm designs, BOA, WOA, and SWA against the two well established methods, GA and PSO. For comparison purposes, all the algorithms had a common representation for the members of the population, illustrated in
Figure 9, and the same fitness function, active power and energy loss minimization, computed with Equation (19) and subjected to the constraints given by Equations (20) to (23),
Section 3. The initial parameters used for the algorithms are presented in
Table 3.
Since for all algorithms there was no improvement for the optimal solution beyond generation 350, the graphical representations of the results will be limited to the first 360 generations.
Two test networks were used to validate the comparison: the smaller sized IEEE 33-bus MV radial voltage distribution system (
Figure 11) and a larger 215-bus MV EDN from a residential area of a major city from Romania (
Figure 12).
Synthetic data regarding the physical characteristics for the IEEE 33-bus system is given in
Table 4. The system does not include MV/LV transformer data; thus, the active power losses computed by the algorithms do not include transformer losses. The extended data regarding branch characteristics (connecting buses, type line or transformer, electrical parameters resistance and reactance, maximum branch current) is provided in
Appendix A,
Table A1. For the active and reactive bus loads, the study uses a custom representation consisting of daily 24-h profiles, described below.
For this particular test system, the literature provides only a set of instantaneous active and reactive bus loads. In this paper, these values were used as reference, in conjunction with a set of typical load profiles (TLP) provided in the
Supplementary Materials attached to the paper, to create 24-h profiles. The TLPs considered several types of loads, residential, industrial, and their distribution in the network is summarized in
Table 5.
The second test system used in the case study is a much larger EDN, consisting of 135 MV buses to which 80 loads are connected through MV/LV transformers. For simplicity, the transformers are omitted in
Figure 12, together with the corresponding 80 bus numbers for the transformer LV busbars (from 136 to 215). A summary of the transformer rated power, together with the feeder and bus general information, is given in
Table 6. The electrical parameters of the branches are given in
Appendix A,
Table A2. For this network, the bus loads were also modelled as 24-h daily profiles, being measured by the smart metering infrastructure installed by the local distribution utility for a typical working day.
Because a 24-h voltage profile was not available for the 215-bus network, the voltage reference for the slack bus was recommended by the distribution utility at the value of 1.06 pu. For the IEEE 33-bus system, the setpoint was 1 pu (nominal voltage). The slack bus for both networks is bus 1, and all the other buses are modeled as PQ (consumer) buses.
4.1. Results for the IEEE 33-Bus System
The first step of the study was the choice of the maximum CB stock used for optimization. For this purpose, the load profile of the network for 24 h, given in
Figure 13, was analyzed. Since the purpose was to test the performance of each algorithm, the CB stock was set at 70 × 7.5 kVar units, which would ensure a maximum of 525 kVar of VAR compensation, about half of the minimal value of the reactive load, occurring at night hours. In this way, the number of possible CB allocation variants is maximized, while reducing the investment cost.
The GA, PSO, BOA, WOA, and SWA were run using this CB stock, the initial parameters from
Table 3, and the same initial population. The solution identified by each algorithm, compared with the reference case (no reactive power compensation), and their corresponding fitness functions (percent losses) are presented in
Table 7. The first line of
Table 7 also presents the maximum number of CBs that can be allocated in each bus, computed according to the minimal reactive power load, so that constraint Cr2 would be always fulfilled. The same results are displayed graphically in
Figure 14. In
Figure 15, the parallel evolution of the fitness function of each algorithm over the first 350 generations is presented, on a typical run, emphasizing the fact that the SWA and BOA obtain the solutions corresponding to the lowest loss values, followed by the PSO, GA, and BAT.
The results from
Table 7 and
Figure 14 show that the best fitness function values are obtained when maximum compensation is applied at buses 18 (feeder end), 29–32 (feeder end), and 12–14, while for other buses with compensation potential, such as 21–25, where the reactive load is high, no capacitor banks are allocated. All the algorithms use the entire CB stock available, with differences in the buses chosen for compensation and number of CBs allocated to each bus.
The results regarding the active power losses, for each hour and algorithm, compared with the reference case are plotted in
Figure 16 and presented in
Table 8.
Table 9 gives the loss reduction in percent, against the reference case, for which the total values are represented in
Figure 17. The loss reduction ranges between 6.55% and 16.78%, depending on the algorithm and network load. The improvement is higher in off-peak hours, and the best results are obtained with SWA (8.17% to 16.78%), with a global value of 10.51% over 24 h. PSO, WOA, and SWA are the closest to the optimal solution.
Compared with the reference case, the best compensation solution found by the SWA leads to a loss reduction of 726.73 kW for the analyzed day, which, if it is extrapolated for a year, amounts to 265.26 MW loss saving. The difference between SWA and the second best result, given by WOA, is of 6.25 kW per day or 2.28 MW for an entire year. As
Figure 16 shows, SWA achieves these savings mainly during two hours, at 19.00 and 24.00.
Reactive power compensation with capacitor banks is mainly used in EDN for voltage profile improvement, where specific networks configurations and load patterns lead to high voltage drops along the feeders. In the case of the IEEE 33-bus system, the nominal voltage setting for the slack bus and the load profiles from
Appendix A lead, in the reference case without compensation, to the voltage profile described by
Figure 18.
The values show voltage drops that exceed the lower limit of –10% prescribed by the Romanian standards, in several buses located near the end of the main two supply paths, ending in buses 18 and 33. For bus 18, the voltage has the minimum value of 0.858 pu, at hours 19.00 and 20.00, while for bus 33, the minimum voltage is 0.882 pu, at hour 10.00.
The improvement of the voltages obtained hourly with each algorithm is depicted in
Figure 19 for bus 18 and in
Figure 20 for bus 33. The percent improvements over the reference values (no compensation) are given in
Table 10 and
Table 11, respectively. Again, the SWA gives the best results, with the maximum voltage improvement. The minimum reference voltage value of 0.858 pu in bus 18 (hour 10.00) is raised by 1.65%, to 0.872 pu. However, the voltages remain below the 0.9 pu minimum allowed limit, for 10 h from the 24-h analysis interval. Better voltage regulation can be possible using a larger CB stock or raising the voltage in the reference bus, by changing the HV/MV transformer tap position from the substation at bus 1.
The voltage improvements are smaller for bus 33, with a maximum of 1.28% with the SWA, but with three algorithms (SWA, PSO and WOA), the voltage levels are raised after compensation above the maximum –10% deviation allowed by the regulations during 7 h (8.00, 9.00, 12.00, 13.00, 18.00, 19.00, and 20.00), only two hours remaining below this threshold (10.00 and 11.00), as it can be seen in
Figure 20.
4.2. Results for the 215-Bus Distribution Network
In this case, the CB stock used for compensation was chosen using the 24-h load profile of the network from
Figure 21. In comparison with the IEEE 33-bus system, the minimum off-peak reactive load is reduced, while the number of buses available for compensation increases significantly, allowing a higher number of possible solutions. Thus, the CB stock was set at 90 units of 7.5 kVar each, providing a maximum of 675 kVar of reactive power. As the solutions from
Figure 22 and
Table 12 show, all the algorithms use the entire stock, with different bus allocation. The SWA provides the best solution (6.19% active power losses), followed by the PSO (6.21%). In
Table 12, since the VAR compensation is performed at the LV side of the substation transformers, the bus numbers are given for both the MV buses denoted in
Figure 12, and for their corresponding LV transformer busbars. In
Figure 22, only the LV bus numbers are used, for better readability.
Figure 23 presents the evolution of the fitness function of each metaheuristic algorithm over the first 360 generations, on a typical run.
For this network, as
Figure 22 shows, the best two solutions (SWA, PSO) are mainly differentiated by the CB allocation at buses 151, LV side (28, MV side); 153 (31); 155 (34); 156 (35); and 157 (36), located at the beginning of the network, and having significant reactive power loads. This behavior is triggered by the use of the 90 CB stock, which is close to the maximum possible number of CBs that can be allocated for compensation, 107, and because of the sufficient stock, most of the buses can use the maximum possible CB allocation.
The comparison between the hourly active power losses computed by the Newton–Raphson algorithm for the reference case (no compensation) and the losses determined for each best compensation solution found by the metaheuristic algorithms is presented in
Table 13 and
Figure 24. Furthermore,
Table 14 gives the percent reduction in losses obtained using the compensation solutions, while
Figure 25 allows for an overview of the total losses obtained in each case, based on the values computed in
Table 13.
The best CB allocation solution, obtained with the SWA, achieves a loss reduction of 833.91 kW or 10.36% for the entire network, in 24 h, which amounts to 304.38 MW in an entire year. The next best solution, found with the PSO algorithm, achieves only 816.58 kW (10.15%). The difference between the two solutions is of 17.33 kW in the analyzed day, or 6.32 MW in a year. The improvement over the IEEE 33-bus system regarding the loss reduction can be attributed to the presence of the MV/LV transformers.
The bus voltage levels for all 24 h and buses from the 215-bus network are presented in
Figure 26. The length of the main feeder and the bus loadings lead to low voltage levels at the last buses on the main supply path, with values below the 0.9 pu limit at the LV side. At the MV side, the voltages are inside the allowed range, varying from 1.060 pu in the slack bus to 0.940 pu.
Figure 27 and
Figure 28 depict the effect of VAR compensation on the voltages at bus 135 (MV) and 215 (LV). By allocating the available CB stock according to the solutions found by the five metaheuristic algorithms, the bus voltages increase with maximum 1.36%, as shown in
Table 15 for bus 215 (LV). This increase is not sufficient for raising the lowest voltage values above the desired limit of 0.9 pu. Since the CB stock is near the maximum allowed reactive load compensation which fulfills constraint Cr2 specified by the optimization model, an alternative solution is to change the MV/LV transformer tap settings in the affected buses.
5. Discussions and Conclusions
The reactive power flow in the active electricity distribution networks has an important influence on the bus voltage level and the active power losses. Therefore, in order to control the reactive power absorbed by consumers, their consumption must be characterized by a power factor approximately equal to the neutral value (0.9 in Romania). Optimal allocation of reactive sources in the electricity distribution networks is made for power losses reduction, power factor correction and/or voltage profile improvement.
The optimization model considered in the paper has as main objective the optimal allocation of capacitor banks (CBs) in the medium voltage networks to minimize the power/energy losses, taking into account the technical restrictions imposed by the available CB stock, the compensation level in each bus, branch current flows, and bus voltages. This is very useful for distribution network operators that install now large amounts of capacitor banks (CB) in the distribution networks. In order to optimize the location of these CBs, the used test networks (the IEEE 33-bus system and a real 215-bus EDN from Romania) were modelled considering the MV lines, the MV/LV transformers from the electric distribution substations, where available, and the MV and LV buses. The different algorithms (Genetic Algorithm (GA), Particle Swarm Optimization (PSO), Bat Optimization Algorithm (BOA), Whale Optimization Algorithm (WOA) and Sperm-Whale Algorithm (SWA)) were tested to see which would be the best to solve the problem of capacitor bank allocation. The study, made using the IEEE 33-bus system, highlighted the fact that the SWA leads to the best results compared to the other algorithms. Compared with the reference case, the best compensation solution found by the SWA leads to a loss reduction of 726.73 kW for the analyzed day, which, if it is extrapolated for a year, amounts to 265.26 MW loss saving. The difference between SWA and the second best result, given by WOA, is of 6.25 kW per day or 2.28 MW for an entire year. In the case of the voltage level, an improvement was observed on the entire electricity distribution network, in all nodes, also obtained with the help of SWA. The minimum reference voltage value in bus 18 (the farthest node), at hour 10.00, was increased by 1.65%.
Moreover, the algorithms were tested in a real electricity distribution network (215-bus EDN) from Romania. The best CB allocation solution, obtained again with the SWA, achieves a loss reduction of 833.91 kW or 10.36% for the entire network, in 24 h, which amounts to 304.38 MW in an entire year. The next best solution, found with the PSO algorithm, achieves only 816.58 kW (10.15%). The difference between the two solutions is of 17.33 kW in the analyzed day, or 6.32 MW in a year. The solutions found led to an increase of the voltage in the farthest node (215) with maximum 1.36%.
Based on the obtained results, it can be affirmed that the use of capacitor banks is an easy solution to be implemented with technical and economic benefits to the electricity distribution networks that maximizes long-term return on investment as the network develops. An intelligent control of capacitor banks leads to improved energy efficiency and voltage level in the buses of electricity distribution networks, resulting in an increase in the percentage of energy delivered to consumers. Amongst the tested algorithms, the SWA finds the best compensation solutions, which can lead to significant additional loss savings and shorter investment recovery times.