[galib] Replace
USP
bruno.calado.ribeiro at usp.br
Fri Jul 11 23:53:15 EDT 2008
Hi,
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???
CODE:
GA1DBinaryStringGenome genome(length, Objective);
GASimpleGA ga(genome);
ga.parameters(params);
GAPopulation gapop(genome, popsize); // RAW:0 SCALED:1
cout << *gapop.replace( &gapop.individual(0), &gapop.individual(1) );
tks
Bruno Calado
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.mit.edu/pipermail/galib/attachments/20080712/ee39f056/attachment.htm
More information about the galib
mailing list