Skip to content

Commit

Permalink
Updated to use unfix()
Browse files Browse the repository at this point in the history
  • Loading branch information
kaklise committed Aug 31, 2021
1 parent c59c9ce commit 173ebf0
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions pyomo/contrib/parmest/parmest.py
Original file line number Diff line number Diff line change
Expand Up @@ -337,11 +337,7 @@ def _create_parmest_model(self, data):
# If the component that was found is not a variable,
# this will generate an exception (and the warning
# in the 'except')
if var_validate.is_indexed():
for v in var_validate.values():
v.fixed = False
else:
var_validate.fixed = False
var_validate.unfix()
# We want to standardize on the CUID string
# representation
self.theta_names[i] = repr(var_cuid)
Expand Down

0 comments on commit 173ebf0

Please sign in to comment.