Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class AlgoritmoGenetico:
- def __init__(self, dados, tamPopulacao = 10, limGeracoes = 50,
- probMutacao=5, funcaoFitness = None, maiorFitness = True):
- #Atributos
- self.dados = dados
- self.tamPopulacao = tamPopulacao
- self.limGeracoes = limGeracoes
- self.funcaoFitness = funcaoFitness
- self.maiorFitness = maiorFitness
- self.probMutacao = probMutacao
- self.populacao = []
- self.geracao = 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement