Code covered by the BSD License  

Highlights from
Newton-Raphson Loadflow

4.14706

4.1 | 35 ratings Rate this file 336 Downloads (last 30 days) File Size: 8.46 KB File ID: #21059

Newton-Raphson Loadflow

by

 

13 Aug 2008 (Updated )

These matlab m files are used to calculate bus voltages and angles using Newton Raphson iterative me

| Watch this File

File Information
Description

These matlab m files are used to calculate bus voltages and angles, power flows using Newton Raphson iterative method

MATLAB release MATLAB 7 (R14)
Other requirements Matlab 6 or higher
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (63)
15 Dec 2014 Aakash

Can i get the matlab code for incorporating upfc in newton raphson algorithm for ieee 30 bus system...
plz mail me it at aakash274@gmail.com

23 Nov 2014 Ishan Purohit

Hey can anybody tell em how to copy the complete Newton Raphson Loadflow Analysis and line losses data in excel sheet

21 Nov 2014 khalaf

I have changed the 33-bus code (mesh system) to 34-bus(radial system) and i have added the 34th bus data and changed the line data.

when i run, it works but never close to converge. it means the tolerance is very high in kilos and the results are unstable( goes from zeros to kilos and never stop).

anybody can help. is it ok to run the code for radial system is staid of mesh system? please help me if you can

15 Nov 2014 sandeep

hello mr. hossein. I read your paper on distributed generation. I am also working on same topic is it possible for you to help me?

14 Nov 2014 Erik

Hanumant, change lines 44 and 45 of loadflow.m to read:

Pij = full(real(Sij));
Qij = full(imag(Sij));

09 Nov 2014 mohammad hossein

hi my freinds...
i need to your help for using matlab to run newton raphson load flow by using genetic algorithm...
my problem is in 30 & 33 bus IEEE ...!!
thanks for your participation for solving the problem, with me...!!
god bless yo...

07 Nov 2014 J Gunda

Sorry I just had a rough look and did not checked the program completely. I understood you have rearranged the equations while calculating Jacobian elements. Please ignore my last comment.

06 Nov 2014 J Gunda

I think there was a mistake in calculation of Jacobian elements in your program. When m=n, if you do the differentiation you will get 2*Vm but you have used only Vm. Anyway good job....

03 Sep 2014 Muhammad Zahid

I want to perform
"LOAD FLOW STUDIES WITH UPFC POWER
INJECTION MODEL FOR 30 BUSES",
Kindly help me coding(MATLAB simulation).
Can i get complete code for 30 buses.

PLEASE HELP ME .
SINCERE REGARDS;
Zaid

03 Sep 2014 Muhammad Zahid

how can i watch PRAVI posts......i have already made account....kindly guide me ...i am new user

02 Sep 2014 Mohsen

Thank you very much

01 Sep 2014 mourad

How to insert a photovoltaic source and estimat its impact in the distribution network ?

04 Aug 2014 Merah ahmede

Nice Joooob.

09 Apr 2014 Hanumant Sarde

hello sir after executing the program the command shows the following error

1 2Error using fprintf
Function is not defined for sparse inputs.

Error in loadflow (line 95)
fprintf('%4g', p); fprintf('%4g', q); fprintf(' %8.3f', Pij(p,q)); fprintf(' %8.3f',
Qij(p,q));

Error in nrlfppg (line 160)
loadflow(nbus,V,del,BMva); % Calling Loadflow.m..

can u please make me understand why the error occured

11 Mar 2014 pruthvi

hello sir after executing the program the command shows the following error

1 2Error using fprintf
Function is not defined for sparse inputs.

Error in loadflow (line 95)
fprintf('%4g', p); fprintf('%4g', q); fprintf(' %8.3f', Pij(p,q)); fprintf(' %8.3f',
Qij(p,q));

Error in nrlfppg (line 160)
loadflow(nbus,V,del,BMva); % Calling Loadflow.m..

can u please make me understand why the error occured

24 Jan 2014 Rohit kumar Bharadia  
23 Jan 2014 SRINIVAS GAMPA  
23 Dec 2013 Priyadharshini M

Hai im in need of Newton-Raphson load flow analysis Matlab code for contingency analysis in power system..I want to apply the line outages,load outages, generation outages randomly..i need your help..please help me..

21 Sep 2013 mangeshkumar rupnar  
12 Sep 2013 azri zawawi

ello..i'm azri...I want to do power system load flow analysis using matlab by fast decoupled method....can u help me....???please help me...

17 Jun 2013 Mahdi

Hi every body
I want to do load flow analysis for IEEE 13 bus (unbalance distribution network).
How can I perform it?
Please help me.
Thanks a lot.

28 Apr 2013 vit university  
27 Apr 2013 Waleed

Hi all,

I am running this code for fixed real powers at generator buses but it changes the values after execution, from those values that I have input. PV (generator) buses are supposed to have a fixed P and V, and Q and angle get calculated from them by Newton Raphson. Now I don't know what to do. Kindly look into my issue urgently, I have a project that is due in a day.

06 Apr 2013 Meshal AM  
06 Mar 2013 JMI ENGG COLLEGE

In NRLF simulation, I got most of the results as NaN. How can I solve the problem?
Does anyone has solution to this problem?

01 Jan 2013 arman ghaderi

do you consider the limit of reactive power of generators?

