Professional Documents
Culture Documents
SUBMITTED BY:
AAKASH KEDARI (BT10EEE001)
AUMKAR BORGAONKAR (BT10EEE018)
SAURABH DICHWALKAR (BT10EEE026)
SACHIN PRAKASH (BT10EEE076)
SHASHANK SAHU (BT10EEE078)
VAIBHAV KUMAR URAON (BT10EEE088)
[1]
VISVESVARAYA NATIONAL INSTITUTE OF TECHNOLOGY, NAGPUR
2013 – 2014
CERTIFICATE
This is to certify that the project work entitled “Economic Load Dispatch using
Optimization Algorithms”, is a bona fide work by Mr. Aakash Kedari, Mr. Aumkar
Borgaonkar, Mr. Saurabh Dichwalkar, Mr. Sachin Prakash, Mr. Shashank Sahu and
Mr. Vaibhav Kumar Uraon in the Department of Electrical and Electronics Engineering,
Visvesvaraya National Institute of Technology, Nagpur, in partial fulfillment of the
requirements of the award of the degree of Bachelor of Technology in Electrical and
Electronics Engineering.
[2]
VISVESVARAYA NATIONAL INSTITUTE OF TECHNOLOGY, NAGPUR
2013 – 2014
DECLARATION
This is to declare that the project work entitled “Economic Load Dispatch using
Optimization Algorithms”, is a bona fide work performed by us, the below mentioned
students. This project work is being submitted and forwarded in partial fulfillment of the
requirements for the award of the degree of Bachelor of Technology in Electrical and
Electronics Engineering from Visvesvaraya National Institute of Technology,
Nagpur.
To the best of our knowledge this project report has not been submitted to any other
institution or university.
[3]
ACKNOWLEDGEMENT
We take this opportunity to acknowledge with deep sense of gratitude our project
guide Dr. V.S. Kale, Associate Professor, Department of Electrical And Electronics
Engineering, Visvesvaraya National Institute of Technology, Nagpur for his invaluable
guidance, constant motivation, and continuous support which has led to the successful
completion of this project.
We also take this opportunity to pay our sincere thanks to Dr. M.V. Aware, Head of
Department, Electrical Engineering, Visvesvaraya National Institute of Technology,
Nagpur, for providing the requisite facilities needed to complete the project. We would
also like to thank all the teaching and non-teaching staff for supporting us.
We express our thanks to our parents and all our friends for their constant support
and encouragement, which helped us complete this work.
Aakash Kedari
Aumkar Borgaonkar
Saurabh Dichwalkar
Sachin Prakash
Shashank Sahu
Vaibhav Kumar Uraon
[4]
ABSTRACT
[5]
TABLE OF CONTENTS
1. Introduction .............................................................................................................................................. 8
Power Generation Cost .......................................................................................................................... 10
Economic Load Dispatch ....................................................................................................................... 12
Optimization .............................................................................................................................................. 15
Mathematical Modelling........................................................................................................................ 18
The Transmission-Loss Equation ...................................................................................................... 23
5. Results ........................................................................................................................................................61
Simple 3-Generator System ................................................................................................................. 62
4-Bus System ............................................................................................................................................. 73
Conclusion .....................................................................................................................................................78
References .....................................................................................................................................................80
[6]
LIST OF FIGURES
S. No Figure Page
[7]
CHAPTER 1
INTRODUCTION
[8]
[9]
1.1 POWER GENERATION COST
The shape of the generating cost curve can be understood by the heat
rate curve. The heat-rate curve denotes the thermal energy supplied by
burning the fuel per 𝑀𝑊ℎ𝑟 of electric energy.
If we assume the cost of fuel as 𝐾 ₹/𝑀𝐾𝐶𝑎𝑙, the input fuel cost 𝐶𝑖 (𝑃𝑔𝑖 ) is
[10]
𝐹𝑖𝑔. 1.1 shows a typical 𝐻𝑒𝑎𝑡 𝑅𝑎𝑡𝑒 𝑣𝑠. 𝐺𝑒𝑛𝑒𝑟𝑎𝑡𝑜𝑟 𝑂𝑢𝑡𝑝𝑢𝑡 curve for a single
generating unit.
The curve can be approximated as
𝛼𝑖
𝐻𝑖 (𝑃𝑔𝑖 ) = + 𝛽𝑖 + 𝛾𝑖 𝑃𝑔𝑖 … (1.1.3)
𝑃𝑔𝑖
1
𝐶𝑖 (𝑃𝑔𝑖 ) = 𝑎𝑖 𝑃𝑔𝑖 2 + 𝑏𝑖 𝑃𝑔𝑖 + 𝑑𝑖 … (1.1.5)
2
For a system of ‘n’ generators, the total cost of power generation is given
by the summation of the costs of individual generating units.
𝐶𝑇𝑜𝑡𝑎𝑙 = ∑ 𝐶𝑖 … (1.1.5)
𝑖=1
[11]
1.2 ECONOMIC LOAD DISPATCH
𝐶𝑡𝑜𝑡𝑎𝑙 = ∑ 𝐶𝑖 … (1.2.1)
𝑖=1
In addition, this optimization is constrained by the fact that the total power
generated by all the units should be equal to the sum of total load demand
of the system and the transmission power loss.
∑ 𝑃𝑔𝑖 − 𝑃𝐷 = 0 … (1.2.2)
𝑘=1
The given problem defined by equations can now be solved by the method
of Lagrange multipliers.
𝑛 𝑛
𝐿 = ∑ 𝐶𝑖 − 𝜆 [∑ 𝑃𝑔𝑖 − 𝑃𝐷 ] … (1.2.3)
𝑖=1 𝑘=1
[12]
Minimisation is achieved by the condition,
𝜕𝐿
=0 … (1.2.4)
𝜕𝑃𝑔𝑖
𝜕𝐶𝑖
=𝜆 … (1.2.5)
𝜕𝑃𝑔𝑖
𝜕𝐶𝑖
where, is the incremental cost of the 𝑖 𝑡ℎ generator in ₹/𝑀𝑊ℎ𝑟.
𝜕𝑃𝑔𝑖
𝑃𝐷 + 𝑃𝐿 = ∑ 𝑃𝑔𝑖 … (1.2.6)
𝑘=1
For now, it is sufficient to know that the transmission network power loss
can be expressed as
𝑛 𝑛
[13]
Minimisation of the above Lagrangian can be achieved by
𝜕𝐿
=0 … (1.2.9)
𝜕𝑃𝑔𝑖
𝜕𝐶𝑖 𝜕𝑃𝐿
= 𝜆 [1 − ] … (1.2.10)
𝜕𝑃𝑔𝑖 𝜕𝑃𝑔𝑖
𝜕𝐶𝑖
𝜕𝑃𝑔𝑖
=𝜆 … (1.2.11)
𝜕𝑃𝐿
1−
𝜕𝑃𝑔𝑖
1
where, 𝐿𝑖 = 𝜕𝑃 is the penalty factor for 𝑖 𝑡ℎ generator.
1− 𝐿
𝜕𝑃𝑔𝑖
[14]
1.3 OPTIMIZATION
𝑧 = 𝑓(𝑥, 𝑦) = 4 − (𝑥 2 + 𝑦 2 ) … (1.3.1)
[15]
Depending upon the number of objective function to be optimized, an
optimization problem can be classified as:
Multi-Objective Optimization
[16]
An optimization problem may belong to one of the following types:
Unconstrained Optimization
Constrained Optimization
𝑀𝑎𝑥 𝑓(𝑥)
𝑆𝑢𝑏𝑗𝑒𝑐𝑡 𝑡𝑜 𝑔𝑖 (𝑥) = 𝑐𝑖 𝑓𝑜𝑟 𝑖 = 1, 2, … … … , 𝑛 (𝐸𝑞𝑢𝑎𝑙𝑖𝑡𝑦 𝐶𝑜𝑛𝑠𝑡𝑟𝑎𝑖𝑛𝑡𝑠)
𝑆𝑢𝑏𝑗𝑒𝑐𝑡 𝑡𝑜 ℎ𝑗 (𝑥) ≤ 𝑑𝑖 𝑓𝑜𝑟 𝐼 = 1, 2, … … … , 𝑛 (𝐼𝑛𝑒𝑞𝑢𝑎𝑙𝑖𝑡𝑦 𝐶𝑜𝑛𝑠𝑡𝑟𝑎𝑖𝑛𝑡𝑠)
[17]
1.4 MATHEMEMATICAL MODELLING
I. The power generated will have a maximum value depending upon the
thermal limits on the turbine generating unit.
II. Also due to the boiler and other thermodynamic considerations the
power generated by each generating unit also has a minimum
threshold value.
[18]
From the above statements, the power generated by 𝑖 𝑡ℎ generator in the
system, represented by 𝑃𝑔𝑖 will have inequality constraints as follows:
I. If transmission losses are ignored, the total power generated by the ‘𝑛’
generator system should be equal to the power delivered to the
connected load. Consider 𝑃𝐷 as the total power demand.
The equality constraint can be given as follows
𝑃𝐷 = ∑ 𝑃𝑔𝑖 … (1.4.2)
𝑘=1
The equality constraint for the power system with transmission losses is
given as follows
𝑛
𝑃𝐷 + 𝑃𝐿 = ∑ 𝑃𝑔𝑖 … (1.4.3)
𝑘=1
It can be noted from above equations, the constraints are either linear or
non-linear.
The inequality constraints of equation are linear inequalities. Also the
equality constraint of equation is a linear equality.
However, the equality constraint of equation is a non-linear equality as the
function 𝑷𝑳 is not a linear function.
[19]
Defining Objective or Fitness Function
𝜕𝐶𝑖
=𝜆 … (1.4.4)
𝜕𝑃𝑔𝑖
By substituting the cost function for 𝑖 𝑡ℎ generating unit, the result can
be obtained as
𝜕 1
( 𝑎𝑖 𝑃𝑔𝑖 2 + 𝑏𝑖 𝑃𝑔𝑖 + 𝑑𝑖 ) = 𝑎𝑖 𝑃𝑔𝑖 + 𝑏𝑖 = 𝜆𝑖 … (1.4.5)
𝜕𝑃𝑔𝑖 2
𝜆1 = 𝜆2 = ⋯ = 𝜆𝑛 … (1.4.6)
[20]
II. In case where transmission power losses are also considered, the
necessary condition for economic load dispatch is given by equation
𝜕𝐶𝑖
𝜕𝑃𝑔𝑖
𝜕𝑃
=𝜆 … (1.4.8)
1− 𝐿
𝜕𝑃𝑔𝑖
The condition for economic load dispatch considering line losses can
be given as follows
𝐿1 × 𝜆1 = 𝐿2 × 𝜆2 = ⋯ = 𝐿𝑛 × 𝜆𝑛 … (1.4.9)
[21]
As it can be seen from the non-linear constraint equation we define the
following function for optimization:
𝑃𝐷 + 𝑃𝐿 − ∑ 𝑃𝑔𝑖 = 0 … (1.4.11)
𝑘=1
[22]
1.5 THE TRANSMISSION-LOSS EQUATION
𝐼3 + 𝐼4 = 𝐼𝐷 … (1.5.1)
Assuming that each load is a constant fraction of the total load, we set
𝐼3 = 𝑑3 𝐼𝐷 𝑎𝑛𝑑 𝐼4 = 𝑑4 𝐼𝐷 … (1.5.2)
𝑑3 + 𝑑4 = 1 … (1.5.3)
[23]
We now choose node 𝑛 of 𝐹𝑖𝑔. 1.3 as reference for the nodal equations
Double-subscript notation emphasizes the fact that the bus voltages are
measured with respect to reference node 𝑛. Expanding the first row of
eqn. (1.5.4) gives
𝑉1𝑛
𝐼𝑛0 = − … (1.5.7)
𝑍11
We shall soon see the physical meaning of 𝐼𝑛0 , which is a constant current
injected into node 𝑛 of the system whenever 𝑉1𝑛 is constant. By denoting
𝑍11 𝑍12
𝑡1 = 𝑎𝑛𝑑 𝑡2 = … (1.5.8)
𝑑3 𝑍13 + 𝑑4 𝑍14 𝑑3 𝑍13 + 𝑑4 𝑍14
[24]
Substituting in eqn. (1.5.2) for 𝐼𝐷 from eqn. (1.5.9) yields
𝐼1 1 ∙ ∙
𝐼1 𝐼1
𝐼 ∙ 1 ∙
[ 2] = [ ] 𝐼 = 𝑪 [ 𝐼2 ] … (1.5.12)
𝐼3 −𝑑3 𝑡1 −𝑑3 𝑡2 −𝑑3 𝑡1 [ 20 ]
𝐼 𝐼𝑛0
𝐼4 −𝑑4 𝑡1 −𝑑4 𝑡2 −𝑑4 𝑡1 𝑛
As a result of eqn. (1.5.12), the expression for the real power loss of the
network takes the form as
∗
𝐼1
𝑃𝐿 = [𝐼1 0 ][𝑪𝑇 𝑹 ∗] 𝐼
𝐼2 𝐼𝑛 𝑏𝑢𝑠 𝑪 [ 2 ] … (1.5.13)
𝐼𝑛0
Where 𝑹𝑏𝑢𝑠 is the symmetrical real part of 𝒁𝑏𝑢𝑠 of eqn. (1.5.4). Because
of the power-invariant nature of transformation 𝑪, eqn. (1.5.13) fully
represents the real power loss of the system in terms of the generator
currents 𝐼1 and 𝐼2 and the no-load current 𝐼𝑛0 . By fixing upon bus 1 as the
slack bus in power-flow studies of the systems, the current 𝐼𝑛0 = −𝑉1𝑛 ⁄𝑍11
becomes a constant complex number, which leaves 𝐼1 and 𝐼2 as the only
variables in the loss expression of eqn. (1.5.13).
If all load and generation were removed from the system and the
voltage 𝑉1𝑛 were applied to bus 1, only the current 𝐼𝑛0 would flow through
the shunt connections to node 𝑛. This current is normally small and
relatively constant since it is determined by Thevénin impedance 𝑍11 ,
which includes the high impedances of paths associated with line-
charging and transformer magnetizing currents but not load.
[25]
At each generator bus we now assume that the reactive power 𝑄𝑔𝑖 is a
constant fraction 𝑠𝑖 of the real power 𝑃𝑔𝑖 over the time period of interest.
This is equivalent to assuming that each generator operates at a constant
power factor over the same period, and so we write
Where 𝑠1 = 𝑄𝑔1 ⁄𝑃𝑔1 and 𝑠2 = 𝑄𝑔2 ⁄𝑃𝑔2 are real numbers. The output
currents from the generators are then given by
(1 − 𝑗𝑠1 ) (1 − 𝑗𝑠2 )
𝐼1 = 𝑃𝑔1 = 𝛼1 𝑃𝑔1 ; 𝐼2 = 𝑃𝑔2 = 𝛼2 𝑃𝑔2 … (1.5.15)
𝑉1∗ 𝑉2∗
𝐼1 𝛼1 ∙ ∙ 𝑃𝑔1
[ 𝐼2 ] = [ ∙ 𝛼2 ∙ ] [𝑃𝑔2 ] … (1.5.16)
𝐼𝑛0 ∙ ∙ 𝐼𝑛0 1
𝑃𝑔1 𝑇 𝛼1 ∙ ∙ 𝛼1 ∙ ∙ ∗ 𝑃𝑔1 ∗
𝑃𝐿 = [𝑃𝑔2 ] [ ∙ 𝛼2 ∙ ] 𝑪𝑇 𝑹𝑏𝑢𝑠 𝑪∗ [ ∙ 𝛼2 ∙ ] [𝑃𝑔2 ] … (1.5.17)
1 ∙ ∙ 𝐼𝑛0 ∙ ∙ 𝐼𝑛0 1
𝑇𝛼
[26]
Consequently, adding 𝑻𝛼 to 𝑻∗𝛼 cancels out the imaginary parts of the off-
diagonal elements, and we obtain twice the symmetrical real part of 𝑻𝛼 ,
which we denote by
2 2 2
𝐵 𝐵12 𝑃𝑔1 𝐵
𝑃𝐿 = [𝑃𝑔1 𝑃𝑔2 ] [ 11 ] [ ] + [𝑃𝑔1 𝑃𝑔2 ] [ 10 ] + 𝐵00 … (1.5.21)
𝐵21 𝐵22 𝑃𝑔2 𝐵20
[27]
When the system has 𝐾 sources rather than just two as in our example,
the vectors and matrices of eqn. (1.5.22) have 𝐾 rows and/or 𝐾 columns
and the summations of eqn. (1.5.20) range from 1 to 𝐾 to yield the general
form of the transmission-loss equation.
𝐾 𝐾 𝐾
For the system for which they are derived 𝐵-coefficients yield the exact
loss only for the particular load and operating conditions as 𝑃𝑔1 and 𝑃𝑔2
vary, only insofar as bus voltages at the loads and plants maintain
constant magnitude and plant power factors remain constant. Fortunately,
the use of constant values for the loss coefficients yields reasonably
accurate results when the coefficients are calculated for some average
operating conditions and if extremely wide shifts of load between plants
or in total load do not occur. In practice, large systems are economically
loaded using different sets of loss coefficients calculated for various load
conditions.
[28]
CHAPTER 2
GRADIENT METHOD
[29]
2.1 STEPS INVOLVED IN GRADIENT METHOD
Step 1
Specify the system load level 𝑃𝐷 = ∑𝑚
𝑖=1 𝑃𝑔𝑖
Step 2
For the first iteration, choose initial values for the system 𝜆.
Step 3
Substitute the value of 𝜆 into the following equation and solve the resultant
system of linear simultaneous equations for the values of 𝑃𝑔𝑖 .
𝜆 − 𝑏𝑖
𝑃𝑔𝑖 =
𝑎𝑖
Step 4
Compare the quantity (∑𝑚
𝑖=1 𝑃𝑔𝑖 ) with 𝑃𝐷 to check the power balance of the
equation
𝑃𝐷 = ∑ 𝑃𝑔𝑖
𝑖=1
(𝑘)
𝑃𝐷 − ∑𝑚𝑖=1 𝑃𝑔𝑖
Δ𝜆(𝑘) =
1
∑𝑚𝑖=1 𝑎
𝑖
[30]
The superscript (𝑘 + 1) indicates the next iteration being started and
superscript (𝑘) indicates the iteration just completed.
Step 5
Return to Step 3 and continue the calculations of Steps 3 and 4 until final
convergence is achieved.
The final results from the above procedure determine both the system 𝜆
and the economic dispatch output of each generating unit for the specified
level of system load.
[31]
2.2 IMPLEMENTATION
[32]
CHAPTER 3
GENETIC ALGORITHM
[33]
3.1 INTRODUCTION
[34]
3.2 FLOWCHART OF GENETIC ALGORITHM
Start Stop
Yes
Define GA parameters and Is the stopping
create initial population Increment iteration count criteria
satisfied?
[35]
3.3 ALGORITHM
𝑰𝒏𝒊𝒕𝒊𝒂𝒍𝒊𝒛𝒂𝒕𝒊𝒐𝒏
Step 1 Generate the initial population randomly
Step 2 Set iteration count = 1
𝐸𝑣𝑎𝑙𝑢𝑎𝑡𝑖𝑜𝑛
Step 3 Evaluate the fitness of each chromosome in the population
Step 4 Sort the fitness and associated parameters
𝐸𝑙𝑖𝑡𝑖𝑠𝑚 𝑏𝑎𝑠𝑒𝑑 𝑠𝑒𝑙𝑒𝑐𝑡𝑖𝑜𝑛
Step 5 Select the number of best solutions according to the elite count
and save them in a new population
𝐶𝑟𝑜𝑠𝑠𝑜𝑣𝑒𝑟
Step 6 Randomly select pairs of chromosomes for mating and
perform crossover
𝑀𝑢𝑡𝑎𝑡𝑖𝑜𝑛
Step 7 Mutate a chromosome from the population according to the
Mutation rate to generate a new chromosome
𝐿𝑜𝑜𝑝𝑖𝑛𝑔 𝑢𝑛𝑡𝑖𝑙 𝑠𝑡𝑜𝑝𝑝𝑖𝑛𝑔 𝑐𝑟𝑖𝑡𝑒𝑟𝑖𝑎 𝑖𝑠 𝑠𝑎𝑡𝑖𝑠𝑓𝑖𝑒𝑑
Step 8 If stopping criteria is satisfied
i. Then go to step 11
ii. Else go to step 9
Step 9 Increase iteration count
Step 10 Go to 𝑆𝑡𝑒𝑝 3
Step 11 Display the results
[36]
3.4 GENETIC ALGORITHM TERMINOLOGY
Representation
Variation Operators
The role of variation operators is to create new individuals from old ones.
Variation operators form the implementation of the elementary steps with
the search space.
Mutation Operator
[37]
Crossover Operator
[38]
Initialization
Termination Condition
Population
[39]
3.5 WORKING MECHANISM OF GENETIC ALGORITHM
Initialization
While genetic algorithms are generally stated with an initial population that
is 𝑔𝑒𝑛𝑒𝑟𝑎𝑡𝑒𝑑 𝑟𝑎𝑛𝑑𝑜𝑚𝑙𝑦, some research has been conducted into
using 𝑠𝑝𝑒𝑐𝑖𝑎𝑙 𝑡𝑒𝑐ℎ𝑛𝑖𝑞𝑢𝑒𝑠 to produce a higher quality initial population.
Such an approach is designed to give the GA a good start and speed up
the evolutionary process.
𝐸𝑥𝑎𝑚𝑝𝑙𝑒: Some authors propose a GA for exam timetabling problem in
which the GA works only with feasible solutions, implying that the initial
population must also be made up of feasible solution. Then the GA is run
to improve the fitness of the initial population.
Reproduction
o Generational Reproduction
[40]
Parent Selection mechanism
Fitness-based selection
Idea:
1. Sum the fitness of all chromosomes, call it 𝑇.
2. Generate a random number 𝑁 between 1 and 𝑇.
3. Return chromosome whose fitness added to the running total is
equal to a larger than 𝑁.
4. The chance of getting selected is exactly proportional to the fitness.
The table below shows the selection probability for 11 individuals, linear
ranking and selective pressure of 2 together with the fitness value.
Individual 1 is the most fit individual and occupies the largest interval,
whereas individual 10 as the second least fit individual has the smallest
interval on the line (see accompanying figure). Individual 11, the least
fit interval, has a fitness value of 0 and get no chance for reproduction.
[41]
Table 3.1: Selection Probability and Fitness Value
Number of 1 2 3 4 5 6 7 8 9 10 11
individual
Fitness value 2.0 1.8 1.6 14 1.2 1.0 0.8 0.6 0.4 0.2 0.0
Selection
0.18 0.16 0.15 0.13 0.11 0.09 0.07 0.06 0.03 0.02 0.0
Probability
The figure below shows the selection process of the individuals for the
example in the table together with the above sample trials.
1, 2, 3, 5, 6, 9
[42]
Crossover Operator
[43]
Mutation
𝐸𝑥𝑎𝑚𝑝𝑙𝑒:
[44]
3.6 PARAMETER SETTINGS OF GENETIC ALGORITHM
De Jong's experiments indicated that the best population size was 50–
100 individuals, the best single−point crossover rate was ~0.6 per pair of
parents, and the best mutation rate was 0.001 per bit. These settings
(along with De Jong's test suite) became widely used in the GA
community, even though it was not clear how well the GA would perform
with these settings on problems outside De Jong's test suite.
[45]
3.7 CONSTRAINT HANDLING IN GENETIC ALGORITHM
Direct constraint handling means that we leave the constraints as they are
and ‘adapt’ the GA to enforce them.
The most common method used in GAs is the exterior penalty approach
and therefore, we will concentrate our discussion only on such technique.
The main reason why most researchers in the GA community tend to
choose exterior penalties is because they do not require an initial feasible
solution. This sort of requirement (an initial feasible solution) is precisely
the main drawback of interior penalties. This is an important drawback,
since in many of the applications for which EAs are intended the problem
of finding a feasible solution is itself NP-hard.
[46]
The basic approach is to define the fitness value of an individual 𝑖 as
follows:
Ideally, the penalty should be kept as low as possible, just above the limit
below which infeasible solutions are optimal (this is called, the minimum
penalty rule). This is due to the fact that if the penalty is too high or too
low, then the problem might become very difficult for a GA. If the penalty
is too high and the optimum lies at the boundary of the feasible region, the
GA will be pushed inside the feasible region very quickly, and will not be
able to move back towards the boundary with the infeasible region. A large
penalty discourages the exploration of the infeasible region since the very
beginning of the search process. If, for example, there are several
disjointed feasible regions in the search space, the GA would tend to
move to one of them, and would not be able to move to a different feasible
region unless they are very close to each other.
On the other hand, if the penalty is too low, a lot of the search time will be
spent exploring the infeasible region because the penalty will be negligible
with respect to the objective function. These issues are very important in
GAs, because many of the problems in which they are used have their
optimum lying on the boundary of the feasible region.
[47]
Static Penalty
𝑚
𝑓𝑖𝑡𝑛𝑒𝑠𝑠𝑖 (𝑋) = 𝑓𝑖 (𝑋) + ∑ 𝑅𝑘,𝑗 ∅𝑗 2 (𝑋)
𝑗=1
Dynamic penalty
𝑚 𝛽
𝑓𝑖𝑡𝑛𝑒𝑠𝑠𝑖 (𝑋) = 𝑓𝑖 (𝑋) + (𝐶 × 𝑡)𝛼 ∑ |∅𝑗 (𝑋)|
𝑗=1
[48]
3.8 ADVANTAGES/DISADVANTAGES OF GENETIC
ALGORITHM
Advantages
Disadvantages
[49]
3.9 IMPLEMENTATION
𝐹𝑖𝑔. 3.6 shows the user interface of the Optimization Toolbox available in
MATLAB. In this project, this toolbar is used to generate results using
Genetic Algorithm method. Genetic Algorithm parameters can be set in
the Options section. The Problem Setup and Results section takes the
fitness function and various mathematical constraints as inputs and then
displays results.
[50]
CHAPTER 4
FIREFLY ALGORITHM
[51]
4.1 INTRODUCTION
Xin-She Yang formulated this firefly algorithm using the following three
idealized rules:
All fireflies are unisex so that one firefly will be attracted to other
fireflies regardless of their sex;
[52]
4.2 LIGHT INTENSITY AND ATTRACTIVENESS
In the firefly algorithm, the variation of light intensity and formulation of the
attractiveness are two important issues. For simplicity, we can always
assume that the attractiveness of a firefly is determined by its brightness
which in turn is associated with the encoded objective function.
In the simplest form, the light intensity I(r) varies according to the inverse
square law
𝐼𝑠
𝐼(𝑟) = … (4.2.1)
𝑟2
2
𝐼(𝑟) = 𝐼0 𝑒 −𝛾𝑟 … (4.2.2)
[53]
As a firefly's attractiveness is proportional to the light intensity seen by
adjacent fireflies, we can now define the attractiveness 𝛽 of a firefly by
2
𝛽 = 𝛽0 𝑒 −𝛾𝑟 … (4.2.3)
𝛽0
𝛽= … (4.2.4)
1 + 𝛾𝑟 2
𝑚
𝛽(𝑟) = 𝛽0 𝑒 −𝛾𝑟 , (𝑚 ≥ 1) … (4.2.5)
Γ = 𝛾 −1⁄𝑚 → 1, 𝑚→ ∞ … (4.2.6)
1
𝛾= … (4.2.7)
Γ𝑚
[54]
The distance between any two fireflies 𝑖 and 𝑗 at 𝑥𝑖 and 𝑥𝑗 , respectively, is
the Cartesian distance
𝑑
2
𝑟𝑖𝑗 =∥ 𝑥𝑖 − 𝑥𝑗 ∥ = √∑(𝑥𝑖,𝑘 − 𝑥𝑗,𝑘 ) , … (4.2.8)
𝑘=1
where 𝑥𝑖,𝑘 is the 𝑘th component of the spatial coordinate 𝑥𝑖 of the 𝑖 th firefly.
2
𝑥𝑖 = 𝑥𝑖 + 𝛽0 𝑒 −𝛾𝑟𝑖𝑗 (𝑥𝑗 − 𝑥𝑖 ) + 𝛼𝜖𝑖 , … (4.2.9)
Where the second term is due to the attraction. The third term is
randomization with 𝛼 being the randomization parameter, and 𝜖𝑖 is a
vector of random numbers drawn from a Gaussian distribution or uniform
distribution. For most of our implementation, we can take 𝛽0 = 1 and 𝛼 ∈
[0,1].
[55]
4.3 ALGORITHM
Begin
Objective function: 𝑓(𝑥), 𝑥 = (𝑥1 , 𝑥2 , … , 𝑥𝑑 )𝑇
Generate an initial population of fireflies 𝑥𝑖 (𝑖 = 1,2, … , 𝑛)
Formulate light intensity 𝐼𝑖 so that it is associated with
𝑓(𝑥𝑖 )
Define light absorption coefficient 𝛾
while (t < MaxGeneration)
for i=1 : n all n fireflies
for j=1 : n all n fireflies (inner loop)
if(Ii < Ij)
move firefly i towards j
end if
Vary attractiveness with distance 𝑟 via exp(−𝛾𝑟);
Evaluate new solutions and update light
intensity;
end for j
end for i
Rank fireflies and find the current global best 𝑔∗
end while
Post-processing the results and visualization
end
The main update formula for any pair of two fireflies 𝑥𝑖 and 𝑥𝑗 is
[56]
4.4 FIREFLY ALGORITHM VARIANTS
The basic firefly algorithm is very efficient, but we can see that the
solutions are still changing as the optima are approaching. It is possible
to improve the solution quality by reducing the randomness.
𝛼 = 𝛼∞ + (𝛼0 − 𝛼∞ )𝑒 −𝑡 … (4.4.1)
where 𝑡 ∈ [0; 𝑡𝑚𝑎𝑥 ] is the pseudo time for simulations and 𝑡𝑚𝑎𝑥 is the
maximum number of generations. 𝛼0 is the initial randomization parameter
while 𝛼∞ is the final value. We can also use a similar function to the
geometrical annealing schedule. That is
𝛼 = 𝛼0 𝜃 𝑡 … (4.4.2)
[57]
Discrete Firefly Algorithm (DFA)
Hybrid Algorithms
[58]
Firefly Algorithm Based Memetic Algorithm
[59]
4.5 IMPLEMENTATION
In order to demonstrate how the firefly algorithm can be used to solve the
economic load dispatch problem, we implemented it in MATLAB using the
code, developed by Xin-She Yang, from the book “Nature-Inspired
Metaheuristic Algorithms”.
[60]
CHAPTER 5
RESULTS
[61]
5.1 SIMPLE 3-GENERATOR SYSTEM
[62]
Gradient Method
𝑇𝑎𝑏𝑙𝑒 5.2 shows optimum load shared by the three generators calculated
using Gradient method. The load shared by the different units is
graphically represented by 𝐹𝑖𝑔. 5.1.
200
Unit Output (MW)
150
100
50
0
100 150 200 250 300 350 400 450 500 550
Plant Load (MW)
Figure 5.1: Load sharing for different plant loads (Gradient Method – Neglecting Losses)
[63]
Genetic Algorithm
200
Unit Output (MW)
150
100
50
0
100 150 200 250 300 350 400 450 500 550 600
Plant Load (MW)
Figure 5.2: Load sharing for different plant loads (Genetic Algorithm – Neglecting Losses)
[64]
o Effect of variation in parameters
𝑎𝑐𝑡𝑢𝑎𝑙 − 𝑟𝑒𝑓𝑒𝑟𝑒𝑛𝑐𝑒
𝑒𝑟𝑟𝑜𝑟 = × 100%
𝑟𝑒𝑓𝑒𝑟𝑒𝑛𝑐𝑒
[65]
i. Population Size
It can be easily noted from 𝐹𝑖𝑔. 5.3 that for very low individual population,
accurate solution cannot be obtained. Also for higher values of
population, the error becomes relatively constant however there is no
guarantee of an optimum.
As it can be seen from 𝐹𝑖𝑔. 5.4, the variation in error with number of
generations in a GA does not have any peculiar pattern. However, it
can be concluded that the error margin decreases as the number of
generations increase.
[66]
iii. Crossover Probability
[67]
Firefly Algorithm (Neglecting Line Losses)
𝑇𝑎𝑏𝑙𝑒 5.5 shows optimum load shared by the three generators calculated
using Gradient method. The load shared by the different units is
graphically represented by 𝐹𝑖𝑔. 5.7.
200
Unit Output (MW)
150
100
50
0
100 150 200 250 300 350 400 450 500 550 600
Plant Load (MW)
Figure 5.7: Load sharing for different plant loads (Firefly Algorithm – Neglecting Losses)
[68]
o Effect of variation in parameters
𝑎𝑐𝑡𝑢𝑎𝑙 − 𝑟𝑒𝑓𝑒𝑟𝑒𝑛𝑐𝑒
𝑒𝑟𝑟𝑜𝑟 = × 100%
𝑟𝑒𝑓𝑒𝑟𝑒𝑛𝑐𝑒
[69]
i. Number of Fireflies
[70]
iii. Maximum Radius of Random Step
[71]
Comparison of Results
The results obtained are expressed in terms of the yearly cost advantage
over the Gradient method. The negative sign indicates that the results of
Gradient method are better than the results of the corresponding method
and positive sign indicates that result of the particular method are better
than those obtained by Gradient method.
𝑇𝑎𝑏𝑙𝑒 5.7 describes the yearly cost advantage (in₹ ) of Genetic Algorithm
and Firefly Algorithm over the Gradient method.
[72]
5.2 4-BUS SYSTEM
Consider the four-bus system shown in 𝐹𝑖𝑔. 5.12. The line and bus data
given is in 𝑇𝑎𝑏𝑙𝑒 5.9. The base-case power-flow solution is shown
in 𝑇𝑎𝑏𝑙𝑒 5.10. It is required to calculate the loss-coefficients for the system
and using the same, transmission power loss is to be estimated for various
load demands.
𝑇𝑎𝑏𝑙𝑒 5.8 gives the data required for formulating the economic load
dispatch problem.
[73]
Table 5.10: Power-flow solution
𝑩𝒂𝒔𝒆 𝒄𝒂𝒔𝒆
𝑮𝒆𝒏𝒆𝒓𝒂𝒕𝒊𝒐𝒏 𝑽𝒐𝒍𝒕𝒂𝒈𝒆
𝑩𝒖𝒔 𝑷 𝑸 𝑴𝒂𝒈𝒏𝒊𝒕𝒖𝒅𝒆 𝑨𝒏𝒈𝒍𝒆
(𝒑𝒆𝒓 𝒖𝒏𝒊𝒕) (𝒅𝒆𝒈)
𝟏 1.913152 1.872240 1.0 0.0
𝟐 3.18 1.325439 1.0 2.43995
𝟑 ∙ ∙ 0.96051 −1.07932
𝟒 ∙ ∙ 0.94304 −2.62658
𝑻𝒐𝒕𝒂𝒍 5.093152 3.197679
† All vales in per unit on 230-kV, 100-MVA base.
From the power-flow results of 𝑇𝑎𝑏𝑙𝑒 5.10 the load currents are calculated,
𝐼3
𝑑3 = = 0.435473 + 𝑗0.006637
𝐼3 + 𝐼4
[74]
𝐼4
𝑑4 = = 0.564527 + 𝑗0.006637
𝐼3 + 𝐼4
The quantities 𝑡1 and 𝑡2 of eqn. (1.5.8) are calculated from 𝑑3 , 𝑑4 , and the
row-one elements of 𝒁𝑏𝑢𝑠 as follows:
𝑍11
𝑡1 = = 0.993664 + 𝑗0.001259
𝑑3 𝑍13 + 𝑑4 𝑍14
𝑍12
𝑡2 = = 1.002681 − 𝑗0.000547
𝑑3 𝑍13 + 𝑑4 𝑍14
1 ∙ ⋯ ∙
∙ 1 ⋯ ∙
𝑪 = [−0.432705 − 𝑗0.007143 −0.436644 − 𝑗0.006416 ⋯ −0.432705 − 𝑗0.007143]
−0.560958 + 𝑗0.005884 −0.566037 + 𝑗0.006964 ⋯ −0.560958 + 𝑗0.005884
1 ∙ ⋯ ∙
∙ 1 ⋯ ∙
𝑪𝑇 𝑹𝑏𝑢𝑠 𝑪∗ = [−0.432705 − 𝑗0.007143 −0.436644 − 𝑗0.006416 ⋯ −0.432705 − 𝑗0.007143]
−0.560958 + 𝑗0.005884 −0.566037 + 𝑗0.006964 ⋯ −0.560958 + 𝑗0.005884
1.872240
1 − 𝑗𝑠1 1 − 𝑗 (1.913152)
𝛼1 = = = 1.0 − 𝑗0.978615
𝑉1∗ 1.0∠0°
1.325439
1 − 𝑗𝑠2 1 − 𝑗 (3.180000)
𝛼2 = = = 1.016838 − 𝑗0.373855
𝑉2∗ 1.0∠−2.43995°
[75]
The hermitian matrix 𝑻𝛼 of eqn.(1.5.17) is given by
𝛼1 ∙ ∙ 𝛼1 ∙ ∙ ∗
𝑻𝛼 = [ ∙ 𝛼2 ∙ ] 𝑪𝑇 𝑹𝑏𝑢𝑠 𝑪∗ [ ∙ 𝛼2 ∙]
∙ ∙ 𝐼𝑛0 ∙ ∙ 𝐼𝑛0
8.383183 + 𝑗0.0 −0.049448 + 𝑗0.004538 0.375082 + 𝑗0.380069
𝑻𝛼 = [−0.049448 − 𝑗0.004538 5.963568 + 𝑗0.0 0.194971 + 𝑗0.539511] × 10−3
0.375082 − 𝑗0.380069 0.194971 − 𝑗0.539511 0.090121 + 𝑗0.0
[76]
Table 5.10: Calculation of transmission power loss using Genetic Algorithm
𝑮𝒆𝒏𝒆𝒕𝒊𝒄 𝑨𝒍𝒈𝒐𝒓𝒊𝒕𝒉𝒎
𝑷𝑫 𝑷𝟏 𝒖𝒔𝒊𝒏𝒈 𝑷𝟐 𝒖𝒔𝒊𝒏𝒈 𝑷𝟐 𝒖𝒔𝒊𝒏𝒈 𝑷𝑳 𝑷𝑳 𝑫𝒊𝒇𝒇. 𝒊𝒏 𝑷𝑳
𝑬𝑳𝑫 𝑬𝑳𝑫 𝑳𝒐𝒂𝒅 𝑭𝒍𝒐𝒘 (𝑨𝒄𝒕𝒖𝒂𝒍) (𝑪𝒂𝒍𝒄. ) (𝑴𝑾)
80% 2.648 1.425 1.39237 0.040372 0.07315 3.2778
90% 2.917 1.673 1.410149 0.047155 0.09047 4.3315
Base Load 3.188 1.937 1.882512 0.070525 0.11022 3.9695
110% 3.418 2.165 2.171842 0.08987 0.12865 3.878
120% 3.692 2.418 2.419919 0.111969 0.15205 4.0081
𝑇𝑎𝑏𝑙𝑒 5.10 and 𝑇𝑎𝑏𝑙𝑒 5.11 show the calculated and actual power loss for
base load and 80%, 90%, 110% and 120% of the base load using Genetic
algorithm and Firefly algorithm respectively. The error in calculation is also
shown in 𝑀𝑊.
𝑭𝒊𝒓𝒆𝒇𝒍𝒚 𝑨𝒍𝒈𝒐𝒓𝒊𝒕𝒉𝒎
𝑷𝑫 𝑷𝟏 𝒖𝒔𝒊𝒏𝒈 𝑷𝟐 𝒖𝒔𝒊𝒏𝒈 𝑷𝟐 𝒖𝒔𝒊𝒏𝒈 𝑷𝑳 𝑷𝑳 𝑫𝒊𝒇𝒇. 𝒊𝒏 𝑷𝑳
𝑬𝑳𝑫 𝑬𝑳𝑫 𝑳𝒐𝒂𝒅 𝑭𝒍𝒐𝒘 (𝑨𝒄𝒕𝒖𝒂𝒍) (𝑪𝒂𝒍𝒄. ) (𝑴𝑾)
80% 2.6479 1.4249 1.39247 0.040372 0.0731 3.2728
90% 2.9139 1.6766 1.413257 0.047163 0.0904 4.3237
Base Load 3.18 1.9294 1.89055 0.070563 0.1096 3.9037
110% 3.4471 2.1838 2.14256 0.089686 0.1308 4.1114
120% 3.7146 2.4395 2.397148 0.111796 0.1541 4.2304
[77]
CONCLUSIONS
[78]
Genetic Algorithm and Firefly Algorithm are used for solving the
optimization problem of economic load dispatch. From the results
obtained, following conclusions can be drawn –
[79]
REFERENCES
[80]
[1] John J. Grainger, William D. Stevenson, Power System Analysis. McGraw-Hill,
Inc. 1994
[2] Kothari, D. P., and I. J. Nagrath. Power System Engineering. Tata McGraw-Hill,
2008.
[3] Bedekar, Prashant P., Sudhir R. Bhide, and Vijay S. Kale. "Optimum Unit
Commitment for Thermal Power Plants – A genetic Algorithm Approach”
In INDICON, 18–20 December, 2009.
[4] Haupt, Randy L., and Sue Ellen Haupt. Practical genetic algorithms. Wiley-
Interscience, 2004.
[5] Coello, Carlos A. Coello, and A. Carlos. "A survey of constraint handling
techniques used with evolutionary algorithms" Lania-RI-99-04, Laboratorio
Nacional de Informática Avanzada (1999).
[6] Xin She Yang, Nature Inspired Metaheuristic Algorithms, Second Edition,
Luniver Press, 2010
[7] D. Hazarika, P. K. Bordoloi. “Modified loss coefficients in the determination of
optimum generation scheduling” IEE PROCEEDINGS-C, Vol. 138, No. 2,
March 1991
[8] He Dakuo, Wang Fuli. “Feedback Penalty Based on Genetic Algorithm”
Proceedings of the 4th World Congress on Intelligent Control and Automation
[9] Homaifar, Abdollah, Charlene X. Qi, and Steven H. Lai. "Constrained
optimization via genetic algorithms." Simulation 62, no. 4 (1994): 242-253.
[10] Kuri-Morales, Angel Fernando, and Jesús Gutiérrez-García. "Penalty function
methods for constrained optimization with genetic algorithms: A statistical
analysis." In MICAI 2002: Advances in Artificial Intelligence, pp. 108-117.
Springer Berlin Heidelberg, 2002.
[11] Michalewicz, Zbigniew. "A survey of constraint handling techniques in
evolutionary computation methods." In Proceedings of the 4th Annual
Conference on Evolutionary Programming, pp. 135-155. MIT Press, 1995.
[12] Meng Xin, Gao junru, Li Lei. “Load Distribution of Thermal Power Plant Based
on Adaptive Genetic Algorithm” 2009 International Forum on Computer
Science-Technology and Applications
[13] Michalewicz, Zbigniew. "Genetic algorithms, numerical optimization, and
constraints." In Proceedings of the Sixth International Conference on Genetic
Algorithms, vol. 195, pp. 151-158. Morgan Kaufmann, San Mateo, CA, 1995.
[14] T. Kumano “A Functional Optimization Based Dynamic Economic Load
Dispatch Considering Ramping Rate of Thermal Unit Output”
[15] Dr. K. N. Shubhanga, Mr. Chandra S. R. “Manual for a Power Flow Program
(Version 1.0)” Department of Electrical Engineering, NITK, Surathkal
[81]