ABCDEFGHIJKLMNOPQRSTUVWXYZ
1
%% system MVA base
2
mpc.baseMVA = 100;
3
4
%% bus data
5
%bus_itypePdQdGsBsareaVmVabaseKVzoneVmaxVmin
6
mpc.bus = [
7
% Area 1
8
13000011.05023011.051.05;
9
22000011.05023011.051.05;
10
325000011.07023011.071.07;
11
415000011023011.050.95;
12
515000011023011.050.95;
13
61000011023011.050.95;
14
];
15
16
%% generator data
17
%busPgQgQmaxQminVgmBasestatusPmaxPminPc1Pc2Qc1minQc1maxQc2minQc2max
ramp_agc
ramp_10
ramp_30
ramp_qapfmin_dnmin_up
18
mpc.gen = [
19
% Area 1
20
100200-801.051004200100000000.833333333000044% G11
21
20070-401.05100-3200500000000.666666667000032% G12
22
60050-401.07100-1200100000000.5000044% CHP1
23
600999-999110009990000000999000011% W1
24
60050-401.07100-1200100000000.5000044% CHP2
25
];
26
27
%% branch data
28
%fbustbusrxbrateArateBrateCratioanglestatusangminangmax
29
mpc.branch = [
30
% Area 1
31
1200.17040200200001-360360;
32
1400.2580200100100001-360360;
33
2300.1970200100100001-360360;
34
2400.0180200100100001-360360;
35
3600.0370800100100001-360360;
36
4500.0370200100100001-360360;
37
5600.140200100100001-360360;
38
];
39
40
%%----- OPF Data -----%%
41
%% generator cost data
42
%1startup
shutdown
nx1y1...xnyn
43
%2startup
shutdown
nc(n-1)...c0
44
mpc.gencost = [
45
% Area 1
46
2124.69030.0004987616.83315220.57661% G11
47
2373.83030.001246140.62286161.86839% G12
48
2200030.004353.6001100% CHP1
49
20030.00623121.93312171.22788% W1
50
2200 030.004353.6001100% CHP2
51
];
52
53
%% area data
54
%area
refbus reserveUp reserveDn
55
mpc.areas = [
56
115050;
57
];
58
59
load = [
60
180.28
61
190.624
62
190.192
63
191.504
64
193
65
196.464
66
214.968
67
225.856
68
221.48
69
219.968
70
250.312
71
249.984
72
248.752
73
247.104
74
249.192
75
224.184
76
206.4
77
197.912
78
203.824
79
191.904
80
195.72
81
197.208
82
194.752
83
199.2
84
180.28
85
190.624
86
190.192
87
191.504
88
193
89
196.464
90
214.968
91
225.856
92
221.48
93
219.968
94
250.312
95
249.984
96
248.752
97
247.104
98
249.192
99
224.184
100
206.4