Skip to content

Commit

Permalink
SacalingTransform: only find/process Suffixes in the context of the t…
Browse files Browse the repository at this point in the history
…ransformation scope
  • Loading branch information
jsiirola committed Aug 13, 2024
1 parent bc18546 commit 5fbeb09
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyomo/core/plugins/transform/scaling.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def _get_float_scaling_factor(self, component):
def _apply_to(self, model, rename=True):
# create a map of component to scaling factor
component_scaling_factor_map = ComponentMap()
self._suffix_finder = SuffixFinder('scaling_factor', 1.0)
self._suffix_finder = SuffixFinder('scaling_factor', 1.0, model)

# if the scaling_method is 'user', get the scaling parameters from the suffixes
if self._scaling_method == 'user':
Expand Down

0 comments on commit 5fbeb09

Please sign in to comment.