jeudi 28 septembre 2017

TSP GA parent and child route have same distance

here is the link to the code The fittest path generated has the same score(fitness) as the initial parent route even after, performing mutation() & crossover() on the parent random generated route. could it be due to the lose functioning of srand()? the code produces a check.txt in which it writes the fitness of parent route and it displays as output, the fitness of the best produced child route through iteration,mutation and crossover. help!enter code here




Aucun commentaire:

Enregistrer un commentaire