openstudio-analysis 0.4.2 → 0.4.3

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 (108) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +13 -0
  3. data/README.md +6 -1
  4. data/lib/openstudio-analysis.rb +4 -0
  5. data/lib/openstudio/analysis.rb +16 -0
  6. data/lib/openstudio/analysis/algorithm_attributes.rb +4 -0
  7. data/lib/openstudio/analysis/formulation.rb +115 -49
  8. data/lib/openstudio/analysis/server_api.rb +151 -12
  9. data/lib/openstudio/analysis/support_files.rb +21 -3
  10. data/lib/openstudio/analysis/translator/excel.rb +84 -299
  11. data/lib/openstudio/analysis/version.rb +1 -1
  12. data/lib/openstudio/analysis/workflow.rb +79 -33
  13. data/lib/openstudio/analysis/workflow_step.rb +165 -39
  14. data/lib/openstudio/helpers/string.rb +1 -1
  15. data/lib/openstudio/weather/epw.rb +193 -0
  16. data/spec/files/0_1_09_outputvars.xlsx +0 -0
  17. data/spec/files/0_1_09_setup_version_2.xlsx +0 -0
  18. data/spec/files/0_3_0_dynamic_uuids.xlsx +0 -0
  19. data/spec/files/0_3_0_outputs.xlsx +0 -0
  20. data/spec/files/0_3_3_short_names.xlsx +0 -0
  21. data/spec/files/0_3_5_multiple_measure_paths.xlsx +0 -0
  22. data/spec/files/0_3_7_unique_measure_names.xlsx +0 -0
  23. data/spec/files/0_3_7_worker_init_final.xlsx +0 -0
  24. data/spec/files/0_4_0_multiple_seeds.xlsx +0 -0
  25. data/spec/files/0_4_0_pivot_test.xlsx +0 -0
  26. data/spec/files/analysis/examples/medium_office_workflow.json +1298 -0
  27. data/spec/files/analysis/medium_office.json +666 -603
  28. data/spec/files/analysis/medium_office.zip +0 -0
  29. data/spec/files/analysis/name_goes_here.json +1752 -0
  30. data/spec/files/{export/analysis/small_seed.zip → analysis/name_goes_here.zip} +0 -0
  31. data/spec/files/export/analysis/0_1_09_outputvars.json +265 -230
  32. data/spec/files/export/analysis/0_1_09_outputvars.zip +0 -0
  33. data/spec/files/export/analysis/{71bebb0a-34b7-404b-b430-0ee7dab962ff.json → 0_3_0_dynamic_uuids.json} +684 -590
  34. data/spec/files/export/analysis/{67e3ba4a-2660-41b6-a7c5-d4457a4275c4.zip → 0_3_0_dynamic_uuids.zip} +0 -0
  35. data/spec/files/export/analysis/0_3_0_outputs.json +684 -590
  36. data/spec/files/export/analysis/0_3_0_outputs.zip +0 -0
  37. data/spec/files/export/analysis/{5b5264db-a31e-4bab-931b-94101bd23b80.json → 0_3_3_short_names.json} +697 -622
  38. data/spec/files/export/analysis/{1d8d62bb-f058-4c38-893b-8eaa7ceea254.zip → 0_3_3_short_names.zip} +0 -0
  39. data/spec/files/export/analysis/{1d8d62bb-f058-4c38-893b-8eaa7ceea254.json → 0_3_5_multiple_measure_paths.json} +717 -602
  40. data/spec/files/export/analysis/{5b5264db-a31e-4bab-931b-94101bd23b80.zip → 0_3_5_multiple_measure_paths.zip} +0 -0
  41. data/spec/files/export/analysis/{67e3ba4a-2660-41b6-a7c5-d4457a4275c4.json → 0_3_7_worker_init_final.json} +708 -613
  42. data/spec/files/export/analysis/{71bebb0a-34b7-404b-b430-0ee7dab962ff.zip → 0_3_7_worker_init_final.zip} +0 -0
  43. data/spec/files/export/analysis/{0_1_11_discrete_variables.json → example_analysis.json} +279 -214
  44. data/spec/files/export/analysis/{0_1_11_discrete_variables.zip → example_analysis.zip} +0 -0
  45. data/spec/files/export/analysis/{discrete_lhs_example.json → lhs_discrete_and_continuous_variables.json} +549 -436
  46. data/spec/files/export/analysis/{discrete_lhs_example.zip → lhs_discrete_and_continuous_variables.zip} +0 -0
  47. data/spec/files/export/analysis/lhs_discrete_and_continuous_variables_f4a73fc4-0514-4033-b54d-d1c58c77c724.json +1298 -0
  48. data/spec/files/export/analysis/lhs_discrete_and_continuous_variables_f4a73fc4-0514-4033-b54d-d1c58c77c724.zip +0 -0
  49. data/spec/files/export/analysis/lhs_discrete_and_continuous_variables_model_-_1.json +1298 -0
  50. data/spec/files/export/analysis/lhs_discrete_and_continuous_variables_model_-_1.zip +0 -0
  51. data/spec/files/export/analysis/lhs_discrete_and_continuous_variables_something_else.json +1298 -0
  52. data/spec/files/export/analysis/lhs_discrete_and_continuous_variables_something_else.zip +0 -0
  53. data/spec/files/export/analysis/pivot_test.json +1323 -0
  54. data/spec/files/export/analysis/pivot_test.zip +0 -0
  55. data/spec/files/export/analysis/{0_2_0_template_simpletest.json → simple_test.json} +201 -178
  56. data/spec/files/export/analysis/{0_2_0_template_simpletest.zip → simple_test.zip} +0 -0
  57. data/spec/files/export/analysis/{0_1_12_discrete_dynamic_columns.json → test_model.json} +189 -167
  58. data/spec/files/export/analysis/{0_1_12_discrete_dynamic_columns.zip → test_model.zip} +0 -0
  59. data/spec/files/export/weather/weather_out.epw +32 -0
  60. data/spec/files/export/weather/weather_out_appended.epw +56 -0
  61. data/spec/files/export/workflow/analysis.json +0 -1
  62. data/spec/files/measures/reduce_space_infiltration_by_percentage/measure.rb +5 -0
  63. data/spec/files/measures/reduce_space_infiltration_by_percentage/measure.xml +1 -0
  64. data/spec/files/measures/rotate_building/measure.rb +5 -0
  65. data/spec/files/measures/rotate_building/measure.xml +1 -0
  66. data/spec/files/measures/set_window_to_wall_ratio_by_facade/measure.rb +5 -0
  67. data/spec/files/measures/set_window_to_wall_ratio_by_facade/measure.xml +1 -0
  68. data/spec/files/partial_weather.epw +32 -32
  69. data/spec/openstudio/excel_spec.rb +103 -69
  70. data/spec/openstudio/formulation_spec.rb +28 -14
  71. data/spec/openstudio/support_files_spec.rb +2 -2
  72. data/spec/openstudio/weather_spec.rb +45 -0
  73. data/spec/openstudio/workflow_spec.rb +2 -1
  74. data/spec/openstudio/workflow_step_spec.rb +24 -22
  75. data/spec/reports/SPEC-OpenStudio-Analysis-Formulation.xml +59 -10
  76. data/spec/reports/SPEC-OpenStudio-Analysis-ServerApi-create-a-new-object-instance.xml +2 -2
  77. data/spec/reports/SPEC-OpenStudio-Analysis-ServerApi-test-not-localhost.xml +2 -2
  78. data/spec/reports/SPEC-OpenStudio-Analysis-ServerApi.xml +1 -1
  79. data/spec/reports/SPEC-OpenStudio-Analysis-SupportFiles.xml +6 -6
  80. data/spec/reports/SPEC-OpenStudio-Analysis-Translator-Excel-discrete-variables.xml +25 -7
  81. data/spec/reports/SPEC-OpenStudio-Analysis-Translator-Excel-discrete-with-dynamic-columns.xml +18 -5
  82. data/spec/reports/SPEC-OpenStudio-Analysis-Translator-Excel-no-variables-defined.xml +5 -8
  83. data/spec/reports/SPEC-OpenStudio-Analysis-Translator-Excel-proxy-setup-with-user.xml +2 -2
  84. data/spec/reports/SPEC-OpenStudio-Analysis-Translator-Excel-proxy-setup.xml +2 -2
  85. data/spec/reports/SPEC-OpenStudio-Analysis-Translator-Excel-setup-output-variables.xml +29 -12
  86. data/spec/reports/SPEC-OpenStudio-Analysis-Translator-Excel-setup-version-0-1-9.xml +5 -5
  87. data/spec/reports/SPEC-OpenStudio-Analysis-Translator-Excel-small-list-of-incomplete-variables.xml +2 -2
  88. data/spec/reports/SPEC-OpenStudio-Analysis-Translator-Excel-small-list-of-variables-should-not-validate.xml +2 -2
  89. data/spec/reports/SPEC-OpenStudio-Analysis-Translator-Excel-small-list-of-variables.xml +26 -9
  90. data/spec/reports/SPEC-OpenStudio-Analysis-Translator-Excel-small-list-with-with-repeated-variable-names.xml +2 -2
  91. data/spec/reports/SPEC-OpenStudio-Analysis-Translator-Excel-version-0-1-10.xml +3 -7
  92. data/spec/reports/SPEC-OpenStudio-Analysis-Translator-Excel-version-0-2-0-simple.xml +20 -9
  93. data/spec/reports/SPEC-OpenStudio-Analysis-Translator-Excel-version-0-2-0.xml +35 -10
  94. data/spec/reports/SPEC-OpenStudio-Analysis-Translator-Excel-version-0-3-0-dynamic-uuid-assignments.xml +47 -5
  95. data/spec/reports/SPEC-OpenStudio-Analysis-Translator-Excel-version-0-3-0-measure-existence-checks.xml +3 -6
  96. data/spec/reports/SPEC-OpenStudio-Analysis-Translator-Excel-version-0-3-0-objective-functions.xml +48 -10
  97. data/spec/reports/SPEC-OpenStudio-Analysis-Translator-Excel-version-0-3-3-and-short-display-names.xml +48 -6
  98. data/spec/reports/SPEC-OpenStudio-Analysis-Translator-Excel-version-0-3-5-and-measure-paths.xml +48 -8
  99. data/spec/reports/SPEC-OpenStudio-Analysis-Translator-Excel-version-0-3-7-and-worker-init-final-scripts.0.xml +55 -6
  100. data/spec/reports/SPEC-OpenStudio-Analysis-Translator-Excel-version-0-3-7-and-worker-init-final-scripts.xml +51 -8
  101. data/spec/reports/SPEC-OpenStudio-Analysis-Translator-Excel-version-0-4-0-multiple-seed-models.xml +165 -0
  102. data/spec/reports/SPEC-OpenStudio-Analysis-Translator-Excel-version-0-4-0-pivot-test.xml +60 -0
  103. data/spec/reports/SPEC-OpenStudio-Analysis-Translator-Excel.xml +1 -1
  104. data/spec/reports/SPEC-OpenStudio-Analysis-Workflow.xml +7 -7
  105. data/spec/reports/SPEC-OpenStudio-Analysis-WorkflowStep.xml +8 -14
  106. data/spec/reports/SPEC-OpenStudio-Weather-Epw.xml +9 -0
  107. metadata +97 -50
  108. data/spec/files/export/analysis/small_seed.json +0 -593
