コード例 #1
0
ファイル: disjunct.py プロジェクト: tangwei2020/pyomo
 def _activate_without_unfixing_indicator(self):
     # Ideally, this would be a super call from this class.  However,
     # doing that would trigger a call to deactivate() on all the
     # _DisjunctData objects (exactly what we want to aviod!)
     #
     # For the time being, we will do something bad and directly call
     # the base class method from where we would otherwise want to
     # call this method.
     ActiveComponent.activate(self)
     if self.is_indexed():
         for component_data in itervalues(self):
             component_data._activate_without_unfixing_indicator()
コード例 #2
0
ファイル: disjunct.py プロジェクト: Pyomo/pyomo
 def _activate_without_unfixing_indicator(self):
     # Ideally, this would be a super call from this class.  However,
     # doing that would trigger a call to deactivate() on all the
     # _DisjunctData objects (exactly what we want to aviod!)
     #
     # For the time being, we will do something bad and directly call
     # the base class method from where we would otherwise want to
     # call this method.
     ActiveComponent.activate(self)
     if self.is_indexed():
         for component_data in itervalues(self):
             component_data._activate_without_unfixing_indicator()
コード例 #3
0
ファイル: indexed_component.py プロジェクト: hmwesigwa/pyomo
 def activate(self):
     """Set the active attribute to True"""
     ActiveComponent.activate(self)
     for component_data in itervalues(self):
         component_data._active = True
コード例 #4
0
 def activate(self):
     """Set the active attribute to True"""
     ActiveComponent.activate(self)
     for component_data in itervalues(self):
         component_data._active = True