Here I have implemented an optimal power flow with an aim of minimizing active power loss in a power system using genetic algorithm in MATLAB.
Required dependencies: MATPOWER
To clone the matpower repository:
git clone git@github.com:MATPOWER/matpower.git