Description of ABC and PSO Algorithms
Description of ABC and PSO Algorithms
Computation of real power loss in the branch ‘k’ is the product of the current flowing
through and the corresponding line resistance ( I 2k × Rk ) on the sample distribution network;
the line loss can be formulated as:
( )
2 2
P( L (i +1) )+Q ( L (i +1))
P Loss( k )=( I ) × Rk =
2
k 2
× R k Eq. 4.1.1.1
V ((i +1) )
In the same principle, the reactive power loss in branch ‘k’ between ‘i’ and ‘i+1’ can be
expressed as:
( )
2 2
P( L ( i+1) )+Q ( L (i +1))
Q Loss( k )=( I ) × Rk =
2
k 2
× X k Eq. 4.1.1.2
V ((i +1) )
where:
P( L ( i+1 )) is the total effective active power supplied beyond the node ‘i+1’
Q( L (i+1 )) is the total effective reactive power supplied beyond the node ‘i+1’
V i is voltage at node ‘i’
Real power loss minimization helps DGs supply power to the surplus loads with existing
substation power. Further, reducing Real Power loss also results in savings for DGs
regarding reduced energy loss costs. Therefore, the objective function for Real power loss
minimization is very crucial and is defined as
where
P Loss or P L is the real power loss of the system calculated from the two-bus equivalent of a
distribution system using Eq. 4.1.1.4 as [3]
Nb
P Loss=∑ I 2(k , k+1) × R( k ,k +1) Eq. 4.1.1.4
k=1
where
R( k ,k +1) and I (k , k+1 ) are the resistance and the current flowing through the branch connected
The loads connected towards the end of radial distribution networks experience a poor
voltage level, and an increase in load demand exacerbates the scenario. Further, the
addition of sensitive loads requires a flat voltage profile. Therefore, the following voltage
deviation objective function measures the degree to which a flat voltage profile is
maintained.
k =1
where V s and V k are the voltage magnitudes of the substation and the k th node,
respectively, N n represents the total number of nodes of the network.
Where w 1 and w 2 are the weights and decide the impact of an individual index on the
overall objective function, the utilities can judiciously select these weights on a priority
basis. However, this study considers the values of the weights as 1 and 1 respectively.
As a result, the objective function minimizes the associated losses and the voltage
deviation, as shown in Eq. 4.1.1.3 and Eq. 4.1.2.1. In this regard, the optimal location and
the corresponding DG unit size, which result in minimum power losses and minimum
voltage deviation from the nominal value without violating the system constraints, will be
systematically determined.
4. 3 Constraints
The objective functions defined in Eq. 4.1.1.3, Eq. 4.1.2.1, Eq. 4.2.1 are optimized for the
following pragmatic constraints.
The bus voltage is allowed to vary within -5% to +5% of the nominal voltage
max
Where I (k , k+1 ) is the branch current, and I (k , k+1 ) is the maximum permissible branch
current
DG position constraint
The nodes for DG integration are generated using Eq. 4.3.3 without any repetition:
DG capacity constraints
As defined in eq. 4.3.4, the DG sizes must be within the capacity limit,
V (idt+1 )=w × V tid +c 1 × rand 1 × ( Ptid − X tid ) + c 2 × rand 2 × ( Ptgbd − X tid ) Eq. 4.4.1
Hence, the evaluation of PSO is modified from iteration to iteration. In other words, unlike
the conventional PSO, the linear recursive function is modified, and the i th particle position
is also updated using the following equation.
( t +1) t ( t +1)
X id = X id + V id , fori=1 , 2 ,... , n and d=1, 2 , ..., m Eq. 4.4.2
However, velocity values are restricted to some minimum and maximum values [
velmin , velmax ] using the following equation.
( t +1) ( t +1)
v id = velmax if v id > velmax; Eq. 4.4.3
( t +1) ( t +1 ) ( t +1)
v id =v id if vid ≤ velmax
( t +1) ( t +1)
v id =velmin if v id ≤ velmin
Generally, the procedures for the IPSO algorithm are presented in the flow chart depicted
in Fig.
<Flow Chart>
Step I: Read the line and load data, perform load flow analysis, and find the values of
objectives without adding the DGs.
Again, find and store the values of objectives (employee bees’ phase)
Evaluate the values of objectives and select the best ones (onlooker bees’ phase)
Set iteration to 1
Step IV: Initiate more food sources (random solutions). Read the line and load data, and
perform load flow analysis incorporating new DG sizes and locations.
Again, find and store the values of objectives (employee bees' phase)
Evaluate the values of objectives and select the best ones (onlooker bees' phase)
Find scout bees (some random solutions as of the first iteration)
f itness R
R R= Ne
Eq. 4.5.2
∑ fitness R
R =1
Step VI: Find the probability RR of fitness of solutions using Eq. 4.5.2
After each Big Bang phase, a Big Crunch phase should take place to determine the
convergence operator by which particles will be drawn into an orderly fashion in the
subsequent Big Bang phase.
The convergence operator based on the Big Crunch phase can be defined as the weighted
average of the candidate solution positions known as the centre of mass ( CM ) or the
position of the best candidate solution (bestP ). For minimization problems, CM is
formulated as follows:
( )
nP
P ( j ,i )
∑ PFit ( j )
j=1
CM ( i )= nP , i=1 , ..., nv Eq. 4.6.1
∑( 1
PFit j( ))
j=1
The Big bang phase occurs now. In the original BB-BC, the particles are updated simply
for the previously determined centre of mass (CM ) or the position of the step size defined
by the upper (Ub) and Lower ( Lb ) bound of design variables:
rand × ( Ub− Lb )
newP=( CM ∨best P ) + Eq. 4.6.2
nIT
where a rand is a random number uniformly distributed in (0,1), the step size is also
divided by the number of algorithm iterations or the number of the Big Bang phases ( nIT s)
to generate the effective search range about the global optimum or centre of mass with the
aim of narrowing the search with the progress of the algorithm.
These two contraction (Big Crunch) and dispersing (Big Bang) phases are repeated in the
cyclic body of the algorithm in succession to satisfy a stopping criteria to steer the particles
toward the global optimum of the problem. [3] The two parameters that are required for all
meta-heuristics as stopping criteria are:
However, Camp [4] presented a new formulation with two additional parameters for the Big
Bang phase and showed the efficiency of the newly proposed formulation. They are:
rand × α × ( Ub− Lb )
newP ( i )=( β ×CM + (1 − β ) ×bestP ) + , i=1 , ..., nP Eq. 4.6.3
nIT
This modified formulation is used and coded in this project. It should be noted that the BB-
BC algorithm does not need a replacement strategy. In other words, particles leave their
position no matter if their current position is better.
The pseudo code of algorithm is provided as follows, and the flow chart of BB-BC is
illustrated in Fig.
According to this flowchart, it is evident that one cannot explicitly distinguish between
intensification and diversification because the BB-BC involves these two features together.