<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=windows-1252"
 http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Hi Zyed and Robert,<br>
<br>
I had a look on the javaGalib. I think that the platform javaGalib is
not a java version of the C++ Galib. It is completely different, and
offers less flexibility than the MITs' Galib...<br>
<br>
Cheers, P.<br>
<br>
PS : I agree with Robert about the necessity of 2 offsprings rather
than a single.<br>
<br>
<br>
Zyed Bouzarkouna a écrit :
<blockquote
 cite="mid:89695e9c0903180255r37372da1pbe4db7500c76501c@mail.gmail.com"
 type="cite">Hi,<br>
  <br>
It is not the same. This version is from: Jeff S Smith.<br>
And here is an article pubished by Jeff S giving an overview about this
lib.<br>
  <br>
  <a moz-do-not-send="true"
 href="http://www.softtechdesign.com/GA/EvolvingABetterSolution-GA.html">http://www.softtechdesign.com/GA/EvolvingABetterSolution-GA.html</a><br>
  <br>
Regards,<br>
Zyed<br>
  <br>
  <br>
  <br>
  <div class="gmail_quote">On Wed, Mar 18, 2009 at 1:18 AM, Kupfer,
Michael (ARC-TH)[San Jose State University Foundation] <span dir="ltr">&lt;<a
 moz-do-not-send="true" href="mailto:michael.kupfer@nasa.gov">michael.kupfer@nasa.gov</a>&gt;</span>
wrote:<br>
  <blockquote class="gmail_quote"
 style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
    <div link="blue" vlink="purple" lang="EN-US">
    <div>
    <p><span style="font-size: 11pt; color: rgb(31, 73, 125);">Hi!</span></p>
    <p><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>
    <p><span style="font-size: 11pt; color: rgb(31, 73, 125);">Is it
the same like the GAlib from M Wall, just in JAVA?</span></p>
    <p><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>
    <p><span style="font-size: 11pt; color: rgb(31, 73, 125);">Best,</span></p>
    <p><span style="font-size: 11pt; color: rgb(31, 73, 125);">Michael.</span></p>
    <p><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>
    <div
 style="border-style: solid none none; border-color: rgb(181, 196, 223) -moz-use-text-color -moz-use-text-color; border-width: 1pt medium medium; padding: 3pt 0in 0in;">
    <p><b><span style="font-size: 10pt;">From:</span></b><span
 style="font-size: 10pt;"> Zyed Bouzarkouna
[mailto:<a moz-do-not-send="true"
 href="mailto:bouzarkouna.zyed@gmail.com" target="_blank">bouzarkouna.zyed@gmail.com</a>]
    <br>
    <b>Sent:</b> Tuesday, March 17, 2009 4:11 PM<br>
    <b>To:</b> Kupfer, Michael (ARC-TH)[San Jose State University
Foundation]<br>
    <b>Cc:</b> <a moz-do-not-send="true" href="mailto:galib@mit.edu"
 target="_blank">galib@mit.edu</a><br>
    <b>Subject:</b> Re: [galib] Ellitism</span></p>
    </div>
    <div>
    <div class="h5">
    <p> </p>
    <p style="margin-bottom: 12pt;">Hi Michael,<br>
    <br>
The java code can be downloaded from:<br>
    <a moz-do-not-send="true"
 href="http://sourceforge.net/projects/java-galib/" target="_blank">http://sourceforge.net/projects/java-galib/</a><br>
    <br>
Best Regards,<br>
Zyed<br>
    <br>
    </p>
    <div>
    <p>On Tue, Mar 17, 2009 at 9:29 PM, Kupfer, Michael
(ARC-TH)[San Jose State University Foundation] &lt;<a
 moz-do-not-send="true" href="mailto:michael.kupfer@nasa.gov"
 target="_blank">michael.kupfer@nasa.gov</a>&gt; wrote:</p>
    <div>
    <div>
    <p><span style="font-size: 11pt; color: rgb(31, 73, 125);">Hello
Zyed!</span></p>
    <p><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>
    <p><span style="font-size: 11pt; color: rgb(31, 73, 125);">I read
you’re using the Java
version of GAlib? Where did you get it from? Is it an exact
representation of
the C++ version (could I translate my C++ code 1-1 into Java)?</span></p>
    <p><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>
    <p><span style="font-size: 11pt; color: rgb(31, 73, 125);">Best,</span></p>
    <p><span style="font-size: 11pt; color: rgb(31, 73, 125);">Michael.</span></p>
    <p><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>
    <div
 style="border-style: solid none none; border-color: -moz-use-text-color; border-width: 1pt medium medium; padding: 3pt 0in 0in;">
    <p><b><span style="font-size: 10pt;">From:</span></b><span
 style="font-size: 10pt;"> <a moz-do-not-send="true"
 href="mailto:galib-bounces@mit.edu" target="_blank">galib-bounces@mit.edu</a>
