some questions

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
Report Content as Inappropriate

some questions

camellia gh
hi ,
I'am a beginner using JGAP. I have encounter some problems.
1- is it ok using a chromose having just one supergene?. such as :
  MySuperGene[] sampleGenes = new MySuperGene[1]; // MySuperGene extends 
                                                                                  // abstractSupergene
  integerGene[] genes = new IntegerGene[2];
  genes[0] = new IntegerGene(0,numOfTasks);
  genes[0].setAllele(new Integer(1));
  genes[1] = new IntegerGene(0,numOfTasks);
  genes[1].setAllele(new Integer(2));
  sampleGenes[0] = new MySuperGene(genes);
  Chromosome myChromosome = new Chromosome(sampleGenes);
2. why fitness function is called just once when evolving population with size more than one ?
waiting fir reply.
tanx alot.
camellia :)

Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around