[galib] ga allele set array
#SAWHNEY ADITI#
aditi at pmail.ntu.edu.sg
Thu May 12 03:19:24 EDT 2005
I am using the allele set array in the manner belwo and am gettign soem erros so wante dto knwo if i coudl get soem help
The part of the program:
....
GARealAlleleSetArray alleles;
alleles.add(0,15); // bound for the variable is 0-15
alleles.add(0,1);
alleles.add(0,1);
GARealGenome genome(alleles, Objective);
genome.mutator(GA1DArrayAlleleGenome<float>::FlipMutator);
genome.crossover(GARealGenome::OnePointCrossover);
GASteadyStateGA ga(genome); //default is 2 children replacing worst memebrs of population
ga.populationSize(popsize);
ga.nGenerations(ngen);
ga.pMutation(pmut);
ga.pCrossover(pcross);
GATournamentSelector selector;
ga.selector(selector);
ga.terminator(GAGeneticAlgorithm::TerminateUponConvergence);
....
The error:
GAAlleleSet ::allele(unsigned int): this method has not been defined
can i please havesoem help on this?
More information about the galib
mailing list