You are on page 1of 4

Tugas 7 Opdal

Ihza Muhammad Wahid Hasan

23220024

1. Flowchart dengan Batasan tambahan kontrak take or pay

2. Dari diagram alir yang telah dibuat lalu digunakan untuk mencari unit commitment dan titik operasi
optimum system ini dengan memasukan constraint yang telah di tentukan.

Berikut ini adalah code AMPL dan hasil simulasi

Code Tugas7Opdal.mod
set nP;
set nTime;
set nTimePL within {nTime};

param PL {nTimePL} >= 0;


var P {nP, nTime} ;
var C {nP, nTime} ;
var Ct;
var Cr;

minimize cost: sum {i in nP, j in nTime} (C[i,j]);


subject to limit_PLTG { j in nTime}: 50<=P[1,j]<= 400;
subject to limit_P2 { j in nTime}: 30<=P[2,j]<= 200;
subject to limit_P3 { j in nTime}: 50<=P[3,j]<= 300;
subject to takeorpay: sum {j in nTime} (C[1,j])>=80000;
subject to cost_PLTG {j in nTime} : C[1,j] = 2/1.1 * (300 + 6*P[1,j] +
0.0025*(P[1,j])^2);
subject to cost_P2 {j in nTime}: C[2,j] = 120 + 5.1*P[2,j] + 0.0012*(P[2,j])^2;
subject to cost_P3 {j in nTime}: C[3,j] = 100 + 5.3*P[3,j] + 0.0015*(P[3,j])^2;
subject to cost_real : Cr = sum {j in nTime} (C[1,j]+C[2,j]+C[3,j]);
subject to cost_takepay : Ct = sum {j in nTime} (C[1,j]);
subject to Load {j in nTime}: P[1, j] + P[2,j] + P[3,j]= PL[j];

Code Tugas7Opdal.dat
set nP = 1 2 3;
set nTime = 1 2 3 4 5 6;

param: nTimePL : PL :=
1 400
2 650
3 800
4 500
5 200
6 300
;

Optimum Operating Point


Unit Commitment 1 #P1, P2, P3 ON

Perio P1 P2 P3 C1 C2 C3
Time
d
MW MW MW $ $ $
208.11 141.88
1 0h - 4h 50
8 2 3,012.71 867.76 368.75
293.36 156.63
2 4h - 8h 200
8 2 4,137.04 1,188.00 966.95
358.93 241.06
3 8h - 12h 200
1 9 5,046.66 1,188.00 1,464.00
12h- 234.58 80.925
4 184.49
16h 5 3 3,354.70 1,101.74 538.73
16h -
5 120 30 50
20h 1,920.00 274.08 368.75
20h - 169.80 80.198
6 50
24h 2 1 2,528.90 536.73 368.75
628.62
Total 1384.8 836.57
6 20,000.01 5,156.30 4,075.93
Optimum Operating Point
Unit Commitment 2 #P1 ON, P2 ON, P3 OFF

P1 P2 P3 C1 C2 C3
Period Time
M M
MW $ $ $
W W
1 0h - 4h 370 30 8,010.00 274.08 -

2 4h - 8h 0 0 0 - - -
3 8h - 12h 0 0 0 - - -
4 12h- 16h 400 100 0 5,636.36 642.00 -
5 16h - 20h 170 30 0 2,531.36 274.08 -
6 20h - 24h 270 30 0 3,822.27 274.08 -
121
Total 190 0 19,999.99 1,464.24 -
0

Optimum Operating Point


Unit Commitment 3 #P1 ON, P2 OFF, P3 ON

P1 P2 P3 C1 C2 C3
Period Time
M
MW MW $ $ $
W
1 0h - 4h 286.056 0 113.944 4,038.01
- 723.38
2 4h - 8h 396.407 0 253.593 5,584.16
- 1,540.51
3 8h - 12h 0 0 0 0 0 0

4 12h- 16h 330.196 0 169.804 4,643.19


- 1,043.21
16h -
5 150 0 50 2,284.09
20h - 368.75
20h -
6 241.916 0 58.0841 3,450.55
24h - 412.91
1404.57 645.425
Total
5 1 20,000.00 - 4,088.75

Optimum Operating Point


Unit Commitment 4 #P1 ON, P2 OFF, P3 OFF

P1 P2 P3 C1 C2 C3
Period Time
M M M $ $ $
W W W
1 0h - 4h 400 0 0 5,636.36 - -

2 4h - 8h 0 0 0 0 0 0
3 8h - 12h 0 0 0 0 0 0
4 12h- 16h 0 0 0 0 0 0
5 16h - 20h 200 0 0 2,909.09 - -
6 20h - 24h 300 0 0 4,227.27 - -
Total 900 0 0 12,772.72 - -

You might also like