阅读背景:

生成另一个列表的随机排列列表

来源:互联网 

So, I'm trying to tackle the TSP with a Genetic Algorithm. To do that I need to create a population pool. What I wan't to accomplish is to create a list of random permutations that will represent a population pool. I'm trying to do this using random.shuffle. Here's my code that should handle that part. Cities is a list of cities and routes is where I want to keep the population pool (a list of N random permutations):So, I'm trying to tackle the TSP with a Genetic




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: