« Return to Thread: Help with GA concepts
Hello,
From: Rick Liao [mailto:rliiack@...]
Sent: Wednesday, December 28, 2011 12:57 AM
To: jgap-users@...
Subject: [jgap-users] Help with GA conceptsI am completely new to genetic algorithm, so can anyone please help answering some of my questions below?Thanks you so much!
- Based on what I read, natural selection selects chromosomes to be mated by genetic operators, but why does the doc on Configuration says, "Normally, you would add a selector that is applied after the genetic operators are processed (a_processBeforeGeneticOperators = false)." Also, in one evolution, how many times does a natural selector runs? How many chromosomes does it select? Does it run until all the population is selected? If not, what happens to those that are not selected?
- Is there any example of implementing a natural selector?
- When I plug in the code:
- Configuration conf = new DefaultConfiguration();
- NaturalSelector roulette = new WeightedRouletteSelector(conf);
- conf.addNaturalSelector(roulette, false);
- I got an error of java.lang.NoClassDefFoundError: gnu/trove/THashMap. When I take out the conf in the constructor, it gave me java.lang.IllegalArgumentException: Configuration must not be null! This only happens with WeightedRouletteSelector, so what is really the problem?
Sincerely,Rick
« Return to Thread: Help with GA concepts
| Free embeddable forum powered by Nabble | Forum Help |