📄 case30.m
字号:
function [baseMVA, bus, gen, branch, area, gencost] = case;
%CASE Defines the power flow data in a format similar to PTI.
% [baseMVA, bus, gen, branch, area, gencost] = case
% The format for the data is similar to PTI format except where noted.
% An item marked with (+) indicates that it is included in this data
% but is not part of the PTI format. An item marked with (-) is one that
% is in the PTI format but is not included here.
%
% Bus Data Format
% 1 bus number (1 to 29997)
% 2 bus type
% PQ bus = 1
% PV bus = 2
% reference bus = 3
% isolated bus = 4
% 3 Pd, real power demand (MW)
% 4 Qd, reactive power demand (MVAR)
% 5 Gs, shunt conductance (MW (demanded?) at V = 1.0 p.u.)
% 6 Bs, shunt susceptance (MVAR (injected?) at V = 1.0 p.u.)
% 7 area number, 1-100
% 8 Vm, voltage magnitude (p.u.)
% 9 Va, voltage angle (degrees)
% (-) (bus name)
% 10 baseKV, base voltage (kV)
% 11 zone, loss zone (1-999)
% (+) 12 maxVm, maximum voltage magnitude (p.u.)
% (+) 13 minVm, minimum voltage magnitude (p.u.)
%
% Generator Data Format
% 1 bus number
% (-) (machine identifier, 0-9, A-Z)
% 2 Pg, real power output (MW)
% 3 Qg, reactive power output (MVAR)
% 4 Qmax, maximum reactive power output (MVAR)
% 5 Qmin, minimum reactive power output (MVAR)
% 6 Vg, voltage magnitude setpoint (p.u.)
% (-) (remote controlled bus index)
% 7 mBase, total MVA base of this machine, defaults to baseMVA
% (-) (machine impedance, p.u. on mBase)
% (-) (step up transformer impedance, p.u. on mBase)
% (-) (step up transformer off nominal turns ratio)
% 8 status, 1 - machine in service, 0 - machine out of service
% (-) (% of total VARS to come from this gen in order to hold V at
% remote bus controlled by several generators)
% 9 Pmax, maximum real power output (MW)
% 10 Pmin, minimum real power output (MW)
%
% Branch Data Format
% 1 f, from bus number
% 2 t, to bus number
% (-) (circuit identifier)
% 3 r, resistance (p.u.)
% 4 x, reactance (p.u.)
% 5 b, total line charging susceptance (p.u.)
% 6 rateA, MVA rating A (long term rating)
% 7 rateB, MVA rating B (short term rating)
% 8 rateC, MVA rating C (emergency rating)
% 9 ratio, transformer off nominal turns ratio ( = 0 for lines )
% (taps at 'from' bus, impedance at 'to' bus, i.e. ratio = Vf / Vt)
% 10 angle, transformer phase shift angle (degrees)
% (-) (Gf, shunt conductance at from bus p.u.)
% (-) (Bf, shunt susceptance at from bus p.u.)
% (-) (Gt, shunt conductance at to bus p.u.)
% (-) (Bt, shunt susceptance at to bus p.u.)
% 11 initial branch status, 1 - in service, 0 - out of service
%
% (+) Area Data Format
% 1 i, area number
% 2 price_ref_bus, reference bus for that area
%
% (+) Generator Cost Data Format
% NOTE: If gen has n rows, then the first n rows of gencost contain
% the cost for active power produced by the corresponding generators.
% If gencost has 2*n rows then rows n+1 to 2*n contain the reactive
% power costs in the same format.
% 1 model, 1 - piecewise linear, 2 - polynomial
% 2 startup, startup cost in US dollars
% 3 shutdown, shutdown cost in US dollars
% 4 n, number of cost coefficients to follow for polynomial
% (or data points for piecewise linear) total cost function
% 5 and following, cost data, piecewise linear data as:
% x0, y0, x1, y1, x2, y2, ...
% and polynomial data as, e.g.:
% c2, c1, c0
% where the polynomial is c0 + c1*P + c2*P^2
%
% << this file created [97-Aug-26 12:29:15] by PB::System version 1.3 >>
%%----- Power Flow Data -----%%
%% system MVA base
baseMVA = 100.0000;
%% bus data
bus = [
1 3 0.0 0.0 0.0 0.0 1 1.0000 0.0000 132.0000 1 1.1000 0.9000;
2 2 21.700 12.700 0.0 0.0 1 1.0000 0.0000 132.0000 1 1.1000 0.9000;
3 1 2.4000 1.2000 0.0 0.0 1 1.0000 0.0000 132.0000 1 1.0500 0.9500;
4 1 7.6000 1.6000 0.0 0.0 1 1.0000 0.0000 132.0000 1 1.0500 0.9500;
5 2 94.200 19.000 0.0 0.0 1 1.0000 0.0000 132.0000 1 1.1000 0.9000;
6 1 0.0 0.0 0.0 0.0 1 1.0000 0.0000 132.0000 1 1.0500 0.9500;
7 1 22.800 10.900 0.0 0.0 1 1.0000 0.0000 132.0000 1 1.0500 0.9500;
8 2 -30.000 30.000 0.0 0.0 1 1.0000 0.0000 132.0000 1 1.1000 0.9000;
9 1 0.0 0.0 0.0 0.0 2 1.0000 0.0000 1.0000 1 1.0500 0.9500;
10 1 5.8000 2.0000 0.0 19 2 1.0000 0.0000 33.0000 1 1.0500 0.9500;
11 2 0.0 0.0 0.0 0.0 2 1.0000 0.0000 11.0000 1 1.1000 0.9000;
12 1 11.200 7.5000 0.0 0.0 2 1.0000 0.0000 33.0000 1 1.0500 0.9500;
13 2 0.0 0.0 0.0 0.0 2 1.0000 0.0000 11.0000 1 1.1000 0.9500;
14 1 6.2000 1.6000 0.0 0.0 2 1.0000 0.0000 33.0000 1 1.0500 0.9500;
15 1 8.2000 2.5000 0.0 0.0 2 1.0000 0.0000 33.0000 1 1.0500 0.9500;
16 1 3.5000 1.8000 0.0 0.0 2 1.0000 0.0000 33.0000 1 1.0500 0.9500;
17 1 9.0000 5.8000 0.0 0.0 2 1.0000 0.0000 33.0000 1 1.0500 0.9500;
18 1 3.2000 0.9000 0.0 0.0 2 1.0000 0.0000 33.0000 1 1.0500 0.9500;
19 1 9.5000 3.4000 0.0 0.0 2 1.0000 0.0000 33.0000 1 1.0500 0.9500;
20 1 2.2000 0.7000 0.0 0.0 2 1.0000 0.0000 33.0000 1 1.0500 0.9500;
21 1 17.500 11.200 0.0 0.0 2 1.0000 0.0000 33.0000 1 1.0500 0.9500;
22 1 0.0 0.0 0.0 0.0 2 1.0000 0.0000 33.0000 1 1.0500 0.9500;
23 1 3.2000 1.6000 0.0 0.0 3 1.0000 0.0000 33.0000 1 1.0500 0.9500;
24 1 8.7000 6.7000 0.0 4 3 1.0000 0.0000 33.0000 1 1.0500 0.9500;
25 1 0.0 0.0 0.0 0.0 3 1.0000 0.0000 33.0000 1 1.0500 0.9500;
26 1 3.5000 2.3000 0.0 0.0 3 1.0000 0.0000 33.0000 1 1.0500 0.9500;
27 1 0.0 0.0 0.0 0.0 3 1.0000 0.0000 33.0000 1 1.0500 0.9500;
28 1 0.0 0.0 0.0 0.0 1 1.0000 0.0000 132.0000 1 1.0500 0.9500;
29 1 2.4000 0.9000 0.0 0.0 3 1.0000 0.0000 33.0000 1 1.0500 0.9500;
30 1 10.600 1.9000 0.0 0.0 3 1.0000 0.0000 33.0000 1 1.0500 0.9500;
];
%% generator data
gen = [
1 0 0.0000 59.6000 -29.8000 1.0500 100.0000 1 80.0000 0.0000;
2 57.5600 0.0000 48.0000 -24.0000 1.0338 100.0000 1 80.0000 0.0000;
5 24.5600 0.0000 60.0000 -30.0000 1.0058 100.0000 1 50.0000 0.0000;
8 35.0000 0.0000 53.0000 -26.5000 1.0230 100.0000 1 55.0000 0.0000;
11 17.9300 0.0000 15.0000 -7.5000 1.0913 100.0000 1 30.0000 0.0000;
13 16.9100 0.0000 15.5000 -7.7500 1.0883 100.0000 1 40.0000 0.0000;
];
%% branch data
branch = [
1 2 0.0192 0.0575 0.0528 130.0000 130.0000 130.0000 0.0000 0.0000 1;
1 3 0.0452 0.1852 0.0408 130.0000 130.0000 130.0000 0.0000 0.0000 1;
2 4 0.0570 0.1737 0.0368 65.0000 65.0000 65.0000 0.0000 0.0000 1;
3 4 0.0132 0.0379 0.0084 130.0000 130.0000 130.0000 0.0000 0.0000 1;
2 5 0.0472 0.1983 0.0418 130.0000 130.0000 130.0000 0.0000 0.0000 1;
2 6 0.0581 0.1763 0.0374 65.0000 65.0000 65.0000 0.0000 0.0000 1;
4 6 0.0119 0.0414 0.0090 90.0000 90.0000 90.0000 0.0000 0.0000 1;
5 7 0.0460 0.1160 0.0204 70.0000 70.0000 70.0000 0.0000 0.0000 1;
6 7 0.0267 0.0820 0.0170 130.0000 130.0000 130.0000 0.0000 0.0000 1;
6 8 0.0120 0.0420 0.0090 32.0000 32.0000 32.0000 0.0000 0.0000 1;
9 6 0.0000 0.2080 0.0000 65.0000 65.0000 65.0000 1.0155 0.0000 1;
6 10 0.0000 0.5560 0.0000 32.0000 32.0000 32.0000 0.9629 0.0000 1;
9 11 0.0000 0.2080 0.0000 65.0000 65.0000 65.0000 0.0000 0.0000 1;
9 10 0.0000 0.1100 0.0000 65.0000 65.0000 65.0000 0.0000 0.0000 1;
12 4 0.0000 0.2560 0.0000 65.0000 65.0000 65.0000 1.0129 0.0000 1;
12 13 0.0000 0.1400 0.0000 65.0000 65.0000 65.0000 0.0000 0.0000 1;
12 14 0.1231 0.2559 0.0000 32.0000 32.0000 32.0000 0.0000 0.0000 1;
12 15 0.0662 0.1304 0.0000 32.0000 32.0000 32.0000 0.0000 0.0000 1;
12 16 0.0945 0.1987 0.0000 32.0000 32.0000 32.0000 0.0000 0.0000 1;
14 15 0.2210 0.1997 0.0000 16.0000 16.0000 16.0000 0.0000 0.0000 1;
16 17 0.0824 0.1932 0.0000 16.0000 16.0000 16.0000 0.0000 0.0000 1;
15 18 0.1070 0.2185 0.0000 16.0000 16.0000 16.0000 0.0000 0.0000 1;
18 19 0.0639 0.1292 0.0000 16.0000 16.0000 16.0000 0.0000 0.0000 1;
19 20 0.0340 0.0680 0.0000 32.0000 32.0000 32.0000 0.0000 0.0000 1;
10 20 0.0936 0.2090 0.0000 32.0000 32.0000 32.0000 0.0000 0.0000 1;
10 17 0.0324 0.0845 0.0000 32.0000 32.0000 32.0000 0.0000 0.0000 1;
10 21 0.0348 0.0749 0.0000 32.0000 32.0000 32.0000 0.0000 0.0000 1;
10 22 0.0727 0.1499 0.0000 32.0000 32.0000 32.0000 0.0000 0.0000 1;
21 22 0.0116 0.0236 0.0000 32.0000 32.0000 32.0000 0.0000 0.0000 1;
15 23 0.1000 0.2020 0.0000 16.0000 16.0000 16.0000 0.0000 0.0000 1;
22 24 0.1150 0.1790 0.0000 16.0000 16.0000 16.0000 0.0000 0.0000 1;
23 24 0.1320 0.2700 0.0000 16.0000 16.0000 16.0000 0.0000 0.0000 1;
24 25 0.1885 0.3292 0.0000 16.0000 16.0000 16.0000 0.0000 0.0000 1;
25 26 0.2544 0.3800 0.0000 16.0000 16.0000 16.0000 0.0000 0.0000 1;
25 27 0.1093 0.2087 0.0000 16.0000 16.0000 16.0000 0.0000 0.0000 1;
28 27 0.0000 0.3960 0.0000 65.0000 65.0000 65.0000 0.9581 0.0000 1;
27 29 0.2198 0.4153 0.0000 16.0000 16.0000 16.0000 0.0000 0.0000 1;
27 30 0.3202 0.6027 0.0000 16.0000 16.0000 16.0000 0.0000 0.0000 1;
29 30 0.2399 0.4533 0.0000 16.0000 16.0000 16.0000 0.0000 0.0000 1;
8 28 0.0636 0.2000 0.0428 32.0000 32.0000 32.0000 0.0000 0.0000 1;
6 28 0.0169 0.0599 0.0130 32.0000 32.0000 32.0000 0.0000 0.0000 1;
];
%%----- OPF Data -----%%
%% area data
area = [
1 8;
2 23;
3 26;
];
%% generator cost data
gencost = [
2 0.00 0.00 3 0.02 2 0 0.015 1.5 0;
2 0.00 0.00 3 0.0175 1.75 0 0.0575 3.5 0 ;
2 0.00 0.00 3 0.0625 1 0 0.0325 1.5 0 ;
2 0.00 0.00 3 0.0083 3.25 0 0.0383 3.95 0;
2 0.00 0.00 3 0.025 3 0 0.025 2.5 0;
2 0.00 0.00 3 0.025 3 0 0.025 3 0;
];
return;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -