« Return to Thread: Help with GA concepts

Help with GA concepts

by rliiack :: Rate this Message:

| View in Thread

Hello,

I am completely new to genetic algorithm, so can anyone please help answering some of my questions below?
  1. 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?
  2. Is there any example of implementing a natural selector?
  3. When I plug in the code: 
    1. Configuration conf = new DefaultConfiguration(); 
    2. NaturalSelector roulette = new WeightedRouletteSelector(conf); 
    3. conf.addNaturalSelector(roulette, false);       
    4. 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?
Thanks you so much!

Sincerely,
Rick

------------------------------------------------------------------------------
Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
infrastructure or vast IT resources to deliver seamless, secure access to
virtual desktops. With this all-in-one solution, easily deploy virtual
desktops for less than the cost of PCs and save 60% on VDI infrastructure
costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox
_______________________________________________
jgap-users mailing list
jgap-users@...
https://lists.sourceforge.net/lists/listinfo/jgap-users

 « Return to Thread: Help with GA concepts