ltbams 0.9.9__py3-none-any.whl → 1.0.2__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (191) hide show
  1. ams/__init__.py +4 -11
  2. ams/_version.py +3 -3
  3. ams/cases/5bus/pjm5bus_demo.xlsx +0 -0
  4. ams/cases/5bus/pjm5bus_jumper.xlsx +0 -0
  5. ams/cases/5bus/pjm5bus_uced.json +1062 -0
  6. ams/cases/5bus/pjm5bus_uced.xlsx +0 -0
  7. ams/cases/5bus/pjm5bus_uced_esd1.xlsx +0 -0
  8. ams/cases/5bus/pjm5bus_uced_ev.xlsx +0 -0
  9. ams/cases/ieee123/ieee123.xlsx +0 -0
  10. ams/cases/ieee123/ieee123_regcv1.xlsx +0 -0
  11. ams/cases/ieee14/ieee14.json +1166 -0
  12. ams/cases/ieee14/ieee14.raw +92 -0
  13. ams/cases/ieee14/ieee14_conn.xlsx +0 -0
  14. ams/cases/ieee14/ieee14_uced.xlsx +0 -0
  15. ams/cases/ieee39/ieee39.xlsx +0 -0
  16. ams/cases/ieee39/ieee39_uced.xlsx +0 -0
  17. ams/cases/ieee39/ieee39_uced_esd1.xlsx +0 -0
  18. ams/cases/ieee39/ieee39_uced_pvd1.xlsx +0 -0
  19. ams/cases/ieee39/ieee39_uced_vis.xlsx +0 -0
  20. ams/cases/matpower/benchmark.json +1594 -0
  21. ams/cases/matpower/case118.m +787 -0
  22. ams/cases/matpower/case14.m +129 -0
  23. ams/cases/matpower/case300.m +1315 -0
  24. ams/cases/matpower/case39.m +205 -0
  25. ams/cases/matpower/case5.m +62 -0
  26. ams/cases/matpower/case_ACTIVSg2000.m +9460 -0
  27. ams/cases/npcc/npcc.m +644 -0
  28. ams/cases/npcc/npcc_uced.xlsx +0 -0
  29. ams/cases/pglib/pglib_opf_case39_epri__api.m +243 -0
  30. ams/cases/wecc/wecc.m +714 -0
  31. ams/cases/wecc/wecc_uced.xlsx +0 -0
  32. ams/cli.py +6 -0
  33. ams/core/__init__.py +2 -0
  34. ams/core/documenter.py +652 -0
  35. ams/core/matprocessor.py +782 -0
  36. ams/core/model.py +330 -0
  37. ams/core/param.py +322 -0
  38. ams/core/service.py +918 -0
  39. ams/core/symprocessor.py +224 -0
  40. ams/core/var.py +59 -0
  41. ams/extension/__init__.py +5 -0
  42. ams/extension/eva.py +401 -0
  43. ams/interface.py +1085 -0
  44. ams/io/__init__.py +133 -0
  45. ams/io/json.py +82 -0
  46. ams/io/matpower.py +406 -0
  47. ams/io/psse.py +6 -0
  48. ams/io/pypower.py +103 -0
  49. ams/io/xlsx.py +80 -0
  50. ams/main.py +81 -4
  51. ams/models/__init__.py +24 -0
  52. ams/models/area.py +40 -0
  53. ams/models/bus.py +52 -0
  54. ams/models/cost.py +169 -0
  55. ams/models/distributed/__init__.py +3 -0
  56. ams/models/distributed/esd1.py +71 -0
  57. ams/models/distributed/ev.py +60 -0
  58. ams/models/distributed/pvd1.py +67 -0
  59. ams/models/group.py +231 -0
  60. ams/models/info.py +26 -0
  61. ams/models/line.py +238 -0
  62. ams/models/renewable/__init__.py +5 -0
  63. ams/models/renewable/regc.py +119 -0
  64. ams/models/reserve.py +94 -0
  65. ams/models/shunt.py +14 -0
  66. ams/models/static/__init__.py +2 -0
  67. ams/models/static/gen.py +165 -0
  68. ams/models/static/pq.py +61 -0
  69. ams/models/timeslot.py +69 -0
  70. ams/models/zone.py +49 -0
  71. ams/opt/__init__.py +12 -0
  72. ams/opt/constraint.py +175 -0
  73. ams/opt/exprcalc.py +127 -0
  74. ams/opt/expression.py +188 -0
  75. ams/opt/objective.py +174 -0
  76. ams/opt/omodel.py +432 -0
  77. ams/opt/optzbase.py +192 -0
  78. ams/opt/param.py +156 -0
  79. ams/opt/var.py +233 -0
  80. ams/pypower/__init__.py +8 -0
  81. ams/pypower/_compat.py +9 -0
  82. ams/pypower/core/__init__.py +8 -0
  83. ams/pypower/core/pips.py +894 -0
  84. ams/pypower/core/ppoption.py +244 -0
  85. ams/pypower/core/ppver.py +18 -0
  86. ams/pypower/core/solver.py +2451 -0
  87. ams/pypower/eps.py +6 -0
  88. ams/pypower/idx.py +174 -0
  89. ams/pypower/io.py +604 -0
  90. ams/pypower/make/__init__.py +11 -0
  91. ams/pypower/make/matrices.py +665 -0
  92. ams/pypower/make/pdv.py +506 -0
  93. ams/pypower/routines/__init__.py +7 -0
  94. ams/pypower/routines/cpf.py +513 -0
  95. ams/pypower/routines/cpf_callbacks.py +114 -0
  96. ams/pypower/routines/opf.py +1803 -0
  97. ams/pypower/routines/opffcns.py +1946 -0
  98. ams/pypower/routines/pflow.py +852 -0
  99. ams/pypower/toggle.py +1098 -0
  100. ams/pypower/utils.py +293 -0
  101. ams/report.py +212 -50
  102. ams/routines/__init__.py +23 -0
  103. ams/routines/acopf.py +117 -0
  104. ams/routines/cpf.py +65 -0
  105. ams/routines/dcopf.py +241 -0
  106. ams/routines/dcpf.py +209 -0
  107. ams/routines/dcpf0.py +196 -0
  108. ams/routines/dopf.py +150 -0
  109. ams/routines/ed.py +312 -0
  110. ams/routines/pflow.py +255 -0
  111. ams/routines/pflow0.py +113 -0
  112. ams/routines/routine.py +1033 -0
  113. ams/routines/rted.py +519 -0
  114. ams/routines/type.py +160 -0
  115. ams/routines/uc.py +376 -0
  116. ams/shared.py +63 -9
  117. ams/system.py +61 -22
  118. ams/utils/__init__.py +3 -0
  119. ams/utils/misc.py +77 -0
  120. ams/utils/paths.py +257 -0
  121. docs/Makefile +21 -0
  122. docs/make.bat +35 -0
  123. docs/source/_templates/autosummary/base.rst +5 -0
  124. docs/source/_templates/autosummary/class.rst +35 -0
  125. docs/source/_templates/autosummary/module.rst +65 -0
  126. docs/source/_templates/autosummary/module_toctree.rst +66 -0
  127. docs/source/api.rst +102 -0
  128. docs/source/conf.py +206 -0
  129. docs/source/examples/index.rst +34 -0
  130. docs/source/genmodelref.py +61 -0
  131. docs/source/genroutineref.py +47 -0
  132. docs/source/getting_started/copyright.rst +20 -0
  133. docs/source/getting_started/formats/index.rst +20 -0
  134. docs/source/getting_started/formats/matpower.rst +183 -0
  135. docs/source/getting_started/formats/psse.rst +46 -0
  136. docs/source/getting_started/formats/pypower.rst +223 -0
  137. docs/source/getting_started/formats/xlsx.png +0 -0
  138. docs/source/getting_started/formats/xlsx.rst +23 -0
  139. docs/source/getting_started/index.rst +76 -0
  140. docs/source/getting_started/install.rst +231 -0
  141. docs/source/getting_started/overview.rst +26 -0
  142. docs/source/getting_started/testcase.rst +45 -0
  143. docs/source/getting_started/verification.rst +13 -0
  144. docs/source/images/curent.ico +0 -0
  145. docs/source/images/dcopf_time.png +0 -0
  146. docs/source/images/sponsors/CURENT_Logo_NameOnTrans.png +0 -0
  147. docs/source/images/sponsors/CURENT_Logo_Transparent.png +0 -0
  148. docs/source/images/sponsors/CURENT_Logo_Transparent_Name.png +0 -0
  149. docs/source/images/sponsors/doe.png +0 -0
  150. docs/source/index.rst +108 -0
  151. docs/source/modeling/example.rst +159 -0
  152. docs/source/modeling/index.rst +17 -0
  153. docs/source/modeling/model.rst +210 -0
  154. docs/source/modeling/routine.rst +122 -0
  155. docs/source/modeling/system.rst +51 -0
  156. docs/source/release-notes.rst +398 -0
  157. ltbams-1.0.2.dist-info/METADATA +215 -0
  158. ltbams-1.0.2.dist-info/RECORD +188 -0
  159. {ltbams-0.9.9.dist-info → ltbams-1.0.2.dist-info}/WHEEL +1 -1
  160. ltbams-1.0.2.dist-info/top_level.txt +3 -0
  161. tests/__init__.py +0 -0
  162. tests/test_1st_system.py +33 -0
  163. tests/test_addressing.py +40 -0
  164. tests/test_andes_mats.py +61 -0
  165. tests/test_case.py +266 -0
  166. tests/test_cli.py +34 -0
  167. tests/test_export_csv.py +89 -0
  168. tests/test_group.py +83 -0
  169. tests/test_interface.py +216 -0
  170. tests/test_io.py +32 -0
  171. tests/test_jumper.py +27 -0
  172. tests/test_known_good.py +267 -0
  173. tests/test_matp.py +437 -0
  174. tests/test_model.py +54 -0
  175. tests/test_omodel.py +119 -0
  176. tests/test_paths.py +22 -0
  177. tests/test_report.py +251 -0
  178. tests/test_repr.py +21 -0
  179. tests/test_routine.py +178 -0
  180. tests/test_rtn_dcopf.py +101 -0
  181. tests/test_rtn_dcpf.py +77 -0
  182. tests/test_rtn_ed.py +279 -0
  183. tests/test_rtn_pflow.py +219 -0
  184. tests/test_rtn_rted.py +273 -0
  185. tests/test_rtn_uc.py +248 -0
  186. tests/test_service.py +73 -0
  187. ltbams-0.9.9.dist-info/LICENSE +0 -692
  188. ltbams-0.9.9.dist-info/METADATA +0 -859
  189. ltbams-0.9.9.dist-info/RECORD +0 -14
  190. ltbams-0.9.9.dist-info/top_level.txt +0 -1
  191. {ltbams-0.9.9.dist-info → ltbams-1.0.2.dist-info}/entry_points.txt +0 -0
