By
Patel Tarunkumar Dasharthbhai
(170910707018)
A Thesis Submitted to Gujarat Technological University in Partial Fulfilment of the Requirements for
the Master of Engineering Degree in Electrical Engineering
MARCH 2019
This is to certify that work embodied in this dissertation titled “Minimize power loss using
particle swarm optimization techniques ” was carried out by Patel Tarunkumar Dashrathbhai
(Enrollment no. 170910707018) at SSSRGI VADASMA (091) for Master of Engineering
degree in Electrical Engineering to be awarded by Gujarat Technological University. This work
has been carried out under my guidance and supervision and it is up to my satisfaction.
Date:
Place:
2
COMPLIANCE CERTIFICATE
This is to certify that research work embodied in this dissertation titled “Minimize power loss using
particle swarm optimization techniques” was carried out by a Patel Tarunkumar Dashrathbhai
(Enrollment no. 170910707018) at SSSRGI Vadasma (091) for partial fulfillment of Master of
Engineering degree to be awarded by Gujarat Technological University. He has complied to the
comments given by the Dissertation phase – I as well as Mid Semester Thesis Reviewer to my
satisfaction.
Date:
Place:
3
PAPER PUBLICATION CERTIFICATE
This is to certify that research work embodied in this dissertation titled “Minimize power loss using
particle swarm optimization techniques” was carried out by a Patel Tarunkumar Dashrathbhai
(Enrollment no. 170910707018) at SSSRGI Vadasma (091) for partial fulfillment of Master of
Engineering degree to be awarded by Gujarat Technological University has published article Minimize
power loss using particle swarm optimization techniques for publication by the International Journal
of Electrical Engineering and Technology (IJEET) at Chennai, Tamilnadu during March- April
2019 in volume 10 issue 2.
Date:
Place:
4
THESIS APPROVAL CERTIFICATE
This is to certify that research work embodied in this dissertation titled “Minimize power loss using
particle swarm optimization techniques” was carried out by a Patel Tarunkumar Dashrathbhai
(Enrollment no. 170910707018) at SSSRGI VADASMA (091) is approved for the degree of
Master of Engineering with specialization in Electrical Engineering by Gujarat Technological
University.
Date:
Place:
---------------------------------- ----------------------------------
( ) ( )
5
DECLARATION OF ORIGINALITY
We hereby certify that we are the sole authors of this thesis and that neither any part of this thesis
nor the whole of the thesis has been submitted for a degree to any other University or Institution.
We certify that, to the best of our knowledge, the current thesis does not infringe upon anyone’s
copyright nor violate any proprietary rights and that any ideas, techniques, quotations or any other
material from the work of other people included in our thesis, published or otherwise, are fully
acknowledged in accordance with the standard referencing practices. Furthermore, to the extent that
we have included copyrighted material that surpasses the boundary of fair dealing within the
meaning of the Indian Copyright (Amendment) Act 2012, we certify that we have obtained a written
permission from the copyright owner(s) to include such material(s) in the current thesis and have
included copies of such copyright clearances to our appendix.
We declare that this is a true copy of the thesis, including any final revisions, as approved by the
thesis review committee.
We have checked write up of the present thesis using the anti-plagiarism database and it is an
allowable limit. Even though later on in case of any complaint pertaining of plagiarism, we are solely
responsible for the same and we understand that as per UGC norms, University can even revoke
Master of Engineering degree conferred to the student submitting this thesis.
Date:
6
ACKNOWLEDGEMENT
The dissertation has been one of the most significant academic challenges that I have ever
had to face. Without the support, patience, and guidance of the following people, this study would
not have been completed. It is to them that I owe my deepest gratitude.
Most importantly, I would like to thank my father, my family members and divine family
for everything that they have done for me throughout my life and the joy they have brought to me
for just having their support. Much of my success has been because of their love and encouragement.
It gives me immense pleasure to express my deepest sense of gratitude and sincere thanks
to my highly respected and esteemed supervisor assistant prof. Anandkumar G. Acharya in the
Electrical Engineering Department of SSSRGI vadasma for his revered continuous supervision
throughout my dissertation work, which made this task a pleasant job. He has always provided me
the wise advice, useful discussions, and comments. It was a real pleasure to work under his
supervision.
I am grateful to assistant prof. Anandkumar G. Acharya, Head of Electrical Engineering
Department and all the faculty members of the Electrical Engineering Department for the guidance
and suggestions whenever I needed them.
Further, I am thankful to all colleagues for their continuous support during my project work.
I would like to thank all my friends from SSSRGI vadasma, Ahmedabad for encouraging me and
co-operate throughout my post-graduation.
7
TABLE OF CONTENTS
Title page 1
Certificate Page 2
Compliance Certificate 3
Paper Publication Certificate 4
Thesis Approval Certificate 5
Declaration of Originality 6
Acknowledgement 7
Table of Contents 8
List of Figures 9
List of Tables 11
Appendix 12
Abstract 13
CHAPTER 1 INTRODUCTION 15
1.1 PROBLEM STATEMENT 16
1.2 BASIC OF OPTIMIZATION 16
1.3 OBJECTIVE OF PROJECT 16
8
3.2 INTELLIGENT METHODS 26
3.2.1 PSO METHOD 26
3.2.2 MERIT OF PSO 28
3.2.3 PSEUDO CODE 28
3.2.4 COMPARASION OF CLASSICAL AND (AI) METHOD 29
3.2.5 PSO ALGORITHM 30
CHAPTER 4 NEWTON’S RAPSHSON METHOD FOR 31
LOSS MINIMIZATIO
4.1 NEWTON RAPHSON DATA 31
4.2 COMPUTATIONAL ALGORITHMS FOR NEWTON 31
RAPHSON LOAD FLOW METHOD
4.3 FLOW CHART FOR NEWTON 33
RAPHSON LOAD FLOW METHOD
9
CHAPTER 6 IEEE 14 BUS TEST SYSTEM 47
6.1 SYSTEM DIAGRAM 47
6.2 TYPE OF BUSES WITH VARIABLE 47
CHAPTER 7 RESULTS 48
NR METHOD RESULT 48
PSO RESULTS ON BENCH MARK FUNCTION 52
PSO METHOD RESULTS 55
COMPERISION BETWEEN NR METHOD AND PSO METHOD RESULTS 77
CHAPTER 8 CONCLUSION 78
REFERENCE 80
10
LIST OF FIGURES
11
LIST OF TABLES
12
Appendix A
13
ABSTRACT:
This dissertation presents the solution of optimal power flow (OPF) using particle swarm
optimization (PSO). The objective function is to minimize power loss by adjustment the power
control variables and at the same time satisfying the equality and inequality constraints. The
proposed particle swarm optimization (PSO) method is compared with newton’s Raphson method
(conventional method) approach on the standard IEEE 30 bus system. The analysis indicated that
the Particle Swarm Optimization (PSO) method was the most efficient method in terms of
minimizing power loss. This can be concluded that the Artificial Intelligence (AI) method such as
Particle Swarm Optimization (PSO) is the most suitable and efficient method for analyzing the
Optimal Power Flow (OPF) problem in terms of minimizing power loss.
14
CHAPTER-1
INTRODUCTION
The main task in the electrical power system is to optimize a selected objective function such as fuel
cost minimization by adjusting the state variable as well as at the same time satisfying the equality
and inequality constraints. The control variables are generator real power, generator bus voltage,
transformer tap changer and the Reactive power source such as shunt capacitor. There are many
techniques available to handle such OPF problems such as non-linear programming, quadratic
progressing, linear programming; Newton-based method sequential unconstrained minimization and
interior point method. These methods have the drawback-the convergence characteristics are
sensitive to the initial condition. Generally, the OPF problems are non-convex, non-smooth and non-
differential. So we have to develop such a new optimization technique that is efficient to overcome
their drawbacks and to handle the difficulties easily. A heuristic algorithm such as GA, gradient
method and evolutionary computation technique has been recently proposed for solving the OPF
problem. Recently some deficiencies have been identified in GA performance. A new evolutionary
technique called particle swarm optimization has been proposed and introduced by The Kennedy.
This technique is based on the sociological behavior such as fish schooling and bird flocking. In this
paper, a novel PSO based approach is proposed to solve the OPF problem. Since the PSO handle
both continuous and discrete variable easily. Therefore this method can be easily applied to mixed
integer nonlinear program. PSO is suitable for cost minimization because it can handle such
constraints easily. Here the proposed PSO approach is tested for 14 bus system and compare with
the NR method..
15
1.1 PROBLEM STATEMENT
The Optimal Power Flow has become widely known that has received much attention in power
system because it has been widely used in order to plan a power system. However, the problem of
Optimal Power Flow problem always became the main subject in the power system which one of the
objective function of the OPF problem is minimizing loss of power. In this paper, this specific
objective function will be the problem that will be analysed in this project on how to minimize the
power loss in order to optimize the power transmission in a power system. Furthermore, this problem
is a non-linear optimize so it may require a more complex formulation, since the set of equations
involved may not be linearized. Therefore, non-linear technique was proposed in this paper in order
to analyse this problem.
Optimization is the process of getting the best result under the given circumstance. Work done should
be maximum in minimum time. Optimization can be finding the maximum or minimum of the
function.
Optimization help finds the input that gives the best output.
In an Optimal Power Flow, the values of some or all of the control variables need to be found so as
to optimize (minimize or maximize) a predefined objective.
OPF aims to optimize a certain objective, subject to the network power flow equations and system
and equipment operating limits. The optimal condition is attained by adjusting the available controls
to minimize an objective function subject to specified operating and security requirements.
optimize the power transmission in a power system by minimizing the power loss.
implement Particle Swarm Optimization (PSO) in Optimal Power Flow (OPF) problem.
compare the effectiveness of Particle Swarm Optimization with Newton Raphson method.
16
CHAPTER 2
LITERATURE REVIEW
1) “Particle Swarm Optimization Based Optimal Reactive Power Dispatch”, IEEE 2015,
Sundaram Pandya and Ranjit Roy.
REVIEW : Optimal reactive power dispatch is one of the major and important optimization
problems in electrical power system operation and control. This is nothing but multi-objectives,
nonlinear, minimization problem of power system optimization. This paper focuses on this
subproblem of optimal power flow. The particle swarm optimization (PSO) is one of the best
population-based intelligent technique of optimization. The basic PSO algorithm is used for optimal
reactive power dispatch. This approach applies to the IEEE-14 bus, IEEE-30 bus, IEEE57 bus, and
IEEE-39 New England bus test systems for minimization of active power loss. Simulation results
are compared with the other optimization algorithm.
2) “Optimal Power Flow Based on PSO in Electrical Power System” , International Journal of
Advances in Electrical and Electronics Engineering, ISSN: 2319-1112 Prashant Kumar ,
Vikas Dubey , Deepak Sharma.
REVIEW : This paper narrates an application of Particle Swarm Optimization (PSO) for economic
load dispatch. The main objective function is to optimize the Fuel cost and Active power loss by
considering the power flows within the allowable limits. The PSO is simple in concept and easy in
implementation. It does not require any derivative information, sure and fast convergence. Moreover,
the problem can be formulated as a mixed-integer non-linear optimization problem (MNILP).
Optimization of Fuel cost and Active power loss by adjusting the control variables such as generator
voltage, transformer tap setting and other sources of reactive power such as shunt capacitor banks.
The effectiveness of the proposed algorithm is tested on IEEE 14 bus system and their performances
are compared with the results. The result shows that PSO can converge to an optimum solution with
higher accuracy in comparison with Evolutionary Programming (EP) method. The proposed PSO
method is demonstrated and compared with Evolutionary Programming (EP) approach on the
standard IEEE 14-bus system.
3)“Transmission Loss Minimization Using Optimization Technique Based On PSO ”,IOSR
Journal of Electrical and Electronics Engineering (IOSR-JEEE) Volume 6, Issue 1 (May. - Jun.
2013), PP 01-05. Sunil Joseph P , C.DineshBalaji.
REVIEW : : Optimal power flow (OPF) is defined as the optimization of operating states of a
power system and the corresponding settings of control variables. In this paper, a particle swarm
optimization (PSO) with an aging leader and challengers (ALC-PSO) is applied for the solution of
OPF problem of power system. This study is implemented on modified IEEE 30-bus test power
system with different objectives that reflect minimization of either fuel cost or active power loss or
sum of total voltage deviation. The results presented in this paper demonstrate the potential of the
17
proposed approach and show its effectiveness and robustness for solving the OPF problems over the
other evolutionary optimization techniques surfaced in the recent state-of-theart literature.
REVIEW : Optimal power flow is an optimizing tool for operation and planning of modern power
systems. This paper presents the solution of the optimal power flow (OPF) using particle swarm
optimization (PSO). The main goal of this paper is to verify the viability of using PSO problem
composed by different objective functions. This OPF problem involves the optimization of various
types of objective functions while satisfying a set of operational and physical constraints while
keeping the power outputs of generators, bus voltages, shunt capacitors/reactors and transformers
tap settings in their limits. The proposed PSO method is demonstrated and compared with
Evolutionary Programming (EP) approach on the standard IEEE 14-bus system. The results show
that the proposed PSO method is capable of obtaining higher quality solutions efficiently in OPF
problem.
4) “ Optimal power flow by particle swarm optimization with an aging leader and challengers”,
International Journal of Engineering, Science and Technology Vol. 7, No. 3, 2015, pp. 123-132
Rudra Pratap Singh , V. Mukherjee, S.P. Ghoshal.
REVIEW : Optimal power flow (OPF) is defined as the optimization of operating states of a
power system and the corresponding settings of control variables. In this paper, a particle swarm
optimization (PSO) with an aging leader and challengers (ALC-PSO) is applied for the solution of
OPF problem of power system. This study is implemented on modified IEEE 30-bus test power
system with different objectives that reflect minimization of either fuel cost or active power loss or
sum of total voltage deviation. The results presented in this paper demonstrate the potential of the
proposed approach and show its effectiveness and robustness for solving the OPF problems over the
other evolutionary optimization techniques surfaced in the recent state-of-theart literature.
REVIEW : This research utilizes particle swarm optimization to minimize the total active power
losses in an IEEE 6 bus transmission system. newton- Raphson load flow algorithm is used in
computing power losses, with particle swarm optimization algorithm which is used to minimize
power losses. The proposed particle swarm optimization algorithm gave very satisfactory simulation
results. These successful simulation results confirm the effectiveness of particle swarm optimization
in minimizing distribution network power losses.
18
6) “power loss reduction in power system based on PSO :case study”, International journal of
computer application (0975-8887) vol 164 – no 10, April 2017, Sameer singh, vivek kumar jain,
and upendra prasad.
REVIEW: In this paper, discussed reactive power dispatch (loss reduction) with the contribution
of particle swarm optimization. The proposed algorithm has been applied to achieve the major
objective as the system loss minimization with satisfied equality and inequality constraints. The main
objective is to minimize the active power loss in the network while satisfying all the power system
operation variable constraints (equality and inequality). The particle swarm algorithm has been
coded using MATLAB software. The simulation results show that the PSO algorithm always leads
to a better result As losses are minimized, the power system will remain stable. Hence from
simulation results shown, PSO optimization technique proves well with reduced losses.
8) “Optimal reactive power flow control for minimization of active power losses using particle
swarm optimization”, 20125 conference on power control, communication and computational
technologies for sustainable growth (PCCCTSG) December 11-12,2015, Kurnool, Andhra
Pradesh, india,
N. Tejswara Rao, Jagannath ch Yadav b. and anyapu jagannadham.
REVIEW: The main goal of this work is to determine the optimum operating conditions of the
control variables within the constraints of control variables and minimization of transmission losses
at normal operating condition of the system. For obtaining the optimum operating conditions of the
control variables and minimization of transmission losses "Particle Swarm Optimization (PSO)" is
being used. The PSO method is applied on 6-bus Ward Hale & 30-bus IEEE system. n this work,
power losses in transmission lines are calculated using power flow studies. The power losses
decreased to a better extent after applying particle swarm optimization within the limits of voltage
profile for a given power system. When comparing both load flow and particle swarm optimization
the minimum losses are obtained from particle swarm optimization.
19
CHAPTER 3
The OPF methods are broadly grouped as Conventional and Intelligent. The conventional
methodologies include the well-known techniques like Gradient method, Newton method, Quadratic
Programming method, Linear Programming method, and Interior point method. Intelligent
methodologies include the recently developed and popular methods like Genetic Algorithm, Particle
swarm optimization.
conventional methods are used to effectively solve OPF. The application of these methods had
been an area of active research in the recent past.
The conventional methods are based on mathematical programming approaches and used to solve
different size of OPF problems. To meet the requirements of different objective functions, types of
application and nature of constraints.
20
3.1.1 Newton Method:
In the area of Power systems, Newton’s method is well known for the solution of Power Flow. It has
been the standard solution algorithm for the power flow problem for a long time the Newton
approach is a flexible formulation that can be adopted to develop different OPF algorithms suited to
the requirements of different applications. Although the Newton approach exists as a concept entirely
apart from any specific method of implementation, it would not be possible to develop practical OPF
programs without employing special sparsity techniques. The concept and the techniques together
comprise the given approach. Other Newton-based approaches are possible.
Newton’s method is a very powerful solution algorithm because of its rapid convergence near the
solution. This property is especially useful for power system applications because an initial guess
near the solution is easily attained. System voltages will be near rated system values, generator
outputs can be estimated from historical data, and transformer tap ratios will be near 1.0 p.u
Newton’s Raphson method is solving a set of the non-linear algebraic equation. NR method is
solving power flow based problem. Has also good convergence characteristics even for a large
system it takes only two to four iteration to converge.
I= YV
21
Typical element of the bus admittance matrix is
𝑌𝑖𝑗 = 𝑌𝑖𝑗 < 𝜃𝑖𝑗 𝐴 = | 𝑌𝑖𝑗 | 𝑐𝑜𝑠𝜃𝑖𝑗 + |𝑌𝑖𝑗 | sin𝜃𝑖𝑗 = 𝐺𝑖𝑗 + 𝑗𝐵𝑖𝑗
Voltage at atypical bus i is
𝑉𝑖 = | 𝑉𝑖 | < 𝛿𝑖 = |𝑉𝑖 |( 𝑐𝑜𝑠 𝛿𝑖 + j 𝑠𝑖𝑛 𝛿𝑖 )
The current injection in to the network at bus i is given by
𝐼𝑖 = 𝑌𝑖1 𝑉1 + 𝑌𝑖2 𝑉2 +-----------------------+ 𝑌𝑖𝑛 𝑉𝑛
𝐼𝑖 = ∑𝑁
𝑛=1 𝑌𝑖𝑛 𝑉𝑛
= | 𝑉𝑖 | < −𝛿𝑖 ∑𝑁
𝑛=1 | 𝑌𝑖𝑛 |∠ 𝜃𝑖𝑛 |𝑉𝑛 | < 𝛿𝑛
𝑃𝑖 − 𝑗𝑄𝑖 = ∑𝑁
𝑛=1 |𝑉𝑖 |𝑉𝑛 | | 𝑌𝑖𝑛 | ∠ 𝜃𝑖𝑛 + 𝛿𝑛 −𝛿𝑖
𝑃𝑖 = ∑𝑁
𝑛=1 |𝑉𝑖 |𝑉𝑛 | | 𝑌𝑖𝑛 | cos( 𝜃𝑖𝑛 + 𝛿𝑛 −𝛿𝑖 )
𝑄𝑖 = - ∑𝑁
𝑛=1 |𝑉𝑖 |𝑉𝑛 | | 𝑌𝑖𝑛 | cos( 𝜃𝑖𝑛 + 𝛿𝑛 −𝛿𝑖 )
The real and reactive power obtained from above two equations calculated power during the power
flow calculations, their value depends on the latest bus voltage.
Finally, the non linear equations to be solved in power flow analysis are
∑𝑁
𝑛=1 |𝑉𝑖 |𝑉𝑛 | | 𝑌𝑖𝑛 | cos( 𝜃𝑖𝑛 + 𝛿𝑛 −𝛿𝑖 ) = 𝑃𝐼𝑖
- ∑𝑁
𝑛=1 |𝑉𝑖 |𝑉𝑛 | | 𝑌𝑖𝑛 | sin( 𝜃𝑖𝑛 + 𝛿𝑛 −𝛿𝑖 ) = 𝑄𝐼𝑖
The N total number of buses in the power system , let the number of P -Q buses be N1, and P-V
buses be N2. Then N = N1 + N2
2N1+N2
We can write N1+N2 real power specification equation and
22
N1 is reactive power specification equation
Thus total number of equations = 2N1+N2
For i=1,2---------------------N
- ∑𝑁
𝑛=1 |𝑉𝑖 |𝑉𝑛 | | 𝑌𝑖𝑛 | sin( 𝜃𝑖𝑛 + 𝛿𝑛 −𝛿𝑖 ) = 𝑄𝐼𝑖
For i=1,2---------------------N
For unknown variable
𝛿𝑖 = For i=1,2---------------------N
| 𝑣𝑖 | = For i=1,2---------------------N
It may be noted that point (a) is certainly true while point (b) depends on the specific algorithms and
problem formulations. The observation (c) is frequently valid since the transmission network is
quasi-linear, but it needs to be checked out for any given system and application.
24
generally controlled by complex power generation which is usually having two limits. Here
minimization is considered as maximization can be determined by changing the sign of the objective
function. Further, the quadratic functions are characterized by matrices and vectors.
3.1.5 Interior Point Method :
It has been found that, the projective scaling algorithm for linear programming proposed by N.
Karmarkar is characterized by significant speed advantages for large problems reported to be as
much as 12:1 when compared to the simplex method Further, this method has a polynomial bound
on worst-case running time that is better than the ellipsoid algorithms. Karmarkar’s algorithm is
significantly different from Dantzig’s simplex method. Karmarkar’s interior point rarely visits too
many extreme points before an optimal point is found. In addition, the IP method stays in the interior
of the polytope and tries to position a current solution as the “center of the universe” in finding a
better direction for the next move. By properly choosing the step lengths, an optimal solution is
achieved after a number of iterations. Although this IP approach requires more computational time
in finding a moving direction than the traditional simplex method, the better moving direction is
achieved resulting in less iteration. In this way, the IP approach has become a major rival of the
simplex method and has attracted attention in the optimization community. Several variants of
interior points have been proposed and successfully applied to optimal power flow.
The Interior Point Method is one of the most efficient algorithms. The IP method classification is a
relatively new optimization approach that was applied to solve power system optimization problems;
it solves a large scale linear programming problem by moving through the interior, rather than the
boundary as in the simple method, of the feasible reason to find an optimal solution. The IP method
was originally proposed to solve linear programming problems; however, later it was implemented
to efficiently handle quadratic programming problems.
3.1.6 disadvantages of conventional method:
In most cases, mathematical formulations have to be simplified to get the solutions because of the
extremely limited capability to solve real-world large scale power system problems. They are weak
in handling qualitative constraints. They have poor convergence, may get stuck at local optimum,
they can find only a single optimized solution in a single simulation run, they become too slow if the
number of variables is large and they are computationally expensive for a solution of a large system.
25
3.2 Intelligent Methods:
The major advantage of the intelligent method is that they are relatively versatile for handling various
qualitative constraints. These methods can find multiple optimal solutions in a single simulation run.
So they are quite suitable for solving the multi-objective optimization problem. In most case, they
can find the global optimum solution.
The main advantages of Intelligent methods are:
Possesses learning ability, fast, appropriate for non-linear modelling.
The PSO is a relatively new and powerful intelligence evolution algorithm for solving optimization
problems. It is a population-based approach.
Particle swarm optimization (PSO) is a population-based stochastic optimization technique inspired
by social behavior of bird flocking or fish schooling. was first developed in 1995 by Dr. James
Kennedy and Dr. Russell Eberhart.
In PSO, the search for an optimal solution is conducted using a population of particles, each of which
represents a candidate solution to the optimization problem. Particles change their position by flying
around a multidimensional space by following current optimal particles until a relatively unchanged
position has been achieved or until computational limitations are exceeded. Each particle adjusts its
trajectory towards its own previous best position and towards the global best position attained till
them.
PSO is easy to implement and provides fast convergence for many optimization problems and has
gained a lot of attention in power system applications recently. The system is initialized with a
population of random solutions and searches for optima by updating generations. However, unlike
GA, PSO has no evolution operators such as crossover and mutation. In PSO, the potential solutions,
called particles, fly through the problem space by following the current optimum particles.In PSO,
each particle makes its decision using its own experience together with it is a neighbor’s experience.
The aim of this method is to find the best perfxorming individual in the whole group. It is used to
solve wider ranges of complex different optimization problems such as function minimization and
maximization.
26
Fig 3.2 Example on the flock of bird in nature (ref. book 12)
27
Particle: An individual within the swarm.
Position: A particle’s dimensional coordinates representing the solution to the Problem.
Swarm: Total population of particles.
Fitness: A function that gives the interface between the optimization problem and that physical
problem, and amplifies the accuracy of the solution within the position in the solution space.
𝑷𝒃𝒆𝒔𝒕 : The position in the parameter space of the best fitness returned for a specific particle.
𝑮𝒃𝒆𝒔𝒕 : The position in the parameter space of the best fitness returned for the entire swarm
𝑽𝒎𝒂𝒙 : The maximum
𝑽𝒎𝒊𝒏 : The minimum allowable value for the velocity in a given direction.
3.2.3 PSEUDOCODE:
Initialize particle
Calculate data fitness value If the fitness value is better than p best
28
Set p best = current fitness value
In the classical method, they had made excellent advancements. However, they suffer from the
following disadvantages which are, in most cases, mathematical formulations have to be simplified
in order to get the solutions because of the extremely limited capability to solve real-world large-
scale power system problems. They are weak in handling qualitative constraints and also have poor
convergence. Because of these disadvantages, the classical method may get stuck at local optimum
which they can find only a single optimized solution in a single simulation run. Besides, they become
too slow if the number of variables is large and they are computationally expensive for the solution
of a large system.
The major advantage of the AI methods is that they are relatively versatile for handling various
qualitative constraints. AI methods can find multiple optimal solutions in a single simulation run. So
they are quite suitable for solving multi-objective optimization problems. In most cases, they can
find the global optimum solution.
29
3.2.5 PARTICLE SWARM OPTIMIZATION ALGORITHM:
Initial population
no
Target or maximize
reached?
yes
stop
30
CHAPTER : 4
Total bus 30
Total transmission line 37
Total transformer 4
Total PV data 5
Total PQ data 21
Tolerance 0.001
Jacobian matrix 22*22
Step 2: Assume an initial set of bus voltage and set bus n as the reference bus as:
𝑉𝑖 =𝑉𝑖 , spec∠ 00 (at all PV buses)
𝑉𝑖 = 1∠00 (at all PQ buses)
Step 3: Calculate the real Power 𝑷𝒊 using the load flow equation:
|𝑉|2 𝐺𝑖𝑖 + ∑𝑁𝑛=1 |𝑉𝑖 | |𝑉𝑛 ||𝑌𝑖𝑛 | cos(𝜃𝑖𝑛 + 𝛿𝑛 − 𝛿𝑖 ) = 𝑃𝑖
𝑛=≠𝑖
Step 4: Calculate the real Power 𝑸𝒊 using the load flow equation:
Step 5: from the Jacobian matrix sub matrix H, N, K, and L can be calculated as follows:
𝐻𝑖𝑖 = −𝑄𝑖 − |𝑉𝑖 |2 𝐵𝑖𝑖
𝑁𝑖𝑖 = 𝑃𝑖 + |𝑉𝑖 |2 𝐺𝑖𝑖
𝑀𝑖𝑖 = 𝑃𝑖 − |𝑉𝑖 |2 𝐺𝑖𝑖
31
𝐿𝑖𝑖 = 𝑄𝑖 − |𝑉𝑖 |2 𝐵𝑖𝑖
32
4.2 FLOW CHART FOR NEWTON RAPHSON LOAD FLOW METHOD:
In context to various steps involved in carrying out load flow studies with Newton Raphson
method, following detailed flow chart has been designed:
start
↓
Read load data: primitive matrix, slack bus voltage, real and reactive bus power etc.
↓
Formulate Y-matrix using load flow data
↓
Make initial assumption i.e, Vi and 𝜃i for i=1,2,……,n
↓
Set iteration count r=0
↓
Compute pi and qi for i=1,2,…..n using power flow equations
↓
Evaluate power mismatches i.e Δ𝑃𝑖 and Δ𝑞𝑖
Are
↓ Line loss
Evaluate Jacobian matrix elements
↓
ΔP 𝑗1 𝑗2 Δ𝜃 Output load flow
solution. i.e,
ΔQ = 𝑗3 𝑗4 Δ𝑉 voltage magnitude,
phase angle, etc.
↓ ↓
Evaluate increments and update variable stop
ΔQ
Fig 4.1 flow chart of newton Raphson method for power loss (ref. book 12)
33
CHAPTER :5
The basic Optimal Power flow (OPF) problem can be described mathematically as a minimization
of the problem of Minimizing the total fuel cost of all committed plants subject to the constraints.
Minimize∑𝑛𝑖=1 𝐹𝑖 (𝑃𝑖 ) (A1)
F( Pi) is the fuel cost equation of the 𝑖 𝑡ℎ plant. It is the variation of fuel cost ($ or Rs) with
The total generation should meet the total demand and transmission loss. The transmission loss can
34
5.2 SOLUTION BY PSO USING PSO ALGORITHM
1. Collect the bus data, line data and cost coefficients, and their limits.
2. Convert the constrained optimization problem as an unconstrained problem by the penalty
function method.
Minimize
∑𝑛𝑖=1 𝐹𝑖 (𝑃𝑖 ) +1000 * abs( ∑𝑛𝑖=1 𝑃𝑖 – D- 𝑃𝑖 )
3. The file of Data will be run for Data load in MATLAB Simulation and then run PSO file.
Where,
NL,NG and NL are number of load buses, number of generators and number of transmission line
respectively
u is the vector of independent variable consisting of
1) Generator bus voltage 𝑉𝐺
2) Generator active power output at PG at PV buses except at the stack bus 𝑃𝐺1
3) Transformer Tap setting T
35
4) Shunt VAR compensation 𝑄𝐶
Hence, u can be expressed as given below
𝑢𝑇 = [ 𝑉𝐺1 − − − 𝑉𝐺𝑁𝐺 , 𝑃𝐺1 − − − 𝑃𝐺𝑁𝐺 , 𝑇1 − − − 𝑇𝑁𝑇 , , 𝑄𝐶1 − − − 𝑄𝐶𝑁𝐶 ]
Where NT and NC are the number of the regulating transformers and shunt compensators,
respectively
The solution process of the LM consists of optimizing the objective function and satisfying the
following constraints:
1) Power flow equations;
2) Branch flow limits;
3) Bus voltage limits;
4) Control variable limits.
Stopping criteria :
The stopping criterion mentioned in the aforementioned algorithm depends on the type of problem
being solved. Usually, the algorithm is run for a fixed number of iterations (objective function
evaluations) or until a specified error bound is reached.
The optimal reactive power dispatch problem is a complex optimization problem where a specific
objective function is minimized while satisfying a number of constraints.
The objective is basically to minimize the system’s total active power transmission losses by
optimally adjusting various control variables while satisfying a given set of constraints.
Objective Function:
The objective functions to be minimized are given by the sum of line losses
𝑃𝐿 = ∑𝑁𝑇𝐿
𝑘=1 𝑃𝑘 𝑙𝑜𝑠𝑠
Individual line losses 𝑃𝑘 𝑙𝑜𝑠𝑠 can be expressed in terms of voltages and phase angles as
36
2 2
𝑃𝑘 𝑙𝑜𝑠𝑠 = ∑𝑁𝑇𝐿
𝑘=1 𝐺𝐾 (𝑣𝑖 + 𝑣𝑗 - 2𝑣𝑖 𝑣𝑗 cos𝜃𝑖𝑗 )
2 2
Min 𝑃𝐿 = Min ∑𝑁𝑇𝐿 𝑁𝑇𝐿
𝑘=1 𝑃𝑘 𝑙𝑜𝑠𝑠 = ∑𝑘=1 𝐺𝐾 (𝑣𝑖 + 𝑣𝑗 - 2𝑣𝑖 𝑣𝑗 cos𝜃𝑖𝑗 ) (ref. paper 7)
Where,
There are many alternatives available for reducing losses at the distribution level: reconfiguration,
capacitor installation, load balancing, and the introduction of higher voltage levels.
The controllable system quantities are generator MW, controlled voltage magnitude, reactive power
injection from reactive power sources and transformer tapping.
The objective use herein is to minimize the power transmission loss function by optimizing the
control variables within their limits. Therefore, no violation of other quantities (e.g. MVA flow of
transmission lines, load bus voltage magnitude, generator MVAR) occurs in normal system
operating conditions.
The OPF problem solution aims at optimizing specific objective functions such as loss of power by
adjusting the power control variables and at the same time satisfying the equality and the inequality
constraints. The inequality constraints are the upper and the lower limits at the control and some
state variables, while the equality constraints are the power flow equations.
These are system constraints to be formed as equality and inequality constraints as shown below:
a) Equality Constraints
b) Inequality constraints
37
5.4.1 Equality Constraints:
System constraints are generator MW, controlled voltage, reactive power injection from
reactive power sources and transformer tapping. The objective is to minimize the power transmission
loss function by optimizing the control variables within their limits. Hence there will be no violation
of other quantities (e.g. MVA flow of transmission lines, load bus voltage magnitude, generator
MVAR) occurs in normal system operating conditions. These are system constraints to be formed as
equality and inequality constraints as follows.
Where,
𝑃𝐺𝑖 = is the real power generation at bus i
𝑃𝐷𝑖 = is the real power demand at bus j
𝑄𝐺𝑖 = is the reactive power generation at bus i
𝑄𝐷𝑖 =is the reactive power demand at bus i
NB = is the total number of buses
𝜃𝑖𝑗 = is the angle of bus admittance element i,j
𝑇𝑘𝑚𝑖𝑛 ≤ 𝑇𝑘 ≤ 𝑇𝑘𝑚𝑎𝑥
𝑣𝑖𝑚𝑖𝑛 𝑎𝑛𝑑 𝑣𝑖𝑚𝑎𝑥 = upper and lower limits of voltage magnitude of bus i
𝑇𝑘𝑚𝑖𝑛 𝑎𝑛𝑑 𝑇𝑘𝑚𝑎𝑥 = are upper and lower limit of tap positions of transformer k
𝑚𝑖𝑛 𝑚𝑎𝑥
𝑄𝑐𝑖 𝑎𝑛𝑑 𝑄𝑐𝑖 = upper and lower limits of reactive power source i
39
0 if 𝑥 𝑚𝑖𝑛 ≤ 𝑥 ≤ 𝑥 𝑚𝑎𝑥
f (x) = ( 𝑥 − 𝑥 𝑚𝑖𝑛 )2 if 𝑥 > 𝑥 𝑚𝑎𝑥
( 𝑥 − 𝑥 𝑚𝑖𝑛 )2 if 𝑥 > 𝑥 𝑚𝑖𝑛
In x represents all control variables, 𝑥 𝑚𝑖𝑛 and 𝑥 𝑚𝑎𝑥 represent the minimum and maximum limits
for all the control variables. The penalty function guarantees that, if there is violation of the system
in case the control variables exceed their limits, the fitness function satisfies the inequality
constraints.
40
5.5 MODIFICATION CONCEPT OF SEARCHING POINT BY PSO:
The basic concept of PSO lies in accelerating each particle toward its 𝑃𝑏𝑒𝑠𝑡 and the 𝐺𝑏𝑒𝑠𝑡 locations.
with a random weighted acceleration at each time step as shown in the figure.
Each particle tries to modify its position using the following information:
41
The distance between the current position and 𝐺𝑏𝑒𝑠𝑡
The modification of the particle’s position can be mathematically modelled according the following
equation:
𝑉𝒊𝒌+𝟏 = w𝑉𝒊𝒌 + 𝑐1 𝑟𝑎𝑛𝑑1 (.) × (𝑝𝑏𝑒𝑠𝑡𝑖 - 𝑠𝑖𝑘 ) + 𝑐2 𝑟𝑎𝑛𝑑2 (.) × (𝑔𝑏𝑒𝑠𝑡𝑖 - 𝑠𝑖𝑘 ) (ref. paper 7)
Where,
𝑣max − 𝑤𝑚𝑖𝑛
w = 𝑤𝑚𝑎𝑥 - × iteration (ref. paper 1)
𝑖𝑡𝑒𝑟𝑚𝑎𝑥
A large inertial weight (w) facilitates a global search while a small inertia weight facilitates a local
search. By linearly decreasing the inertia weight from a relatively large value to a small value
through the course of the PSO run gives the best PSO performance compared with inertial weight
settings.
42
𝑆𝒊𝒌+𝟏 = 𝑆𝑖𝑘 + 𝑉𝒊𝒌+𝟏 (ref. paper 2)
Where,
𝑆 𝐾 = current searching point
𝑆 𝐾+1 = modified searching point
1. Define the control variables within their allowable range as well as the population size and the
number of iterations. Include the PSO parameters and define the data of the 14-bus test system.
2. Let iter = 0
5. For each particle, calculate the fitness function using the equation
0 if 𝑥 𝑚𝑖𝑛 ≤ 𝑥 ≤ 𝑥 𝑚𝑎𝑥
f (x) = ( 𝑥 − 𝑥 𝑚𝑖𝑛 )2 if 𝑥 > 𝑥 𝑚𝑎𝑥
( 𝑥 − 𝑥 𝑚𝑖𝑛 )2 if 𝑥 > 𝑥 𝑚𝑖𝑛
43
1. For all particles, find out from their fitness, their 𝑃𝑏𝑒𝑠𝑡 and 𝑔𝑏𝑒𝑠𝑡 particle.
3. calculate each particle velocity and adjust it, if there is violation of its limits
6. For each particle, calculate the fitness function using equation 𝐹𝑝 = ∑𝑘𝜖𝑁𝐸 𝑃𝑙𝑜𝑠𝑠 + Penalty Function
0 if 𝑥 𝑚𝑖𝑛 ≤ 𝑥 ≤ 𝑥 𝑚𝑎𝑥
f (x) = ( 𝑥 − 𝑥 𝑚𝑖𝑛 )2 if 𝑥 > 𝑥 𝑚𝑎𝑥
( 𝑥 − 𝑥 𝑚𝑖𝑛 )2 if 𝑥 > 𝑥 𝑚𝑖𝑛
7. If current fitness p for each particle is better than 𝑃𝑏𝑒𝑠𝑡 then set 𝑃𝑏𝑒𝑠𝑡 = p.
10. The optimized values of the control variables are given by the coordinates of 𝑔𝑏𝑒𝑠𝑡 particle and the
minimized value of the losses by the corresponding fitness function.
44
5.7 PARTICLE SWARM OPTIMIZATION FLOW CHART FOR MINIMIZE POWER LOSS
start
↓
Define the objective function to be
minimized
↓
Initialize the parameters of PSO, n,c1 ,c2, ITERmax, w, e
↓
Randomly allocate active power to the N units satisfying the equality and inequality constraints
↓
Iteration
↓ ITER =0
↓
Calculate the objective function
↓
Update the 𝐺𝑏𝑒𝑠𝑡 and 𝑝𝑏𝑒𝑠𝑡 values
↓
Update the position and velocity of the particles
45
↓
𝑉𝒊𝒌+𝟏 = w𝑉𝒊𝒌 + 𝑐1 𝑟𝑎𝑛𝑑1 (.) × (𝑝𝑏𝑒𝑠𝑡𝑖 - 𝑠𝑖𝑘 ) + 𝑐2 𝑟𝑎𝑛𝑑2 (.) × (𝑔𝑏𝑒𝑠𝑡𝑖 - 𝑠𝑖𝑘 )
↓
𝑆𝒊𝒌+𝟏 = 𝑆𝑖𝑘 + 𝑉𝒊𝒌+𝟏
↓
Iteration ITER =ITER+1
yes ↓
𝐺𝑏𝑒𝑠𝑡 of PSO is the solution of problem
End
46
CHAPTER -6
IEEE 30 BUS TEST SYSTEM
The IEEE 30-bus test system is used in this work. In the IEEE 30-bus system, there are 30 buses, out
of which 5 are generator buses. Bus 1 is the slack bus and remaining are PQ load buses. The network
has 37 total transmission line and the total transformer is 4.
LOAD BUS PQ V𝛿
SLACK BUS V𝛿 PQ
GENERATOR BUS PV 𝑄𝛿
47
CHAPTER -7
NR METHOD RESULTS
Please wait...
48
10 1.045128 -15.699603 0.000000 0.000000 0.058000 0.020000
11 1.082000 -14.108881 0.000000 0.161713 0.000000 0.000000
12 1.057120 -14.943262 0.000000 0.000000 0.112000 0.075000
13 1.071000 -14.943262 0.000000 0.106182 0.000000 0.000000
14 1.042281 -15.835401 0.000000 0.000000 0.062000 0.016000
15 1.037683 -15.927333 0.000000 0.000000 0.082000 0.025000
16 1.044391 -15.526291 0.000000 0.000000 0.035000 0.018000
17 1.039903 -15.861323 0.000000 0.000000 0.090000 0.058000
18 1.028154 -16.541643 0.000000 0.000000 0.032000 0.009000
19 1.025653 -16.715379 0.000000 0.000000 0.095000 0.034000
20 1.029738 -16.518817 0.000000 0.000000 0.022000 0.007000
21 1.032727 -16.142315 0.000000 0.000000 0.175000 0.112000
22 1.033258 -16.128079 0.000000 0.000000 0.000000 0.000000
23 1.027183 -16.318019 0.000000 0.000000 0.032000 0.016000
24 1.021584 -16.494598 0.000000 0.000000 0.087000 0.067000
25 1.017339 -16.066726 0.000000 0.000000 0.000000 0.000000
26 0.999661 -16.486383 0.000000 0.000000 0.035000 0.023000
27 1.023250 -15.542338 0.000000 0.000000 0.000000 0.000000
28 1.006818 -11.688353 0.000000 0.000000 0.000000 0.000000
29 1.003411 -16.772279 0.000000 0.000000 0.024000 0.009000
30 0.991936 -17.655102 0.000000 0.000000 0.106000 0.019000
-------------------------------------------------------------------------------------------------------------------------------
49
Line flows:
----------------------------------------------------------------------------------------------------------------------------
Line flows Line flows
_____________________ _______________________
From To P-flow Q-flow From To P-flow Q-flow
----------------------------------------------------------------------------------------------------------------------------
1 2 1.7323 -0.2134 2 1 -1.6804 0.3103
1 3 0.8772 0.0455 3 1 -0.8461 0.0242
2 4 0.4362 0.0395 4 2 -0.4261 -0.0475
3 4 0.8221 -0.0362 4 3 -0.8135 0.0521
2 5 0.8238 0.0182 5 2 -0.7943 0.0617
2 6 0.6034 0.0050 6 2 -0.5839 0.0146
4 6 0.7215 -0.1632 6 4 -0.7152 0.1761
5 7 -0.1477 0.1168 7 5 0.1494 -0.1331
6 7 0.3812 -0.0296 7 6 -0.3774 0.0241
6 8 0.2957 -0.0808 8 6 -0.2946 0.0754
9 11 -0.0000 -0.1571 11 9 0.0000 0.1617
9 10 0.2772 0.0591 10 9 -0.2772 -0.0511
12 13 0.0000 -0.1048 13 12 -0.0000 0.1062
12 14 0.0786 0.0240 14 12 -0.0778 -0.0225
12 15 0.1790 0.0680 15 12 -0.1768 -0.0637
12 16 0.0725 0.0335 16 12 -0.0719 -0.0324
14 15 0.0158 0.0065 15 14 -0.0158 -0.0064
16 17 0.0369 0.0144 17 16 -0.0369 -0.0141
15 18 0.0602 0.0160 18 15 -0.0598 -0.0152
18 19 0.0278 0.0062 19 18 -0.0278 -0.0061
19 20 -0.0672 -0.0279 20 19 0.0674 0.0283
10 20 0.0902 0.0371 20 10 -0.0894 -0.0353
10 17 0.0533 0.0442 17 10 -0.0531 -0.0439
10 21 0.1579 0.1001 21 10 -0.1567 -0.0977
50
10 22 0.0762 0.0460 22 10 -0.0757 -0.0449
21 22 -0.0183 -0.0143 22 21 0.0183 0.0143
15 23 0.0504 0.0291 23 15 -0.0501 -0.0285
22 24 0.0574 0.0306 24 22 -0.0569 -0.0299
23 24 0.0181 0.0125 24 23 -0.0180 -0.0124
24 25 -0.0120 0.0202 25 24 0.0121 -0.0200
25 26 0.0354 0.0237 26 25 -0.0350 -0.0230
25 27 -0.0476 -0.0037 27 25 0.0478 0.0041
27 29 0.0619 0.0167 29 27 -0.0610 -0.0151
27 30 0.0709 0.0166 30 27 -0.0693 -0.0136
29 30 0.0370 0.0061 30 29 -0.0367 -0.0054
8 28 -0.0054 -0.0040 28 8 0.0054 -0.0394
6 28 0.1867 -0.0003 28 6 -0.1861 -0.0109
6 9 0.2772 -0.0817 9 6 -0.2772 0.0980
6 10 0.1584 0.0016 10 6 -0.1584 0.0112
4 12 0.4421 0.1426 12 4 -0.4421 -0.0957
28 27 0.1806 0.0503 27 28 -0.1806 -0.0375
---------------------------------------------------------------------------------------------------------------------------
Total real power losses in the system = 0.175516
Total reactive power losses in the system = 0.077964
51
RESULTS OF PSO
PSO DATA
1. Benchmark function :
Sphere function
2
F(x)=∑𝑛𝑖=1 𝑥𝑖
𝑔𝑏𝑒𝑠𝑡 =
0.0020 -0.4534
Answer =
52
2. Benchmark function :
Rosenbrock function
F(x , y)=∑𝑛−1 2 2 2
𝑖=1 [100 (𝑥𝑖+1 -𝑥𝑖 ) +(1-𝑥𝑖 ) ]
𝑔𝑏𝑒𝑠𝑡 =
0.9173 0.8690
Answer =
53
54
SIMULATION RESULTS OF PSO O IEEE 30 BUS SYSTEM
P1 =
48.8556
21.5005
21.6274
12.1322
12.0000
F1 =
801.8437
P=
55
176.6549 48.8556 21.5005 21.6274 12.1322 12.0000
VV =
Columns 1 through 12
1.0600 1.0430 1.0254 1.0171 1.0100 1.0148 1.0050 1.0100 1.0530 1.0467 1.0820 1.0599
Columns 13 through 24
1.0710 1.0450 1.0402 1.0471 1.0415 1.0304 1.0277 1.0317 1.0345 1.0350 1.0296 1.0237
Columns 25 through 30
TL =
9.3706
56
PSO: 300/500 iterations, 𝐺𝑏𝑒𝑠𝑡 = 801.84360962771177.
PSO: 320/500 iterations, 𝐺𝑏𝑒𝑠𝑡 = 801.84360962771177.
PSO: 340/500 iterations, 𝐺𝑏𝑒𝑠𝑡 = 801.8436072032963.
PSO: 360/500 iterations, 𝐺𝑏𝑒𝑠𝑡 = 801.84360514484456.
PSO: 380/500 iterations, 𝐺𝑏𝑒𝑠𝑡 = 801.84360448001792.
VV =
Columns 1 through 6
Columns 7 through 12
Columns 13 through 18
Columns 19 through 24
Columns 25 through 30
TL=
9.376133573332481
57
Simulation Results:-
58
59
60
61
PSO: 1/200 iterations, 𝐺𝑏𝑒𝑠𝑡 = 806.59659432584249.
PSO: 20/200 iterations, 𝐺𝑏𝑒𝑠𝑡 = 802.45450484047387.
PSO: 40/200 iterations, 𝐺𝑏𝑒𝑠𝑡 = 801.84609938744211.
PSO: 60/200 iterations, 𝐺𝑏𝑒𝑠𝑡 = 801.84382298303979.
PSO: 80/200 iterations, 𝐺𝑏𝑒𝑠𝑡 = 801.84370353498969.
PSO: 100/200 iterations, 𝐺𝑏𝑒𝑠𝑡 = 801.84370353498969.
PSO: 120/200 iterations, 𝐺𝑏𝑒𝑠𝑡 = 801.84370353498969.
PSO: 140/200 iterations, 𝐺𝑏𝑒𝑠𝑡 = 801.84370353498969.
PSO: 160/200 iterations, 𝐺𝑏𝑒𝑠𝑡 = 801.84370353498969.
PSO: 180/200 iterations, 𝐺𝑏𝑒𝑠𝑡 = 801.84370353498969.
PSO: 200/200 iterations, 𝐺𝑏𝑒𝑠𝑡 = 801.84363363913826.
P1 =
48.8126
21.4592
21.6837
12.0892
12.0000
F1 = 801.8436
62
VV = Columns 1 through 14
1.0600 1.0430 1.0254 1.0171 1.0100 1.0148 1.0050 1.0100 1.0530 1.0467 1.0820
1.0599 1.0710 1.0450
Columns 15 through 28
1.0402 1.0471 1.0415 1.0304 1.0277 1.0317 1.0345 1.0350 1.0296 1.0237 1.0203
1.0027 1.0269 1.0128
Columns 29 through 30
1.0071 0.9957
TL =
9.3756
PSO Calculation:-
63
PSO: 200/500 iterations, 𝐺𝑏𝑒𝑠𝑡 = 15116.20641349013.
PSO: 220/500 iterations, 𝐺𝑏𝑒𝑠𝑡 = 15116.20641349013.
PSO: 240/500 iterations, 𝐺𝑏𝑒𝑠𝑡 = 15116.206374679627.
PSO: 260/500 iterations, 𝐺𝑏𝑒𝑠𝑡 = 15116.206360531705.
PSO: 280/500 iterations, 𝐺𝑏𝑒𝑠𝑡 = 15116.206345844053.
PSO: 300/500 iterations, 𝐺𝑏𝑒𝑠𝑡 = 15116.206343678223.
PSO: 320/500 iterations, 𝐺𝑏𝑒𝑠𝑡 = 15116.206343678223.
PSO: 340/500 iterations, 𝐺𝑏𝑒𝑠𝑡 = 15116.206343312333.
PSO: 360/500 iterations, 𝐺𝑏𝑒𝑠𝑡 = 15116.206341875655.
PSO: 380/500 iterations, 𝐺𝑏𝑒𝑠𝑡 = 15116.206341865985.
PSO: 400/500 iterations, 𝐺𝑏𝑒𝑠𝑡 = 15116.206338778164.
PSO: 420/500 iterations, 𝐺𝑏𝑒𝑠𝑡 = 15116.20633863788.
PSO: 440/500 iterations, 𝐺𝑏𝑒𝑠𝑡 = 15116.206338635609.
PSO: 460/500 iterations, 𝐺𝑏𝑒𝑠𝑡 = 15116.206338635529.
PSO: 480/500 iterations, 𝐺𝑏𝑒𝑠𝑡 = 15116.206338124106.
PSO: 500/500 iterations, 𝐺𝑏𝑒𝑠𝑡 = 15116.206338069975.
P1 =
167.2494
260.3704
130.2239
171.5403
80.0989
F1 =
1.5116e+004
P=
64
441.4061 167.2494 260.3704 130.2239 171.5403 80.0989
VV =
Columns 1 through 14
1.0250 1.0200 1.0450 1.0500 1.0450 1.0006 0.9953 0.9983 1.0103 0.9908 0.9979
0.9942 1.0225 1.0082
Columns 15 through 26
0.9990 0.9903 0.9823 1.0074 1.0045 0.9830 0.9770 0.9795 0.9780 0.9690 0.9750 1.0150
TL =
-12.1111
65
66
Penalty Function Calculation:-
tol2 = 10e-5;
x0 =[myrand(0,2) myrand(0,2)];
% x0 = [0 0];
if c==0
else
c = myrand(0,10);
end
t = 1;
x(t,:)= x0;
R(t)= R0;
x1 = x(1);
x2 = x(2);
if s < 0
for t = 1
x1 = x(t,1);
x2 = x(t,2);
k = R.*s^2;
F = penfun(x(t,:),0);
P(1,t) = penfun(x(t,:),R(1,t));
x(t+1,:) = G(t,:);
t = t+1;
P(1,t) = penfun(G(t-1,:),R(1,t-1));
err = abs(P(1,t));
R(1,t) = c*R(1,t-1);
x1 = x(t,1);
x2 = x(t,2);
67
end
else
x1 = x(t,1);
x2 = x(t,2);
k = 0;
F = penfun(x(t,:),0);
P(1,t) = penfun(x(t,:),0);
G(t,:) = runevolution(x(t,:),0);
t = t+1;
P(1,t) = penfun(G(t-1,:),0);
err = abs(P(1,t));
R(1,t) = c*R(1,t-1);
x(t,:) = G(t-1,:);
end
a(:,1) = G(t-1,:)';
while err>tol2
G(t,:) = runevolution(x(t,:),R(1,t));
x(t+1,:) = G(t,:);
t = t+1;
R(1,t) = c*R(1,t-1);
P(1,t) = penfun(G(t-1,:),R(1,t-1));
err = abs(P(1,t)-P(1,t-1));
x1 = x(t,1);
x2 = x(t,2);
a(:,1) = G(t-1,:)';
if abs(s) <tol1
break;
break;
end
end
fval = penfun(x(t,:),0);
68
Voltage Losses Mitigation and Voltage Profile Improvement
val1 =
0.8936
index1 =
18
val2 =
0.6393
index2 =
18
ans =
1.0e+003 *
69
Columns 1 through 7
0 0 0 0 0 0 -0.1457 + 0.1051i
0 0 0 0 0 0 0
0 0 0 0 0 0 0
0 0 0 0 0 0 0
0 0 0 0 0 0 0
0 0 0 0 0 0 0
0 0 0 0 0 0 0
0 0 0 0 0 0 0
0 0 0 0 0 0 0
0 0 0 0 0 0 0
0 0 0 0 0 0 0
0 -1.2102 + 1.1548i 0 0 0 0 0
0 0 0 0 0 0 0
0 0 0 0 0 0 0
0 0 0 0 0 0 0
0 0 -0.5729 + 0.3915i 0 0 0 0
0 0 0 0 0 0 0
0 0 0 0 0 0 0
0 0 0 0 0 -1.4832 + 0.7555i 0
0 0 0 0 0 0 0
0 0 0 0 0 0 0
0 0 0 0 0 0 0
0 0 0 0 0 0 0
0 0 0 0 0 0 0
0 0 0 0 0 0 0
0 0 0 0 0 0 0
70
Columns 8 through 14
0 0 0 0 0 0 0
0 0 0 0 0 0 0
0 0 0 0 0 0 0
0 0 0 0 0 0 0
0 0 0 0 0 0 0
0 0 0 0 0 0 0
-0.1457 + 0.1051i 0 0 0 0 0 0
0 0 0 0 0 0 -0.3580 + 0.3186i
0 0 0 0 0 0 0
0 0 0 0 0 0 0
0 0 0 0 0 0 0
0 0 0 0 0 0 0
0 0 0 0 0 0 0
0 0 0 0 0 0 0
0 0 0 0 0 0 0
0 0 0 0 0 0 0
0 0 0 0 0 0 0
0 0 0 0 0 0 0
0 0 0 0 0 0 0
0 0 0 0 0 0 0
0 0 0 0 0 0 0
0 0 0 0 0 0 0
0 0 0 0 0 0 0
0 0 0 0 0 0 0
0 0 0 0 0 0 0
0 0 0 0 0 0 0
71
Columns 15 through 21
0 0 0 0 0 0 0
0 0 0 0 -1.2102 + 1.1548i 0 0
0 0 0 0 0 0 0
0 0 0 0 0 0 0
0 0 0 0 0 0 0
0 0 0 0 0 0 0
0 0 0 0 0 0 0
0 0 0 0 0 0 0
0 0 0 0 0 0 0
0 0 0 0 0 0 0
0 0 0 0 0 0 0
0 0 0 0 0 0 0
0 0 0 0 0 0 0
-0.3580 + 0.3186i 0 0 0 0 0 0
0 0 0 0 0 0 -0.1946 + 0.2574i
0 0 0 0 0 0 0
0 0 0 0 0 0 0
0 0 0 0 0 0 0
0 0 0 0 0 0 0
0 0 0 0 0 0 0
0 0 0 0 0 0 0
0 0 0 0 0 0 0
0 0 0 0 0 0 0
0 0 0 0 0 0 0
0 0 0 0 0 0 0
0 0 0 0 0 0 0
72
Columns 22 through 28
0 0 0 0 0 0 0
0 0 0 0 0 0 0
0 0 0 0 0 0 0
0 -0.5729 + 0.3915i 0 0 0 0 0
0 0 0 0 0 0 0
0 0 0 0 0 0 0
0 0 0 0 -1.4832 + 0.7555i 0 0
0 0 0 0 0 0 0
0 0 0 0 0 0 0
0 0 0 0 0 0 0
0 0 0 0 0 0 0
0 0 0 0 0 0 0
0 0 0 0 0 0 0
0 0 0 0 0 0 0
0 0 0 0 0 0 0
0 0 0 0 0 0 0
0 0 0 0 0 0 0
0 0 0 0 0 0 0
0 0 0 0 0 0 0
0 0 0 0 0 0 0
0 0 0 0 0 0 0
-0.1946 + 0.2574i 0 0 0 0 0 0
0.1946 - 0.2574i 0 0 0 0 0 0
0 0 0 0 0 0 -0.2681 + 0.2335i
0 0 0 0 0 0 0
0 0 0 0 0 0 0
0 0 0 0 0 0 0
0 0 0 0 0 0 0
73
Columns 29 through 33
0 0 0 0 0
0 0 0 0 0
0 0 0 0 0
0 0 0 0 0
0 0 0 0 0
0 0 0 0 0
0 0 0 0 0
0 0 0 0 0
0 0 0 0 0
0 0 0 0 0
0 0 0 0 0
0 0 0 0 0
0 0 0 0 0
0 0 0 0 0
0 0 0 0 0
0 0 0 0 0
0 0 0 0 0
0 0 0 0 0
0 0 0 0 0
0 0 0 0 0
0 0 0 0 0
0 0 0 0 0
0 0 0 0 0
0 0 0 0 0
0 0 0 0 0
0 0 0 0 0
0 0 0 0 0
-0.2681 + 0.2335i 0 0 0 0
74
75
76
COMPERISION BETWEEN NR METHOD AND PSO METHOD
RESULTS
77
CHAPTER-7
CONCLUSION:
Particle swarm optimization for OPF problem has been proposed. The proposed approach has been
tested and examined on the standard IEEE 30 bus system. The simulation results show the effectiveness
and robustness of the proposed algorithm to solve the OPF problem. As a result, the PSO method
proves that it can find a place among the effective search method in order to find a global solution.
when comparing both the Newton Raphson method and particle swarm optimization method the
minimum losses are obtained from the particle swarm optimization method.
78
SYSTEM DATA
For the above case we will take reference IEEE 30 case data of the below models:
Bus data
Shunt capacitor data
Line data
All the data are shown with details in APPENDIX-A section 1.
79
References
1. “Particle Swarm Optimization Based Optimal Reactive Power Dispatch”, IEEE 2015,
Sundaram Pandya and Ranjit Roy.
2. “Optimal Power Flow Based on PSO in Electrical Power System”, International Journal of
Advances in Electrical and Electronics Engineering, ISSN: 2319-1112 Prashant Kumar,
Vikas Dubey, Deepak Sharma.
3. “Transmission Loss Minimization Using Optimization Technique Based On PSO ”,
IOSR Journal of Electrical and Electronics Engineering (IOSR-JEEE) Volume 6, Issue 1
(May. - Jun. 2013), PP 01-05. Sunil Joseph P, C.DineshBalaji.
4. “Constrained Optimal Power Flow using Particle Swarm Optimization”, International Journal
of Emerging Technology and Advanced Engineering (ISSN 2250-2459, Volume 2, Issue 2,
February 2012), C.Kumar, Dr. Ch. Padmanabha Raju.
5. “ Optimal power flow by particle swarm optimization with an aging leader and challengers”,
International Journal of Engineering, Science and Technology Vol. 7, No. 3, 2015, pp. 123-
132 Rudra Pratap Singh, V. Mukherjee, S.P. Ghoshal.
6. “particle swarm optimization of power loss in distribution system”, IEEE 2015 12^th
international conference on information technology – generation, Joseph B. abugri, and Marc
Karam.
7. “power loss reduction in a power system based on PSO: case study”, International Journal of
computer application (0975-8887) vol 164 – no 10, April 2017, Sameer Singh, Vivek Kumar
Jain, and Upendra Prasad.
8. “ Loss power minimization using particle swarm optimization”,2006 international joint
conference neural networks July 16-21, 2018, A.A.A. Esmin, and G.Lambert – Torres,
member, IEEE.
9. “Optimal reactive power flow control for minimization of active power losses using particle
swarm optimization”, 20125 conference on power control, communication and computational
technologies for sustainable growth (PCCCTSG) December 11-12,2015, Kurnool, Andhra
Pradesh, India, N. Tejswara Rao, Jagannath ch Yadav b. and anyapu jagannadham.
references of book
10. Artificial intelligent, Author: Elaine rich
11. 11.Modern power system analysis, Author: D.P. Kothari,I.J. Nagrath
12. A thesis of comparison between Newton Raphson method and particle swarm optimization
13. in the analysis of economic load dispatch, researched by rihab Hassan abdelghafour Hassan
80
APPENDIX-A section 1
Bus no Susceptance
10 19
24 4
81
TABLE A3 TRANSMISSION LINE DATA
82
APPENDIX-B
Review Card & Compliance Report
83
84
85
86
87
Compliance report
Internal Review
Comment 1:- understanding of optimization techniques done.
Comment 2:- understanding of reference test system done.
Comment 3 basic load flow programming on MATLAB done.
Comment 4:- Detail study of particle swarm optimization done.
Dissertation Phase -1
Comment 1:- Modification in a title is required “inertia study” is misleading done.
Comment 2:- fundamental of power flow should be improved improved
Comment 3:- implementation of PSO and comparison with conventional
methods are required to be shown improved.
88
APPENDIX-C
89
90