Sie sind auf Seite 1von 4

clear

basemva = 100; accuracy = 0.01; accel = 1.6; maxiter = 20;

% IEEE 3-BUS TEST SYSTEM (American Electric Power)


% Bus Bus Voltage Angle ---Load---- -------Generator-----
Static Mvar
% No code Mag. Degree MW Mvar MW Mvar Qmin Qmax
+Qc/-Ql
busdata=[1 1 1.025 0.0 0.0 0.0 0.0 0.0 0 0 0
2 0 1.0 0.0 400 200 0.0 0.0 0 0 0
3 2 1.03 0.0 0.0 0.0 300 0.0 0 0
0];

% Line code
% Bus bus R X 1/2 B = 1 for lines
% nl nr p.u. p.u. p.u. > 1 or < 1 tr. tap at bus nl
linedata=[1 2 0.00 0.025 0.0 1
1 3 0.00 0.05 0.0 1
2 3 0.00 0.025 0.0 1];

lfybus % form the bus admittance matrix


lfgauss % Load flow solution by Gauss-Seidel method
busout % Prints the power flow solution on the screen
lineflow % Computes and displays the line flow and losses

Power Flow Solution by Gauss-Seidel Method


Maximum Power Mismatch = 0.00476004
No. of Iterations = 13

Bus Voltage Angle ------Load------ ---Generation--- Injected


No. Mag. Degree MW Mvar MW Mvar Mvar

1 1.025 0.000 0.000 0.000 99.741 90.689 0.000


2 1.001 -2.095 400.000 200.000 0.000 0.000 0.000
3 1.030 1.370 0.000 0.000 300.000 136.880 0.000

Total 400.000 200.000 399.741 227.569 0.000

Line Flow and Losses

--Line-- Power at bus & line flow --Line loss-- Transformer


from to MW Mvar MVA MW Mvar tap

1 99.741 90.689 134.806


2 150.042 100.063 180.347 0.000 7.739
3 -50.490 -9.643 51.403 0.000 1.257

2 -400.000 -200.000 447.214


1 -150.042 -92.324 176.171 0.000 7.739
3 -249.306 -107.546 271.514 0.000 18.383

3 300.000 136.880 329.752


1 50.490 10.901 51.653 0.000 1.257
2 249.306 125.930 279.306 0.000 18.383

Total loss 0.000 27.380


cost = [200 7.0 0.008
180 6.3 0.009
140 6.8 0.007];

mwlimits =[10 85
10 80
10 70];

Pdt = 150;
B = [0.0218 0 0
0 0.0228 0
0 0 0.0179];

basemva = 100;
dispatch
gencost

cost = [200 7.0 0.008


180 6.3 0.009
140 6.8 0.007];

mwlimits =[10 85
10 80
10 70];

Pdt = 150;
B = [0.0218 0 0
0 0.0228 0
0 0 0.0179];

basemva = 100;
dispatch
gencost
Incremental cost of delivered power (system lambda) =
7.678935 $/MWh
Optimal Dispatch of Generation:

35.0907
64.1318
52.4767

Total generation cost = 1592.65 $/h

Das könnte Ihnen auch gefallen