[mailto:<a moz-do-not-send="true" href="mailto:galib-bounces@mit.edu"
 target="_blank">galib-bounces@mit.edu</a>]
    <b>On Behalf Of </b>Zyed Bouzarkouna<br>
    <b>Sent:</b> Tuesday, March 17, 2009 9:13 AM<br>
    <b>To:</b> <a moz-do-not-send="true" href="mailto:galib@mit.edu"
 target="_blank">galib@mit.edu</a><br>
    <b>Subject:</b> Re: [galib] Ellitism</span></p>
    </div>
    <div>
    <div>
    <p> </p>
    <p style="margin-bottom: 12pt;">Thanks Robert for your reply.<br>
In fact, I'm using The java version of GALib. <br>
    <br>
        //Elitism--fittest chromosome
automatically go on to next gen (in 2 offspring)<br>
    <br>
       
this.chromNextGen[iCnt].copyChromGenes(this.chromosomes[this.bestFitnessChromIndex]);<br>
        iCnt++;<br>
    <br>
       
this.chromNextGen[iCnt].copyChromGenes(this.chromosomes[this.bestFitnessChromIndex]);<br>
        iCnt++;<br>
    <br>
And here I don't see any reason to put it twice especially since we
don't allow
any mutation on the best indiv.</p>
    <div>
    <p>On Tue, Mar 17, 2009 at 4:56 PM, Robert Burbidge &lt;<a
 moz-do-not-send="true" href="mailto:rvb@aber.ac.uk" target="_blank">rvb@aber.ac.uk</a>&gt;
wrote:</p>
    <div>
    <p style="margin-bottom: 12pt;">On 17 Mar 2009, at 15:35, Zyed
Bouzarkouna
wrote:</p>
    <p>I was wondering why to apply elitism, GALib choooses the fittest
chromosome
to go automatically to next gen in 2 offspring.<br>
I don't see why the fittest is put twice in the next generation?</p>
    <p> </p>
    </div>
    <p>Hi Zyed,<br>
    <br>
I assume you are using a simple GA as elitism doesn't make sense for a
steady
state or incremental GA. The relevant code snippet is:<br>
    <br>
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;<br>
void<br>
GASimpleGA::step()<br>
{<br>
...<br>
// If we are supposed to be elitist, carry the best individual from the
old<br>
// population into the current population.  Be sure to check whether we
are<br>
// supposed to minimize or maximize.<br>
    <br>
 if(minimaxi() == GAGeneticAlgorithm::MAXIMIZE) {<br>
   if(el &amp;&amp; oldPop-&gt;best().score() &gt;
pop-&gt;best().score())<br>
   
 oldPop-&gt;replace(pop-&gt;replace(&amp;(oldPop-&gt;best()),
GAPopulation::WORST),<br>
                   
 GAPopulation::BEST);<br>
 }<br>
 else {<br>
   if(el &amp;&amp; oldPop-&gt;best().score() &lt;
pop-&gt;best().score())<br>
     oldPop-&gt;replace(pop-&gt;replace(&amp;(oldPop-&gt;best()),
GAPopulation::WORST),<br>
                   
 GAPopulation::BEST);<br>
 }<br>
...<br>
}<br>
&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;<br>
    <br>
We can see that the best individual from the old population replaces
the worst
individual in the current population, provided that it is better than
the best
individual in the current population. This only results in one copy of
the best
in the current population.<br>
    <br>
It is of course possible to obtain more than one copy of the best
through
selection if it happens that it is not crossed over or mutated. Try
running
with pcross = 1.0 and you should only see (at most) one copy of the
best in the
next generation with elitism (except for the hopefully rare case where
the
crossover has no effect).<br>
    <br>
Rgds,<br>
    <span style="color: rgb(136, 136, 136);">Robert</span></p>
    </div>
    <p><br>
    <br clear="all">
    <br>
-- <br>
Zyed Bouzarkouna<br>
        <br>
         </p>
    </div>
    </div>
    </div>
    </div>
    </div>
    <p><br>
    <br clear="all">
    <br>
-- <br>
Zyed Bouzarkouna<br>
        <br>
         </p>
    </div>
    </div>
    </div>
    </div>
  </blockquote>
  </div>
  <br>
  <br clear="all">
  <br>
-- <br>
Zyed Bouzarkouna<br>
        <br>
         <br>
  <pre wrap="">
<hr size="4" width="90%">
_______________________________________________
galib mailing list
<a class="moz-txt-link-abbreviated" href="mailto:galib@mit.edu">galib@mit.edu</a>
<a class="moz-txt-link-freetext" href="http://mailman.mit.edu/mailman/listinfo/galib">http://mailman.mit.edu/mailman/listinfo/galib</a>
  </pre>
  <pre wrap="">
<hr size="4" width="90%">
No virus found in this incoming message.
Checked by AVG. 
Version: 7.5.557 / Virus Database: 270.11.18/2009 - Release Date: 18/03/2009 07:17
  </pre>
</blockquote>
<br>
</body>
</html>