<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.5346.5" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV style="FONT: 10pt arial">Hi,</DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I am a GALib user. I noticed the posting at <A
href="http://pch.mit.edu/pipermail/galib/2005-February/001140.html">http://pch.mit.edu/pipermail/galib/2005-February/001140.html</A> which
describes the issue with the GA2DArrayAlleleGenome class. I too have the same
problem where only the first alleleSet in the AlleleSetArray is applied to all
the genomes. </FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Any help in clarification would be greatly
appreciated. Thank you sir.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>regards,</FONT></DIV>
<DIV><FONT face=Arial size=2>Sri Kanajan</FONT></DIV>
<DIV><FONT face=Arial size=2>Senior Research Engineer</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>As reference, here is my code:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT size=2>
<P>GAAlleleSetArray<</FONT><FONT color=#0000ff size=2>int</FONT><FONT
size=2>> alleleSetArray;</P>
<P></P>
<P></FONT><FONT color=#0000ff size=2>for</FONT><FONT size=2> (Message *m =
ML.First();m!=NULL;m = ML.Next(m)) {</P>
<P>m->computeCommAllele(commCycle);</P>
<P>m->computeSlotAllele (commCycle, slotSize, cycleOH);</P>
<P>GAAlleleSet<</FONT><FONT color=#0000ff size=2>int</FONT><FONT size=2>>
alleleSetFix1(</FONT><FONT color=#0000ff size=2>sizeof</FONT><FONT
size=2>(m->getCommAllele())/4,m->getCommAllele()); </FONT><FONT
color=#008000 size=2>// For Comm Cycle Allele Set</P></FONT><FONT size=2>
<P></P>
<P>GAAlleleSet<</FONT><FONT color=#0000ff size=2>int</FONT><FONT size=2>>
alleleSetFix2(</FONT><FONT color=#0000ff size=2>sizeof</FONT><FONT
size=2>(m->getSlotAllele())/4,m->getSlotAllele()); </FONT><FONT
color=#008000 size=2>// For Slot ID Allele Set</P></FONT><FONT size=2>
<P>alleleSetArray.add(alleleSetFix1); </FONT><FONT color=#008000 size=2>// Add
the allele set for comm cycle to message i</P></FONT><FONT size=2>
<P>alleleSetArray.add(alleleSetFix2); </FONT><FONT color=#008000 size=2>// Add
the allele set for slot size to message i</P></FONT><FONT size=2>
<P>}</P>
<P>GA2DArrayAlleleGenome<</FONT><FONT color=#0000ff size=2>int</FONT><FONT
size=2>> genome(2, nw->NumOfSignals , alleleSetArray,
Objective);</P></FONT></DIV></BODY></HTML>