boundary problems with GARealGenome

Jason Ku tsesunku at Princeton.EDU
Sun Apr 1 16:52:50 EDT 2001


I'm having problems controlling the boundary values of real genomes:

GARealAlleleSet allele(0,1e-3); /* i want each gene to have value between
0 and 0.001 */
GARealGenome genome(length, allele, objective);
GASimpleGA ga(genome);

In my objective function, I'm printing out the value of each gene and I am
getting negative numbers.  Am I creating the genome correctly above?  If
not, what is the proper way to create a genome where every gene can have a
value between 0 and 0.001?  

Thanks.

Jason





More information about the galib mailing list