01 Jan 2013 umakanth ramineedi

Error in ==> at 81
G = real(Y); please help me i you help me it really use full to my project

13 Nov 2012 JAIME MORONI

the solution for the fprintf...
fprintf(' %8.3f', Pij(p,q)); fprintf('
%8.3f', Qij(p,q));....

you have to change fprintf('
%8.3f', Qij(p,q)) by fprintf('
%8.3f', full(Qij(p,q))) ....

you must do the same for Pij Qij any vector...

i have a cuestion the results are a little diferents. that a flow

http://catedrasempresa.esi.us.es/endesared/documentos/Tesis_Marano.pdf

30 Oct 2012 Mamta  
30 Oct 2012 Mamta  
01 Aug 2012 Shahariar Kabir

Hi, I am having the the same problem as
Munibullah. Please help us urgently.

12 Jul 2012 Munibullah

hey im having the same problem.

1 2??? Error using ==> fprintf
Function is not defined for sparse inputs.

Error in ==> loadflow at 96
fprintf('%4g', p); fprintf('%4g', q);
fprintf(' %8.3f', Pij(p,q)); fprintf('
%8.3f', Qij(p,q));

Error in ==> nrlfppg at 160
loadflow(nbus,V,del,BMva); %
Calling Loadflow.m..

HOw to fix this? i need to get the results its very imp.

08 Jul 2012 Umar

How to determine line current flow, the commands are given in loadflow.m but this m file does not execute. Please Help!!!!!!!!

08 Jun 2012 mary

hi, thanks for it,
i need to calculate jacobian matrix 1 time in distribution system but i dont know how do it, can u help me?

18 May 2012 vikram singh

thanks

16 Apr 2012 Houssemus

@leonardo: yes it does!!

19 Feb 2012 sumit verma

v.helpful program ......thanx pravi...

10 Feb 2012 jayendra javi  
19 Jan 2012 leonardo

I wonder if this script calculates the number of iterations performed, and if they do not calculate whether there is any way to calculate. Thanks in advance.

19 Jan 2012 leonardo

first time thank for your attention.

19 Jan 2012 leonardo

hi, i'm have some problem with this script, you could help me?
Error in ==> Untitled at 4
Y = ybusppg(nbus); % Calling
ybusppg.m to get Y-Bus Matrix..

01 Nov 2011 meysam shamshiri

Thanks

23 Oct 2011 reygen oraiz

hi..i have the same mistake with omar and as you said, make this "Sij = sparse(Sij);" be commented at line 60..(its line 43) but an error occur again, it says:

??? Input argument "nb" is undefined.

Error in ==> loadflow at 5
Y = ybusppg(nb);

---------please help------------
i really need to have this right! thanks

13 Aug 2011 Fabián

Why do you add .01 to voltage magnitude when a pv bus is out of mvar limits??

09 Jul 2011 balaji

When i run for 69 bus i get the error ""??? Attempted to access V(66); index out of bounds because numel(V)=65."
can anyone help

06 Jul 2011 Mehdi Davoudi

it works properly but why the results are far from the real ones even with too many iterations?

15 Jun 2011 rasoul bayani

thanks .very much

11 May 2011 Ali  
23 Feb 2011 gmrit

PLEASE SEND NR METHOD LOADFLOW STUDY WITH UPFC. I LIKE THIS PROGRMME SOMUCH.IT IS FANTASTICK.PLEASE SEND UPFC PROGRAM TO ramesh.eee44@gmail.com

08 Oct 2010 PRAVI

@Omar: I guess, this is error is bcs of the different versions of matlab. Keep the line 60 (loadflow.m) commented.

%Sij = sparse(Sij);

And try again.

17 May 2010 Omar

i have one mistake in the display Line Flow and losses:
error in loadflow at 95(Function is not defined for sparse inputs.) and nrlfppg at 160 , i need help

23 Mar 2010 senthil

please provide me the FAST DECOUPLED load flow method

23 Mar 2010 senthil

thank you to provide this

25 May 2009 Erdal Bizkevelci  
11 Dec 2008 Raju C V

Simple steps,Good program for novice programmers. Thanks

22 Nov 2008 Husam Aldahiyat  
19 Oct 2008 prasert limsakun

very good for program loadflow

27 Sep 2008 S F

best

24 Sep 2008 Randhir Soni

if u ve made this prog with including Tap changing transformer then it will be better for someone to have complete practical idea about load flow problem

12 Sep 2008 sougata mandal

we need the programme such a simple steps,which is better 2 understand for the new learners. thank u........

04 Sep 2008 Jayanti Bhattacharjee

needs excellent speed

18 Aug 2008 saloman danaraj

This program does not include the effect of tap changing transformers on powerflow which very much essential for modelling the problem.
The IEEE 30 bus system has 3 transformers .The author simply ignores that.

14 Aug 2008 B. Roossien

- C-type of programming instead of Matlab-style (vectorised) programming.

- Script files instead of functions

- Very little documentation is provided making this contribution only useful for the author.

Author please remove this submission as it has no value to anyone but you. Why submit a file that no one else can understand?

Updates
21 Nov 2008

Updated for Tap changing transformers and Q-limit violations

23 Nov 2008

Updated busdata

23 Nov 2008

Updated busdata

03 Feb 2009

corrected the error with loadflow.m

08 May 2009

Included files for calculating power flows

Contact us