No License

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video

Highlights from

2.5 | 22 ratings Rate this file 70 Downloads (last 30 days) File Size: 28.8 KB File ID: #3729 Version: 1.0
image thumbnail



Ala' Tuffaha (view profile)


16 Jul 2003 (Updated )

Power flow calculations.

| Watch this File

File Information

This program describes how to program the POWER FLOW CALCULATIONS using the MATLAB. It's really so useful and simple.

MATLAB release MATLAB 5.3.1 (R11.1)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (39)
27 Jan 2017 Siddique Tomal

13 Oct 2016 Amar Kaswan

can you please provide a sample input file

25 Jul 2016 jerom gonzales

hello, how i can i use this software? i need it for my assignment. . thanks for the help

Comment only
20 Apr 2016 Mahbubur Rahman

20 Apr 2016 Mahbubur Rahman

Is there any example input file?

Comment only
23 Nov 2015 heba elsayed

hello, Are you have the simulink model for ieee 4 bus and ieee 34 bus?

Comment only
17 Nov 2015 Mohamed Ali

Dear sir, Are you have the model design of optimal capacitor location using Intelligent technique for 34 bus or 123 bus systems!
help as you can!

Comment only
07 Jul 2015 Naem

Naem (view profile)

I read this program line by line and I didn't see contradiction in the program.
but I tested my desire network as case study for calculating power loss and this program response wasn't there anybody who can help me how can account power loss?

10 May 2015 alireza

Please, attach an example system file

Comment only
12 Dec 2014 Jan

Jan (view profile)

12 Dec 2014 Jan

Jan (view profile)

Here is an example file, note that you have to input resistances in p.u. values!

SYSTEM Radial 1 0.04
BUS Bus1 SL 1.0 -1 -1 0 0 0
BUS Bus2 PQ 1.0 0.0 0.0 0.145 0.017 0
BUS Bus3 PQ 1.0 0.0 0.0 0.283 0.042 0
BUS Bus4 PQ 1.0 0.0 0.0 0.120 0.025 0
BUS Bus5 PQ 1.0 0.0 0.0 0.174 0.040 0
LINE Bus1 Bus2 0.0984e-2 0.0666e-2 0 77.3e-4 3.57
LINE Bus2 Bus3 0.1312e-2 0.0888e-2 0 103e-4 3.57
LINE Bus3 Bus4 0.1804e-2 0.1221e-2 0 141.7e-4 3.57
LINE Bus4 Bus5 0.082e-2 0.0555e-2 0 64.4e-4 3.57

Comment only
28 Nov 2014 husam

husam (view profile)

01 Sep 2014 mourad

mourad (view profile)

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

09 Jun 2009 Erdal Bizkevelci

14 Jun 2008 tamilan santhanam

It is good but another simple powerflow program in rectangular coordinates with test system in ieee available at this link

09 May 2008 ngai Tran

29 Mar 2008 Eng. Jamal Hammad

Gr8!! Many thanks Eng. Ala' Tuffaha for this excellent application file. We used it to have nine bus system.

26 Mar 2008 hung pham cuong


01 Mar 2008 BEKRI mohammed

hello Iam an algerian student at electrical enginnering please I search the codes of line , bus and the others ,send them me at the e- mail

31 Dec 2007 Mira Rudolf

The best for lerning MatLab is reading the source files (in my opinion). I never seen the complex programming handbook.

Comment only
20 Dec 2007 yuda prawira

14 Dec 2007 hamidreza mirtaheri

i need ur help for study in matlab now,tomorrow is too late!

Comment only
04 Dec 2007 vu ngoc

04 Sep 2007 vahid marvasty

It's possible to solve a HARMONIC power flow with THD & bus Voltage constraints on a radial network? If yes, can I have a file for example? thanks

Comment only
27 Jun 2007 behzad farhangirad


09 May 2007 rioken riman


Comment only
07 Mar 2007 lavanya nukala

06 Dec 2006 Rui Parente

Hello. We are a electrical engineer students. So we are interested to developing a Power Flow system with matlab file. After search in the net, we found your program, and we decided to studied it. But now, we have a problem: how to create a file to describe our problem? After analyse your program, we define the following parameters:
SYSTEM teste 100 0.05
BUS 1 SL 1 Pgen1 Qgen1 0 0 0
BUS 2 PV 220000 90 Qgen2 30 15 Qcap2
BUS 3 PQ V3 0 O 85 45 Qcap3
LINE 1 2 0.02 0.06 0 0.0006 0.27
LINE 1 3 0.08 0.024 0 0.0024 0.27
LINE 2 3 0.06 0.18 0 0.0018 0.27

But an error occurs,

Can you help us?

27 Nov 2006 mohammed siddig

can you help us in 3-phase load/power flow

Comment only
27 Nov 2006 mohammed siddig

this is good support
do more
thank you

Comment only
02 Feb 2006 Chintalpudi Balu

It can be more generalized so that compatable for more formats of input files.

01 Dec 2005 Muhdzaki K.

sample input file anyone?

Comment only
14 Nov 2005 James Watson

I would like a sample input file

Comment only
04 Jul 2004 yahiaoui merzoug

11 Apr 2004 maher al-dweik

it is possible to solve nine bus power system to perform dynamic stability

01 Dec 2003 Vito Calderaro

It's possible to solve a power flow on a radial network?
If yes, can I have a file for example?


Comment only
26 Nov 2003 Elvis Presley

20 Jul 2003 Jose Salazar

There is an easy one to implement out to Pai's book. Its the WSCC9 nine bus system.

Comment only
20 Jul 2003 Tam Karim

Please, attach an example system file

Comment only

Contact us