-
-
Save johntheo/03af53c919c2f69e673cfe9bd92f0e6f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# registra funcao de fitness | |
toolbox.register("evaluate", evaluate) | |
# registra crossOver | |
toolbox.register("mate", tools.cxTwoPoint) | |
# registra mutacao com probabilidade default de mudar cada gene de 5% | |
toolbox.register("mutate", tools.mutFlipBit, indpb=0.05) | |
# registra o metodo de selecao como torneio de tamanho 3 | |
toolbox.register("select", tools.selTournament, tournsize=3) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment