Optimal Compensation
Optimal Compensation
F. Jabari · K. Sanjani
Faculty of Electrical and Computer Engineering, University of Tabriz, Tabriz, Iran
e-mail: [email protected]
K. Sanjani
e-mail: [email protected]
S. Asadi (B)
Department for Management of Science and Technology Development, Ton Duc Thang
University, Ho Chi Minh City, Vietnam
e-mail: [email protected]
Faculty of Applied Sciences, Ton Duc Thang University, Ho Chi Minh City, Vietnam
© Springer Nature Switzerland AG 2020 63
M. Pesaran Hajiabbas and B. Mohammadi-Ivatloo (eds.),
Optimization of Power System Problems, Studies in Systems, Decision and Control 262,
https://doi.org/10.1007/978-3-030-34050-6_3
64 F. Jabari et al.
Nomenclature
1 Introduction
Figure 1 shows the sample radial distribution grid. As illustrated in this figure, the
current injected to the load i in iteration k+1, J˙ik+1 , can be given by Eq. (1). In which,
V̇ik represents the voltage magnitude of the node i in iteration k. Moreover, Ṡi refers
to the appearance power of the node i. Equation (2) demonstrates the power balance
criterion for each bus i. The appearance power injected to the bus i is equal to the
power consumed by the load i plus the power transmitted from the node i to the
adjacent bus j.
! "∗
Ṡ D,i
J˙ik+1= (1)
V̇ik
#
Ṡi = Ṡ D,i + Ṡ j (2)
j
where,
Ṡ D,i The active and reactive power consumption in bus i
Ṡ j The complex power flowing in node j
It is assumed that the reactive power injected by the capacitor units to the bus i is
the negative reactive load, as expressed by Eq. (3). If the capacitor bank is installed
in bus i, its reactive power, Q̇ C,i , will be modeled as the negative reactive power
consumption in this node. Note that ṖD,i and Q̇ D,i are the active and reactive power
consumptions of the node i, respectively.
In the backward sweep, the current of the branch h-i in iteration k+1, I˙h,i
k+1
, is
calculated as (4).
When the convergence criterion (6) is satisfied for all buses, the forward-backward
sweep based power flow algorithm will be finished. The scalar ε is the convergence
factor. If it is not satisfied for at least one bus, the equations (1)–(6) will be performed
in the next iteration.
$ $
$ k+1 $
$V j − V jk $ ≤ ε (6)
Equation (7) demonstrates that the minimum total real power loss is considered for
optimization of capacitor placement problem.
nl
# % &
Floss = Min gi, j Vi2 + V j2 − 2Vi V j cos(θi − θ j ) (7)
i, j=1
i%= j
where,
Floss The active power loss of the whole system
gi, j The conductance of the line i-j
θi and θ j The voltage angle of the nodes i and j
nl The number of branches
Subject to:
• Voltage permitted range constraints
Ib ≤ Ibmax (9)
68 F. Jabari et al.
In which,
Vimin and Vimax Minimum and maximum voltage magnitude of bus i, respectively
Ib The current of the branch b
max
Ib The maximum current of the branch b
3 Illustrative Example
depicted in Fig. 5. As expected, the optimal placement of the capacitors using the
forward-backward sweep based search algorithm leads to a significant reduction
in active power losses and improvement in bus voltage magnitude. Moreover, the
number of scenarios in search space of BFS based capacitor allocation method is
reduced to 99 (number of buses × number of capacitors). In other words, the BFS
based optimal capacitor placement strategy is a computationally efficient approach in
achieving a global optimal solution in lower iterations and less calculation time. The
total active power loss in two cases, before and after installation of capacitors, can be
summarized as Table 1. Figure 5 and Table 1 reveal that the BFS search algorithm can
find a global optimal solution vector after solving 99 (number of bus × number of
capacitors) load flow problems.The applicability of the proposed algorithm in finding
the best capacitor places is compared with other recently published methods such as
intersect mutation differential evolution (IMDE) [9], analytical [22], fuzzy genetic
algorithm (FGA) [23], and bacterial foraging optimization algorithm (BFOA) [24].
Table 2 summarizes the optimal scenarios and the total real power losses obtained
from the BFS load flow based capacitor placement approach and the other ones. It is
obvious that the proposed methodology reduces the active power losses, significantly.
Moreover, the minimum value of the bus voltage magnitude is more than that of other
algorithms. In other words, if we consider that n and N respectively refer to the number
of buses and capacitors, BFS based capacitor allocation strategy not only reduces
the number of scenarios from 2n to n×N, but also improves the voltage profile and
decreases the energy losses in comparison with other introduced methods.
Optimal Capacitor Placement in Distribution Systems Using … 71
Fig. 5 Voltage profile in two cases: without capacitors (red), with capacitors (best scenario: blue)
Table 1 Comparison
Case study Total real power losses (kW)
between two cases with and
without installation of Without capacitors 253.9667
capacitor units With capacitors (Best scenario) 130.2507
Table 2 Comparison between the proposed approach and the other recently published algorithms
Capacitor 475, 1037 1000 950, 700 350, 820, 277
sizes
(kVAr)
Algorithms IMDE BFS Analytical BFS FGA BFS BFOA BFS
[9] [22] [23] [24]
Total 139.7 125.3 164.6 136.8 139.7 131.5 144.04 123.9
energy 141.3
losses
(kW)
Minimum 0.942 0.943 0.916 (18) 0.928 0.929 0.939 0.936 0.944
voltage (18) (18) (18) (18) (18) (18) (18)
magnitude
in per unit
(Bus
number)
Best places 14, 30 9, 30 33 27 18, 30 8, 28 18, 30, 16, 30,
(Bus 33 32
number)
Optimal Capacitor Placement in Distribution Systems Using … 73
4 Conclusions
References
1. Aman, M.M., et al.: Optimum shunt capacitor placement in distribution system—a review and
comparative study. Renew. Sustain. Energy Rev. 30, 429–439 (2014)
2. Lee, C.-S., Ayala, H.V.H., Coelho, L.d.S.: Capacitor placement of distribution systems using
particle swarm optimization approaches. Int. J. Electr. Power Energy Syst. 64, 839–851 (2015)
3. Javadi, M.S., et al.: Shunt capacitor placement in radial distribution networks considering
switching transients decision making approach. Int. J. Electr. Power Energy Syst. 92, 167–180
(2017)
4. Cabral Leite, J., Pérez Abril, I., Santos Azevedo, M.S.: Capacitor and passive filter placement
in distribution systems by nondominated sorting genetic algorithm-II. Electric Power Syst. Res.
143, 482–489 (2017)
5. Vuletić, J., Todorovski, M.: Optimal capacitor placement in radial distribution systems using
clustering based optimization. Int. J. Electr. Power Energy Syst. 62, 229–236 (2014)
6. Das, D.: Optimal placement of capacitors in radial distribution system using a Fuzzy-GA
method. Int. J. Electr. Power Energy Syst. 30(6), 361–367 (2008)
7. Abul’Wafa, A.R.: Optimal capacitor placement for enhancing voltage stability in distribution
systems using analytical algorithm and Fuzzy-Real Coded GA. Int. J. Electr. Power Energy
Syst. 55, 246–252 (2014)
8. Ramalinga Raju, M., Ramachandra Murthy, K.V.S., Ravindra, K.: Direct search algorithm for
capacitive compensation in radial distribution systems. Int. J. Electr. Power Energy Syst. 42(1),
24–30 (2012)
9. Khodabakhshian, A., Andishgar, M.H.: Simultaneous placement and sizing of DGs and shunt
capacitors in distribution systems by using IMDE algorithm. Int. J. Electr. Power Energy Syst.
82, 599–607 (2016)
10. Sultana, S., Roy, P.K.: Optimal capacitor placement in radial distribution systems using teaching
learning based optimization. Int. J. Electr. Power Energy Syst. 54, 387–398 (2014)
11. Arcanjo, D.N., et al.: Cuckoo Search Optimization technique applied to capacitor placement
on distribution system problem. In: 2012 10th IEEE/IAS International Conference on Industry
Applications (2012)
74 F. Jabari et al.
12. Rani, D.S., Subrahmanyam, N., Sydulu, M.: Self adaptive harmony search algorithm for optimal
capacitor placement on radial distribution systems. In: 2013 International Conference on Energy
Efficient Technologies for Sustainability (2013)
13. El-Fergany, A., Abdelaziz, A.: Multi-objective capacitor allocations in distribution networks
using artificial bee colony algorithm. J. Electr. Eng. Technol. 9(2), 441–451 (2014)
14. El-Fergany, A.A., Abdelaziz, A.Y.: Capacitor placement for net saving maximization and sys-
tem stability enhancement in distribution networks using artificial bee colony-based approach.
Int. J. Electr. Power Energy Syst. 54, 235–243 (2014)
15. Azevedo, M.S.S., et al.: Capacitors placement by NSGA-II in distribution systems with non-
linear loads. Int. J. Electr. Power Energy Syst. 82, 281–287 (2016)
16. Vuletić, J., Todorovski, M.: Optimal capacitor placement in distorted distribution networks
with different load models using Penalty Free Genetic Algorithm. Int. J. Electr. Power Energy
Syst. 78, 174–182 (2016)
17. Ng, H., Salama, M., Chikhani, A.: Classification of capacitor allocation techniques. IEEE
Trans. Power Delivery 15(1), 387–392 (2000)
18. Gnanasekaran, N., et al.: Optimal placement of capacitors in radial distribution system using
shark smell optimization algorithm. Ain Shams Eng. J. 7(2), 907–916 (2016)
19. Othman, A.M.: Optimal capacitor placement by Enhanced Bacterial Foraging Optimization
(EBFO) with accurate thermal re-rating of critical cables. Electr. Power Syst. Res. 140, 671–680
(2016)
20. Devabalaji, K.R., Ravi, K., Kothari, D.P.: Optimal location and sizing of capacitor placement
in radial distribution system using Bacterial Foraging Optimization Algorithm. Int. J. Electr.
Power Energy Syst. 71, 383–390 (2015)
21. Venkatesh, B., Ranjan, R., Gooi, H.: Optimal reconfiguration of radial distribution systems to
maximize loadability. IEEE Trans. Power Syst. 19(1), 260–266 (2004)
22. Gopiya Naik, S., Khatod, D.K., Sharma, M.P.: Optimal allocation of combined DG and capac-
itor for real power loss minimization in distribution networks. Int. J. Elec. Power. 53, 967–973
(2013)
23. Reddy, S.C., Prasad, P., Laxmi, A.J.: Placement of distributed generator, capacitor and DG
and capacitor in distribution system for loss reduction and reliability improvement. Editors-in-
Chief. 198 (2013)
24. Kowsalya, M.: Optimal distributed generation and capacitor placement in power distribution
networks for power loss minimization. International Conference on Advances in Electrical
Engineering (2014)
Optimal Capacitor Placement and Sizing
in Distribution Networks
Abstract Utilizing capacitor banks in order for local compensation of loads reac-
tive power is common in distribution networks. Using capacitors has positive effects
on networks such as power and energy loss reduction, voltage deviation and net-
work harmonic reduction as well as improvement in network power factor. Capacitor
placement is applied on the network in a form of single or multi-objective problems.
Decreasing the total network loss is often the main reason for using capacitors in
distribution networks. Capacitor placement approach involves the identification of
location for capacitor placement and the size of the capacitor to be installed at the
identified location. An optimization algorithm decides the location of the nodes
where the capacitors should be placed. As we know, the capacitors are categorized
in two main types of fixed and switchable capacitors. Selecting an appropriate type
of capacitor is related to the topology of network, load value and economic situa-
tion. They are also different from coding point of view. In this section, the model of
coding is presented at first, and then, the approach of applying is described based on
optimization algorithm. The capacitors are often used for peak loads but they may be
present in the network in off-peak due to the switching issues. The network voltage
may be increased in off-peak with the presence of capacitors. Therefore, it is very
important to consider both peak and off-peak in the capacitor sizing and placement
problem. The proposed model is applied on IEEE 10 and 33-bus standard test cases
in order to demonstrate the efficiency of the proposed model.
A. Najafi (B)
Young Researchers and Elite Club, Sepidan Branch, Islamic Azad University, Spidan, Iran
e-mail: [email protected]
A. Masoudian
Faculty of Engineering, University of Shiraz, Shiraz, Iran
B. Mohammadi-Ivatloo
Faculty of Electrical and Computer Engineering, University of Tabriz, Tabriz, Iran
e-mail: [email protected]
1 Introduction
Today, with the advent of science and technology, the use of electrical energy has
grown dramatically. On the other hand, further flourishing needs a more powerful
electricity grid. Power grid consists of three parts: production, transmission and dis-
tribution. Of course, distribution networks are important in the final section of the net-
work. Due to lower voltage levels and higher currents, losses in distribution systems
are higher than in transmission systems. The issue of reducing losses and improving
the efficiency of electric energy supply to the power system is mainly addressed to
the distribution network. Reducing the electric power losses is a way to increase the
capacity of the production, transmission and distribution network without investing
in production. Examples of such loss reduction solutions are reactive power control,
cross-sectional variation of conductors, voltage level change, transformer load man-
agement, load management, over-distribution network topology change, and so on.
The reactive power flow in the network increases the losses and reduces the useful
capacity of the lines and transformers. The use of a capacitor as a reactive power gen-
erator is very common in order to regulate and control the voltage, preventing voltage
fluctuations in the network and correcting the power factor due to the simplicity and
low cost of the system. Installed capacitors reduce the network current and losses
by reducing the reactive power flow of line from the main substation to the location
of capacitor. The absorption and injection of reactive power should be carried out
in such a way as to minimize the losses, and thus the capacitor optimal placement
problem is discussed. The objective function of the capacitor optimal placement in
distribution networks is the cost of installed capacitors, installation costs, etc., and
the cost of power and energy losses. By minimizing the cost function along with the
constraint, i.e., the permitted bus voltages and line currents, the optimal capacitor
size and the location can be determined. Optimal capacitor placement problem can
be formulated as a non-linear optimization problem with a series of equality and
inequality constraints. Therefore, most of conventional optimization techniques are
not able to solve this complex problem, thus evolutionary optimization methods need
to be used to solve the problem.
Studies show that 13% of the total energy produced by power plants is dissipated
as distribution losses [1], which caused by reactive power flow. However, losses
due to reactive current can be reduced by shunt capacitor placement. In addition to
reducing power and energy losses in load peak, optimal capacitor placement can
free up distribution equipment capacity and improve the voltage profile. Hence, over
the past decades, the optimal capacitor placement has been widely studied. Optimal
capacitor placement involves determining the location, size and number of capacitors
installed in the distribution system, so that the most benefit is obtained at different
load levels.
Optimal Capacitor Placement and Sizing in Distribution Networks 77
The installed shunt capacitors in the end of power system feeder for supplying reactive
power have some advantages. In this section some of these advantages are investi-
gated. Different methods are used by different companies to calculate the economic
benefits of installing reactive power devices. In summary, the economic benefits of
installing reactive compensators can be summarized as follows:
• Freeing up production capacity
• Reducing voltage drop, and consequently, obtaining an improved voltage profile
• Releasing feeder capacity and related equipment
• Delaying or removing investments for system reform and development
• Reducing power and energy losses.
78 A. Najafi et al.
The feeders with large loads have a weak voltage profile and they face with voltage
variations by loads changing. In a power system, voltage regulation in a small interval
(5% of nominal voltage) and having a balance situation are proposed. By the way, the
amounts of loads fluctuation and as a result, the voltage deviation will be more than
allowable amount. The shunt capacitors are one of the main solutions to improve the
voltage deviations. On the other hand, by keeping the voltage near to the nominal
value, it is not required to use expensive regulators [3]. In addition, the revenue
of distribution companies rises due to voltage increment by capacitors, which in
turn increases energy consumption. This is especially true for domestic consumers.
Increasing energy consumption depends on the nature of the equipment used; for
example, the energy consumption of bulbs increases with the square of the voltage
magnitude.
Delivering the reactive power at the load point leads to reduction in line current
and losses. Within a determined study period, the amount of energy losses is also
calculated. Now, taking into account the cost per kilowatt hour of energy production,
the energy loss reduction benefit due to the capacitor placement can be calculated.
Reducing losses at the peak load of the network has good benefits. By reducing the
losses at the peak load, the power stations depart from their nominal values, thus
reducing the need for production. Meanwhile, with the increase of new customers,
the construction of new power plants is postponed. Modifying power factor can
significantly reduce the network loss. This can lead to 15% rate of return in the
network [4]. Modifying the power factor should be done near the customers in order
to maximize the profit. Note that, installing capacitors in LV networks are more
expensive in comparison with the MV and HV networks. In the many industrial
places, the losses are about 2.5–7.5%, which is related to the states of operation,
length of lines and feeder. Capacitors can only decrease a part of losses related to
the reactive current [4].
In short, capacitors are very effective tools for reducing the costs of the electric
power industry due to continuous increase in fuel and power costs. Power compa-
nies make profit whenever they are able to postpone or eliminate new power plant
investments and reduce energy requirements. Therefore, capacitors help minimize
operating costs and make it feasible for new consumers to invest as little as possible
in the system. Today, American distribution companies have installed almost 1 kVAR
capacitor per 2 kilowatt of installed power generation capacity to use from economic
benefits of capacitor placement [5].
In addition, by using capacitors, a reactive current is supplied for transformers,
motors and other devices. This action increases the power factor. It means, by a
lower current (or apparent power) more active power usage is occurred. Therefore,
capacitor banks can be utilized in order to decrease the load or give more flexibility
to the network for increasing load.
By using the capacitors and freeing up the capacity, the cost of network expansion
will be postponed. This snooze is started from distribution feeder to the substation
and transmission networks [3]. It means more economic opportunities for network
expansion planning.
Capacitor banks certainly have many benefits for the network. However, there are
various states in which the capacitors make the system situation worse. In this section
some bugs are investigated.
2.2.1 Resonance
If the resonance is occurred with the harmonic source (for example non-linear
loads) simultaneously, the voltage and current will be increased extremely. Moreover,
harmonic resonance will affect the performance of the capacitor.
80 A. Najafi et al.
2.2.4 Over-Voltage
The voltage of the system is varied in a predefined interval in the power system.
Using capacitors can make over voltage in off-peak hours. It may exert unfavorable
effects on the system [3].
3 Literature Review
Problem solving methods can be divided into four categories: analytical, numerical
programming, evolutionary, and artificial intelligence. The next section summarizes
the methods of each category and their advantages and disadvantages.
In all of the early works on optimal capacitor placement, analytical methods have
been used. These algorithms are used when powerful computing resources (high-
capacity computers) are not available or expensive. Analytical methods include the
use of algebra and calculus to determine the highest value of the saving function.
This saving function is often provided as follows:
S = K E !E + K P !P − K C C (1)
where K E !E and K P !P are respectively the cost and energy reduction caused by
capacitor placement, and K C C is the cost of capacitor placement.
Capacitor placement pioneers have used all analytical methods to solve this prob-
lem [6–9]. Although these methods can solve the problem in a simple form, they are
based on unrealistic assumptions for feeders such as constant conductor size and uni-
form loading. From these studies, the famous two-thirds method is extracted. In the
two-thirds method, for minimizing losses, a capacitor with a capacity of two-thirds
of the reactive load of the feeder is placed at about two-thirds of the feeder length.
These early analytical methods were easy to understand and implement. Despite
the disadvantages, some industries still use these methods for capacitor placement
and some companies argue the rule as a guide. To improve the results, the feeder
model is improved. References [8, 10, 11] have formulated the non-uniformity of the
load and the different sizes of the conductor. Moreover, Refs. [12–14] have included
Optimal Capacitor Placement and Sizing in Distribution Networks 81
the switching capacitors in the program, and further improved the situation by con-
sidering the location of the capacitor regulators. Another problem with analytical
methods is to model the location and size of capacitors as continuous variables. Con-
sequently, the calculated size capacitor may not correspond to the standard sizes,
and also the location obtained does not match the allowed nodes for capacitor place-
ment. Therefore, the results should be rounded to the nearest high or low standard;
this results in over-voltage status or savings below the calculated value. Of course,
most of the recent analytical methods are more accurate but require a lot of system
information and longer time to run.
Since access to computers became easier and computer memory was reduced, numer-
ical programming algorithms were used to solve optimization problems. Numerical
programming methods are repetitive techniques maximizing or minimizing the objec-
tive function of decision variables. The values of decision variables should also be
constrained by a number of limits. The objective function is the cost saving for opti-
mal location, size and number of capacitors. Voltage and currents can be decision
variables that should satisfy all constraints. Numerical programming methods allow
a more complex cost function to be optimized for the capacitor placement problem.
The objective function can include all voltage constants, line loading, discrete capac-
itor sizes and physical locations of the nodes. Numerical programming can be used
to formulate capacitor placement problem as follows:
Max S = K L !L − K C C (2)
Subjected to:
!V ≤ !VMax (3)
In this regard, K L !L is cost savings that may include power and energy losses
reduction at peak load as well as freeing up the system capacity. The parameter K C C
is the cost of capacitor placement and V is the voltage variation that should not exceed
!VMax .
Reference [15] was the first to use dynamic programming to solve a capacitor
placement problem, which considered only energy losses reduction with a discrete
set of capacitor sizes. By examining all numerical programming methods, it can be
seen that the level of growth and complexity of the models has progressed over time.
This trend was due to increased computing capacity. Today, heavy calculations are
relatively inexpensive, and many numerical optimization packages are available for
each of the above algorithms. Some numerical programming methods consider the
location of nodes and capacitor sizes as discrete variables; this has a good advantage
over analytical methods. However, the preparation of data and the growth of the
82 A. Najafi et al.
process for numerical techniques may require more time than analytical methods.
To illustrate whether the answer obtained by numerical optimization planning meth-
ods are local or original, the convexity of capacitor placement problem should be
determined. Considering the economic value of freed capacity and the effect of load
growth in these methods may be very difficult.
The recent popularity of artificial intelligence has led researchers to explore their uses
in power engineering applications. In [16], a method based on GA is used for optimal
capacitor placement. The size and location of the capacitors are encoded in the binary
strings and the intersect operator is used to generate new populations. The problem
formulation includes only the cost of capacitors and the reduction of peak power
losses. References [17] and [18] are other studies that have used genetic algorithm to
solve capacitor placement problem. In [19], the simulated annealing method is used
to solve this problem. In recent years, the use of evolutionary algorithms has been
increasing; some of these algorithms are: multi-objective algorithm of the immune
system [20], differential evolution algorithm [21], firefly algorithm [22], inclusion
and interchange of variables algorithm [23], particle swarm optimization [24], shark
smell optimization algorithm [25], enhanced bacterial foraging optimization [26].
Moreover, [27] and [28], respectively, use neural networks and fuzzy logic to solve
this problem.
4 Problem Formulation
The optimal capacitance problem has many variables and parameters, such as capac-
itor size and optimal capacitor location. In addition, constraints such as bus voltages
are also involved. In this paper, objectives and constraints are considered as follows:
Nc
! Nl
!
peak j l
f = K P Ploss + KC QC + K E Tl Ploss (4)
j=1 l=1
Optimal Capacitor Placement and Sizing in Distribution Networks 83
peak
where Ploss represents the losses in the peak, Q C the cost of the capacitor j, N c the
number of capacitor points, K P the power loss into cost conversion factor, K C the
cost of the capacitor per kilovar and K E the cost per kilowatt of energy losses.
It should be noted that losses in the distribution network include both power and
energy loss. Power loss is related to peak loading and energy loss is related to loading
during the year and can be calculated from power loss according to the loss factor.
4.2 Constraints
• Teacher phase
The first part of the TLBO algorithm is teacher training. The main goal of the
teacher is to transfer knowledge and increase the positive output of knowledge in the
class. Efficiency in this area dates back to the teacher. Mathematically, this phase is
expressed as [30]:
TF = round(1 + r2 ) (8)
In this case, r 2 is a random number between zero and one. Using round, the factor
value is rounded.
In the process of answer generation, if the generated answer is better than the
previous one, it replaces the previous answer.
• Student phase
In this phase, students increase their knowledge through the exchange of informa-
tion, in which there is no stable process, and as a result, each student can exchange
knowledge with another student. These cases are mathematically motivated. Two
random answers i and j are selected. Note that the two answers are not the same.
Then, the student phase is completed using the following formula:
If the ith answer is better than the jth answer
" #
Xi,new = Xi + r3 . Xi − Xj (9)
where r3 is a vector of random numbers between zero and one. In this case, r3 is a
vector of random numbers between zero and one.
After the answers are made, the new answer would replace the previous answer
if the newly generated random answer is better than the previous one. In summary,
the TLBO algorithm can be seen in the flowchart of Fig. 1.
Optimal Capacitor Placement and Sizing in Distribution Networks 85
In this case, each answer represents the optimal location and size of the capacitor.
Figure 2 shows a coding of an answer to the algorithm. This code is such that each
of the elements of this code is assigned to a bus. A number between zero and the
maximum number of types of capacitors can be placed in these elements. The value
zero means that the bus is not allocated to the capacitor and the value 1 means type
1 capacitor and the rest numbers obey the same order.
Choosing a suitable location for capacitors is highly dependent on the system load.
Therefore, the loading information of all load points is required to be known. On the
other hand, in order to reduce the calculation, the total load of the system is estimated
as a step. Figure 3 shows the load model used in this problem [31]. These load levels
are usually expressed as a percentage of peak load. Additionally, the number of
surfaces considered for the load is not limited and the capacitor placement problem
can be solved easily without any need for modification of the model for several load
levels as well as different loading levels for different load points.
6 Numerical Results
In order to perform simulations, two IEEE 10 [32] and 33-bus test cases have been
used [33]. In the 10-bus system, the primary power and energy losses are 7070.16 kW
and 6,371,219 kWh, respectively. The initial active and reactive power of the system
are also 12,368 and 4186 kW, respectively. In the 33-bus system, the power and
energy losses are 40.15 kW and 387,058 kWh, respectively. In both systems the
objective is to reduce the losses and capacitor placement cost. The schematic of
these two systems is shown in Figs. 4 and 5, respectively. The load and network lines
specifications are given in Tables 1 and 2, respectively. We will continue to introduce
each of these test cases individually.
In this system, in all three modes, low, medium and peak load, voltages at the ending
buses are lower than the limit. The acceptable range of voltage is between 0.9 and
4.1, but the voltage drop in initial conditions is about 0.84, which is less than the
limit. After optimization, according to Fig. 6, the worst voltage that is again at the
end of the network is about 0.91, which is above the lower limit. Moreover, the power
loss is up to 704.64, which is dropped to acceptable levels of casualties. The energy
loss reaches 6,100,342.29 (see Table 3). The optimum locations are buses 3, 5, 7,
and 9. Figure 7 shows rapid convergence of the algorithm with a acceptable rate of
200 iterations (Table 4).
In this system, the power and energy losses are 57.48 kW and 387,058.9721 kWh,
respectively. The permitted voltage range is also 0.95 to 1.05. After performing
the simulations, Table 5 shows the power loss rate decreased to 43.41. Meanwhile,
the energy losses have dropped to 348,408.4 kWh. Voltage profiles are shown in
Fig. 8 before and after simulation. In cases, low, medium and peak load, the voltage
profile is improved and voltage deviation is reduced. However, while capacitors
where allowed to be assigned to all buses, only a capacitor of 450 kV is assigned
to bus 29, and all positive effects are only due to this capacitor. This indicates the
importance of selecting the correct location for capacitor placement. Figure 9 also
depicts the convergence graph of the TLBO algorithm. The final cost of the case is
3421.6.
Optimal Capacitor Placement and Sizing in Distribution Networks 89
Fig. 7 Convergence of
10-bus test case
Fig. 9 Convergence of
33-bus test case
7 Conclusion
In this chapter, the optimal location and sizing of capacitors in a distribution network
were investigated using the TLBO optimization algorithm. Each answer (student)
in the TLBO algorithm was considered to be the location and optimal size of the
capacitors. The goal was to reduce the power and energy losses and the cost of
locating the capacitors. In order to consider the energy losses, a three-level model
of loads, including off-peak, medium and peak load was used. Simulations were
implemented in two standard 10 and 33-bus systems. The results showed that there
is a voltage drop problem at the end of the system in the 10-bus system, and this
voltage drop can be improved by capacitor placement. In addition, network losses
can be reduced. In the 33-bus system, network loss reduction and voltage profile
improvement can be seen.
Acknowledgements This book chapter is gratefully dedicated to my beloved wife, Samira, who
taught me how to be a better man.
92 A. Najafi et al.
MATLAB Code
In this part the MATLAB codes of optimal capacitor placement for the 10-bus test
case is presented. The code of 33-bus test case is similar. Therefore only one of test
cases is presented here. The code is separated to the some functions. Each function
should be copied in a separate MATLAB m-file and then the first code should be run.
%%%
p = ceil(rand(No_pop,NBus-1)*No_Cap_Type);%%% Initial
popoulation
pop = Cap_Mvar_determine(p); %%% Allocation MVAr to the
generated population
for i = 1:size(p,1)
pop(i,:) = Cap_Mvar_determine(p(i,:));
Load(:,1) = LoadOffPeak - (pop(i,:))';Load(:,2) =
LoadMedium - (pop(i,:))';
Optimal Capacitor Placement and Sizing in Distribution Networks 93
Load(:,3) = LoadPeak -
(pop(i,:))';Total_Cap_Price
=sum(Cap_Price((p(i,:))));
for il=1:NLoadLevel
Loaddata(:,3) = Load(:,il);
[PLoss(i,il),Vbus,Isec(i,il,:)]=DLF(Strdata
,Loaddata);%%% Running load flow
PenaltyVoltageL(i,il)= PenV(Vbus); %%%
Calculating amount of penalties
end
PenaltyVoltage(i) = sum(PenaltyVoltageL(i,:),2);
f(i) = Ke*(T_OffPeak*PLoss(i,1) +
T_Medium*PLoss(i,2) + T_Peak*PLoss(i,3)) +
Kp*PLoss(i,1) + Total_Cap_Price;%%% Calculating
objective function
f(i) = f(i) + PenaltyVoltage(i);
end
PBest = p;PBestValue = f;[GTeacherValue, index] =
min(f); GTeacher = PBest(index,:); %%% The best
solution
Xmean = mean(p);
for k = 1:Iter
k
[f,p,GTeacher, GTeacherValue, Xmean,
PenaltyVoltage, PenaltyVoltageBest] =
UpdateSolutions(GTeacher, p, Xmean, f,
PenaltyVoltage, LoadOffPeak, LoadMedium,
LoadPeak);
%%% Generating new solutions
fff(k) = GTeacherValue;
end
toc
ij = 1:Iter;
hold on
plot(ij,fff,'r')
if f(i)<f(j)
pnew(i,:) = p(i,:) +
rand(1,size(p,2)).*(p(i,:) -
p(j,:));
else
pnew(i,:) = p(i,:) +
rand(1,size(p,2)).*(p(j,:) -
p(i,:));
end
pnew(i,:) = round(pnew(i,:));
for k = 1:size(p,2)
if pnew(i,k)>No_Cap_Type
pnew(i,k)= No_Cap_Type;
elseif pnew(i,k)<1
pnew(i,k)= 1;
end
end
pop(i,:) =
Cap_Mvar_determine(pnew(i,:));
Load(:,1) = LoadOffPeak - (pop(i,:))';
Load(:,2) = LoadMedium - (pop(i,:))';
Load(:,3) = LoadPeak - (pop(i,:))';
Total_Cap_Price
=sum(Cap_Price((pnew(i,:))));
for il=1:NLoadLevel
Loaddata(:,3) = Load(:,il);
[PLoss(i,il),Vbus,Isec(i,il,:)] =
DLF(Strdata,Loaddata);
PenaltyVoltageL(i,il)=
PenV(Vbus);
end
PenaltyVoltageNew(i) =
sum(PenaltyVoltageL(i,:),2);
fnew(i) = Ke*(T_OffPeak*PLoss(i,1) +
T_Medium*PLoss(i,2) +
T_Peak*PLoss(i,3)) + Kp*PLoss(i,1) +
Total_Cap_Price;
fnew(i) = fnew(i) +
PenaltyVoltageNew(i);
if fnew(i)<f(i)
p(i,:) = pnew(i,:);
f(i)=fnew(i);
PenaltyVoltage(i) =
PenaltyVoltageNew(i);
Optimal Capacitor Placement and Sizing in Distribution Networks 97
end
end
end
[GTeacherValue, index] = min(f);
GTeacher = p(index,:);
PenaltyVoltageBest = PenaltyVoltage(index(1));
Xmean = mean(p);
NERROR=1;
S_bus=Sbus-i*(Cbus.*(Vbus/Vbase).^2); %for P
constant Ibus=conj(S_bus./(sqrt(3)*Vbus));
while ((Iter<100)&&(NERROR>1e-5))
Iter=Iter+1;
OldIbus=Ibus;
VD=sqrt(3)*(BV*BI)*Ibus;
Isec=BI*Ibus;
Vbus=Vbase-VD;
S_bus=Sbus-i*(Cbus.*(Vbus/Vbase).^2); %for P
constant Ibus=conj(S_bus./(sqrt(3)*Vbus));
NERROR=max(max(abs(Ibus-OldIbus)));
end
%======================================================
===
LossSec=3*abs(Isec).^2.*(Rsec)/1000;
PLoss=sum(LossSec);
Vbus=abs(Vbus)/Vbase; % voltage of to buses
return
end
for i=1:size(Vbus,1)
if (Vbus(i)>VLoadMax) || (Vbus(i)<VLoadMin)
Penalty(i) = PF;
else
Penalty(i) = 0;
end
end
PenaltyVoltage = sum(Penalty);
V = VgMin + rand(No_pop,No_generator)*(VgMax-VgMin);
TT = ceil(NTransStep*rand(No_pop,NTrans));
T = TransTap(TT);
tic
for ii = 1:No_pop
for jj=1:NQComp
QComp(ii,jj) = QCompMin(jj) + rand*
(QCompMax(jj) - QCompMin(jj));
end
end
References
1. Bunch, J.B., Miller, R.D., Wheeler, J.E.: Distribution system integrated voltage and reactive
power control. IEEE Trans. Power Apparatus Syst. 101(2), 284–289 (1982)
2. Arcanjo, D.N., Pereira, J.L.R., Oliveira, E.J., Peres, W., de Oliveira, L.W., da Silva Junior, I.C.:
Cuckoo search optimization technique applied to capacitor placement on distribution system
problem. In: Proceedings of 10th IEEE/IAS International Conference on Industry Applications
(2012)
100 A. Najafi et al.
3. Fuchs, E., Masoum, M.: Power Quality in Power Systems and Electrical Machines, pp. 261–300.
Elsevier (2008)
4. Saric, A.T., Calovic, M.S., Djukanovic, M.B.: Fuzzy optimization of capacitors in distribution
systems. In: IEE Proceedings on Generation, Transmission and Distribution (1997)
5. Wu, D., Tang, F., Guerrero, J.M., Vasquez, J.C.: Autonomous control of distributed generation
and storage to coordinate P/Q sharing in islanded microgrids-an approach beyond droop control.
In: Proceeding of International Energy Conference (ENERGYCON) (2014)
6. Neagle, N.M., Samson, D.R.: Loss reduction from capacitors installed on primary feeders.
Trans. Am. Instit. Electr. Eng. Part III. IEEE Trans. Power Apparatus Syst. 75(3), 1 (1956)
7. Cook, R.F.: Optimizing the application of shunt capacitors for reactive-volt-ampere control
and loss reduction. Trans. Am. Instit. Electr. Eng. Part III. IEEE Trans. Power Apparatus Syst.
80(3), 430–441 (1961)
8. Grainger, J.J., Lee, S.H.: Optimum size and location of shunt capacitors for reduction of losses
on distribution feeders. IEEE Trans. Power Apparatus Syst. 100(3), 1105–1118 (1981)
9. Chang, N.E.: Locating shunt capacitors on primary feeder for voltage control and loss reduction.
IEEE Trans. Power Apparatus Syst. 88(10), 1574–1577 (1969)
10. Lee, S.H., Grainger, J.J.: Optimum placement of fixed and switched capacitors on primary
distribution feeders. IEEE Trans. Power Apparatus Syst. 100(1), 345–352 (1981)
11. Salama, M.M.A., Chikhani, A.Y., Hackam, R.: Control of reactive power in distribution systems
with an end-load and fixed load condition. IEEE Power Eng. Rev. 5(10), 39–46 (1985)
12. Civanlar, S., Grainger, J.J.: Volt/Var control on distribution systems with lateral branches
using shunt capacitors and voltage regulators part II: the solution method. IEEE Trans. Power
Apparatus Syst. 104(11), 3284–3290 (1985)
13. Civanlar, S., Grainger, J.J.: Volt/Var control on distribution systems with lateral branches using
shunt capacitors and voltage regulators part III: the numerical results. IEEE Trans. Power
Apparatus Syst. 104(11), 3291–3297 (1985)
14. Grainger, J.J., Civanlar, S.: Volt/Var control on distribution systems with lateral branches
using shunt capacitors and voltage regulators part I: the overall problem. IEEE Trans. Power
Apparatus Syst. 104(11), 3278–3283 (1985)
15. Dura, H.: Optimum number, location, and size of shunt capacitors in radial distribution feeders
a dynamic programming approach. IEEE Trans. Power Apparatus Syst. 87(9), 1769–1774
(1968)
16. Boone, G., Chiang, H.D.: Optimal capacitor placement in distribution systems by genetic
algorithm. Int. J. Electr. Power Energy Syst. 15(3), 155–161 (1993)
17. Sundhararajan, S., Pahwa, A.: Optimal selection of capacitors for radial distribution systems
using a genetic algorithm. IEEE Trans. Power Syst. 9(3), 1499–1507 (1994)
18. Miu, K.N., Chiang, H.D., Darling, G.: Capacitor placement, replacement and control in large-
scale distribution systems by a GA-based two-stage algorithm. IEEE Trans. Power Syst. 12(3),
1160–1166 (1997)
19. Ananthapadmanabha, T., Kulkarni, A.D., Gopala Rao, A.S., Raghavendra Rao, K.,
Parthasarathy, K.: Knowledge-based expert system for optimal reactive power control in
distribution system. Int. J. Electr. Power Energy Syst. 18(1), 27–31 (1996)
20. Huang, T.L., Hsiao, Y.T., Chang, C.H., Jiang, J.A.: Optimal placement of capacitors in distri-
bution systems using an immune multi-objective algorithm. Int. J. Electr. Power Energy Syst.
30(3), 184–192 (2008)
21. Chiou, J.P., Chang, C.F., Su, C.T.: Capacitor placement in large-scale distribution systems
using variable scaling hybrid differential evolution. Int. J. Electr. Power Energy Syst. 28(10),
739–745 (2006)
22. Kavousi, Fard A., Niknam, T.: Optimal stochastic capacitor placement problem from the
reliability and cost views using firefly algorithm. IET Sci. Meas. Technol. 8(5), 260–269 (2014)
23. Perez, Abril I.: Algorithm of inclusion and interchange of variables for capacitors placement.
Electr. Power Syst. Res. 148, 117–126 (2017)
24. Lee, C.-S., Ayala, H.V.H., Coelho, L.S.: Capacitor placement of distribution systems using
particle swarm optimization approaches. Int. J. Electr. Power Energy Syst. 64, 839–851 (2015)
Optimal Capacitor Placement and Sizing in Distribution Networks 101
25. Gnanasekaran, N., Chandramohan, S., Kumar, P.S., Mohamed Imran, A.: Optimal placement
of capacitors in radial distribution system using shark smell optimization algorithm. Ain Shams
Eng. J. 7(2), 907–916 (2016)
26. Othman, A.M.: Optimal capacitor placement by Enhanced Bacterial Foraging Optimization
(EBFO) with accurate thermal re-rating of critical cables. Electr. Power Syst. Res. 140, 671–680
(2016)
27. Gu, Z., Rizy, D.T.: Neural networks for combined control of capacitor banks and voltage
regulators in distribution systems. IEEE Trans. Power Deliv. 11(4), 1921–1928 (1996)
28. Chin, H.C.: Optimal shunt capacitor allocation by fuzzy dynamic programming. Electr. Power
Syst. Res. 35(2), 133–139 (1995)
29. Das, D.: Optimal placement of capacitors in radial distribution system using a Fuzzy-GA
method. Int. J. Electr. Power Energy Syst. 30(6), 361–367 (2008)
30. Gautam, G.D., Pandey, A.K.: Teaching learning algorithm based optimization of Kerf devia-
tions in pulsed Nd: YAG laser cutting of Kevlar-29 composite laminates. Infrared Phys. Technol.
89, 203–217 (2017)
31. Falaghi, H., Singh, C.: Optimal conductor size selection in distribution systems with wind power
generation. In: Wang, L., Singh, C., Kusiak, A. (eds.) Wind Power Systems: Applications of
Computational Intelligence, pp. 25–51. Springer, Heidelberg (2010)
32. Chung, T.S., Leung, H.C.: A genetic algorithm approach in optimal capacitor selection with
harmonic distortion considerations. Int. J. Electr. Power Energy Syst. 21, 561569 (1999)
33. Afzalan, E., Taghikhani, M.A., Sedighizadeh, M.: Optimal placement and sizing of DG in
radial distribution networks using SFLA. Int. J. Energy Eng. 2(3), 73–77 (2012)