Genetic Algorithm Solution to Economic Dispatch
This software contain two examples gatest.m and gatest.1.By running the programs as they are in the default folder. The allocation minimum fuel cost and transmission losses can be determined.
% The Example system is taken from the book Power System Analysis by Prof Haadi Sadaat Example 7.8
% the data matrix should have 5 columns of fuel cost coefficients and plant limits.
% 1.a ($/MW^2) 2. b $/MW 3. c ($) 4.lower lomit(MW) 5.Upper limit(MW)
%no of rows denote the no of plants(n)
% x=[0 0]
global data B B0 B00 Pd
data=[0.008 7 200 10 85
0.009 6.3 180 10 80
0.007 6.8 140 10 70];
% Loss coefficients it should be squarematrix of size nXn where n is the no
% of plants
B=.01*[.0218 .0093 .0028;.0093 .0228 .0017;.0028 .0017 .0179];
B0=[.0003 .0031 .0015];
B00=100*.00030523;
options = gaoptimset;
options = gaoptimset('PopulationSize', 50,'Generations', 500,'TimeLimit', 200,'StallTimeLimit', 100,'PlotFcns', {@gaplotbestf,@gaplotbestindiv})
[x ff]=ga(@eldga1,2,options)
[ F P1 Pl]=eldga1(x)
F =
1.6000e+003
P1 =
34.0089 64.0272 54.6342
Pl =
2.3491
ALL THE BEST
Cite As
RMS Danaraj (2024). Genetic Algorithm Solution to Economic Dispatch (https://www.mathworks.com/matlabcentral/fileexchange/20825-genetic-algorithm-solution-to-economic-dispatch), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
ELDGA/ELDGA/
Version | Published | Release Notes | |
---|---|---|---|
1.0.0.0 |