Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我使用 JGAP 作为 api 来设置我的 GA 应用程序。在我的染色体中,有时会有重复的整数值设置为等位基因。我正在使用基本随机生成器从所需范围内获取随机值。我想避免基因在染色体中是相同的整数。知道如何解决这个问题
我想您正在谈论生成 GA 的初始种群,而您想要做的是创建某个值列表的许多随机顺序。
有很多方法可以做到这一点,这里有两种可能性: