File Exchange

image thumbnail

Optimal Reactive Power Dispatch(ORPD) using Particle Swarm Optimization(PSO)

version 1.1 (63 KB) by kartik pandya
I have solved optimal reactive power dispatch problem using Particle Swarm Optimization method

26 Downloads

Updated 20 Nov 2014

View Version History

View License

I have solved the optimal reactive power dispatch problem using Particle Swarm Optimization algorithm for IEEE 30 bus test system.Control variables like reactive power output of generators (generator bus voltages), tap ratios of transformers and reactive power output of shunt compensators like capacitors etc. have been optimized by PSO algorithm to minimize the total transmission active power losses while satisfying a given set of constraints.
for more details, please refer ORPD_introduction file.

Cite As

kartik pandya (2021). Optimal Reactive Power Dispatch(ORPD) using Particle Swarm Optimization(PSO) (https://www.mathworks.com/matlabcentral/fileexchange/41265-optimal-reactive-power-dispatch-orpd-using-particle-swarm-optimization-pso), MATLAB Central File Exchange. Retrieved .

Comments and Ratings (121)

raju wagle

Dear Sir
Can you please send me the complete file in my email rajuwagle@gmail.com

panos liolios

Dear sir
I am a master's student the General Department of the National and Kapodistrian University of Athens offers in Chalkida, the postgraduate programme “Intelligent Management of Renewable Energy Systems”.
Ιf you have good kindness send me the full folder in the pliolios@mail.teiste.gr

I would be very grateful.
Panagiotis

ergin kayar

full folder pls erginkayar07@gmail.com

Qasim Mehboob

Hi Sir,
I am Engr. Qasim Mehboob, I am a master's student currently doing my research on ORPD problem. I really appreciate the effort you put in the production of such high-quality work. I would appreciate you if you could send me the complete folder at qasimmehboob63@gmail.com.
Thanks in advance

kartik pandya

To get full folder, email me at kartikpandya75@gmail.com, or kartikpandya.ee@charusat.ac.in

Shiva Poudel

Dear sir
while running/simulating the code uploaded by you in matlab 2015a have a lot of problem so please send me a revised code in shivapoudel1995@gmail.com.
thank you

Mohamed Mezaache

Hello;
Can someone please help me about diary, I have an error during the simulation in MATLAB:

Error using diary
diary: Cannot open file: permission denied.

Error in ORPD_30bus (line 165)
diary on
Best regards.

NOOR habib

Hello, Sir i am PhD student from NCEPU, China and working on ORPD and very impressive work to implement . I need the whole file at noorhabibkhan@ncepu.edu.cn , Thanks in advance, regards,
Noor

MUSINGUZI ROBERT

Ashwaq Alkhatib

Hi Sir,
I am a student and I am working on ORPD and I would be appreciated if you could sending me the whole file at ash.alkhatib@gmail.com.
Many thanks in advance.
Best Regards,

Rafi Ariza

Hello Sir,
My nama is Rafi Ariza Simanjuntak. I am a student of Lampung University Indonesia. Your work would be really helpful for me in completing my final assignment. Kindly send me the full file at rafarz.sjt@gmail.com. Thank You Very Much
Best Regard

Kunwar Touseef

Hello Sir, i am working on ORPD problem. Kindly send me the full folder at kunwartouseef94@gmail.com. It would be really really helpful. Thanks and Regards
Kunwar Touseef

gafur sidiq04

hello sir. my name is sidiq form ugm student.please can you send me the full file ORPD to my email gafursidiq04@gmail.com.
thankyou very much.

Alex Cruz

Hi Sir,

alexdecruz11@gmail.com for ORPD_introduction file.

Can you also send me complete file, please? I would really happy if you send me this code. I am working on PSO optimization problems these days and I want to enhance my knowledge about it.

Best Regards,

Haseeb Sarwar

Respected Sir,
My name is Engr. Haseeb Sarwar. I am a research scholar currently working on ORPD problem. I found your work on mathworks. I have successfully run your code. For some more problems, I need complete folder. Kindly send me complete folder. Send me at haseebsarwar123@gmal.com
I shall be very thankful to you.

Sincerely,
Engr. M Haseeb Sarwar
Research Scholar

kartik pandya

Email me at kartikpandya.ee@charusat.ac.in to get full folder.

Malvika Viswanathan

Can you please email me the complete folder malvikaviswanathaan9992@gmail.com

haider fathi

can u send me the full file ORPD
mail:abdullahhfk2012@gmail.com

Tessy

hello sir, would you mind if you send me the full file my email: dwarfhyuk@gmail.com

Patel mahesh

hello sir ,i am patil monal, mtech student . can you please send me the full file orpd
my email: patilmonal123@gmail.com

Sreenivasa Raju

hello sir ,can you please send me the full file
my email: sreenivasaraju12272@gmail.com

Hello Mr. Kartik.
May I have your complete folder? I am very interested.
my email : msamodrou@gmail.com

naira sayed

please,can you give me compelete folder
eng.nairasayed@outlook.com

Tetteh Bright

Dear Mr Kartik

Am trying to run it but i couldnt, can you send me full folder and any other helps thanks.
email
otbright818@gmail.com

Nurul Afina

Dear Mr. Kartik,

I am very interested in ORPD.
can you send the full folder to me?
e-mail
nurulafina23@gmail.com
thank you very much.

Manie Molin

Dear kartik or anyone who sucessfully run the file,
I cannot run th code and does not quite understand how to define global. When I run the code, power loss is always zero.
please send me full folder of ORPD to manie.wingp@gmail.com
much appreciated

mohammed

mohammed

Dear kartik pandya, I have problems in optimizing reactive power using PSO, could you please send me full folder of ORPD for running the code ,. It will help me . please send to mohammed_2012@yahoo.com . thank you.

rian yuriki

hello Kartik, i found some prolem in optimizing reactive power using pso, can you please send me full folder about the optimization,. it will help me i am sure. please send to rian.dwika@gmail.com . thank you.

Mohsen Falaki

Hello sir
can you send me full folder of ORPD which contains code to
Falakim@gmail.com
Thanks

meysam hamidi

Ahasan Habib

Dear kartik
I am very interested to know about optimization techniques. Will u give me the full folder of that simulation process in that address: habib.eee.116.ah@gmail.com

i am working on ORPD nd using 6 bus system for impementation. i am using the data of excel sheet and calling it in matlab .i need your help to understand the code you have given on mathworks ..i will be very thankful to you.

himayatullah jan

please send me full folder if any one in the comment got that my email id is jhimayatullah@gmail.com

Muhammad Junaid Tahir

Dear Kartik, would you please send the the ORPD Full folder to jt2917@yahoo.com

rahul jha

Hello sir,
can you send me full folder of ORPD which contains code to rahulkrjha08jan@gmail.com

Stita Pragnya Dash

Hello Sir,
Can you please send me the other related functions of this program and the introduction file as well to stitapragnya87@gmail.com
Regards,
Stita.

Maria Clavijo

Dear Kartik, Would you please send me the full folder? mariaalejandraclavijoc@gmail.com
Thanks

RODRIGO VEIGA SILVA

I understant how to do this, email me if you want the codes!! rodriigoveiga@gmail.com

Hailu Tibebe

Dear Mr. Kartik, I am very interested in ORPD.
can you send the full folder to me?
fitsum012@gmail.com

i can't run it

ozan akdag

Aaina

Is it can be run in MATLAB?

Hrvoje Palcic

Hello, Dear Mr. Kartik and all others on this forum. I have a problem with algoritham, i cant get good result, every time i run simulation i get same results? Can anyone help me with this problem?

Mikaeel Ahmadi

Dear Mr. Kartik,
Thank you for your nice work can you please send the full folder.
mikaeel.ahmadi2014@gmail.com

Duangjun Thanikkul

Dear Mr. Kartik, I am very interested in ORPD.
can you send the full folder to me?
e-mail
kal.dua@gmail.com
thank you very much.

Aqsa Naeem

Dear Mr. Kartik, I downloaded your program but it shows error "Error using case_ieee30. Too many output arguments". I am using MATLAB 2015b and MATPOWER 6.0. I'll appreciate your help in this regard. Also, can you email the full folder at 15060049@lums.edu.pk?

Aqsa Naeem

Dear Mr. Kartik, I downloaded your program but it shows error "Error using case_ieee30. Too many output arguments". I am using MATLAB 2015b and MATPOWER 6.0. Can you kindly assist me in solving this problem?

yiming li

Dear Mr. Kartika,
I am trying to run the function. Could you please send me the full folder of ieee 30 bus system?
emial: 1094265704@qq.com

farid gharzouli

dear kartika,
i have matpower 6.0 2b, it's not very clear to modifey the variables, can you explain it better and in detail.
would you please send me the full folder ' ORPD' , and if you have it in A.G methode
thank you
email: gharzouli_farid@yahoo.fr

Mehmet Sefik UNEY

Hi, Dear Karthik
Could you send my mail full folder.
sence72uney@gmail.com

yadhav surender

dairy error. help pls

ahmed abdulsahib

think you ... where is equation which write this code ... and have you optimal sizing and location to reduce power losses in radial distribution system my email
al_mohnds2006@yahoo.com

puneet kaur

Dear Karthik
Was struck up since long.Thanks for the code.Can you pl mail full folder puneetishaan@yahoo.co.in
When run it shows error
Undefined function or variable 'idx_bus'.

Error in ORPD_30bus (line 9)
[PQ, PV, REF, NONE, BUS_I, BUS_TYPE, PD, QD, GS, BS, BUS_AREA, VM, ...
Can you help please

Gayathri Baskaran

Respected sir,
I am a final year EEE student doing my project on Optimal location of UPFC for voltage stability enhancement using PSO algorithm.I am using L-Index for calculating fitness value.I don't know how to modify the runpf code in matpower after placing the upfc device in the optimal location and then linking it with the main PSO program.Please help me sir.Mail me any related information about this sir.Mail ID :eeegayathribaskaran@gmail.com

ylpei1025

Dear professor Pandya, Would you please send me the full folder? cylg717@163.com

Ghazi Ghazi

Dear Kartik, Would you please send me the full folder? g.ghazi2011@gmail.com
Thank you and God bless

Ziad Alhabib

Can you please email me the Matlab code?
z_alhabeeb@hotmail.com

Hello Karthik Sir, Can you forward me the entire folder please.
Thanking You
Shiva Chaitanya Repalle

akaash

Hi Kartik

Please tell that in which line we have to change in the file printpf.m??

akaash

Edmar Adem

Dear Kartik, Would you please send me the full folder? edmargwapoo@gmail.com
Thank you and God bless

NIKHIL MITHARE

Dear sir,
I am have chosen the topic "OPTIMIZATION OF STATCOM DEVICES USING PSO TECHNIQUE" as my project. I am perusing final year engineering in electrical and electronics. Can i get any information from you about the PSO technique, the code used in matlab, what version of matlab software i have to use?
Please do the needful by mailing me @ nikhilmithare67@gmail.com
Thank you.

Ashok Parmar

Respected kartik sir,
This is ashok parmar from Gujarat. Sir I am working in electricity market and I want to applied optimization for the same. Please send GA or Pso code with necessary instruction if any.
thank you very much sir

Gupron Nurhalim

Dear sir,
i need program "optimal placement svc for IEEE 30 bus using genetic algorithm or bee colony" Please help me
mgupron.halim@gmail.com
Thanks

Tlabane Nchabeleng

hello,i need the genetic algorithm code to minimize reactive power losses in a system,please help (Nchabelengtlabane@yahoo.com)

omid zandi

Dear Kartik, Would you please send me the full folder? omid6400@gmail.com
Thanks

Emmanuel Agbugba

Dear Kartik, Would you please send me the full folder? emenikeagbugba@gmail.com
Thanks

mahendra reddy

Dear Kartik, Would you please send me the full folder? reddymahendra.reddy@gmail.com
Thanks.

vismay loriya

require the coding of optimal reactive power dispatch using genetic algortihm so any one help about this matlab coding then send me.
vjloriya.7492@gmail.com

vismay loriya

Dear Kartik Sir, Would you send me the full folder?
vjloriya.7492@gmail.com
thank u

ritesh dash`

Dear Kartik Sir, Would you send me the full folder?
riteshfel@gmail.com
Thanking You

Alireza Barzegar

Dear Kartik, Would you please send me the full folder? barzegaralireza@gmail.com
Thanks

Srinath Santhanam

ranga1221@gmail.com.This is my email id.Kindly mail me the thing.Thank you so much

kartik pandya

provide me your email add.
I will send complete folder

Srinath Santhanam

Dear Kartik Pandya sir,
I downloaded your program and simulated it.Its showing error as "too many output arguments".Kindly help me with it.Can u send the entire folder???

vismay loriya

sir i want full program of "optimal reactive power dispatch using genetic algorithm."

Mohamed Ali

For Sorry Dear Arif Rizvi
I didn't get it yet,
Do you have, Please help me!!!

Arif Rizvi

Dear Mohamed Ali , Did you get your required simulation program for optimal capacitor bank placement in radial distribution system using PSO ?

Mohamed Ali

Dear sir,
Are you have a simulation program for optimal capacitor banks in radial distribution system using Optical swarm

kartik pandya

Hello
The detail instructions are given in ORPD_introduction word file.
I may email you the complete folder, if you want.
regards

Drazen Tubic

it is very unclear for begginers to undestand what variables are to be changed in matpower3.2(runpf.m and printpf.m). Could someone specify or maybe explain it better please? Maybe telling what lines should be changed in the code.

kartik pandya

send me your email. I will send you complete folder.

farhan uitm

??? function [fxmin, xmin] = ORPD_30bus()
|
Error: Function definitions are not permitted at the prompt or in scripts.
why i get this error
anyone help me pls?

Chirag Tanti

Dear sir, I want to matlab code for "optimal location of statcom for IEEE bus 30 system using pso"

Chirag Tanti

Dear sir, I want to "optimal location of statcom among various IEEE bus system by pso"

RIYAZ SHAIK

sir,can we solve reactive power dispatch problem
based on Benders Decomposition technique?

kartik pandya

It is a standard IEEE 30 bus test system in which capacitors are placed in the mentioned buses.
we use pu notations in load flow analysis.
Base impedances can be found out using equations given in book of power system.

Mini

Karthik sir,
I have downloaded and used the file. Found it working well. Thanks for uploading it.
I have two doubts -- 1) Why did u keep the reactive power sources at buses 3, 10 and 24 itself.2) Reactance, Susceptance values are all given in p.u. values -- what is the base impedance?

rajat

pandya sundaram

sir ,
I am sundaram here,
plz, help me that how can i get the active power loss ? because it will be '0' for all the times.
i can not understand the change into the printpf.m and runpf.m files

kartik pandya

It works with MATPOWER 3.2 only

Mohamed

Hello sir!
I have downloaded the Matpower 4.1 and moved the files to matlab folder. But I can not run the matpower models. I have tried the procedure on both matlab 2006b and 2012b.
Kindly provide me details on how to install the Matpower 4.1(in steps so that I can understand well)

Thank you

Maha

I worked out it in matlab2012

satera

hello, maha
it works well with which matlab version

satera

CAN ANY HELP ME THIS PRINTF TO BE DEFINED AS GLOBAL LOSS

satera

IT ILL BE VERY USEFUL IF U COULD UPLOAD A VIDEO FOR IT

Kaushal Patel

Hello Ovi,
how much active power loss u r getting after optimization?

Ovi

It's working well

Kaushal Patel

thank u maha.. but still losses are not minimized..!!

Maha

Can anybody please help me out.I'm not getting the minimized loss.It is same in all the iterations

Maha

The variables are defined as global in printpf and runpf files because they can be accessed outside the corresponding files only when they are defined as global

Kaushal Patel

i run the program.. but every time it shows loss 17.557 MW.. optimization part is not working... i don't get about the variables(global loss) to be defined in runpf & printpf files.. can anybody help me?

Kaushal Patel

thank you Maha.. matpower3.2 is working.. what changes we have to made in printpf.m file?

Maha

Hello Kaushal,
You should not install matpower 4.1 . Matpower3.2 is available in the same website and you have to download it.This program doesn't work with 4.1 as its features are not similar to 3.2

Kaushal Patel

i can't install matpower 4.1.. it shows error of undefined character.. what should i do?

Maha

Thankyou Sir!

kartik pandya

Hello,
When you run the program the "diary" will be created by MATLAB. The results are stored in the diary. Remember to delete diary after each simulation otherwise its size will become too large.

Maha

Hello Sir,
Your program was useful to me.Could you please tell where the diary file exists?

kartik pandya

Hello Ovi
Just press "download submission" and you will get the ORPD file. Also, download MATPOWER 3.2 from its website. Include ORPD file in MATPOWER's folder. Make necessary changes in an ORPD file as per instructions given in "introduction" file.

Ovi

how to download

kartik pandya

I would request you to make necessary changes as per given instructions in the file. You will definitely get the results.

Majid Heidarifar

Hello kartik,
I run the code. The optimization part do not work. in every iteration, power loss is constant at 17.557 and do not change in the simulation.

kartik pandya

Hello,
I have taken the data from MATPOWER (case ieee30.m), which is not the same as that of ref.[2].
Regards

K S

Hello Kartik,
Thanks for the code and I successfully ran your code. But the results given in reference 2 is not matching with the result which you have given in word file. Did you made any difference in Input data. If so please let me know

Regards

RAMAKANTH SIRIPURAM

thanks

Jeremy

Thanks Kartik,

I can see where you got it from now.

Regards

kartik pandya

Hello Jeremy,
The results are stored in "diary" file. fxmin variable gives minimized value of active power losses. In "diary" , load flow results of all particles are obtained during optimization. Now, corresponding to fxmin value, you have to manually find Qloss (VAR loss) from load flow results.
Regards

Jeremy

Hello Kartik,

I successfully ran your code and I just want to know how or where you got the VAR losses after optimization from. Thanks.

kartik pandya

hello Zeng,
pl. carefully read the ORPD_introduction file before running ORPD_30bus.m file. first you have to install MATPOWER 3.2 from its website. Then in MATPOWER folder copy ORPD_30bus file. modify some files of MATPOWER as mentioned in ORPD_introduction file.

Zeng Zheng

Hi Kartik, I m not sure why when I run the file, the optimization part do not process, when I look into the data, the power losses at initial stage is 0 already, could I know the way to fix it? Thanks

MATLAB Release Compatibility
Created with R2008a
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!