Skip to content

Commit

Permalink
Bugfix get_FIM
Browse files Browse the repository at this point in the history
Hardcoded values have been changed.
  • Loading branch information
djlaky committed Aug 20, 2024
1 parent 3af9d47 commit a68b280
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pyomo/contrib/doe/doe.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@
class ObjectiveLib(Enum):
determinant = "determinant"
trace = "trace"
minimum_eigenvalue = "minimum_eigenvalue"
zero = "zero"


Expand Down Expand Up @@ -2043,8 +2044,8 @@ def get_FIM(self, model=None):

# FIM is a lower triangular matrix for the optimal DoE problem.
# Exploit symmetry to fill in the zeros.
for i in range(4):
for j in range(4):
for i in range(len(model.parameter_names)):
for j in range(len(model.parameter_names)):
if j < i:
fim_np[j, i] = fim_np[i, j]

Expand Down

0 comments on commit a68b280

Please sign in to comment.