guofei9987 / scikit-opt

Genetic Algorithm, Particle Swarm Optimization, Simulated Annealing, Ant Colony Optimization Algorithm,Immune Algorithm, Artificial Fish Swarm Algorithm, Differential Evolution and TSP(Traveling salesman)
https://scikit-opt.github.io/scikit-opt/#/en/
MIT License
5.3k stars 989 forks source link

如何在初始化阶段将表现良好的个体加入种群? #205

Open Czw007 opened 2 years ago

Czw007 commented 2 years ago

您好,我知道使用 self.Chrom = np.random.randint(low=0, high=2, size=(self.size_pop, self.len_chrom))可以初始化种群. 请问如何在初始化阶段将表现良好的个体加入种群?我没有在源码中找到将实际值编码为gray的功能.