Skip to content

Commit

Permalink
Whoops, one last class name change I missed
Browse files Browse the repository at this point in the history
  • Loading branch information
emma58 committed May 21, 2024
1 parent 7d42701 commit 71d8801
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pyomo/repn/parameterized_linear.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ def append(self, other):
self.nonlinear += nl


class MultiLevelLinearBeforeChildDispatcher(LinearBeforeChildDispatcher):
class ParameterizedLinearBeforeChildDispatcher(LinearBeforeChildDispatcher):
def __init__(self):
super().__init__()
self[Var] = self._before_var
Expand Down Expand Up @@ -206,13 +206,13 @@ def _before_var(visitor, child):
# We aren't treating this Var as a Var for the purposes of this walker
return False, (_PSEUDO_CONSTANT, child)
# This is a normal situation
MultiLevelLinearBeforeChildDispatcher._record_var(visitor, child)
ParameterizedLinearBeforeChildDispatcher._record_var(visitor, child)
ans = visitor.Result()
ans.linear[_id] = 1
return False, (ExprType.LINEAR, ans)


_before_child_dispatcher = MultiLevelLinearBeforeChildDispatcher()
_before_child_dispatcher = ParameterizedLinearBeforeChildDispatcher()
_exit_node_handlers = copy.deepcopy(linear._exit_node_handlers)

#
Expand Down

0 comments on commit 71d8801

Please sign in to comment.