gaft icon indicating copy to clipboard operation
gaft copied to clipboard

A Genetic Algorithm Framework in Python (not for production level)

Results 24 gaft issues
Sort by recently updated
recently updated
newest added

请问为什么我在windows 得CMD里面运行“mpirun -np 4 python ex01.py”提示无法识别mpirun命令呢? 我的平台上已经装了MS-MPI v10.0了,电脑是windows10系统。

Father from RouletteWheelSelection is randomly chosen according to the probability, but the mother is just chosen as the one next to father, is it reasonable? I am a little bit...

请问自定义个体的时候,如何重写mutate函数?

我的需求是:我想直接自定义chromsome,chromsome的每个元素是二值的(0或1)。请问init、decode、encode这三个方法应该怎么写?

https://github.com/PytLab/gaft/blob/0fb7547752d443a3722916db02cf0a2cfb03026d/gaft/operators/mutation/flip_bit_mutation.py#L40 Erase this line.

我想要我优化的参数之和恒等于1,我该怎么做。该框架是否支持。

我看已经堆积了很多 issue,上次提交代码也一年多了

question

In line 35 of the class RouletteWheelSelection > wheel = list(accumulate([i/sum_fit for i in fit])) When all individuals have the same fitnesses the value sum_fit is zero.

我看代码, 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) ```

bug
todo

因为不方便用平时用的号来评论,以免因为言语过激而引发人肉搜索。但当我看到这个做得不怎么专业的框架至今还没更新得比较完善,而且又看到那么多小号来点赞,我觉得我必须跟作者反映个基本事实了:这个框架若还不更新,只会误人子弟! 我猜想作者应该不是这个领域的专家。否则会清楚地知道一个基本事实:尽快更新框架。以正确引导大家。 我还是非常感谢作者利用自己的知识写下了一个还算能跑的基本遗传算法框架。但随着学习的深入,我发现这个框架并不如作者所说的直接往里面添加东西就好了。比如多目标优化、动态优化问题、约束处理等,这些并不能够简单地通过往里面添加代码来解决。 如果作者不想继续研发的话,我建议去用pymoo。功能强大,支持遗传算法、差分进化、遗传策略、约束优化、多目标优化等,而且是由专业团队开发的,所有代码都有论文支撑。如果其他人看到也可以考虑一下我的建议。 但我更希望作者能尽快更新,最好是和专业的人士一起合作。不然这个框架是在继续误人子弟。 语言有些偏激,谨此见谅!

enhancement