1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 """Power flow data for 9 bus, 3 generator case.
18 """
19
20 from numpy import array
21
23 """Power flow data for 9 bus, 3 generator case.
24 Please see L{caseformat} for details on the case file format.
25
26 Based on data from Joe H. Chow's book, p. 70.
27
28 @return: Power flow data for 9 bus, 3 generator case.
29 """
30 ppc = {"version": '2'}
31
32
33
34 ppc["baseMVA"] = 100.0
35
36
37
38 ppc["bus"] = array([
39 [1, 3, 0, 0, 0, 0, 1, 1, 0, 345, 1, 1.1, 0.9],
40 [2, 2, 0, 0, 0, 0, 1, 1, 0, 345, 1, 1.1, 0.9],
41 [3, 2, 0, 0, 0, 0, 1, 1, 0, 345, 1, 1.1, 0.9],
42 [4, 1, 0, 0, 0, 0, 1, 1, 0, 345, 1, 1.1, 0.9],
43 [5, 1, 90, 30, 0, 0, 1, 1, 0, 345, 1, 1.1, 0.9],
44 [6, 1, 0, 0, 0, 0, 1, 1, 0, 345, 1, 1.1, 0.9],
45 [7, 1, 100, 35, 0, 0, 1, 1, 0, 345, 1, 1.1, 0.9],
46 [8, 1, 0, 0, 0, 0, 1, 1, 0, 345, 1, 1.1, 0.9],
47 [9, 1, 125, 50, 0, 0, 1, 1, 0, 345, 1, 1.1, 0.9]
48 ])
49
50
51
52
53 ppc["gen"] = array([
54 [1, 0, 0, 300, -300, 1, 100, 1, 250, 10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
55 [2, 163, 0, 300, -300, 1, 100, 1, 300, 10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
56 [3, 85, 0, 300, -300, 1, 100, 1, 270, 10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
57 ])
58
59
60
61 ppc["branch"] = array([
62 [1, 4, 0, 0.0576, 0, 250, 250, 250, 0, 0, 1, -360, 360],
63 [4, 5, 0.017, 0.092, 0.158, 250, 250, 250, 0, 0, 1, -360, 360],
64 [5, 6, 0.039, 0.17, 0.358, 150, 150, 150, 0, 0, 1, -360, 360],
65 [3, 6, 0, 0.0586, 0, 300, 300, 300, 0, 0, 1, -360, 360],
66 [6, 7, 0.0119, 0.1008, 0.209, 150, 150, 150, 0, 0, 1, -360, 360],
67 [7, 8, 0.0085, 0.072, 0.149, 250, 250, 250, 0, 0, 1, -360, 360],
68 [8, 2, 0, 0.0625, 0, 250, 250, 250, 0, 0, 1, -360, 360],
69 [8, 9, 0.032, 0.161, 0.306, 250, 250, 250, 0, 0, 1, -360, 360],
70 [9, 4, 0.01, 0.085, 0.176, 250, 250, 250, 0, 0, 1, -360, 360]
71 ])
72
73
74
75
76 ppc["areas"] = array([
77 [1, 5]
78 ])
79
80
81
82
83 ppc["gencost"] = array([
84 [2, 1500, 0, 3, 0.11, 5, 150],
85 [2, 2000, 0, 3, 0.085, 1.2, 600],
86 [2, 3000, 0, 3, 0.1225, 1, 335]
87 ])
88
89 return ppc
90