“Optimal Reactive Power Dispatch (ORPD) Using Particle Swarm
Optimization (PSO)”
By
Kartik S. Pandya
Associate Professor
Dept of Electrical Engineering,
CSPIT,
Charotar University of Science and Technoloogy-Changa,
INDIA
Email:kartikpandya.ee@ecchanga.ac.in
Acknowledgements: I am very much thankful to Prof. Ray. Zimmerman (the creator of
MATPOWER software) for permitting me to use this software for executing load flow analysis. I
am also thankful to Mr. Jagatpreet Singh whose PSO codes have been used in this application.
His developed PSO codes are available on MATLAB file exchange.
Important note:
I have solved the optimal reactive power dispatch problem using Particle Swarm Optimization
algorithm for IEEE 30 bus test system. I have used MATPOWER[1] software, version 3.2 for
executing load flow analysis for each particle. As MATPOWER is a system requirement, users
are kindly requested to download it from its website first (www.pserc.cornell.edu/matpower) and
then in the folder of MATPOWER, please include ORPD_30bus.m file. Users are requested to
define some variables as global in some files of MATPOWER as given in table 1.
Table 1: Variables to be defined as global in MATPOWER files
Sr no. File name.m Variables to be defined as global
1 printpf.m global loss
2 runpf.m global bus, gen, branch (In line no. 114)
In runpf.m file, in “default arguments”, please write casename=’case_ieee30’ (In
line no. 60)
ORPD_30bus.m can be used to simulate reactive power dispatch of IEEE 30 bus test system
only. For executing it for other systems, the users will have to make necessary changes in
the input data.