openstudio-analysis 0.1.15 → 0.1.16

Sign up to get free protection for your applications and to get access to all the features.
Files changed (37) hide show
  1. checksums.yaml +4 -4
  2. data/lib/openstudio/analysis/translator/excel.rb +2 -1
  3. data/lib/openstudio/analysis/version.rb +1 -1
  4. data/spec/files/analysis/medium_office.json +192 -192
  5. data/spec/files/analysis/medium_office.zip +0 -0
  6. data/spec/files/export/analysis/Kats model v2.json +461 -0
  7. data/spec/files/export/analysis/Kats model v2.zip +0 -0
  8. data/spec/files/export/analysis/discrete_dynamic_seed.json +461 -0
  9. data/spec/files/export/analysis/discrete_dynamic_seed.zip +0 -0
  10. data/spec/files/export/analysis/discrete_seed.json +736 -0
  11. data/spec/files/export/analysis/discrete_seed.zip +0 -0
  12. data/spec/files/export/analysis/output_vars.json +707 -0
  13. data/spec/files/export/analysis/output_vars.zip +0 -0
  14. data/spec/files/export/analysis/small_seed.json +665 -0
  15. data/spec/files/export/analysis/small_seed.zip +0 -0
  16. data/spec/files/template_0_2_0_simpletest.xlsx +0 -0
  17. data/spec/files/{~$template_0_2_0.xlsx → ~$template_0_2_0_simpletest.xlsx} +0 -0
  18. data/spec/openstudio/analysis/translator/excel_spec.rb +316 -289
  19. data/spec/reports/SPEC-OpenStudio-Analysis-ServerApi-create-a-new-localhost-instance.64.xml +9 -0
  20. data/spec/reports/SPEC-OpenStudio-Analysis-ServerApi-test-not-localhost.64.xml +9 -0
  21. data/spec/reports/SPEC-OpenStudio-Analysis-ServerApi.64.xml +7 -0
  22. data/spec/reports/SPEC-OpenStudio-Analysis-Translator-Excel-discrete-variables.22.xml +18 -0
  23. data/spec/reports/SPEC-OpenStudio-Analysis-Translator-Excel-discrete-with-dynamic-columns.6.xml +17 -0
  24. data/spec/reports/SPEC-OpenStudio-Analysis-Translator-Excel-no-variables-defined.64.xml +20 -0
  25. data/spec/reports/SPEC-OpenStudio-Analysis-Translator-Excel-proxy-setup-with-user.30.xml +9 -0
  26. data/spec/reports/SPEC-OpenStudio-Analysis-Translator-Excel-proxy-setup.36.xml +9 -0
  27. data/spec/reports/SPEC-OpenStudio-Analysis-Translator-Excel-setup-output-variables.16.xml +36 -0
  28. data/spec/reports/SPEC-OpenStudio-Analysis-Translator-Excel-setup-version-0-1-9.13.xml +21 -0
  29. data/spec/reports/SPEC-OpenStudio-Analysis-Translator-Excel-small-list-of-incomplete-variables.64.xml +9 -0
  30. data/spec/reports/SPEC-OpenStudio-Analysis-Translator-Excel-small-list-of-variables-should-not-validate.64.xml +9 -0
  31. data/spec/reports/SPEC-OpenStudio-Analysis-Translator-Excel-small-list-of-variables.64.xml +23 -0
  32. data/spec/reports/SPEC-OpenStudio-Analysis-Translator-Excel-small-list-with-with-repeated-variable-names.64.xml +9 -0
  33. data/spec/reports/SPEC-OpenStudio-Analysis-Translator-Excel-version-0-1-10.13.xml +13 -0
  34. data/spec/reports/SPEC-OpenStudio-Analysis-Translator-Excel-version-0-2-0.xml +32 -0
  35. data/spec/reports/SPEC-OpenStudio-Analysis-Translator-Excel.64.xml +7 -0
  36. metadata +60 -6
  37. data/spec/files/~$template_input_0.1.10.xlsx +0 -0
Binary file
@@ -0,0 +1,461 @@
1
+ {
2
+ "analysis": {
3
+ "display_name": "simple_test",
4
+ "name": "simple_test",
5
+ "output_variables": [
6
+ {
7
+ "display_name": "Total Natual Gas",
8
+ "name": "total_natural_gas",
9
+ "units": "MJ/m2",
10
+ "objective_function": true,
11
+ "objective_function_index": 0,
12
+ "objective_function_target": 330.7,
13
+ "scaling_factor": null,
14
+ "objective_function_group": 1
15
+ },
16
+ {
17
+ "display_name": "Total Electricity",
18
+ "name": "total_electricity",
19
+ "units": "MJ/m2",
20
+ "objective_function": true,
21
+ "objective_function_index": 1,
22
+ "objective_function_target": 496.5,
23
+ "scaling_factor": null,
24
+ "objective_function_group": 2
25
+ },
26
+ {
27
+ "display_name": "cooling_electricity_jan",
28
+ "name": "cooling_electricity_jan",
29
+ "units": "J",
30
+ "objective_function": true,
31
+ "objective_function_index": 2,
32
+ "objective_function_target": 63597914341.3388,
33
+ "scaling_factor": 46320380000.0,
34
+ "objective_function_group": 3
35
+ },
36
+ {
37
+ "display_name": "cooling_electricity_feb",
38
+ "name": "cooling_electricity_feb",
39
+ "units": "J",
40
+ "objective_function": true,
41
+ "objective_function_index": 3,
42
+ "objective_function_target": 58138465958.3439,
43
+ "scaling_factor": 46320380000.0,
44
+ "objective_function_group": 4
45
+ },
46
+ {
47
+ "display_name": "cooling_electricity_mar",
48
+ "name": "cooling_electricity_mar",
49
+ "units": "J",
50
+ "objective_function": true,
51
+ "objective_function_index": 4,
52
+ "objective_function_target": 301531761648.05,
53
+ "scaling_factor": 46320380000.0,
54
+ "objective_function_group": 5
55
+ },
56
+ {
57
+ "display_name": "cooling_electricity_apr",
58
+ "name": "cooling_electricity_apr",
59
+ "units": "J",
60
+ "objective_function": true,
61
+ "objective_function_index": 5,
62
+ "objective_function_target": 336163175378.778,
63
+ "scaling_factor": 46320380000.0,
64
+ "objective_function_group": 6
65
+ },
66
+ {
67
+ "display_name": "cooling_electricity_may",
68
+ "name": "cooling_electricity_may",
69
+ "units": "J",
70
+ "objective_function": true,
71
+ "objective_function_index": 6,
72
+ "objective_function_target": 1412749721236.32,
73
+ "scaling_factor": 46320380000.0,
74
+ "objective_function_group": 7
75
+ },
76
+ {
77
+ "display_name": "cooling_electricity_jun",
78
+ "name": "cooling_electricity_jun",
79
+ "units": "J",
80
+ "objective_function": true,
81
+ "objective_function_index": 7,
82
+ "objective_function_target": 2327741408781.58,
83
+ "scaling_factor": 46320380000.0,
84
+ "objective_function_group": 8
85
+ },
86
+ {
87
+ "display_name": "cooling_electricity_jul",
88
+ "name": "cooling_electricity_jul",
89
+ "units": "J",
90
+ "objective_function": true,
91
+ "objective_function_index": 8,
92
+ "objective_function_target": 2402590637505.39,
93
+ "scaling_factor": 46320380000.0,
94
+ "objective_function_group": 9
95
+ },
96
+ {
97
+ "display_name": "cooling_electricity_aug",
98
+ "name": "cooling_electricity_aug",
99
+ "units": "J",
100
+ "objective_function": true,
101
+ "objective_function_index": 9,
102
+ "objective_function_target": 2472656245279.37,
103
+ "scaling_factor": 46320380000.0,
104
+ "objective_function_group": 10
105
+ },
106
+ {
107
+ "display_name": "cooling_electricity_sep",
108
+ "name": "cooling_electricity_sep",
109
+ "units": "J",
110
+ "objective_function": true,
111
+ "objective_function_index": 10,
112
+ "objective_function_target": 1807432185051.14,
113
+ "scaling_factor": 46320380000.0,
114
+ "objective_function_group": 11
115
+ },
116
+ {
117
+ "display_name": "cooling_electricity_oct",
118
+ "name": "cooling_electricity_oct",
119
+ "units": "J",
120
+ "objective_function": true,
121
+ "objective_function_index": 11,
122
+ "objective_function_target": 619615878181.616,
123
+ "scaling_factor": 46320380000.0,
124
+ "objective_function_group": 12
125
+ },
126
+ {
127
+ "display_name": "cooling_electricity_nov",
128
+ "name": "cooling_electricity_nov",
129
+ "units": "J",
130
+ "objective_function": true,
131
+ "objective_function_index": 12,
132
+ "objective_function_target": 117109844324.095,
133
+ "scaling_factor": 46320380000.0,
134
+ "objective_function_group": 13
135
+ },
136
+ {
137
+ "display_name": "cooling_electricity_dec",
138
+ "name": "cooling_electricity_dec",
139
+ "units": "J",
140
+ "objective_function": true,
141
+ "objective_function_index": 13,
142
+ "objective_function_target": 103360013175.794,
143
+ "scaling_factor": 46320380000.0,
144
+ "objective_function_group": 14
145
+ },
146
+ {
147
+ "display_name": "heating_gas_jan",
148
+ "name": "heating_gas_jan",
149
+ "units": "J",
150
+ "objective_function": true,
151
+ "objective_function_index": 14,
152
+ "objective_function_target": 2799558466140.68,
153
+ "scaling_factor": 46320380000.0,
154
+ "objective_function_group": 15
155
+ },
156
+ {
157
+ "display_name": "heating_gas_feb",
158
+ "name": "heating_gas_feb",
159
+ "units": "J",
160
+ "objective_function": true,
161
+ "objective_function_index": 15,
162
+ "objective_function_target": 2663349812763.18,
163
+ "scaling_factor": 46320380000.0,
164
+ "objective_function_group": 16
165
+ },
166
+ {
167
+ "display_name": "heating_gas_mar",
168
+ "name": "heating_gas_mar",
169
+ "units": "J",
170
+ "objective_function": true,
171
+ "objective_function_index": 16,
172
+ "objective_function_target": 1576136833664.73,
173
+ "scaling_factor": 46320380000.0,
174
+ "objective_function_group": 17
175
+ },
176
+ {
177
+ "display_name": "heating_gas_apr",
178
+ "name": "heating_gas_apr",
179
+ "units": "J",
180
+ "objective_function": true,
181
+ "objective_function_index": 17,
182
+ "objective_function_target": 1752794439290.69,
183
+ "scaling_factor": 46320380000.0,
184
+ "objective_function_group": 18
185
+ },
186
+ {
187
+ "display_name": "heating_gas_may",
188
+ "name": "heating_gas_may",
189
+ "units": "J",
190
+ "objective_function": true,
191
+ "objective_function_index": 18,
192
+ "objective_function_target": 375145279804.892,
193
+ "scaling_factor": 46320380000.0,
194
+ "objective_function_group": 19
195
+ },
196
+ {
197
+ "display_name": "heating_gas_jun",
198
+ "name": "heating_gas_jun",
199
+ "units": "J",
200
+ "objective_function": true,
201
+ "objective_function_index": 19,
202
+ "objective_function_target": 32970706746.2053,
203
+ "scaling_factor": 46320380000.0,
204
+ "objective_function_group": 20
205
+ },
206
+ {
207
+ "display_name": "heating_gas_jul",
208
+ "name": "heating_gas_jul",
209
+ "units": "J",
210
+ "objective_function": true,
211
+ "objective_function_index": 20,
212
+ "objective_function_target": 50096876832.5083,
213
+ "scaling_factor": 46320380000.0,
214
+ "objective_function_group": 21
215
+ },
216
+ {
217
+ "display_name": "heating_gas_aug",
218
+ "name": "heating_gas_aug",
219
+ "units": "J",
220
+ "objective_function": true,
221
+ "objective_function_index": 21,
222
+ "objective_function_target": 32660740137.6019,
223
+ "scaling_factor": 46320380000.0,
224
+ "objective_function_group": 22
225
+ },
226
+ {
227
+ "display_name": "heating_gas_sep",
228
+ "name": "heating_gas_sep",
229
+ "units": "J",
230
+ "objective_function": true,
231
+ "objective_function_index": 22,
232
+ "objective_function_target": 144097879467.636,
233
+ "scaling_factor": 46320380000.0,
234
+ "objective_function_group": 23
235
+ },
236
+ {
237
+ "display_name": "heating_gas_oct",
238
+ "name": "heating_gas_oct",
239
+ "units": "J",
240
+ "objective_function": true,
241
+ "objective_function_index": 23,
242
+ "objective_function_target": 970975709027.067,
243
+ "scaling_factor": 46320380000.0,
244
+ "objective_function_group": 24
245
+ },
246
+ {
247
+ "display_name": "heating_gas_nov",
248
+ "name": "heating_gas_nov",
249
+ "units": "J",
250
+ "objective_function": true,
251
+ "objective_function_index": 24,
252
+ "objective_function_target": 2261115778226.24,
253
+ "scaling_factor": 46320380000.0,
254
+ "objective_function_group": 25
255
+ },
256
+ {
257
+ "display_name": "heating_gas_dec",
258
+ "name": "heating_gas_dec",
259
+ "units": "J",
260
+ "objective_function": true,
261
+ "objective_function_index": 25,
262
+ "objective_function_target": 2657735386128.84,
263
+ "scaling_factor": 46320380000.0,
264
+ "objective_function_group": 26
265
+ }
266
+ ],
267
+ "problem": {
268
+ "algorithm": {
269
+ "sample_method": "all_variables",
270
+ "number_of_samples": 4,
271
+ "epsilongradient": 0.01,
272
+ "pgtol": 0.0001,
273
+ "normtype": "minkowski",
274
+ "ppower": 1,
275
+ "objective_functions": [
276
+ "total_natural_gas",
277
+ "total_electricity",
278
+ "cooling_electricity_jan",
279
+ "cooling_electricity_feb",
280
+ "cooling_electricity_mar",
281
+ "cooling_electricity_apr",
282
+ "cooling_electricity_may",
283
+ "cooling_electricity_jun",
284
+ "cooling_electricity_jul",
285
+ "cooling_electricity_aug",
286
+ "cooling_electricity_sep",
287
+ "cooling_electricity_oct",
288
+ "cooling_electricity_nov",
289
+ "cooling_electricity_dec",
290
+ "heating_gas_jan",
291
+ "heating_gas_feb",
292
+ "heating_gas_mar",
293
+ "heating_gas_apr",
294
+ "heating_gas_may",
295
+ "heating_gas_jun",
296
+ "heating_gas_jul",
297
+ "heating_gas_aug",
298
+ "heating_gas_sep",
299
+ "heating_gas_oct",
300
+ "heating_gas_nov",
301
+ "heating_gas_dec"
302
+ ]
303
+ },
304
+ "name": "Problem",
305
+ "workflow": [
306
+ {
307
+ "arguments": [
308
+ {
309
+ "display_name": "Alter Design Day Thermostats?",
310
+ "machine_name": "alter_design_day_thermostats?",
311
+ "name": "alter_design_days",
312
+ "value": false,
313
+ "value_type": "bool",
314
+ "uuid": "71f7b270-a969-0131-ee3f-14109fdf0b37",
315
+ "version_uuid": "71f7b930-a969-0131-ee40-14109fdf0b37"
316
+ }
317
+ ],
318
+ "bcl_measure_directory": "./measures/AdjustThermostatSetpointsByDegrees",
319
+ "measure_definition_directory_CHANGE_TO_ME": "./measures/AdjustThermostatSetpointsByDegrees",
320
+ "bcl_measure_class_name_ADDME": "AdjustThermostatSetpointsByDegrees",
321
+ "measure_definition_class_name_CHANGE_TO_ME": "AdjustThermostatSetpointsByDegrees",
322
+ "measure_definition_class_name": "AdjustThermostatSetpointsByDegrees",
323
+ "bcl_measure_uuid": "71f72a70-a969-0131-ee31-14109fdf0b37",
324
+ "measure_definition_uuid_CHANGE_TO_ME": "71f733a0-a969-0131-ee32-14109fdf0b37",
325
+ "bcl_measure_version_uuid": "71f73b00-a969-0131-ee33-14109fdf0b37",
326
+ "measure_definition_version_uuid_CHANGE_TO_ME": "71f74100-a969-0131-ee34-14109fdf0b37",
327
+ "measure_type": "RubyMeasure",
328
+ "name": "adjust_thermostat_setpoints_by_degrees",
329
+ "display_name": "Adjust Thermostat Setpoints by Degrees",
330
+ "uuid": "71f74930-a969-0131-ee35-14109fdf0b37",
331
+ "variables": [
332
+ {
333
+ "argument": {
334
+ "display_name": "Degrees Fahrenheit to Adjust Cooling Setpoint By.",
335
+ "machine_name": "degrees_fahrenheit_to_adjust_cooling_setpoint_by.",
336
+ "name": "cooling_adjustment",
337
+ "required": false,
338
+ "uuid": "71f769c0-a969-0131-ee37-14109fdf0b37",
339
+ "version_uuid": "71f76fb0-a969-0131-ee38-14109fdf0b37"
340
+ },
341
+ "display_name": "Degrees Fahrenheit to Adjust Cooling Setpoint By.",
342
+ "machine_name": "degrees_fahrenheit_to_adjust_cooling_setpoint_by.",
343
+ "name": "degrees_fahrenheit_to_adjust_cooling_setpoint_by.",
344
+ "minimum": -2.0,
345
+ "maximum": 2.0,
346
+ "units": "",
347
+ "value_type": "double",
348
+ "variable": true,
349
+ "relation_to_output": "",
350
+ "uncertainty_description": {
351
+ "attributes": [
352
+ {
353
+ "name": "discrete",
354
+ "values_and_weights": [
355
+ {
356
+ "value": -2,
357
+ "weight": 0.33
358
+ },
359
+ {
360
+ "value": 0,
361
+ "weight": 0.33
362
+ },
363
+ {
364
+ "value": 2,
365
+ "weight": 0.33
366
+ }
367
+ ]
368
+ },
369
+ {
370
+ "name": "lower_bounds",
371
+ "value": -2.0
372
+ },
373
+ {
374
+ "name": "upper_bounds",
375
+ "value": 2.0
376
+ },
377
+ {
378
+ "name": "modes",
379
+ "value": 0.0
380
+ }
381
+ ],
382
+ "type": "discrete_uncertain"
383
+ },
384
+ "uuid": "71f776d0-a969-0131-ee39-14109fdf0b37",
385
+ "variable_type": "RubyContinuousVariable",
386
+ "version_uuid": "71f78850-a969-0131-ee3a-14109fdf0b37"
387
+ },
388
+ {
389
+ "argument": {
390
+ "display_name": "Degrees Fahrenheit to Adjust heating Setpoint By.",
391
+ "machine_name": "degrees_fahrenheit_to_adjust_heating_setpoint_by.",
392
+ "name": "heating_adjustment",
393
+ "required": false,
394
+ "uuid": "71f79810-a969-0131-ee3b-14109fdf0b37",
395
+ "version_uuid": "71f79e40-a969-0131-ee3c-14109fdf0b37"
396
+ },
397
+ "display_name": "Degrees Fahrenheit to Adjust heating Setpoint By.",
398
+ "machine_name": "degrees_fahrenheit_to_adjust_heating_setpoint_by.",
399
+ "name": "degrees_fahrenheit_to_adjust_heating_setpoint_by.",
400
+ "minimum": -2.0,
401
+ "maximum": 2.0,
402
+ "units": "",
403
+ "value_type": "double",
404
+ "variable": true,
405
+ "relation_to_output": "",
406
+ "uncertainty_description": {
407
+ "attributes": [
408
+ {
409
+ "name": "discrete",
410
+ "values_and_weights": [
411
+ {
412
+ "value": -2,
413
+ "weight": 0.33
414
+ },
415
+ {
416
+ "value": 0,
417
+ "weight": 0.33
418
+ },
419
+ {
420
+ "value": 2,
421
+ "weight": 0.33
422
+ }
423
+ ]
424
+ },
425
+ {
426
+ "name": "lower_bounds",
427
+ "value": -2.0
428
+ },
429
+ {
430
+ "name": "upper_bounds",
431
+ "value": 2.0
432
+ },
433
+ {
434
+ "name": "modes",
435
+ "value": 0.0
436
+ }
437
+ ],
438
+ "type": "discrete_uncertain"
439
+ },
440
+ "uuid": "71f7a380-a969-0131-ee3d-14109fdf0b37",
441
+ "variable_type": "RubyContinuousVariable",
442
+ "version_uuid": "71f7a930-a969-0131-ee3e-14109fdf0b37"
443
+ }
444
+ ],
445
+ "version_uuid": "71f750a0-a969-0131-ee36-14109fdf0b37",
446
+ "workflow_index": 0,
447
+ "workflow_step_type": "Measure"
448
+ }
449
+ ],
450
+ "analysis_type": "lhs"
451
+ },
452
+ "seed": {
453
+ "file_type": "OSM",
454
+ "path": "./seed/small_seed.osm"
455
+ },
456
+ "weather_file": {
457
+ "file_type": "EPW",
458
+ "path": "./weather/partial_weather.epw"
459
+ }
460
+ }
461
+ }