@@ -0,0 +1,205 @@
1
+ function mpc = case39
2
+ %CASE39 Power flow data for 39 bus New England system.
3
+ % Please see CASEFORMAT for details on the case file format.
4
+ %
5
+ % Data taken from [1] with the following modifications/additions:
6
+ %
7
+ % - renumbered gen buses consecutively (as in [2] and [4])
8
+ % - added Pmin = 0 for all gens
9
+ % - added Qmin, Qmax for gens at 31 & 39 (copied from gen at 35)
10
+ % - added Vg based on V in bus data (missing for bus 39)
11
+ % - added Vg, Pg, Pd, Qd at bus 39 from [2] (same in [4])
12
+ % - added Pmax at bus 39: Pmax = Pg + 100
13
+ % - added line flow limits and area data from [4]
14
+ % - added voltage limits, Vmax = 1.06, Vmin = 0.94
15
+ % - added identical quadratic generator costs
16
+ % - increased Pmax for gen at bus 34 from 308 to 508
17
+ % (assumed typo in [1], makes initial solved case feasible)
18
+ % - re-solved power flow
19
+ %
20
+ % Notes:
21
+ % - Bus 39, its generator and 2 connecting lines were added
22
+ % (by authors of [1]) to represent the interconnection with
23
+ % the rest of the eastern interconnect, and did not include
24
+ % Vg, Pg, Qg, Pd, Qd, Pmin, Pmax, Qmin or Qmax.
25
+ % - As the swing bus, bus 31 did not include and Q limits.
26
+ % - The voltages, etc in [1] appear to be quite close to the
27
+ % power flow solution of the case before adding bus 39 with
28
+ % it's generator and connecting branches, though the solution
29
+ % is not exact.
30
+ % - Explicit voltage setpoints for gen buses are not given, so
31
+ % they are taken from the bus data, however this results in two
32
+ % binding Q limits at buses 34 & 37, so the corresponding
33
+ % voltages have probably deviated from their original setpoints.
34
+ % - The generator locations and types are as follows:
35
+ % 1 30 hydro
36
+ % 2 31 nuke01
37
+ % 3 32 nuke02
38
+ % 4 33 fossil02
39
+ % 5 34 fossil01
40
+ % 6 35 nuke03
41
+ % 7 36 fossil04
42
+ % 8 37 nuke04
43
+ % 9 38 nuke05
44
+ % 10 39 interconnection to rest of US/Canada
45
+ %
46
+ % This is a solved power flow case, but it includes the following
47
+ % violations:
48
+ % - Pmax violated at bus 31: Pg = 677.87, Pmax = 646
49
+ % - Qmin violated at bus 37: Qg = -1.37, Qmin = 0
50
+ %
51
+ % References:
52
+ % [1] G. W. Bills, et.al., "On-Line Stability Analysis Study"
53
+ % RP90-1 Report for the Edison Electric Institute, October 12, 1970,
54
+ % pp. 1-20 - 1-35.
55
+ % prepared by E. M. Gulachenski - New England Electric System
56
+ % J. M. Undrill - General Electric Co.
57
+ % "generally representative of the New England 345 KV system, but is
58
+ % not an exact or complete model of any past, present or projected
59
+ % configuration of the actual New England 345 KV system.
60
+ % [2] M. A. Pai, Energy Function Analysis for Power System Stability,
61
+ % Kluwer Academic Publishers, Boston, 1989.
62
+ % (references [3] as source of data)
63
+ % [3] Athay, T.; Podmore, R.; Virmani, S., "A Practical Method for the
64
+ % Direct Analysis of Transient Stability," IEEE Transactions on Power
65
+ % Apparatus and Systems , vol.PAS-98, no.2, pp.573-584, March 1979.
66
+ % URL: https://doi.org/10.1109/TPAS.1979.319407
67
+ % (references [1] as source of data)
68
+ % [4] Data included with TC Calculator at http://www.pserc.cornell.edu/tcc/
69
+ % for 39-bus system.
70
+
71
+ % MATPOWER
72
+
73
+ %% MATPOWER Case Format : Version 2
74
+ mpc.version = '2';
75
+
76
+ %%----- Power Flow Data -----%%
77
+ %% system MVA base
78
+ mpc.baseMVA = 100;
79
+
80
+ %% bus data
81
+ % bus_i type Pd Qd Gs Bs area Vm Va baseKV zone Vmax Vmin
82
+ mpc.bus = [
83
+ 1 1 97.6 44.2 0 0 2 1.0393836 -13.536602 345 1 1.06 0.94;
84
+ 2 1 0 0 0 0 2 1.0484941 -9.7852666 345 1 1.06 0.94;
85
+ 3 1 322 2.4 0 0 2 1.0307077 -12.276384 345 1 1.06 0.94;
86
+ 4 1 500 184 0 0 1 1.00446 -12.626734 345 1 1.06 0.94;
87
+ 5 1 0 0 0 0 1 1.0060063 -11.192339 345 1 1.06 0.94;
88
+ 6 1 0 0 0 0 1 1.0082256 -10.40833 345 1 1.06 0.94;
89
+ 7 1 233.8 84 0 0 1 0.99839728 -12.755626 345 1 1.06 0.94;
90
+ 8 1 522 176.6 0 0 1 0.99787232 -13.335844 345 1 1.06 0.94;
91
+ 9 1 6.5 -66.6 0 0 1 1.038332 -14.178442 345 1 1.06 0.94;
92
+ 10 1 0 0 0 0 1 1.0178431 -8.170875 345 1 1.06 0.94;
93
+ 11 1 0 0 0 0 1 1.0133858 -8.9369663 345 1 1.06 0.94;
94
+ 12 1 8.53 88 0 0 1 1.000815 -8.9988236 345 1 1.06 0.94;
95
+ 13 1 0 0 0 0 1 1.014923 -8.9299272 345 1 1.06 0.94;
96
+ 14 1 0 0 0 0 1 1.012319 -10.715295 345 1 1.06 0.94;
97
+ 15 1 320 153 0 0 3 1.0161854 -11.345399 345 1 1.06 0.94;
98
+ 16 1 329 32.3 0 0 3 1.0325203 -10.033348 345 1 1.06 0.94;
99
+ 17 1 0 0 0 0 2 1.0342365 -11.116436 345 1 1.06 0.94;
100
+ 18 1 158 30 0 0 2 1.0315726 -11.986168 345 1 1.06 0.94;
101
+ 19 1 0 0 0 0 3 1.0501068 -5.4100729 345 1 1.06 0.94;
102
+ 20 1 680 103 0 0 3 0.99101054 -6.8211783 345 1 1.06 0.94;
103
+ 21 1 274 115 0 0 3 1.0323192 -7.6287461 345 1 1.06 0.94;
104
+ 22 1 0 0 0 0 3 1.0501427 -3.1831199 345 1 1.06 0.94;
105
+ 23 1 247.5 84.6 0 0 3 1.0451451 -3.3812763 345 1 1.06 0.94;
106
+ 24 1 308.6 -92.2 0 0 3 1.038001 -9.9137585 345 1 1.06 0.94;
107
+ 25 1 224 47.2 0 0 2 1.0576827 -8.3692354 345 1 1.06 0.94;
108
+ 26 1 139 17 0 0 2 1.0525613 -9.4387696 345 1 1.06 0.94;
109
+ 27 1 281 75.5 0 0 2 1.0383449 -11.362152 345 1 1.06 0.94;
110
+ 28 1 206 27.6 0 0 3 1.0503737 -5.9283592 345 1 1.06 0.94;
111
+ 29 1 283.5 26.9 0 0 3 1.0501149 -3.1698741 345 1 1.06 0.94;
112
+ 30 2 0 0 0 0 2 1.0499 -7.3704746 345 1 1.06 0.94;
113
+ 31 3 9.2 4.6 0 0 1 0.982 0 345 1 1.06 0.94;
114
+ 32 2 0 0 0 0 1 0.9841 -0.1884374 345 1 1.06 0.94;
115
+ 33 2 0 0 0 0 3 0.9972 -0.19317445 345 1 1.06 0.94;
116
+ 34 2 0 0 0 0 3 1.0123 -1.631119 345 1 1.06 0.94;
117
+ 35 2 0 0 0 0 3 1.0494 1.7765069 345 1 1.06 0.94;
118
+ 36 2 0 0 0 0 3 1.0636 4.4684374 345 1 1.06 0.94;
119
+ 37 2 0 0 0 0 2 1.0275 -1.5828988 345 1 1.06 0.94;
120
+ 38 2 0 0 0 0 3 1.0265 3.8928177 345 1 1.06 0.94;
121
+ 39 2 1104 250 0 0 1 1.03 -14.535256 345 1 1.06 0.94;
122
+ ];
123
+
124
+ %% generator data
125
+ % 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
126
+ mpc.gen = [
127
+ 30 250 161.762 400 140 1.0499 100 1 1040 0 0 0 0 0 0 0 0 0 0 0 0;
128
+ 31 677.871 221.574 300 -100 0.982 100 1 646 0 0 0 0 0 0 0 0 0 0 0 0;
129
+ 32 650 206.965 300 150 0.9841 100 1 725 0 0 0 0 0 0 0 0 0 0 0 0;
130
+ 33 632 108.293 250 0 0.9972 100 1 652 0 0 0 0 0 0 0 0 0 0 0 0;
131
+ 34 508 166.688 167 0 1.0123 100 1 508 0 0 0 0 0 0 0 0 0 0 0 0;
132
+ 35 650 210.661 300 -100 1.0494 100 1 687 0 0 0 0 0 0 0 0 0 0 0 0;
133
+ 36 560 100.165 240 0 1.0636 100 1 580 0 0 0 0 0 0 0 0 0 0 0 0;
134
+ 37 540 -1.36945 250 0 1.0275 100 1 564 0 0 0 0 0 0 0 0 0 0 0 0;
135
+ 38 830 21.7327 300 -150 1.0265 100 1 865 0 0 0 0 0 0 0 0 0 0 0 0;
136
+ 39 1000 78.4674 300 -100 1.03 100 1 1100 0 0 0 0 0 0 0 0 0 0 0 0;
137
+ ];
138
+
139
+ %% branch data
140
+ % fbus tbus r x b rateA rateB rateC ratio angle status angmin angmax
141
+ mpc.branch = [
142
+ 1 2 0.0035 0.0411 0.6987 600 600 600 0 0 1 -360 360;
143
+ 1 39 0.001 0.025 0.75 1000 1000 1000 0 0 1 -360 360;
144
+ 2 3 0.0013 0.0151 0.2572 500 500 500 0 0 1 -360 360;
145
+ 2 25 0.007 0.0086 0.146 500 500 500 0 0 1 -360 360;
146
+ 2 30 0 0.0181 0 900 900 2500 1.025 0 1 -360 360;
147
+ 3 4 0.0013 0.0213 0.2214 500 500 500 0 0 1 -360 360;
148
+ 3 18 0.0011 0.0133 0.2138 500 500 500 0 0 1 -360 360;
149
+ 4 5 0.0008 0.0128 0.1342 600 600 600 0 0 1 -360 360;
150
+ 4 14 0.0008 0.0129 0.1382 500 500 500 0 0 1 -360 360;
151
+ 5 6 0.0002 0.0026 0.0434 1200 1200 1200 0 0 1 -360 360;
152
+ 5 8 0.0008 0.0112 0.1476 900 900 900 0 0 1 -360 360;
153
+ 6 7 0.0006 0.0092 0.113 900 900 900 0 0 1 -360 360;
154
+ 6 11 0.0007 0.0082 0.1389 480 480 480 0 0 1 -360 360;
155
+ 6 31 0 0.025 0 1800 1800 1800 1.07 0 1 -360 360;
156
+ 7 8 0.0004 0.0046 0.078 900 900 900 0 0 1 -360 360;
157
+ 8 9 0.0023 0.0363 0.3804 900 900 900 0 0 1 -360 360;
158
+ 9 39 0.001 0.025 1.2 900 900 900 0 0 1 -360 360;
159
+ 10 11 0.0004 0.0043 0.0729 600 600 600 0 0 1 -360 360;
160
+ 10 13 0.0004 0.0043 0.0729 600 600 600 0 0 1 -360 360;
161
+ 10 32 0 0.02 0 900 900 2500 1.07 0 1 -360 360;
162
+ 12 11 0.0016 0.0435 0 500 500 500 1.006 0 1 -360 360;
163
+ 12 13 0.0016 0.0435 0 500 500 500 1.006 0 1 -360 360;
164
+ 13 14 0.0009 0.0101 0.1723 600 600 600 0 0 1 -360 360;
165
+ 14 15 0.0018 0.0217 0.366 600 600 600 0 0 1 -360 360;
166
+ 15 16 0.0009 0.0094 0.171 600 600 600 0 0 1 -360 360;
167
+ 16 17 0.0007 0.0089 0.1342 600 600 600 0 0 1 -360 360;
168
+ 16 19 0.0016 0.0195 0.304 600 600 2500 0 0 1 -360 360;
169
+ 16 21 0.0008 0.0135 0.2548 600 600 600 0 0 1 -360 360;
170
+ 16 24 0.0003 0.0059 0.068 600 600 600 0 0 1 -360 360;
171
+ 17 18 0.0007 0.0082 0.1319 600 600 600 0 0 1 -360 360;
172
+ 17 27 0.0013 0.0173 0.3216 600 600 600 0 0 1 -360 360;
173
+ 19 20 0.0007 0.0138 0 900 900 2500 1.06 0 1 -360 360;
174
+ 19 33 0.0007 0.0142 0 900 900 2500 1.07 0 1 -360 360;
175
+ 20 34 0.0009 0.018 0 900 900 2500 1.009 0 1 -360 360;
176
+ 21 22 0.0008 0.014 0.2565 900 900 900 0 0 1 -360 360;
177
+ 22 23 0.0006 0.0096 0.1846 600 600 600 0 0 1 -360 360;
178
+ 22 35 0 0.0143 0 900 900 2500 1.025 0 1 -360 360;
179
+ 23 24 0.0022 0.035 0.361 600 600 600 0 0 1 -360 360;
180
+ 23 36 0.0005 0.0272 0 900 900 2500 1 0 1 -360 360;
181
+ 25 26 0.0032 0.0323 0.531 600 600 600 0 0 1 -360 360;
182
+ 25 37 0.0006 0.0232 0 900 900 2500 1.025 0 1 -360 360;
183
+ 26 27 0.0014 0.0147 0.2396 600 600 600 0 0 1 -360 360;
184
+ 26 28 0.0043 0.0474 0.7802 600 600 600 0 0 1 -360 360;
185
+ 26 29 0.0057 0.0625 1.029 600 600 600 0 0 1 -360 360;
186
+ 28 29 0.0014 0.0151 0.249 600 600 600 0 0 1 -360 360;
187
+ 29 38 0.0008 0.0156 0 1200 1200 2500 1.025 0 1 -360 360;
188
+ ];
189
+
190
+ %%----- OPF Data -----%%
191
+ %% generator cost data
192
+ % 1 startup shutdown n x1 y1 ... xn yn
193
+ % 2 startup shutdown n c(n-1) ... c0
194
+ mpc.gencost = [
195
+ 2 0 0 3 0.01 0.3 0.2;
196
+ 2 0 0 3 0.01 0.3 0.2;
197
+ 2 0 0 3 0.01 0.3 0.2;
198
+ 2 0 0 3 0.01 0.3 0.2;
199
+ 2 0 0 3 0.01 0.3 0.2;
200
+ 2 0 0 3 0.01 0.3 0.2;
201
+ 2 0 0 3 0.01 0.3 0.2;
202
+ 2 0 0 3 0.01 0.3 0.2;
203
+ 2 0 0 3 0.01 0.3 0.2;
204
+ 2 0 0 3 0.01 0.3 0.2;
205
+ ];
@@ -0,0 +1,62 @@
1
+ function mpc = case5
2
+ %CASE5 Power flow data for modified 5 bus, 5 gen case based on PJM 5-bus system
3
+ % Please see CASEFORMAT for details on the case file format.
4
+ %
5
+ % Based on data from ...
6
+ % F.Li and R.Bo, "Small Test Systems for Power System Economic Studies",
7
+ % Proceedings of the 2010 IEEE Power & Energy Society General Meeting
8
+
9
+ % Created by Rui Bo in 2006, modified in 2010, 2014.
10
+ % Distributed with permission.
11
+
12
+ % MATPOWER
13
+
14
+ %% MATPOWER Case Format : Version 2
15
+ mpc.version = '2';
16
+
17
+ %%----- Power Flow Data -----%%
18
+ %% system MVA base
19
+ mpc.baseMVA = 100;
20
+
21
+ %% bus data
22
+ % bus_i type Pd Qd Gs Bs area Vm Va baseKV zone Vmax Vmin
23
+ mpc.bus = [
24
+ 1 2 0 0 0 0 1 1 0 230 1 1.1 0.9;
25
+ 2 1 300 98.61 0 0 1 1 0 230 1 1.1 0.9;
26
+ 3 2 300 98.61 0 0 1 1 0 230 1 1.1 0.9;
27
+ 4 3 400 131.47 0 0 1 1 0 230 1 1.1 0.9;
28
+ 5 2 0 0 0 0 1 1 0 230 1 1.1 0.9;
29
+ ];
30
+
31
+ %% generator data
32
+ % 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
33
+ mpc.gen = [
34
+ 1 40 0 30 -30 1 100 1 40 0 0 0 0 0 0 0 0 0 0 0 0;
35
+ 1 170 0 127.5 -127.5 1 100 1 170 0 0 0 0 0 0 0 0 0 0 0 0;
36
+ 3 323.49 0 390 -390 1 100 1 520 0 0 0 0 0 0 0 0 0 0 0 0;
37
+ 4 0 0 150 -150 1 100 1 200 0 0 0 0 0 0 0 0 0 0 0 0;
38
+ 5 466.51 0 450 -450 1 100 1 600 0 0 0 0 0 0 0 0 0 0 0 0;
39
+ ];
40
+
41
+ %% branch data
42
+ % fbus tbus r x b rateA rateB rateC ratio angle status angmin angmax
43
+ mpc.branch = [
44
+ 1 2 0.00281 0.0281 0.00712 400 400 400 0 0 1 -360 360;
45
+ 1 4 0.00304 0.0304 0.00658 0 0 0 0 0 1 -360 360;
46
+ 1 5 0.00064 0.0064 0.03126 0 0 0 0 0 1 -360 360;
47
+ 2 3 0.00108 0.0108 0.01852 0 0 0 0 0 1 -360 360;
48
+ 3 4 0.00297 0.0297 0.00674 0 0 0 0 0 1 -360 360;
49
+ 4 5 0.00297 0.0297 0.00674 240 240 240 0 0 1 -360 360;
50
+ ];
51
+
52
+ %%----- OPF Data -----%%
53
+ %% generator cost data
54
+ % 1 startup shutdown n x1 y1 ... xn yn
55
+ % 2 startup shutdown n c(n-1) ... c0
56
+ mpc.gencost = [
57
+ 2 0 0 2 14 0;
58
+ 2 0 0 2 15 0;
59
+ 2 0 0 2 30 0;
60
+ 2 0 0 2 40 0;
61
+ 2 0 0 2 10 0;
62
+ ];