Professional Documents
Culture Documents
EXPERIMENT No. 5
EXPERIMENT No. 5
5
ECONOMIC DISPATCH OF THERMAL POWER SYSTEM WITH
TRANSMISSION LINE LOSSES
PURPOSE:
To learn
1. Formulation of economic dispatch problem with transmission losses.
2. To construct and implement an algorithm to solve dispatch problem with
transmission line losses using iterative approach.
SOFTWARE USED:
MATLAB
INTRODUCTION:
Economic Dispatch Problem (EDP)is the process of calculating the generation allocation
to the machines at minimum cost while satisfying the constraints. It is a generation allocation
problem. The economic dispatch problem mathematically may be defined as:
𝑁
Subjected to:
Equality Constraint: 𝑃𝐷 + 𝑃𝐿 − ∑𝑁
𝑖=1 𝑃𝑖 = 0
𝑃𝑖𝑚𝑖𝑛 − 𝑃𝑖 ≤ 0
Where 𝑖 = 1,2, … . . 𝑁. and 𝑃𝐿 is transmission line losses.
One common practice for including the effect of transmission line losses is to express the total
transmission line losses as a quadratic function of the generator power outputs. The simplest
quadratic form is:
𝑁 𝑁
𝑃𝐿 = ∑ ∑ 𝑃𝑖 𝐵𝑖𝑗 𝑃𝑗
𝑖=1 𝑗=1
A more general formula containing a linear term and a constant term, referred to Kron’s Loss
formula is:
𝑁 𝑁 𝑁
The coefficient 𝐵𝑖𝑗 are called loss coefficients or B-coefficients. B-coefficients are assumed
constant and reasonable accuracy is expected providing the actual operating conditions are close
to the base case where the B-constants are computed.
The Langrange function for this problem is:
𝐿 = 𝐹𝑇 + 𝜆𝜑
𝑁
𝐿 = 𝐹𝑇 + 𝜆 [𝑃𝐷 + 𝑃𝐿 − ∑ 𝑃𝑖 ]
𝑖=1
The necessary conditions for constrained local minima of L are the following:
𝜕𝐿
=0
𝜕𝑃𝑖
𝜕𝐿
=0
𝜕𝜆
Condition 1:
Condition 2:
Second condition results in:
𝑁
𝑃𝐷 + 𝑃𝐿 = ∑ 𝑃𝑖
𝑖=1
PROCEDURE:
The procedure to solve economic dispatch problem with transmission line losses for a given
system is given below:
Note:
The problem must be solved by hand and the obtained results must be verified
using MATLAB
1. Identify cost coefficients (ai, bi, ci), power demand (Pd) and its constraints from the
given problem.
2. Assume an initial value of lambda a little higher than bi coefficients of fuel cost
equations.
𝑁 𝑛
𝜕𝑃𝑖 𝑐𝑖 + 𝐵𝑖𝑖 𝑏𝑖
∑( ) = ∑
𝜕𝜆 2(𝑐𝑖 + 𝜆𝐵𝑖𝑖 )2
𝑖=1 𝑖=1
K 1 K K
9. Repeat above steps (3, 4, 5, 6, 7, 8) until a certain level of accuracy is achieved such as
(∆λ<0.0001).
10. Calculate the individual cost of each generator by substituting the value of final power in
the respective fuel cost equations.
11. Calculate total cost of generation nby addingnup the individual costs as:
FTotal Fi (ai bi Pi ci Pi 2 )
i 1 i 1
10 P2 80
10 P3 70
tic
clc
close all
clear all
% Main Code
Data=[200 7.0 0.008
180 6.3 0.009
140 6.8 0.007];
Power_min=[10 10 10];
Power_max=[85 80 70];
P_L=[0.000218 0.000228 0.000179];
P_D=150;
Missing_the_first_iteration=0;
% Assume Lamda of highest Beta
lamda=8;
for i=1:20
a=length(Data);
for n=1:a
q=lamda-Data(n,2);
e=2.*(Data(n,3)+lamda.*P_L(1,n));
P(n)=q/e;
end
%Clamping Code
Third_Colum=Data(:,3);
P_L_New=P_L;
if Missing_the_first_iteration > 0
for n=1:3
if P(n)>Power_max(1,n)
P(n)= Power_max(1,n);
Third_Colum(n,1)=0;
P_L_New(1,n)=0;
elseif P(n)<Power_min(1,n)
P(n)= Power_min(1,n);
Third_Colum(n,1)=0;
P_L_New(1,n)=0;
end
end
end
% Calculate the Transmission Losses Using
P1,P2 & P3
tic
clc
close all
clear all
% Main Code
Data=[200 7.0 0.008
180 6.3 0.009
140 6.8 0.007];
Power_min=[10 10 10];
Power_max=[85 80 70];
P_L=[0.000218 0.000228 0.000179];
P_D=150;
Missing_the_first_iteration=0;
% Assume Lamda of highest Beta
lamda=8;
for i=1:20
a=length(Data);
for n=1:a
q=lamda-Data(n,2);
e=2.*(Data(n,3)+lamda.*P_L(1,n));
P(n)=q/e;
end
%Clamping Code
Third_Colum=Data(:,3);
P_L_New=P_L;
if Missing_the_first_iteration > 0
for n=1:3
if P(n)>Power_max(1,n)
P(n)= Power_max(1,n);
Third_Colum(n,1)=0;
P_L_New(1,n)=0;
elseif P(n)<Power_min(1,n)
P(n)= Power_min(1,n);
Third_Colum(n,1)=0;
P_L_New(1,n)=0;
end
end
end
% Calculate the Transmission Losses Using P1,P2 & P3
for n=1:a
T_L(n)=P_L(1,n).*(P(n))^2;
end
Sum_T_L=sum(T_L);
%Calculate ?P by using following equation:
Change_P=P_D+Sum_T_L-sum(P);
%Next ?? can be calculated as:
for n=1:a
Denominator(n)=(Third_Colum(n,1)+(P_L_New(1,n)*Data(n,2)))/
(2*(Third_Colum(n,1)+(lamda*P_L_New(1,n)))^2);
if Denominator(n)== Inf
Denominator(n)=0;
else
end
end
Sum_Denominator= sum(Denominator)
Change_lamda=Change_P/Sum_Denominator;
%New value of ? is calculated as:
lamda=lamda+(Change_lamda);
Sum_Denominator= sum(Denominator)
Change_lamda=Change_P/Sum_Denominator;
%New value of ? is calculated as:
lamda=lamda+(Change_lamda);
toc
RESULTS:
After compiling the MATLAB Program, write down the obtainedq result in following table and
compare it with the manual calculations:
Table-5.1
Lambda(λ) P1 P2 P3 F1 F2 F3 Total
Cost($/hr)
($/MWhr) (MW) (MW) (MW) ($/hr) ($/hr) ($/hr)
CONCLUSION:
Lambda iteration method is an effective method to solve EDProblem. In this experiment
we have also included generation limits and transmission losses and we came to know that it
takes large number of iterations to solve the problem than the iterations required in case of
simple ED problem (i.e. in case of neglecting the limits & losses or only including the generation
limits).
TASK:
After going through the questions and answers related to the experiment, submit a separate report
which should include the analysis of the results of the experiment.