@@ -4,319 +4,320 @@
4
4
  "name": "simple_test",
5
5
  "output_variables": [
6
6
  {
7
- "display_name": "Total Natual Gas",
8
- "display_name_short": "Total Natual Gas",
9
- "metadata_id": null,
10
- "name": "total_natural_gas",
11
7
  "units": "MJ/m2",
12
8
  "objective_function": true,
13
9
  "objective_function_index": 0,
14
10
  "objective_function_target": 330.7,
11
+ "objective_function_group": "TRUE",
15
12
  "scaling_factor": null,
16
- "objective_function_group": "TRUE"
13
+ "display_name": "Total Natual Gas",
14
+ "display_name_short": "Total Natual Gas",
15
+ "metadata_id": null,
16
+ "name": "total_natural_gas"
17
17
  },
18
18
  {
19
- "display_name": "Total Electricity",
20
- "display_name_short": "Total Electricity",
21
- "metadata_id": null,
22
- "name": "total_electricity",
23
19
  "units": "MJ/m2",
24
20
  "objective_function": true,
25
21
  "objective_function_index": 1,
26
22
  "objective_function_target": 496.5,
23
+ "objective_function_group": "TRUE",
27
24
  "scaling_factor": null,
28
- "objective_function_group": "TRUE"
25
+ "display_name": "Total Electricity",
26
+ "display_name_short": "Total Electricity",
27
+ "metadata_id": null,
28
+ "name": "total_electricity"
29
29
  },
30
30
  {
31
- "display_name": "cooling_electricity_jan",
32
- "display_name_short": "cooling_electricity_jan",
33
- "metadata_id": null,
34
- "name": "cooling_electricity_jan",
35
31
  "units": "J",
36
32
  "objective_function": true,
37
33
  "objective_function_index": 2,
38
34
  "objective_function_target": 63597914341.3388,
35
+ "objective_function_group": "TRUE",
39
36
  "scaling_factor": 46320380000.0,
40
- "objective_function_group": "TRUE"
37
+ "display_name": "cooling_electricity_jan",
38
+ "display_name_short": "cooling_electricity_jan",
39
+ "metadata_id": null,
40
+ "name": "cooling_electricity_jan"
41
41
  },
42
42
  {
43
- "display_name": "cooling_electricity_feb",
44
- "display_name_short": "cooling_electricity_feb",
45
- "metadata_id": null,
46
- "name": "cooling_electricity_feb",
47
43
  "units": "J",
48
44
  "objective_function": true,
49
45
  "objective_function_index": 3,
50
46
  "objective_function_target": 58138465958.3439,
47
+ "objective_function_group": "TRUE",
51
48
  "scaling_factor": 46320380000.0,
52
- "objective_function_group": "TRUE"
49
+ "display_name": "cooling_electricity_feb",
50
+ "display_name_short": "cooling_electricity_feb",
51
+ "metadata_id": null,
52
+ "name": "cooling_electricity_feb"
53
53
  },
54
54
  {
55
- "display_name": "cooling_electricity_mar",
56
- "display_name_short": "cooling_electricity_mar",
57
- "metadata_id": null,
58
- "name": "cooling_electricity_mar",
59
55
  "units": "J",
60
56
  "objective_function": true,
61
57
  "objective_function_index": 4,
62
58
  "objective_function_target": 301531761648.05,
59
+ "objective_function_group": "TRUE",
63
60
  "scaling_factor": 46320380000.0,
64
- "objective_function_group": "TRUE"
61
+ "display_name": "cooling_electricity_mar",
62
+ "display_name_short": "cooling_electricity_mar",
63
+ "metadata_id": null,
64
+ "name": "cooling_electricity_mar"
65
65
  },
66
66
  {
67
- "display_name": "cooling_electricity_apr",
68
- "display_name_short": "cooling_electricity_apr",
69
- "metadata_id": null,
70
- "name": "cooling_electricity_apr",
71
67
  "units": "J",
72
68
  "objective_function": true,
73
69
  "objective_function_index": 5,
74
70
  "objective_function_target": 336163175378.778,
71
+ "objective_function_group": "TRUE",
75
72
  "scaling_factor": 46320380000.0,
76
- "objective_function_group": "TRUE"
73
+ "display_name": "cooling_electricity_apr",
74
+ "display_name_short": "cooling_electricity_apr",
75
+ "metadata_id": null,
76
+ "name": "cooling_electricity_apr"
77
77
  },
78
78
  {
79
- "display_name": "cooling_electricity_may",
80
- "display_name_short": "cooling_electricity_may",
81
- "metadata_id": null,
82
- "name": "cooling_electricity_may",
83
79
  "units": "J",
84
80
  "objective_function": true,
85
81
  "objective_function_index": 6,
86
82
  "objective_function_target": 1412749721236.32,
83
+ "objective_function_group": "TRUE",
87
84
  "scaling_factor": 46320380000.0,
88
- "objective_function_group": "TRUE"
85
+ "display_name": "cooling_electricity_may",
86
+ "display_name_short": "cooling_electricity_may",
87
+ "metadata_id": null,
88
+ "name": "cooling_electricity_may"
89
89
  },
90
90
  {
91
- "display_name": "cooling_electricity_jun",
92
- "display_name_short": "cooling_electricity_jun",
93
- "metadata_id": null,
94
- "name": "cooling_electricity_jun",
95
91
  "units": "J",
96
92
  "objective_function": true,
97
93
  "objective_function_index": 7,
98
94
  "objective_function_target": 2327741408781.58,
95
+ "objective_function_group": "TRUE",
99
96
  "scaling_factor": 46320380000.0,
100
- "objective_function_group": "TRUE"
97
+ "display_name": "cooling_electricity_jun",
98
+ "display_name_short": "cooling_electricity_jun",
99
+ "metadata_id": null,
100
+ "name": "cooling_electricity_jun"
101
101
  },
102
102
  {
103
- "display_name": "cooling_electricity_jul",
104
- "display_name_short": "cooling_electricity_jul",
105
- "metadata_id": null,
106
- "name": "cooling_electricity_jul",
107
103
  "units": "J",
108
104
  "objective_function": true,
109
105
  "objective_function_index": 8,
110
106
  "objective_function_target": 2402590637505.39,
107
+ "objective_function_group": "TRUE",
111
108
  "scaling_factor": 46320380000.0,
112
- "objective_function_group": "TRUE"
109
+ "display_name": "cooling_electricity_jul",
110
+ "display_name_short": "cooling_electricity_jul",
111
+ "metadata_id": null,
112
+ "name": "cooling_electricity_jul"
113
113
  },
114
114
  {
115
- "display_name": "cooling_electricity_aug",
116
- "display_name_short": "cooling_electricity_aug",
117
- "metadata_id": null,
118
- "name": "cooling_electricity_aug",
119
115
  "units": "J",
120
116
  "objective_function": true,
121
117
  "objective_function_index": 9,
122
118
  "objective_function_target": 2472656245279.37,
119
+ "objective_function_group": "TRUE",
123
120
  "scaling_factor": 46320380000.0,
124
- "objective_function_group": "TRUE"
121
+ "display_name": "cooling_electricity_aug",
122
+ "display_name_short": "cooling_electricity_aug",
123
+ "metadata_id": null,
124
+ "name": "cooling_electricity_aug"
125
125
  },
126
126
  {
127
- "display_name": "cooling_electricity_sep",
128
- "display_name_short": "cooling_electricity_sep",
129
- "metadata_id": null,
130
- "name": "cooling_electricity_sep",
131
127
  "units": "J",
132
128
  "objective_function": true,
133
129
  "objective_function_index": 10,
134
130
  "objective_function_target": 1807432185051.14,
131
+ "objective_function_group": "TRUE",
135
132
  "scaling_factor": 46320380000.0,
136
- "objective_function_group": "TRUE"
133
+ "display_name": "cooling_electricity_sep",
134
+ "display_name_short": "cooling_electricity_sep",
135
+ "metadata_id": null,
136
+ "name": "cooling_electricity_sep"
137
137
  },
138
138
  {
139
- "display_name": "cooling_electricity_oct",
140
- "display_name_short": "cooling_electricity_oct",
141
- "metadata_id": null,
142
- "name": "cooling_electricity_oct",
143
139
  "units": "J",
144
140
  "objective_function": true,
145
141
  "objective_function_index": 11,
146
142
  "objective_function_target": 619615878181.616,
143
+ "objective_function_group": "TRUE",
147
144
  "scaling_factor": 46320380000.0,
148
- "objective_function_group": "TRUE"
145
+ "display_name": "cooling_electricity_oct",
146
+ "display_name_short": "cooling_electricity_oct",
147
+ "metadata_id": null,
148
+ "name": "cooling_electricity_oct"
149
149
  },
150
150
  {
151
- "display_name": "cooling_electricity_nov",
152
- "display_name_short": "cooling_electricity_nov",
153
- "metadata_id": null,
154
- "name": "cooling_electricity_nov",
155
151
  "units": "J",
156
152
  "objective_function": true,
157
153
  "objective_function_index": 12,
158
154
  "objective_function_target": 117109844324.095,
155
+ "objective_function_group": "TRUE",
159
156
  "scaling_factor": 46320380000.0,
160
- "objective_function_group": "TRUE"
157
+ "display_name": "cooling_electricity_nov",
158
+ "display_name_short": "cooling_electricity_nov",
159
+ "metadata_id": null,
160
+ "name": "cooling_electricity_nov"
161
161
  },
162
162
  {
163
- "display_name": "cooling_electricity_dec",
164
- "display_name_short": "cooling_electricity_dec",
165
- "metadata_id": null,
166
- "name": "cooling_electricity_dec",
167
163
  "units": "J",
168
164
  "objective_function": true,
169
165
  "objective_function_index": 13,
170
166
  "objective_function_target": 103360013175.794,
167
+ "objective_function_group": "TRUE",
171
168
  "scaling_factor": 46320380000.0,
172
- "objective_function_group": "TRUE"
169
+ "display_name": "cooling_electricity_dec",
170
+ "display_name_short": "cooling_electricity_dec",
171
+ "metadata_id": null,
172
+ "name": "cooling_electricity_dec"
173
173
  },
174
174
  {
175
- "display_name": "heating_gas_jan",
176
- "display_name_short": "heating_gas_jan",
177
- "metadata_id": null,
178
- "name": "heating_gas_jan",
179
175
  "units": "J",
180
176
  "objective_function": true,
181
177
  "objective_function_index": 14,
182
178
  "objective_function_target": 2799558466140.68,
179
+ "objective_function_group": "TRUE",
183
180
  "scaling_factor": 46320380000.0,
184
- "objective_function_group": "TRUE"
181
+ "display_name": "heating_gas_jan",
182
+ "display_name_short": "heating_gas_jan",
183
+ "metadata_id": null,
184
+ "name": "heating_gas_jan"
185
185
  },
186
186
  {
187
- "display_name": "heating_gas_feb",
188
- "display_name_short": "heating_gas_feb",
189
- "metadata_id": null,
190
- "name": "heating_gas_feb",
191
187
  "units": "J",
192
188
  "objective_function": true,
193
189
  "objective_function_index": 15,
194
190
  "objective_function_target": 2663349812763.18,
191
+ "objective_function_group": "TRUE",
195
192
  "scaling_factor": 46320380000.0,
196
- "objective_function_group": "TRUE"
193
+ "display_name": "heating_gas_feb",
194
+ "display_name_short": "heating_gas_feb",
195
+ "metadata_id": null,
196
+ "name": "heating_gas_feb"
197
197
  },
198
198
  {
199
- "display_name": "heating_gas_mar",
200
- "display_name_short": "heating_gas_mar",
201
- "metadata_id": null,
202
- "name": "heating_gas_mar",
203
199
  "units": "J",
204
200
  "objective_function": true,
205
201
  "objective_function_index": 16,
206
202
  "objective_function_target": 1576136833664.73,
203
+ "objective_function_group": "TRUE",
207
204
  "scaling_factor": 46320380000.0,
208
- "objective_function_group": "TRUE"
205
+ "display_name": "heating_gas_mar",
206
+ "display_name_short": "heating_gas_mar",
207
+ "metadata_id": null,
208
+ "name": "heating_gas_mar"
209
209
  },
210
210
  {
211
- "display_name": "heating_gas_apr",
212
- "display_name_short": "heating_gas_apr",
213
- "metadata_id": null,
214
- "name": "heating_gas_apr",
215
211
  "units": "J",
216
212
  "objective_function": true,
217
213
  "objective_function_index": 17,
218
214
  "objective_function_target": 1752794439290.69,
215
+ "objective_function_group": "TRUE",
219
216
  "scaling_factor": 46320380000.0,
220
- "objective_function_group": "TRUE"
217
+ "display_name": "heating_gas_apr",
218
+ "display_name_short": "heating_gas_apr",
219
+ "metadata_id": null,
220
+ "name": "heating_gas_apr"
221
221
  },
222
222
  {
223
- "display_name": "heating_gas_may",
224
- "display_name_short": "heating_gas_may",
225
- "metadata_id": null,
226
- "name": "heating_gas_may",
227
223
  "units": "J",
228
224
  "objective_function": true,
229
225
  "objective_function_index": 18,
230
226
  "objective_function_target": 375145279804.892,
227
+ "objective_function_group": "TRUE",
231
228
  "scaling_factor": 46320380000.0,
232
- "objective_function_group": "TRUE"
229
+ "display_name": "heating_gas_may",
230
+ "display_name_short": "heating_gas_may",
231
+ "metadata_id": null,
232
+ "name": "heating_gas_may"
233
233
  },
234
234
  {
235
- "display_name": "heating_gas_jun",
236
- "display_name_short": "heating_gas_jun",
237
- "metadata_id": null,
238
- "name": "heating_gas_jun",
239
235
  "units": "J",
240
236
  "objective_function": true,
241
237
  "objective_function_index": 19,
242
238
  "objective_function_target": 32970706746.2053,
239
+ "objective_function_group": "TRUE",
243
240
  "scaling_factor": 46320380000.0,
244
- "objective_function_group": "TRUE"
241
+ "display_name": "heating_gas_jun",
242
+ "display_name_short": "heating_gas_jun",
243
+ "metadata_id": null,
244
+ "name": "heating_gas_jun"
245
245
  },
246
246
  {
247
- "display_name": "heating_gas_jul",
248
- "display_name_short": "heating_gas_jul",
249
- "metadata_id": null,
250
- "name": "heating_gas_jul",
251
247
  "units": "J",
252
248
  "objective_function": true,
253
249
  "objective_function_index": 20,
254
250
  "objective_function_target": 50096876832.5083,
251
+ "objective_function_group": "TRUE",
255
252
  "scaling_factor": 46320380000.0,
256
- "objective_function_group": "TRUE"
253
+ "display_name": "heating_gas_jul",
254
+ "display_name_short": "heating_gas_jul",
255
+ "metadata_id": null,
256
+ "name": "heating_gas_jul"
257
257
  },
258
258
  {
259
- "display_name": "heating_gas_aug",
260
- "display_name_short": "heating_gas_aug",
261
- "metadata_id": null,
262
- "name": "heating_gas_aug",
263
259
  "units": "J",
264
260
  "objective_function": true,
265
261
  "objective_function_index": 21,
266
262
  "objective_function_target": 32660740137.6019,
263
+ "objective_function_group": "TRUE",
267
264
  "scaling_factor": 46320380000.0,
268
- "objective_function_group": "TRUE"
265
+ "display_name": "heating_gas_aug",
266
+ "display_name_short": "heating_gas_aug",
267
+ "metadata_id": null,
268
+ "name": "heating_gas_aug"
269
269
  },
270
270
  {
271
- "display_name": "heating_gas_sep",
272
- "display_name_short": "heating_gas_sep",
273
- "metadata_id": null,
274
- "name": "heating_gas_sep",
275
271
  "units": "J",
276
272
  "objective_function": true,
277
273
  "objective_function_index": 22,
278
274
  "objective_function_target": 144097879467.636,
275
+ "objective_function_group": "TRUE",
279
276
  "scaling_factor": 46320380000.0,
280
- "objective_function_group": "TRUE"
277
+ "display_name": "heating_gas_sep",
278
+ "display_name_short": "heating_gas_sep",
279
+ "metadata_id": null,
280
+ "name": "heating_gas_sep"
281
281
  },
282
282
  {
283
- "display_name": "heating_gas_oct",
284
- "display_name_short": "heating_gas_oct",
285
- "metadata_id": null,
286
- "name": "heating_gas_oct",
287
283
  "units": "J",
288
284
  "objective_function": true,
289
285
  "objective_function_index": 23,
290
286
  "objective_function_target": 970975709027.067,
287
+ "objective_function_group": "TRUE",
291
288
  "scaling_factor": 46320380000.0,
292
- "objective_function_group": "TRUE"
289
+ "display_name": "heating_gas_oct",
290
+ "display_name_short": "heating_gas_oct",
291
+ "metadata_id": null,
292
+ "name": "heating_gas_oct"
293
293
  },
294
294
  {
295
- "display_name": "heating_gas_nov",
296
- "display_name_short": "heating_gas_nov",
297
- "metadata_id": null,
298
- "name": "heating_gas_nov",
299
295
  "units": "J",
300
296
  "objective_function": true,
301
297
  "objective_function_index": 24,
302
298
  "objective_function_target": 2261115778226.24,
299
+ "objective_function_group": "TRUE",
303
300
  "scaling_factor": 46320380000.0,
304
- "objective_function_group": "TRUE"
301
+ "display_name": "heating_gas_nov",
302
+ "display_name_short": "heating_gas_nov",
303
+ "metadata_id": null,
304
+ "name": "heating_gas_nov"
305
305
  },
306
306
  {
307
- "display_name": "heating_gas_dec",
308
- "display_name_short": "heating_gas_dec",
309
- "metadata_id": null,
310
- "name": "heating_gas_dec",
311
307
  "units": "J",
312
308
  "objective_function": true,
313
309
  "objective_function_index": 25,
314
310
  "objective_function_target": 2657735386128.84,
311
+ "objective_function_group": "TRUE",
315
312
  "scaling_factor": 46320380000.0,
316
- "objective_function_group": "TRUE"
313
+ "display_name": "heating_gas_dec",
314
+ "display_name_short": "heating_gas_dec",
315
+ "metadata_id": null,
316
+ "name": "heating_gas_dec"
317
317
  }
318
318
  ],
