<div>Hi,</div>
<div> </div>
<div>I want to put a new gene each generation in the pop. I found the function replace to do it. But, how I can convert a string to gene format???</div>
<div> </div>
<div> </div>
<div>CODE:</div>
<div> </div>
<div> GA1DBinaryStringGenome genome(length, Objective);<br> GASimpleGA ga(genome);<br> ga.parameters(params);<br> GAPopulation gapop(genome, popsize); // RAW:0 SCALED:1</div>
<div> </div>
<div>cout << *gapop.replace( &gapop.individual(0), &gapop.individual(1) );<br clear="all"></div>
<div> </div>
<div> </div>
<div>tks</div>
<div><br>Bruno Calado </div>