<html><head><style type="text/css"><!-- DIV {margin:0px} --></style></head><body><div style="font-family:times new roman, new york, times, serif;font-size:12pt"><pre>The bestIndividual have a default parameter:<br>const GAGenome&amp; <b>bestIndividual</b>(unsigned int n=0) const<br><br>you can specify: bestIndividual(5);<br><br>Hope this help you,<br>- Cya.</pre>
<div>&nbsp;</div>--------------------------------------------------------<br>Christian S. Perone - christian_perone at yahoo.com.br<br>"Some rise by sin, and some by virtue fall:<br>Some run from breaks of ice, and answer none;<br>And some condemned for a fault alone."<div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><br><br><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;">----- Original Message ----<br>From: "Zhang, Pengchu" &lt;pzhang@sandia.gov&gt;<br>To: galib@mit.edu<br>Sent: Thursday, August 24, 2006 1:13:49 PM<br>Subject: [galib] How to get the best genomes<br><br><title>How to get the best genomes</title>


 
 

<p><font face="Arial" size="2">Hi, all:</font>
</p>

<p><font face="Arial" size="2">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:</font></p>

<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <font face="Courier New" size="2">ga.nBestGenomes(numBest);</font>
</p>

<p><font face="Courier New" size="2">Does anyone know the codes to get the best genomes. Thanks.</font>
</p>

<p><font face="Courier New" size="2">Pengchu Zhang</font>
</p>

 
<div>_______________________________________________<br>galib mailing list<br>galib@mit.edu<br><a target="_blank" href="http://mailman.mit.edu/mailman/listinfo/galib">http://mailman.mit.edu/mailman/listinfo/galib</a><br></div></div><br></div></div></body></html>