Professional Documents
Culture Documents
Methods of Solution
By:
HANDOKO RUSIANA ISKANDAR
[Student Number : 23214004]
Lecture:
Prof. Dr. GIBSON HILMAN SIANIPAR
Power Engineering
School of Electrical Engineering and Informatics
Bandung Institute of Technology
2014
20 MW P1 60 MW
60 MW P1 100 MW
20 MW P2 40 MW
40 MW P2 100 MW
20 MW P3 50 MW
50 MW P3 100 MW
Generation limits are 20 MW P3 100 MW. Fuel Costs = 1.5 R/M Btu fora all units.
Solution
a) Plot the cost function for each unit
For Unit 1
80 + 8P1 + 0.024 P12
H1 (P1) =
20 MW P1 60 MW
60 MW P1 100 MW
Where:
Source Code for plot the cost function unit 1 using matlab, is:
%Economic Dispatch Problem unit 1
syms
p1a=20:60;
h1a=80+8*p1a+0.024*p1a.^2;
cf1a=1.5*h1a;
p1b=60:100;
h1b=196.4+3*p1b+0.075*p1b.^2;
cf1b=1.5*h1b;
plot(p1a,cf1a,'b',p1b,cf1b,'r')
grid on;
xlabel('xp (Power Level)');
ylabel('yp (Cost Function)');
title('The cost function for unit 1')
20 MW P2 40 MW
40 MW P2 100 MW
Where:
3.
4.
5.
Source Code for plot the cost function unit 2 using matlab, is:
%Economic Dispatch Problem unit 2
syms
p2a=20:40;
h2a=120+6*p2a+0.04*p2a.^2;
cf2a=1.5*h2a;
p2b=40:100;
h2b=157.335+3.3333*p2b+0.083333*p2b.^2;
cf2b=1.5*h2b;
plot(p2a,cf2a,'g',p2b,cf2b,'y')
grid on;
xlabel('xp (Power Level)');
ylabel('yp (Cost Function)');
title('The cost function for unit 2')
20 MW P3 50 MW
50 MW P3 100 MW
Source Code for plot the cost function unit 3 using matlab, is:
%Economic Dispatch Problem unit 3
syms
p3a=20:50;
h3a=100+4.6666*p3a+0.13333*p3a.^2;
cf3a=1.5*h3a;
p3b=50:100;
h3b=316.66+2*p3b+0.1*p3b.^2;
cf3b=1.5*h3b;
plot(p3a,cf3a,'r',p3b,cf3b,'y')
grid on;
xlabel('xp (Power Level)');
ylabel('yp (Cost Function)');
title('The cost function for unit 3')
20MWP150MW
50MWP1100MW
COST (R/Hour)
20
F1
374,4
F2
384,00
F3
369,99
2
3
40
60
657,6
969,6
635,99
985,99
749,98
1194,99
4
5
80
100
1374,6
1869,9
1435,96
1402,96
1674,99
2274,99
Figure 5. Plot for cost function for Unit 1, Unit 2, and Unit 3.
dF1 (P1)
P1
20 MW P1 60 MW
60 MW P1 100 MW
Source Code for plot the incremental cost function unit 1 using matlab, is:
%Economic Dispatch Problem
%unit 1
p1a=20:60;
h1a=80+8*p1a+0.024*p1a.^2;
f1a=1.5*h1a;
p1b=60:100;
h1b=196.4+3*p1b+0.075*p1b.^2;
f1b=1.5*h1b;
df1a=diff(f1a);
p1a=21:60;
df1b=diff(f1b);
p1b=61:100;
plot(p1a,df1a,p1b,df1b,)
grid on;
xlabel('xp (Power Level, MW)');
ylabel('yp (Incremental Cost)');
title('The Incremental Cost Function for Unit 1')
Generation limits are 20 MW P3 100 MW. Fuel Costs = 1.5 R/M Btu fora all units.
Incremental Cost function is:
dF2 (P2)
P2
20 MW P2 40 MW
40 MW P2 100 MW
Source Code for plot the incremental cost function unit 2 using matlab, is:
%Economic Dispatch Problem
%unit 2
p2a=20:40;
h2a=120+6*p2a+0.04*p2a.^2;
cf2a=1.5*h2a;
p2b=40:100;
h2b=157.335+3.3333*p2b+0.083333*p2b.^2;
cf2b=1.5*h2b;
df2a=diff(cf2a);
p2a=21:40;
df2b=diff(cf2b);
p2b=41:100;
plot(p2a,df2a,p2b,df2b)
grid on;
xlabel('xp (Power Level, MW)');
ylabel('yp (Incremental Cost)');
title('The Incremental Cost Function for Unit 2')
Generation limits are 20 MW P3 100 MW. Fuel Costs = 1.5 R/M Btu fora all units.
Incremental Cost function is:
dF3 (P3)
P3
20 MW P3 50 MW
50 MW P3 100 MW
Source Code for plot the incremental cost function unit 3 using matlab, is:
%Economic Dispatch Problem
%unit 3
syms
p3a=20:50;
h3a=100+4.6666*p3a+0.13333*p3a.^2;
cf3a=1.5*h3a;
p3b=50:100;
h3b=316.66+2*p3b+0.1*p3b.^2;
cf3b=1.5*h3b;
df3a=diff(cf3a);
p3a=21:50;
df3b=diff(cf3b);
p3b=51:100;
plot(p3a,df3a,p3b,df3b)
grid on;
xlabel('xp (Power Level, MW)');
ylabel('yp (Incremental Cost)');
title('The Incremental Cost Function for Unit 3')
F1
1
2
20
40
13.44
14.88
COST (R/Hour)
F2
11.4
14.999955
F3
14.9997
22.9995
3
4
60
80
18
22.5
19.99935
24.99915
21
27
100
27
29.99975
33
Figure 7. Plot for cost function for Unit 1, Unit 2, and Unit 3.
c) Find the most economical dispatch for the following total demands assuming all units
are on-line:
PD
PD
PD
PD
PD
=
=
=
=
=
100 MW
140 MW
180 MW
220 MW
260 MW
Where :
PD = P1 + P2 + P3
Solve using dynamic programming and discrete load steps of 20 MW, starting at 20
MW through 100 MW for each unit.
Scheduling units 1 and 2, we find the minimum cost for the function
f2 = F1 (D P2) + F2 (P2)
The total deman is PD = 100 MW; 140 MW; 180 MW; 220 MW; 260 MW, so we need to
interpolate between the closest values that are available from the data. 260 MW
F D
(R/h)
374,40
657,60
969,60
1374,60
1869,60
20
40
60
80
100
384,00
635,99
985,98
1435,97
1985,95
758,40
1041,60
1353,60
1758,60
2253,60
1010,39
1293,59
1605,59
2010,59
2505,59
1360,38
1643,58
1955,58
2360,58
2855,58
1810,37
2093,57
2405,57
2810,57
3305,57
40
60
758,40
1010,39
80
100
1293,59
1605,59
40
40
120
140
1955,58
2360,58
60
60
160
180
2810,57
3305,57
80
80
200
220
3855,55
100
20
240
260
20
40
Next we minimize
F3= F2 (D P3) + F3 (P3)
2360,35
2643,55
2955,55
3360,55
3855,55
f
(R/h)
758,40
1010,39
1293,59
1605,59
1955,58
2360,58
2810,57
3305,57
3855,55
P*
(MW)
20
40
40
40
60
60
80
80
100
For 20 P 100 MW and PD = 100 MW; 140 MW; 180 MW; 220 MW; 260 MW.
Scheduling the tird unit for the nine different demand levels only requires nine rows of
the next table.
Table 4. Minimal Function Cost f3
P MW
F P
(R/h)
D
(MW)
f
(R/h)
20
40
758,40
60
1010,39
80
1293,59
100
1605,59
120
1955,58
140
2360,58
160
2810,57
180
3305,57
200
3855,55
220
240
260
20
40
60
80
100
370,00
749,99
1194,99
1674,99
2274,99
1128,40
1380,39
1508,39
1663,59
1760,38
1953,39
1975,59
2043,58
2205,38
2325,58
2355,58
2730,58
f
(R/h)
P*
(MW)
1128,40
20
1380,39
20
20
2433,39
1663,59
1975,59
20
2488,58
2685,38
3033,39
2325,58
20
2705,57
2800,58
2968,58
3285,38
2705,57
40
3180,56
3110,57
3150,57
3280,58
3568,58
3110,57
40
3675,56
3560,55
3555,57
3630,57
3880,58
3555,57
60
4225,54
4055,55
4005,56
4035,57
4230,57
4005,56
60
4605,54
4500,56
4485,56
4635,57
4485,56
80
5050,54
4980,56
5085,56
4980,56
80
D (MW)
Cost (R/h)
P*
P*
P*
100
1663,59
20
40
40
140
2325,58
20
60
60
180
3110,57
40
60
80
220
4005,56
60
80
80
260
4980,56
80
80
100
So, base on the table 5. We have the results for a demand of 100 MW on minimum cost
in operating unit, are:
P1 = 40, P2 = 40, and unit P3 = 20.
|%9.4f
|%10.4f
|\n',
| R/MWh) | (MW)
| P2
| P3 |
| (MW) | (MW) |
|===============================================================|
|===============================================================|
|
|===============================================================|
|===============================================================|
Lambda
R/MWh
9.0000
9.6854
9.9322
1109.0539 R/h
P1
P2
P3
20.8333
35.1120
40.2536
37.5000
46.0672
40.0000
16.2507
18.8209
19.7464