DEDAN KIMATHI UNIVERSITY OF TECHNOLOGY
DEPARTMENT OF ELECTRICAL AND COMMUNICATION
ENGINEERING
FIFTH YEAR SECOND SEMESTER BACHELOR OF SCIENCE IN
ELECTRICAL AND ELECTRONICS ENGINEEERING
EEE5213: POWER SYSTEMS ANALYSIS II
SIMULATION TASK/LAB
DATE:28-Nov-24
ECONOMIC DISPATCH USING LAMBDA ITERATION METHOD
AIM:
To understand the basics of the Economic Dispatch by optimally adjusting the generation
schedules of thermal generating units so as to meet the system demand which are
required for unit commitment and economic operation of power systems.
SOFTWARE REOUIRED:
MATLAB Software
ALGORITHM:
Step 1: Choose appropriate value of Lagrangian multiplier λ
Step 2: Start iteration iter=0
Step 3: Iteration iter-iter +1
Step 4: Solve for power generated by " i ”th " unit using equation
k k k
Pi =( λ −b i)/2(a i+ λ B ii )
Step 5: Check if any Pi is beyond or below the inequality constant
If Pi < Pi , min , fix Pi=Pi , min
If Pi > Pi , max , fix Pi=Pi , max
Step 6: Calculate the power loss using the equation P L=∑ Bi i P i 2
Step 7: Calculate power mismatch using the formula, Δ P(k)=P D + P(k)−∑ P(k)
Step 8: If Δ P k > 0, then increment λ , λ new =λ+ 0.001 and go to step 3
else go to step 9
Step 9:If Δ P(k) <0 , then decrement λ , λ new = λ−0.001 and go to step 3, else go to step 10
Step 10: If ΔP is less than tolerance value, print the values of generated power and losses
Step 11: Stop
Program:
clc;
clear all;
% a b c fc max min
data ¿ 0.00142 7.20 510 1.1 600 150
0.00194 7.85 310 1 400 1000.00482 7.97 78 1 200 ¿ ; ¿ng=length(da
ta(:,1));
a=¿ data(:,1);
b=data(:,2);
c=data(:,3);
fc=data(:,4);
pmax=data(:,5);
pmin=data(:,6);
% loss=[0.00003 0.00009 0.00012];
loss ¿ [ 0 0 0 ] ;
C=fc .∗c ; B=fc .∗ b ; A=fc .∗a ; la=1 ; pd=850 ; acc=0.2;
diff=1;
while acc ¿ ¿ abs(diff));
for i=1 :ng;
p(i)=(la−B(i))/ ( 2¿ (la∗loss (i)+ A(i)) ) ;
if p(i)< pmin (i);
p(i)= pmin(i)
end;
if p(i)> pmax (i);
p(i)= pmax(i);
end;
end;
LS=sum(((p.*p).*loss));
diff=(pd+LS-sum(p));
if diff>0
la=la+ 0.001
else la=la-0.001;
end;
end;
PowerShared=p
Lambda=la
Loss ¿ LS
Output:
a). When loss ¿ [ 0.00003 0.00009 0.00012 ]
Power Shared ¿ 435.1026299 .9085130 .6311
Lambda ¿ 9.5290
Loss ¿ 15.8222
b). When loss ¿ 0
Power Shared ¿ 393.0858334 .5361122.1992
Lambda ¿ 9.1490
Loss ¿ 0
Results:
Using Mat Lab program Optimal scheduling of generators is done for the given three
generator system by Lamda iteration method with and without loss and the calculated
values of this system are verified with the output result.