jaga.evolve
Interface GeneticOperator

All Superinterfaces:
java.io.Serializable
All Known Implementing Classes:
SAGAMutator, SinglePointXOver, AdaptiveMutator, BlockCopy, Chopper, Stretcher, BunchMutator, LockingExactGenotypeMutator, BitMutator, Reproducer, ExactGenotypeMutator

public interface GeneticOperator
extends java.io.Serializable

A frame for defining genetic operators.

These will take a selector, an old and new population and a number n. It will then add n individuals to the new population created from combining individuals in some way which were selected from the old population using the selector.


Method Summary
 void operate(Selector selector, Population oldPopulation, Population newPopulation, int howMany)
          method that adds genotypes to the new population by extracting some from the old one and manipulating them in some way.
 

Method Detail

operate

public void operate(Selector selector,
                    Population oldPopulation,
                    Population newPopulation,
                    int howMany)
method that adds genotypes to the new population by extracting some from the old one and manipulating them in some way.
Parameters:
oldPopulation - in parameter having all the original genotypes
newPopulation - in/out parameter where the next generation of genotypes is being built
howMany - how many new genotypes to add to the new population