DC Power Flow Analysis

DC Power Flow Analysis in MATLAB
2.4K Downloads
Updated 6 Feb 2017

View License

The only input by the user here is susceptance matrix B=[NxN] and vector of injected powers P (length(P)=N), where N is the number of nodes in the network. The calculation is done both in per-unit system and in absolute system, the user is left to decide in which system will be the calculation. In the pdf file, there is a detail explanation of linear DC model, also there is a Readme file with the full explanation of using this program. This code can be used for up to 9999 nodes of a various system models, the main thing is to input the susceptance B and vector of injected powers P correctly. Latter on, there is a possibility for further calculations, when there are contingencies in the system (generator is off, line is off...) and even full N-1 or N-1-1 analysis.

Cite As

Dejan Bundalo (2025). DC Power Flow Analysis (https://se.mathworks.com/matlabcentral/fileexchange/60579-dc-power-flow-analysis), MATLAB Central File Exchange. Retrieved .

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

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes
1.5.0.0

Updated description
Added possibility of inputting the B matrix and vector P from xlsx files. Updated code so that the program works correctly for up to 9999 nodes in the system.
Corrected n-1-1 case
Updated description

1.4.0.0

Included line by line inputing of the matrix B (faster) and added full N-1 and N-1-1 analysis. Also updated Readme file with the full explanation of using the program.
Optimised code.

1.3.0.0

Optimized code and updated description

1.2.0.0

Updated code so that the mistakes made by an user while inputing data are reduced to minimum.

1.1.0.0

Updated the contingency case part of the code
Updated to work both for per-unit and for absolute unit system

1.0.0.0

updated description