def _oneGeneration(self):
     Coevolution._oneGeneration(self)
     # change roles between parasites and hosts
     tmp = self.pop
     self.pop = self.parasitePop
     self.parasitePop = tmp
Exemplo n.º 2
0
 def _oneGeneration(self):
     Coevolution._oneGeneration(self)
     # change roles between parasites and hosts
     tmp = self.pop
     self.pop = self.parasitePop
     self.parasitePop = tmp
Exemplo n.º 3
0
 def _oneGeneration(self):
     Coevolution._oneGeneration(self)
     # change the main pop
     self.pops[self.mainpop] = self.pop
     self.mainpop = self.generation % self.numPops
     self.pop = self.pops[self.mainpop]
 def _oneGeneration(self):
     Coevolution._oneGeneration(self)
     # change the main pop
     self.pops[self.mainpop] = self.pop
     self.mainpop = self.generation % self.numPops
     self.pop = self.pops[self.mainpop]