Professional Documents
Culture Documents
Catatan
Catatan
clc;
basemva = 100;
%
Bus
%
No
busdata=[1
2
3
4
5
6
7
8
9
%
%
Bus
%
nl
linedata=[1
1
2
2
3
4
5
6
6
7
7
cost = [240
240
240
mwlimits =[50
50
50
accuracy = 0.0001;
Bus
code
1
2
0
0
0
0
2
0
0
bus
nr
2
8
9
3
4
5
6
7
9
8
9
Voltage
Mag.
1.03
1.04
1.00
1.00
1.00
1.00
1.01
1.00
1.00
R
p.u.
0.018
0.014
0.006
0.013
0.010
0.018
0.020
0.015
0.002
0.032
0.022
6.7
6.1
6.5
maxiter = 10;
Angle
---Load---- -------Generator----- Injected
Degree MW
Mvar MW Mvar Qmin Qmax
Mvar
0.0
0
0
145
0
0
0
0
0.0
20
10
80
0
0 250
0
0.0
25
15
0
0
0
0
1
0.0
10
5
0
0
0
0
3
0.0
40
20
0
0
0
0
0
0.0
60
40
0
0
0
0
0
0.0
10
5
120
0
0 100
0
0.0
80
60
0
0
0
0
0
0.0
100
80
0
0
0
0
0];
Line code
X
1/2 B
= 1 for lines
p.u.
p.u.
> 1 or < 1 tr. tap at bus nl
0.054
0.0045
1
0.036
0.0030
1
0.030
0.0028
1
0.036
0.0030
1
0.050
0.0000
1
0.056
0.0000
1
0.060
0.0000
1
0.045
0.0038
1
0.066
0.0000
1
0.076
0.0000
1
0.065
0.0000
1];
0.009
0.005
0.008];
200
200
100];
lfybus
% form the bus admittance matrix
lfnewton
% Power flow solution by Newton-Raphson method
busout
% Prints the power flow solution on the screen
lineflow
bloss
% Obtains the loss formula coefficients
gencost
% Computes the total generation cost $/h
dispatch
% Obtains optimum dispatch of generation
% dpslack is the difference (absolute value) between
% the scheduled slack generation determined from the
1
1.a.
Dengan menggunakan schedule / data diatas (P pada bus 1,2 dan 7) tentukan total biaya
operasi pembangkit.
Output Matlab