<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> </DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>Hi everyone,</DIV>
<DIV> </DIV>
<DIV> 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> </DIV>
<DIV>2. where the value is being returned from objective function?</DIV>
<DIV> </DIV>
<DIV>3.how can I add the values of two or three objective functions in an another objective function and then print the maximum or minimum value of that Obj function. </DIV>
<DIV><BR> cout << "the ga generated:\n" << ga.statistics().bestIndividual() << "\n";</DIV>
<DIV> </DIV>
<DIV>float<BR>D1(GAGenome & c)<BR>{<BR> GABin2DecGenome & genome = (GABin2DecGenome &)c;<BR> float value=0;<BR> value += genome.phenotype(0) * genome.phenotype(0);<BR> value += genome.phenotype(1) * genome.phenotype(1);<BR> value += genome.phenotype(2) * genome.phenotype(2);<BR> return(value);<BR>}</DIV>
<DIV> </DIV>
<DIV>Thanks</DIV>
<DIV>Happy New Year in Advance</DIV>
<DIV> </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>