<FONT face="Sans Serif predeterminado,Verdana,Arial,Helvetica,sans-serif" size=2><DIV>I have tried to use GARealGenome and I am having some problems I do not quite understand.</DIV><DIV>I instantiated an GAAlleleSet ob BOUNDED type as follows:</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;float lower = -10;<BR>&nbsp;float upper =&nbsp; 10;<BR>&nbsp;GARealAlleleSet alleleset(lower,upper);</DIV><DIV>&nbsp;</DIV><DIV>then I created a GARealGenome object as follows:</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;m_GA1DArrayGenome = new GARealGenome( parameters.GetNumberOfElements(),alleleset,funcionObjetivo);</DIV><DIV>&nbsp;</DIV><DIV>(the variable on the left is a pointer to a GARealGenome).</DIV><DIV>after creating the genetic algorithm:</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;m_GASimpleGA = new GASimpleGA(*m_GA1DArrayGenome);</DIV><DIV>&nbsp;</DIV><DIV>I just do:</DIV><DIV>&nbsp;</DIV><DIV>&nbsp; m_GASimpleGA-&gt;evolve();</DIV><DIV>&nbsp;</DIV><DIV>I am trying to optimize a genome consisting in the six parameters of an affine transform.<BR>I start initializing the genome to: (1,0,0,1,0,0), the identity transform.</DIV><DIV>During optimization, I get several times the following message:</DIV><DIV>&nbsp;</DIV><DIV>GAAlleleSet::allele(unsigned int):<BR>&nbsp; this method has not been defined.<BR>&nbsp; C:\INTA\pleyades\InsightToolkit\MisProyectos\GALib\galib246\ga/GAAllele.C : 219</DIV><DIV>&nbsp;</DIV><DIV>This is the main behaviour I do not understand. I thought that defining a BOUNDED allele set just allele() would be called. I thought allele(unsigned int) was for ENUMERATED of DISCRETE allele sets.<BR>Moreover, I though GARealGenome would use the allele methods defined within GARealGenome.c.<BR>May it be that I have not correctly compiled, configured or linked GAlib? How comes that the method of GAAllele.c is looked for and not the one within GARealGenome.c?</DIV><DIV>After optimisation I get a genome population with the lower bound of the allele set at each gene. I suppose that this may be because my objective function is not working as I expect. I am supposed to maximize the objective function, how do I set it to maximize and not to minimize? is it just m_GASimpleGA-&gt;maximize() in my case (I tried both and there is no difference in the end result)? <BR>Or may it be a consequence of the previous problem?<BR>regards <BR></DIV><DIV>Severino&nbsp;Fernandez<BR>Instituto&nbsp;Nacional&nbsp;de&nbsp;Tecnica&nbsp;Aeroespacial&nbsp;(INTA)<BR>Departamento&nbsp;de&nbsp;Teledetección<BR>Ctra&nbsp;de&nbsp;Ajalvir&nbsp;Km&nbsp;4<BR>28850&nbsp;Torrejon&nbsp;de&nbsp;Ardoz<BR>Spain&nbsp;<BR>Tel&nbsp;+34915206362/+34916487800<BR><A href="http://www.inta.es/" target=blank>www.inta.es</A><BR></DIV></FONT>