<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def disable_gen(self, idx):
 """ Disable a PV element for TDS Parameters idx Returns ------- """

        self.u[self.uid[idx]] = 0
        self.system.dae.factorize = True