Skip to content

Instantly share code, notes, and snippets.

@marcelcaraciolo
Created January 22, 2014 02:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save marcelcaraciolo/8552664 to your computer and use it in GitHub Desktop.
Save marcelcaraciolo/8552664 to your computer and use it in GitHub Desktop.
def _executar(self):
#Atualizando as infos de cada clan intra.
for i in range(0, TSPClanConstants.NUMBER_OF_CLANS):
bando = self.clans[i]
for i in range(0, len(bando)):
self.atualizaInformacao(bando, i);
bando[i].fitness = TSP.evaluate(bando[i].posicao)
bando[i].atualizarP()
#Atualizando as infos dos clans
self.conference = self.topologia.getClanLeaders(bandos=self.clans)
for i in range(0, TSPClanConstants.NUMBER_OF_CLANS):
self.atualizaInformacao(self.conference, i);
self.conference[i].fitness = TSP.evaluate(self.conference[i].posicao)
self.conference[i].atualizaP();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment