示例#1
0
 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
 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