(self, generation)
Sets the generation in which the GA must enter in the
        Interactive Mode

        :param generation: the generation number, use "-1" to disable

        .. versionadded::0.6
           The *setInteractiveGeneration* method.
Sets the generation in which the GA must enter in the
        Interactive Mode
Sets the generation in which the GA must enter in the Interactive Mode
def setInteractiveGeneration(self, generation):
        """ Sets the generation in which the GA must enter in the
        Interactive Mode

        :param generation: the generation number, use "-1" to disable

        .. versionadded::0.6
           The *setInteractiveGeneration* method.
        """
        if generation < -1:
            Util.raiseException("Generation must be >= -1", ValueError)
        self.interactiveGen = generation
def setInteractiveGeneration ( self , generation ) : if generation < - 1 : Util . raiseException ( "Generation must be >= -1" , ValueError ) self . interactiveGen = generation