JavaScript EditorFree JavaScript Editor     Ajax Editor 



Main Page
  Previous Section Next Section

Evolutionary Outline

The population is kept of constant size, which reduces unnecessary memory allocation and de-allocation. The population is initialized randomly, with all the fitness values left unassigned.

An evolutionary step happens on request; if there is an individual in the population with an unassigned fitness, it is chosen and passed to the evolved component. Otherwise, two parents are chosen with a probability proportional to their fitness. These are crossed over and mutated to form two offspring, which are reinserted into the population.

When individuals need to be removed from the population, they are selected probabilistically according to the inverse fitness and the similarity with other sequences. As for classifier systems, the idea is to enforce diversity in the population by removing the worst behavior when two are similar.

      Previous Section Next Section
    



    JavaScript EditorAjax Editor     JavaScript Editor