你好,请问提示这个错误是怎么回事?
File "<ipython-input-16-6c1a2206eb3f>", line 33, in <module>
bestChrom = Genetic.findBest(pop) #寻找最优染色体
File "D:\Anaconda\程序\遗传算法\Genetic.py", line 14, in findBest
if best[1] < pop[i].fitness:
TypeError: '<' not supported between instances of 'float' and 'NoneType'
遗传算法之Python实现遗传算法之Python实现 写在前面 之前的文章中已经讲过了遗传算法的基本流程,并且用MATLAB实现过一遍了。这一篇文章主要面对的人群是看过了我之前的文章,因此我就不再赘述...