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,129 @@
1
+ function mpc = case14
2
+ %CASE14 Power flow data for IEEE 14 bus test case.
3
+ % Please see CASEFORMAT for details on the case file format.
4
+ % This data was converted from IEEE Common Data Format
5
+ % (ieee14cdf.txt) on 15-Oct-2014 by cdf2matp, rev. 2393
6
+ % See end of file for warnings generated during conversion.
7
+ %
8
+ % Converted from IEEE CDF file from:
9
+ % https://labs.ece.uw.edu/pstca/
10
+ %
11
+ % 08/19/93 UW ARCHIVE 100.0 1962 W IEEE 14 Bus Test Case
12
+
13
+ % MATPOWER
14
+
15
+ %% MATPOWER Case Format : Version 2
16
+ mpc.version = '2';
17
+
18
+ %%----- Power Flow Data -----%%
19
+ %% system MVA base
20
+ mpc.baseMVA = 100;
21
+
22
+ %% bus data
23
+ % bus_i type Pd Qd Gs Bs area Vm Va baseKV zone Vmax Vmin
24
+ mpc.bus = [
25
+ 1 3 0 0 0 0 1 1.06 0 0 1 1.06 0.94;
26
+ 2 2 21.7 12.7 0 0 1 1.045 -4.98 0 1 1.06 0.94;
27
+ 3 2 94.2 19 0 0 1 1.01 -12.72 0 1 1.06 0.94;
28
+ 4 1 47.8 -3.9 0 0 1 1.019 -10.33 0 1 1.06 0.94;
29
+ 5 1 7.6 1.6 0 0 1 1.02 -8.78 0 1 1.06 0.94;
30
+ 6 2 11.2 7.5 0 0 1 1.07 -14.22 0 1 1.06 0.94;
31
+ 7 1 0 0 0 0 1 1.062 -13.37 0 1 1.06 0.94;
32
+ 8 2 0 0 0 0 1 1.09 -13.36 0 1 1.06 0.94;
33
+ 9 1 29.5 16.6 0 19 1 1.056 -14.94 0 1 1.06 0.94;
34
+ 10 1 9 5.8 0 0 1 1.051 -15.1 0 1 1.06 0.94;
35
+ 11 1 3.5 1.8 0 0 1 1.057 -14.79 0 1 1.06 0.94;
36
+ 12 1 6.1 1.6 0 0 1 1.055 -15.07 0 1 1.06 0.94;
37
+ 13 1 13.5 5.8 0 0 1 1.05 -15.16 0 1 1.06 0.94;
38
+ 14 1 14.9 5 0 0 1 1.036 -16.04 0 1 1.06 0.94;
39
+ ];
40
+
41
+ %% generator data
42
+ % 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
43
+ mpc.gen = [
44
+ 1 232.4 -16.9 10 0 1.06 100 1 332.4 0 0 0 0 0 0 0 0 0 0 0 0;
45
+ 2 40 42.4 50 -40 1.045 100 1 140 0 0 0 0 0 0 0 0 0 0 0 0;
46
+ 3 0 23.4 40 0 1.01 100 1 100 0 0 0 0 0 0 0 0 0 0 0 0;
47
+ 6 0 12.2 24 -6 1.07 100 1 100 0 0 0 0 0 0 0 0 0 0 0 0;
48
+ 8 0 17.4 24 -6 1.09 100 1 100 0 0 0 0 0 0 0 0 0 0 0 0;
49
+ ];
50
+
51
+ %% branch data
52
+ % fbus tbus r x b rateA rateB rateC ratio angle status angmin angmax
53
+ mpc.branch = [
54
+ 1 2 0.01938 0.05917 0.0528 0 0 0 0 0 1 -360 360;
55
+ 1 5 0.05403 0.22304 0.0492 0 0 0 0 0 1 -360 360;
56
+ 2 3 0.04699 0.19797 0.0438 0 0 0 0 0 1 -360 360;
57
+ 2 4 0.05811 0.17632 0.034 0 0 0 0 0 1 -360 360;
58
+ 2 5 0.05695 0.17388 0.0346 0 0 0 0 0 1 -360 360;
59
+ 3 4 0.06701 0.17103 0.0128 0 0 0 0 0 1 -360 360;
60
+ 4 5 0.01335 0.04211 0 0 0 0 0 0 1 -360 360;
61
+ 4 7 0 0.20912 0 0 0 0 0.978 0 1 -360 360;
62
+ 4 9 0 0.55618 0 0 0 0 0.969 0 1 -360 360;
63
+ 5 6 0 0.25202 0 0 0 0 0.932 0 1 -360 360;
64
+ 6 11 0.09498 0.1989 0 0 0 0 0 0 1 -360 360;
65
+ 6 12 0.12291 0.25581 0 0 0 0 0 0 1 -360 360;
66
+ 6 13 0.06615 0.13027 0 0 0 0 0 0 1 -360 360;
67
+ 7 8 0 0.17615 0 0 0 0 0 0 1 -360 360;
68
+ 7 9 0 0.11001 0 0 0 0 0 0 1 -360 360;
69
+ 9 10 0.03181 0.0845 0 0 0 0 0 0 1 -360 360;
70
+ 9 14 0.12711 0.27038 0 0 0 0 0 0 1 -360 360;
71
+ 10 11 0.08205 0.19207 0 0 0 0 0 0 1 -360 360;
72
+ 12 13 0.22092 0.19988 0 0 0 0 0 0 1 -360 360;
73
+ 13 14 0.17093 0.34802 0 0 0 0 0 0 1 -360 360;
74
+ ];
75
+
76
+ %%----- OPF Data -----%%
77
+ %% generator cost data
78
+ % 1 startup shutdown n x1 y1 ... xn yn
79
+ % 2 startup shutdown n c(n-1) ... c0
80
+ mpc.gencost = [
81
+ 2 0 0 3 0.0430292599 20 0;
82
+ 2 0 0 3 0.25 20 0;
83
+ 2 0 0 3 0.01 40 0;
84
+ 2 0 0 3 0.01 40 0;
85
+ 2 0 0 3 0.01 40 0;
86
+ ];
87
+
88
+ %% bus names
89
+ mpc.bus_name = {
90
+ 'Bus 1 HV';
91
+ 'Bus 2 HV';
92
+ 'Bus 3 HV';
93
+ 'Bus 4 HV';
94
+ 'Bus 5 HV';
95
+ 'Bus 6 LV';
96
+ 'Bus 7 ZV';
97
+ 'Bus 8 TV';
98
+ 'Bus 9 LV';
99
+ 'Bus 10 LV';
100
+ 'Bus 11 LV';
101
+ 'Bus 12 LV';
102
+ 'Bus 13 LV';
103
+ 'Bus 14 LV';
104
+ };
105
+
106
+ % Warnings from cdf2matp conversion:
107
+ %
108
+ % ***** check the title format in the first line of the cdf file.
109
+ % ***** Qmax = Qmin at generator at bus 1 (Qmax set to Qmin + 10)
110
+ % ***** MVA limit of branch 1 - 2 not given, set to 0
111
+ % ***** MVA limit of branch 1 - 5 not given, set to 0
112
+ % ***** MVA limit of branch 2 - 3 not given, set to 0
113
+ % ***** MVA limit of branch 2 - 4 not given, set to 0
114
+ % ***** MVA limit of branch 2 - 5 not given, set to 0
115
+ % ***** MVA limit of branch 3 - 4 not given, set to 0
116
+ % ***** MVA limit of branch 4 - 5 not given, set to 0
117
+ % ***** MVA limit of branch 4 - 7 not given, set to 0
118
+ % ***** MVA limit of branch 4 - 9 not given, set to 0
119
+ % ***** MVA limit of branch 5 - 6 not given, set to 0
120
+ % ***** MVA limit of branch 6 - 11 not given, set to 0
121
+ % ***** MVA limit of branch 6 - 12 not given, set to 0
122
+ % ***** MVA limit of branch 6 - 13 not given, set to 0
123
+ % ***** MVA limit of branch 7 - 8 not given, set to 0
124
+ % ***** MVA limit of branch 7 - 9 not given, set to 0
125
+ % ***** MVA limit of branch 9 - 10 not given, set to 0
126
+ % ***** MVA limit of branch 9 - 14 not given, set to 0
127
+ % ***** MVA limit of branch 10 - 11 not given, set to 0
128
+ % ***** MVA limit of branch 12 - 13 not given, set to 0
129
+ % ***** MVA limit of branch 13 - 14 not given, set to 0