code: def disable_gen(self, idx):
          
          self.u[self.uid[idx]] = 0
          self.system.dae.factorize = True
docs: Disable a PV element for TDS
  
          Parameters
          ----------
          idx
  
          Returns
          -------