[galib] about the Initializer
LarryZhang
larryzzl at sohu.com
Sat Jul 24 04:26:07 EDT 2004
Hello All
I want to initialize the population by myself. And I define the
Initializer func:
void Initializer(GAGenome &c)
{
GARealGenome& genome = (GARealGenome &)c;
genome.gene(0, 10);
genome.gene(1, 3);
}
And send it to the genome:
genome.initializer(Initializer);
But after I debug the project, I find the GA still use the
UniFormInitializer but not mine. Can any one tell me how to solve the
problem?
=============================
Larry Zhang
ECNU Radiophysics Dept.
Sunny Every Day
^_^
=============================
More information about the galib
mailing list