[galib] To access all the genomes before the Objective function is c alled (vishnu prathish)

brian_barkey@juno.com brian_barkey at juno.com
Mon Apr 5 14:50:16 EDT 2010


I don't know if this will help, but I remove all identical genomes in my code via;

//-----after all the initializing stuff
do {
      for (i = 1; i<G_popsize; i++)
         for (j=1;j<G_popsize; j++)
          if (j != i)
           if ( ga.population().individual(j)
                  ga.population().individual(i) )
                      ga.population().individual(j).initialize();  // you can do what you want here
  } while (do loop stuff);

Here I access the genomes after the first ga step.  I don't see any reason why you can access it before the GA.step() but I may be wrong!

Brian Barkey



I would like to know if there is any way to access the entire generation of
genomes before the objectve function is called for each genome?
My situation is,
My GA works as a two stage process. The entire population must be once
evaluated to acquire an initial value for each genome. The sum of these
values will be used later in the objective function. So I need to go through
each genome once before its being called by objective function. This should
be at the point where a new generation begins.
Vishnu Prathish

Penny Stock Jumping 2000%
Sign up to the #1 voted penny stock newsletter for free today!

More information about the galib mailing list