Logo Search packages:      
Sourcecode: gaffitter version File versions  Download package

void GeneticAlgorithm::Reset (  )  [protected, virtual]

Reset the GA system for a new iteration.

Reimplemented from Optimizer.

Definition at line 128 of file GeneticAlgorithm.cc.

References Optimizer::m_best, m_cur_gen, and m_genomes.

Referenced by Evolve().

   for(unsigned int i=0; i<m_genomes.size(); ++i) delete m_genomes[i];
   m_best = 0;

   // set size to zero (useful for second iteration and so)

   // reset generation counter
   m_cur_gen = 0;

Generated by  Doxygen 1.6.0   Back to index