File tree 2 files changed +8
-7
lines changed
2 files changed +8
-7
lines changed Original file line number Diff line number Diff line change 13
13
class Experiment :
14
14
"""
15
15
The experiment class is a template for making experiment lists
16
- to pass to parmest.
17
-
18
- An experiment is a Pyomo model "m" which is labeled
16
+ to pass to parmest.
17
+
18
+ An experiment is a Pyomo model "m" which is labeled
19
19
with additional suffixes:
20
20
* m.experiment_outputs which defines experiment outputs
21
21
* m.unknown_parameters which defines parameters to estimate
22
-
22
+
23
23
The experiment class has one required method:
24
24
* get_labeled_model() which returns the labeled Pyomo model
25
25
"""
26
+
26
27
def __init__ (self , model = None ):
27
28
self .model = model
28
29
Original file line number Diff line number Diff line change @@ -408,7 +408,7 @@ def _expand_indexed_unknowns(self, model_temp):
408
408
Expand indexed variables to get full list of thetas
409
409
"""
410
410
model_theta_list = [k .name for k , v in model_temp .unknown_parameters .items ()]
411
-
411
+
412
412
# check for indexed theta items
413
413
indexed_theta_list = []
414
414
for theta_i in model_theta_list :
@@ -419,11 +419,11 @@ def _expand_indexed_unknowns(self, model_temp):
419
419
indexed_theta_list .append (theta_i + '[' + str (ind ) + ']' )
420
420
else :
421
421
indexed_theta_list .append (theta_i )
422
-
422
+
423
423
# if we found indexed thetas, use expanded list
424
424
if len (indexed_theta_list ) > len (model_theta_list ):
425
425
model_theta_list = indexed_theta_list
426
-
426
+
427
427
return model_theta_list
428
428
429
429
def _create_parmest_model (self , experiment_number ):
You can’t perform that action at this time.
0 commit comments