Download as pdf or txt
Download as pdf or txt
You are on page 1of 4

Program:

% Economic Load Dispatch(Without Losses)


clc
clear all
a=[0.2 0.25];
b=[40 30];
n=2;
lmd=45; % Lamda = Incremental Fuel Cost(Rs/MWhr)
lmdp=lmd;
tol=1;
dlmd=0.25;
pgmx=[125 125];
pgmi=[20 20];
pd=250;
iter=0;
pg=ones(n,1);
while abs(sum(pg)-pd)>tol
for i=1:n
pg(i)=(lmd-b(i))/a(i);
if pg(i)>pgmx(i)
pg(i)=pgmx(i);
end
if pg(i)<pgmi(i)
pg(i)=pgmi(i);
end
if sum(pg)-pd<0
lmdp=lmd;
lmd=lmd+dlmd;
end
if sum(pg)-pd>0
lmdp=lmd;
lmd=lmd-dlmd;
end
iter=iter+1;
end
end
fprintf('Economic Load Dispatch Without Losses\n\n')
fprintf('Iteration=\n')
disp(iter)
fprintf('Distribution Of Load Shared by 2 Units =>\n\n[')
disp(pg)
fprintf('\b\b] MW\n\n')
fprintf('\n\nTotal Load =>')
disp(sum(pg))
fprintf('\b\b MW\n\n')
fprintf('Final Value Of Incremental Fuel Cost => ')
disp(lmd)
fprintf('\b\b Rs/MWhr\n\n')
fprintf('\n\n----------------------------------------\n')

% Economic Load Dispatch With Transmission Losses

lmdl =70;
lmdlp=lmdl;
tol=1;
dlmdl=0.25;
Pgmx=[150 150];
Pgmn=[20 20];
Pd=250;
iter=0;
pg=ones(n,1);
pl=0; %Losses
bl=[0.001 0;0 0]; %Loss Coefficients B11,B12,B21,B22
while abs(sum(pg)-Pd-pl)>tol
for i=1:n
sgm=bl(i,:)*pg-bl(i,i)*pg(i);
pg(i)=(1-(b(i)/lmdl)-2*sgm)/((a(i)/lmdl)+2*bl(i,i));
if pg(i)>Pgmx(i)
pg(i)=Pgmx(i);
end
if pg(i)<Pgmn(i)
pg(i)=Pgmn(i);
end
end
pl=pg'*bl*pg;
if (sum(pg)-Pd-pl)<0
lmdlp=lmdl;
lmdl=lmdl+dlmdl;
end
if (sum(pg)-Pd-pl)>0
lmdlp=lmdl;
lmdl=lmdl-dlmdl;
end
iter=iter+1;
end
fprintf('\n\n\nEconomic Load Dispatch With Transmission
Losses')
fprintf('\n\nIteration=\n')
disp(iter)
fprintf('Distribution Of Load Shared by 2 Units =>\n\n[')
disp(pg)
fprintf('\b\b] MW\n\n')
fprintf('\n\nTotal Losses =>')
disp(pl)
fprintf('\b\b MW\n\n')
fprintf('\n\nTotal Load =>')
disp(sum(pg)-pl)
fprintf('\b\b MW\n\n')
fprintf('Final Value Of Incremental Fuel Cost => ')
disp(lmdl)
fprintf('\b\b Rs/MWhr\n\n')

Output:
Economic Load Dispatch Without Losses
Iteration=
82
Distribution Of Load Shared by 2 Units =>
[ 125
125] MW

Total Load => 250 MW

Final Value Of Incremental Fuel Cost => 65 Rs/MWhr


---------------------------------------
Economic Load Dispatch With Transmission Losses
Iteration=
42
Distribution Of Load Shared by 2 Units =>
[ 111.6505
150.0000] MW

Total Losses => 12.4658 MW

Total Load => 249.1847 MW

Final Value Of Incremental Fuel Cost => 80.5000 Rs/MWhr

You might also like