PytLab / gaft

A Genetic Algorithm Framework in Python (not for production level)
http://gaft.readthedocs.io/
GNU General Public License v3.0
739 stars 218 forks source link

fitness函数没有并行 #47

Open zsluedem opened 5 years ago

zsluedem commented 5 years ago

我看代码, fitness运行并没有并行啊,如果是mpi master的话会全部都算一次啊

                # The best individual in current population. 
                if mpi.is_master:
                    best_indv = self.population.best_indv(self.fitness)
                else:
                    best_indv = None
                best_indv = mpi.bcast(best_indv)
PytLab commented 5 years ago

谢谢指出,此处忘记判断进程数了,我会在后续更新中修复这里。因为本人最近需要忙于其他事情,如果可以也欢迎pr 😁

OOF-dura commented 5 years ago

这个部分修复了吗请问

PytLab commented 5 years ago

Will fix it this week :)

PytLab commented 5 years ago

Thanks for your support, let's make it better :D