Skip to content

Commit 38a3938

Browse files
committed
restore original b4gic
1 parent 72144f5 commit 38a3938

File tree

2 files changed

+144
-1
lines changed

2 files changed

+144
-1
lines changed

test/data/matpower/b4gic.m

+143
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,143 @@
1+
%% MATPOWER Case Format : Version 2
2+
function mpc = b4gic
3+
mpc.version = '2';
4+
5+
6+
%%----- Power Flow Data -----%%
7+
8+
%% system MVA base
9+
mpc.baseMVA = 100;
10+
11+
12+
%% bus data
13+
% bus_i type Pd Qd Gs Bs area Vm Va baseKV zone Vmax Vmin
14+
mpc.bus = [
15+
1 1 0 0 0 0 1 1.100000 0.000000 765 1 1.15 0.85
16+
2 1 0 0 0 0 1 1.100000 0.000000 765 1 1.15 0.85
17+
3 1 1000 200 0 0 1 1.100000 0.000000 20 1 1.15 0.85
18+
4 3 0 0 0 0 1 1.000000 0.000000 20 1 1.15 0.85
19+
];
20+
21+
22+
%% generator data
23+
% bus Pg Qg Qmax Qmin Vg mBase status Pmax Pmin Pc1 Pc2 Qc1min Qc1max Qc2min Qc2max ramp_agc ramp_10 ramp_30 ramp_q apf
24+
mpc.gen = [
25+
4 0.0 0.0 2000.0 -2000.0 1.1 100 1 2000.0 0.0 0 0 0 0 0 0 0 0 0 -1000 0
26+
];
27+
28+
29+
%% branch data
30+
% fbus tbus r x b rateA rateB rateC ratio angle status angmin angmax
31+
mpc.branch = [
32+
1 3 0.0001 0.004 0 2000.0 0.0 0.0 1 0.0 1 -30.0 30.0
33+
1 2 0.000513 0.01 0 2000.0 0.0 0.0 1 0.0 1 -30.0 30.0
34+
2 4 0.0001 0.004 0 2000.0 0.0 0.0 1 0.0 1 -30.0 30.0
35+
];
36+
37+
38+
%%----- OPF Data -----%%
39+
40+
%% generator cost data
41+
% 1 startup shutdown n x1 y1 ... xn yn
42+
% 2 startup shutdown n c(n-1) ... c0
43+
mpc.gencost = [
44+
2 0 0 3 0.11 5.0 0
45+
];
46+
47+
48+
%%----- GMD - Thermal Data -----%%
49+
50+
%% gmd_bus data
51+
%column_names% parent_index status g_gnd name
52+
mpc.gmd_bus = {
53+
1 1 5 'dc_sub1'
54+
2 1 5 'dc_sub2'
55+
1 1 0 'dc_bus1'
56+
2 1 0 'dc_bus2'
57+
3 1 0 'dc_bus3'
58+
4 1 0 'dc_bus4'
59+
};
60+
61+
62+
%% gmd_branch data
63+
%column_names% f_bus t_bus parent_index br_status br_r br_v len_km name
64+
mpc.gmd_branch = {
65+
3 1 1 1 0.1 0 0 'dc_xf1_hi'
66+
3 4 2 1 1.00073475 170.78806587354 170.78806587354 'dc_br1'
67+
4 2 3 1 0.1 0 0 'dc_xf2_hi'
68+
};
69+
70+
71+
%% branch_gmd data
72+
%column_names% hi_bus lo_bus gmd_br_hi gmd_br_lo gmd_k gmd_br_series gmd_br_common baseMVA type config
73+
mpc.branch_gmd = {
74+
1 3 1 -1 1.793 -1 -1 100 'xfmr' 'gwye-delta'
75+
1 2 -1 -1 -1 -1 -1 100 'line' 'none'
76+
2 4 3 -1 1.793 -1 -1 100 'xfmr' 'gwye-delta'
77+
};
78+
79+
80+
%% branch_thermal data
81+
%column_names% xfmr temperature_ambient hotspot_instant_limit hotspot_avg_limit hotspot_rated topoil_time_const topoil_rated topoil_init topoil_initialized hotspot_coeff
82+
mpc.branch_thermal = {
83+
1 25 280 240 150 71 75 0 1 0.63
84+
0 -1 -1 -1 -1 -1 -1 -1 -1 -1
85+
1 25 280 240 150 71 75 0 1 0.63
86+
};
87+
88+
89+
%% bus_gmd data
90+
%column_names% lat lon
91+
mpc.bus_gmd = {
92+
40 -89
93+
40 -87
94+
40 -89
95+
40 -87
96+
};
97+
98+
99+
%% time_elapsed
100+
%column_names% seconds
101+
mpc.time_elapsed = 10.0;
102+
103+
104+
%% thermal caps
105+
% thermal_cap_x0 ([per unit])
106+
%column_names% A B C D E F G H I J K
107+
mpc.thermal_cap_x0 = [
108+
0.23033 0.25000 0.26438 0.27960 0.30000 0.31967 0.33942 0.36153 0.38444 0.40000 0.43894
109+
];
110+
% thermal_cap_y0 ([percent per unit])
111+
%column_names% A B C D E F G H I J K
112+
mpc.thermal_cap_y0 = [
113+
100.0 93.94 90.0 85.42 80.0 74.73 70.0 64.94 59.97 56.92 50.0
114+
];
115+
% Values are from Fig.2. of https://arxiv.org/pdf/1701.01469.pdf paper
116+
117+
118+
%%----- SourceID Data -----%%
119+
120+
%% bus_sourceid data
121+
%column_names% bus_sid
122+
mpc.bus_sourceid = [
123+
1;
124+
2;
125+
3;
126+
4;
127+
];
128+
129+
130+
%% gen_sourceid data
131+
%column_names% bus_i gen_sid
132+
mpc.gen_sourceid = [
133+
4 '1 ';
134+
];
135+
136+
137+
%% branch_sourceid data
138+
%column_names% fbus tbus branch_sid
139+
mpc.branch_sourceid = [
140+
1 3 '1 ';
141+
1 2 '1 ';
142+
2 4 '1 ';
143+
];

test/test_cases.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ data_epri21_verification = "../test/data/pw_csv/verification/EpriCase_Mar2012_GI
1919

2020
data_b4gic_vm = "../test/data/pw_csv/verification/B4GIC_Slack_Only_Bus_1Vkm.csv"
2121
data_epri21_vm = "../test/data/pw_csv/verification/EpriCase_Mar2012_Bus_1Vkm.csv"
22-
b4gic_default = "../test/data/matpower/b4gic.m"
22+
b4gic_default = "../test/data/matpower/b4gic_two_gens.m"
2323
b4gic_offbase = "../test/data/matpower/b4gic_offbase.m"
2424
autotransformer = "../test/data/matpower/autotransformer.m"
2525
epricase = "../test/data/matpower/epricase_aug2022_v22_fix.m"

0 commit comments

Comments
 (0)