File Exchange

image thumbnail

Optimum Power Flow

version 1.0.0 (113 KB) by Orlando Ramirez Barron
This code focuses on the minimization of active power losses.


Updated 16 Apr 2019

View License

This code focuses on the minimization of active power losses.
First, we acquire the data from the desired power system, then we define the parameters of the optimization algorithm such as number of iterations, size of the population and the minimum and maximum value of the desition variables. The desition variables are: The values of TAPs, bus voltage, and shunts.
After defining the optimization algorithm parameters, the classical power flow program is executed, and the value of the optimization function is computed.
Now the iterative process began after the algorithm has reached the default number of iterations it shows a comparison between the initial values of the desition variables and the new ones from the optimization algorithm, also, it shows the process of evolution of the optimum value as well as the active power losses.
In the folder, there is an image of how the Jaya algorithm works.

Note: The code is designed to work with any power system, just added to the folder and call it in the code. Remember that the optimization process may take from seconds to minutes to converge depending on the number of desition variables and the number of iterations.
To know more about the Jaya algorithm:

If you are facing any trouble you can contact me by email.
my email is:

Comments and Ratings (3)

sahar jam

Can the algorithm used in this code be changed to a genetic algorithm?

TEBBAKH Noureddine

Many thanks for this work can we use it for optimal allocation of DG in distribution networks
if yes please send the code at my email :

Saurav Raj

Thank you sir

MATLAB Release Compatibility
Created with R2019a
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!