<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"><DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>Hi everyone,</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; I'm new in GA. I made a maximization problem. but what I saw in the examples of the GAlib246 from mit.edu.. is that only the best genomes are being printed , not the maximum or minimum value of the objective function. </DIV>
<DIV>1.how can I print the best maximum value for the objective function.</DIV>
<DIV>&nbsp;</DIV>
<DIV>2.&nbsp;where the value is being returned from objective function?</DIV>
<DIV>&nbsp;</DIV>
<DIV>3.how can&nbsp;I&nbsp; add the values of&nbsp;two or three objective functions in an another objective function and then&nbsp;print the maximum or minimum value of that Obj function.&nbsp;&nbsp;</DIV>
<DIV><BR>&nbsp; cout &lt;&lt; "the ga generated:\n" &lt;&lt; ga.statistics().bestIndividual() &lt;&lt; "\n";</DIV>
<DIV>&nbsp;</DIV>
<DIV>float<BR>D1(GAGenome &amp; c)<BR>{<BR>&nbsp; GABin2DecGenome &amp; genome = (GABin2DecGenome &amp;)c;<BR>&nbsp; float value=0;<BR>&nbsp; value += genome.phenotype(0) * genome.phenotype(0);<BR>&nbsp; value += genome.phenotype(1) * genome.phenotype(1);<BR>&nbsp; value += genome.phenotype(2) * genome.phenotype(2);<BR>&nbsp; return(value);<BR>}</DIV>
<DIV>&nbsp;</DIV>
<DIV>Thanks</DIV>
<DIV>Happy New Year in Advance</DIV>
<DIV>&nbsp;</DIV>
<DIV>Somnath</DIV></div><br>


      <!--4--><hr size=1></hr> Forgot the famous last words? Access your message archive online. <a href="http://in.rd.yahoo.com/tagline_webmessenger_4/*http://in.messenger.yahoo.com/webmessengerpromo.php">Click here.</a></body></html>