<DIV>
<DIV>Hello,</DIV>
<DIV>I have a question about how one references an individual member of a population, and that individual's gene values in a function external to the GA code.</DIV>
<DIV>&nbsp;</DIV>
<DIV>I am working with GASteadyStateGA, and GA1DArraryAlleleGenome. I have built some simple examples to get a basic understanding of the GALib and to make sure I'm using the library correctly. </DIV>
<DIV>&nbsp;</DIV>
<DIV>In the experiment that I am setting up, I am working with a program external to the GA as a simulation. I want the GA to optimize a particular parameter for the simulation. The interface between the two is a simple ASCII file. I have written the routine to create this file, what I am having trouble doing is writing the allele values that the GA has chosen for the genes to this file. I believe that I am not casting the Genome properly within the function that writes the file. </DIV>
<DIV>&nbsp;</DIV>
<DIV>The objective function reads an log file generated from the simulation and returns appropriate values for the fitness of each individual it has evaluated.</DIV>
<DIV>&nbsp;</DIV>
<DIV>Some options that I have tried have been:</DIV>
<DIV>In GASteadtStateGA.C, in the initialize function between </DIV>
<DIV>pop-&gt;Initialize()</DIV>
<DIV>runExperiment(pop)</DIV>
<DIV>pop-&gt;evaluate()</DIV>
<DIV>this was an attempt to not add my Experiment function to the population object, and to attempt to keep the changes to the GALib to a minimum.</DIV>
<DIV>&nbsp;</DIV>
<DIV>I have also tried within the runExperiment function to do external references to the main GA function where I have my GA and Genome defined. Again, it appears that i am not doing this correctly either.</DIV>
<DIV>&nbsp;</DIV>
<DIV>I have also tried a number of different ways to cast a variable as a Genome object within the runExperiment function as well. </DIV>
<DIV>&nbsp;</DIV>
<DIV>I know that this is largely a gap in my knowledge of the programming language. I am seeking some suggestions, or examples, of any scenarios where people have referenced an individual's genes&nbsp;in the population and what they did to bring that data into context of their functions. If anyone has an example where they have used the GALib to build an external file to be run on a simulation that would be most helpful.</DIV>
<DIV>&nbsp;</DIV>
<DIV>Thank you so much for your time and assistance</DIV>
<DIV>Steve Borst</DIV></DIV><p>
                <hr size=1>Do you Yahoo!?<br> 
Yahoo! Search presents - <a href="http://us.rd.yahoo.com/evt=30648/*http://movies.yahoo.com/movies/feature/jibjabinaugural.html">Jib Jab's 'Second Term'</a>