[galib] How to get the best genomes

Christian Samuel Perone christian_perone at yahoo.com.br
Thu Aug 24 13:48:04 EDT 2006


The bestIndividual have a default parameter:
const GAGenome& bestIndividual(unsigned int n=0) const

you can specify: bestIndividual(5);

Hope this help you,
- Cya.  
--------------------------------------------------------
Christian S. Perone - christian_perone at yahoo.com.br
"Some rise by sin, and some by virtue fall:
Some run from breaks of ice, and answer none;
And some condemned for a fault alone."

----- Original Message ----
From: "Zhang, Pengchu" <pzhang at sandia.gov>
To: galib at mit.edu
Sent: Thursday, August 24, 2006 1:13:49 PM
Subject: [galib] How to get the best genomes

How to get the best genomes        Hi, all: 
  After ga.evolving, I want to get the best genomes out that are kept during evolving. Previously, I defined the numBest, e.g., 5 with the code like:
          ga.nBestGenomes(numBest); 
  Does anyone know the codes to get the best genomes. Thanks. 
  Pengchu Zhang 
    _______________________________________________
galib mailing list
galib at mit.edu
http://mailman.mit.edu/mailman/listinfo/galib




-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.mit.edu/pipermail/galib/attachments/20060824/47465b55/attachment.htm


More information about the galib mailing list