319
319
  "problem": {
320
+ "analysis_type": "lhs",
320
321
  "algorithm": {
321
322
  "sample_method": "all_variables",
322
323
  "number_of_samples": 4,
@@ -355,64 +356,77 @@
355
356
  },
356
357
  "workflow": [
357
358
  {
359
+ "name": "baseline",
360
+ "display_name": "Baseline",
361
+ "measure_type": null,
358
362
  "measure_definition_class_name": "Baseline",
359
363
  "measure_definition_directory": "./measures/ExampleMeasure",
364
+ "measure_definition_directory_local": "/Users/nlong/working/OpenStudio-analysis-gem/spec/files/measures/ExampleMeasure",
360
365
  "measure_definition_display_name": "Baseline",
361
- "measure_definition_uuid": "b66850e0-dbb3-49b3-9b6a-6abb1cedb6a6",
362
- "measure_definition_version_uuid": "8ad49494-ae6b-479c-b468-03b25301cbfb",
363
- "measure_type": "",
366
+ "measure_definition_name": "baseline",
367
+ "measure_definition_name_xml": null,
368
+ "measure_definition_uuid": "17a7cdd6-15ce-4123-a988-a41cd41070d3",
369
+ "measure_definition_version_uuid": "6e35b376-5876-47cc-a35d-a2972d264074",
364
370
  "arguments": [
365
371
  {
366
372
  "display_name": "Baseline",
367
373
  "display_name_short": "Baseline",
368
374
  "name": "Baseline",
369
- "value": false,
370
- "value_type": "bool"
375
+ "value_type": "bool",
376
+ "default_value": false,
377
+ "value": false
371
378
  }
372
379
  ],
373
- "display_name": "Baseline",
374
- "name": "baseline",
375
380
  "variables": [
376
381
 
377
382
  ],
378
- "workflow_index": 0,
379
- "workflow_step_type": "Measure",
380
- "uuid": "e3d016e5-e478-4e3a-b25b-056acc6b23c3",
381
- "version_uuid": "ac4f8fb9-6391-44f5-9ef7-b24470396142"
383
+ "workflow_index": 0
382
384
  },
383
385
  {
386
+ "name": "adjust_thermostat_setpoints_by_degrees",
387
+ "display_name": "Adjust Thermostat Setpoints by Degrees",
388
+ "measure_type": "RubyMeasure",
384
389
  "measure_definition_class_name": "AdjustThermostatSetpointsByDegrees",
385
390
  "measure_definition_directory": "./measures/ExampleMeasure",
386
- "measure_definition_display_name": "AdjustThermostatSetpointsByDegrees",
387
- "measure_definition_uuid": "71186447-8d19-4d47-b2ad-85df90e75499",
388
- "measure_definition_version_uuid": "17ab5b24-d9e2-45c3-9f14-aa788f6f4f9f",
389
- "measure_type": "RubyMeasure",
391
+ "measure_definition_directory_local": "/Users/nlong/working/OpenStudio-analysis-gem/spec/files/measures/ExampleMeasure",
392
+ "measure_definition_display_name": "Adjust Thermostat Setpoints by Degrees",
393
+ "measure_definition_name": "adjust_thermostat_setpoints_by_degrees",
394
+ "measure_definition_name_xml": null,
395
+ "measure_definition_uuid": "fb9aa362-6460-46ed-9602-505e93541cd7",
396
+ "measure_definition_version_uuid": "07d30ecc-3ac3-4414-baa2-67b1fcd0b44e",
390
397
  "arguments": [
391
398
  {
392
399
  "display_name": "Alter Design Day Thermostats?",
393
400
  "display_name_short": "Alter Design Day Thermostats?",
394
401
  "name": "alter_design_days",
395
- "value": false,
396
- "value_type": "bool"
402
+ "value_type": "bool",
403
+ "default_value": false,
404
+ "value": false
397
405
  }
398
406
  ],
399
- "display_name": "Adjust Thermostat Setpoints by Degrees",
400
- "name": "adjust_thermostat_setpoints_by_degrees",
401
407
  "variables": [
402
408
  {
403
409
  "argument": {
404
410
  "display_name": "Degrees Fahrenheit to Adjust Cooling Setpoint By.",
405
411
  "display_name_short": "Degrees Fahrenheit to Adjust Cooling Setpoint By.",
406
412
  "name": "cooling_adjustment",
407
- "value_type": "double"
413
+ "value_type": "double",
414
+ "default_value": 0.0,
415
+ "value": 0.0
408
416
  },
409
417
  "display_name": "Degrees Fahrenheit to Adjust Cooling Setpoint By.",
410
418
  "display_name_short": "Degrees Fahrenheit to Adjust Cooling Setpoint By.",
411
- "maximum": 2.0,
419
+ "variable_type": "variable",
420
+ "units": null,
412
421
  "minimum": -2.0,
413
- "relation_to_output": "",
422
+ "maximum": 2.0,
423
+ "relation_to_output": null,
414
424
  "static_value": 0.0,
425
+ "uuid": "f3df9b54-18f5-4150-826b-14b9f08d9ec6",
426
+ "version_uuid": "9005ba9f-a1c8-4c8d-b24a-8fb0031c15b2",
427
+ "variable": true,
415
428
  "uncertainty_description": {
429
+ "type": "discrete_uncertain",
416
430
  "attributes": [
417
431
  {
418
432
  "name": "discrete",
@@ -442,31 +456,41 @@
442
456
  {
443
457
  "name": "modes",
444
458
  "value": 0.0
459
+ },
460
+ {
461
+ "name": "delta_x",
462
+ "value": null
463
+ },
464
+ {
465
+ "name": "stddev",
466
+ "value": null
445
467
  }
446
- ],
447
- "type": "discrete_uncertain"
468
+ ]
448
469
  },
449
- "units": "",
450
- "value_type": "double",
451
- "variable": true,
452
- "variable_type": "RubyContinuousVariable",
453
- "uuid": "a3a7f97d-5e29-46d4-91a8-ad021e076d41",
454
- "version_uuid": "85f2d251-4e7e-4f94-899d-31a8fd8a2a3a"
470
+ "workflow_index": 0
455
471
  },
456
472
  {
457
473
  "argument": {
458
474
  "display_name": "Degrees Fahrenheit to Adjust heating Setpoint By.",
459
475
  "display_name_short": "Degrees Fahrenheit to Adjust heating Setpoint By.",
460
476
  "name": "heating_adjustment",
461
- "value_type": "double"
477
+ "value_type": "double",
478
+ "default_value": 0.0,
479
+ "value": 0.0
462
480
  },
463
481
  "display_name": "Degrees Fahrenheit to Adjust heating Setpoint By.",
464
482
  "display_name_short": "Degrees Fahrenheit to Adjust heating Setpoint By.",
465
- "maximum": 2.0,
483
+ "variable_type": "variable",
484
+ "units": null,
466
485
  "minimum": -2.0,
467
- "relation_to_output": "",
486
+ "maximum": 2.0,
487
+ "relation_to_output": null,
468
488
  "static_value": 0.0,
489
+ "uuid": "a9d6882d-c7d9-49c5-8f64-0e4e6f1f5d03",
490
+ "version_uuid": "a015772b-1c1f-43d5-a913-ad19c75d6f4d",
491
+ "variable": true,
469
492
  "uncertainty_description": {
493
+ "type": "discrete_uncertain",
470
494
  "attributes": [
471
495
  {
472
496
  "name": "discrete",
@@ -496,25 +520,23 @@
496
520
  {
497
521
  "name": "modes",
498
522
  "value": 0.0
523
+ },
524
+ {
525
+ "name": "delta_x",
526
+ "value": null
527
+ },
528
+ {
529
+ "name": "stddev",
530
+ "value": null
499
531
  }
500
- ],
501
- "type": "discrete_uncertain"
532
+ ]
502
533
  },
503
- "units": "",
504
- "value_type": "double",
505
- "variable": true,
506
- "variable_type": "RubyContinuousVariable",
507
- "uuid": "5516da29-f240-47cf-bc85-2dbb8fae0b5c",
508
- "version_uuid": "5197d898-d274-47be-9bad-8441e1d4a766"
534
+ "workflow_index": 1
509
535
  }
510
536
  ],
511
- "workflow_index": 1,
512
- "workflow_step_type": "Measure",
513
- "uuid": "02e8093a-b5bb-4f67-b8c8-dba0893ef4ef",
514
- "version_uuid": "70f21a8b-7632-4e30-a1bf-e3e4a5d858b4"
537
+ "workflow_index": 1
515
538
  }
516
- ],
517
- "analysis_type": "lhs"
539
+ ]
518
540
  },
519
541
  "seed": {
520
542
  "file_type": "OSM",
@@ -523,6 +545,7 @@
523
545
  "weather_file": {
524
546
  "file_type": "EPW",
525
547
  "path": "./weather/partial_weather.epw"
526
- }
548
+ },
549
+ "file_format_version": 1
527
550
  }
528
551
  }