Skip to content

Commit 7d0c956

Browse files
committed
Adjust naming convention to ensure consistency.
1 parent cfe6460 commit 7d0c956

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

pyomo/contrib/parmest/parmest.py

+3-5
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ def regularize_term(model, prior_FIM, theta_ref):
241241
(theta - theta_ref).transpose() * prior_FIM * (theta - theta_ref)
242242
243243
theta_ref: Reference parameter value, element of matrix
244-
FIM: Fisher Information Matrix, matrix
244+
prior_FIM: Fisher Information Matrix from prior experimental design, matrix
245245
theta: Parameter value, matrix
246246
247247
Added to SSE objective function
@@ -447,18 +447,16 @@ def _create_parmest_model(self, experiment_number):
447447
# custom functions
448448
if self.obj_function == 'SSE':
449449

450-
if self.FIM and self.theta_ref is not None:
450+
if self.prior_FIM and self.theta_ref is not None:
451451
# Regularize the objective function
452452
second_stage_rule = SSE + regularize_term(prior_FIM = self.prior_FIM, theta_ref = self.theta_ref)
453-
elif self.FIM:
453+
elif self.prior_FIM:
454454
theta_ref = model.unknown_parameters.values()
455455
second_stage_rule = SSE + regularize_term(prior_FIM = self.prior_FIM, theta_ref = self.theta_ref)
456456

457457
else:
458458
# Sum of squared errors
459459
second_stage_rule = SSE
460-
461-
462460

463461
else:
464462
# A custom function uses model.experiment_outputs as data

0 commit comments

Comments
 (0)