Package ec.neat
Class NEATBreeder
java.lang.Object
ec.Breeder
ec.neat.NEATBreeder
- All Implemented Interfaces:
Setup,Singleton,Serializable
NEATBreeder is a Breeder which overrides the breedPopulation method to first
mark the individuals in each subspecies that are allow to reproduce, and
replace the population with new individuals in each subspecies. All the heavy
lifting is done in NEATSpecies and NEATSubspecies, not here.
- See Also:
-
Field Summary
Fields inherited from class ec.Breeder
sequentialBreeding -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbreedPopulation(EvolutionState state) This method simply call breedNewPopulation method in NEATSpecies,where all the critical work in done.voidsetup(EvolutionState state, Parameter base) Sets up the object by reading it from the parameters stored in state, built off of the parameter base base.Methods inherited from class ec.Breeder
shouldBreedSubpop
-
Constructor Details
-
NEATBreeder
public NEATBreeder()
-
-
Method Details
-
setup
Description copied from interface:SetupSets up the object by reading it from the parameters stored in state, built off of the parameter base base. If an ancestor implements this method, be sure to call super.setup(state,base); before you do anything else. -
breedPopulation
This method simply call breedNewPopulation method in NEATSpecies,where all the critical work in done.- Specified by:
breedPopulationin classBreeder
-