0% found this document useful (0 votes)
35 views

Assignment Program To Solve Economic Load Dispatch Problem On Matlab

This document contains code to solve the Economic Load Dispatch Problem in Matlab. It defines minimum and maximum power limits for 3 generating units, sets initial power values and a lambda value. It then calculates incremental power losses and uses coordination equations to calculate new power values for each unit based on lambda and loss derivatives. The code outputs the new power values, total power lost, and initial lambda value. It also contains a function to constrain the power values within defined minimum and maximum limits.

Uploaded by

Syed
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
35 views

Assignment Program To Solve Economic Load Dispatch Problem On Matlab

This document contains code to solve the Economic Load Dispatch Problem in Matlab. It defines minimum and maximum power limits for 3 generating units, sets initial power values and a lambda value. It then calculates incremental power losses and uses coordination equations to calculate new power values for each unit based on lambda and loss derivatives. The code outputs the new power values, total power lost, and initial lambda value. It also contains a function to constrain the power values within defined minimum and maximum limits.

Uploaded by

Syed
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

Assignment

Program to solve Economic Load Dispatch Problem on Matlab


clear all
clc
global P1 P2 P3 Lambda PL
global P1min P2min P3min P1max P2max P3max
% define Pi_min and Pi_max
P1min = 150;
P2min = 100;
P3min = 50;
P1max = 600;
P2max = 400;
P3max = 200;
% set initial guess of powers and system lambda step 1
P1=400;
P2=300;
P3=150;
Lambda = 9.5252;
%incremntal power lossesstep 2
PL= 0.0003*P1^2 +0.00009*P2^2 +0.00012*P3^2;
%dPL/dP
IL1=2*(0.00003)*P1;
IL2=2*(0.00009)*P2;
IL3=2*(0.00012)*P3;
PL= 0.00003*P1^2 +0.00009*P2^2 +0.00012*P3^2;
%using cordination equation step 3
P4=(((Lambda*(1-IL1))-7.92))/0.003124;
P5=((Lambda*(1-IL2))-7.85)/0.00388;
P6=((Lambda*(1-IL3))-7.97)/0.00964;
P1+P2+P2-850-PL;

disp('Example 3H ')
disp('___________')
disp('P1 P2 P3 Lambda Power.Lost')
disp(['Power of Unit 1: ' num2str(P4)])
disp(['Power of Unit 2: ' num2str(P5)])
disp(['Power of Unit 3: ' num2str(P6)])
disp(['Total power lost: ' num2str(PL)])
disp(['Lambda of first iteration:' num2str(Lambda)])

Output

Example 3H
___________
P1 P2 P3 Lambda power.Lost
Power of Unit 1: 440.6515
Power of Unit 2: 299.1854
Power of Unit 3: 125.7565
Total power lost: 15.6
Lambda of first iteration:9.5252
Function File:
function F = funny(x)
global P1 P2 P3 Lambda
global P1min P2min P3min P1max P2max P3max
% define Pi_min and Pi_max
P1min = 150;
P2min = 100;
P3min = 50;
P1max = 600;
P2max = 400;
P3max = 200;
% Unknown variables
P1 = x(1);
P2 = x(2);
P3 = x(3);
Lambda = z(4);
if P3 < P3min
P3 = P3min;
else
if P3 > P3max
P3 = P3max;
end
end
if P2 < P2min
P2 = P2min;
else
if P2 > P2max
P2 = P2max;
end
end
if P1 < P1min
P1 = P1min;
else
if P1 > P1max
P1 = P1max;
end
end

You might also like