boundary problems with GARealGenome
vijay G kovvali
vkovvali at lycos.com
Wed Apr 4 11:09:24 EDT 2001
Well, in my case I have about 10 values which make my genome, and
this is what I do:
for(int i=0; i<10; ++i)
GARealAlleleSet allele(0,1e-3, GAAllele::EXCLUSIVE,
GARealGenome MyGenome (MyBounds, ObjectiveFunc);
This works for me.
On Tue, 03 Apr 2001 23:56:14
Jason Ku wrote:
>Sorry, my mistake on the negative numbers. But now I am trying to use a
>real number genome on (0,0.001] but I keep on getting genome values of
>0. Has anyone else experienced this problem, and if so, how did you get
>around it? Thanks.
>This is my code:
>GARealAlleleSet allele(0,1e-3, GAAllele::EXCLUSIVE,
>GARealGenome genome(length, allele, objective);
>>I'm having problems controlling the boundary values of real genomes:
>>GARealAlleleSet allele(0,1e-3); /* i want each gene to have value
>>0 and 0.001 */
>>GARealGenome genome(length, allele, objective);
>>In my objective function, I'm printing out the value of each gene and I
>>getting negative numbers. Am I creating the genome correctly above?
>>not, what is the proper way to create a genome where every gene can
>>value between 0 and 0.001?
Get 250 color business cards for FREE! at Lycos Mail
More information about the galib