(self, num_gens)
Sets the number of generations to evolve

        :param num_gens: the number of generations
Sets the number of generations to evolve
Sets the number of generations to evolve
def setGenerations(self, num_gens):
        """ Sets the number of generations to evolve

        :param num_gens: the number of generations

        """
        if num_gens < 1:
            Util.raiseException("Number of generations must be >= 1", ValueError)
        self.nGenerations = num_gens
def setGenerations ( self , num_gens ) : if num_gens < 1 : Util . raiseException ( "Number of generations must be >= 1" , ValueError ) self . nGenerations = num_gens