For the following code, why does printing out ind.fitness and printing out ind.fitness.values returns the same exact output. Does it mean the method is the same or is there any difference?
for ind, fit in zip(pop, fitnesses):
#print(ind, fit)
ind.fitness.values = fit
print("Fitness", ind.fitness)
print(ind.fitness.values)
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.