JavaGenes, NASA Ames. Written largely by Al Globus

gov.nasa.javaGenes.core
Class ChildMakerEvolvingProvider2

java.lang.Object
  extended bygov.nasa.javaGenes.core.ChildMakerProvider
      extended bygov.nasa.javaGenes.core.ChildMakerEvolvingProvider2
All Implemented Interfaces:
java.io.Serializable

public class ChildMakerEvolvingProvider2
extends ChildMakerProvider

starts with a set of random ChildMakers. Every n get()s, throws out the worst ones and creates new ones to take their place

See Also:
Serialized Form

Field Summary
protected  ChildMakerRandomCreator childMakerCreator
           
protected  gov.nasa.javaGenes.core.ChildMakerDownFractionComparator downFractionComparator
           
protected  double evolutionScaleFactor
           
protected  int numberOfGetsPerGeneration
           
protected  int numberOfGetsSoFar
           
protected  double numberToKill
           
 
Fields inherited from class gov.nasa.javaGenes.core.ChildMakerProvider
childMakers
 
Constructor Summary
ChildMakerEvolvingProvider2(int numberOfGetsPerGeneration, int numberOfChildMakers, int numberToKill, double evolutionScaleFactor, ChildMakerRandomCreator childMakerCreator)
           
 
Method Summary
protected  void evolve()
           
 ChildMaker get()
           
 java.lang.String toString()
           
 
Methods inherited from class gov.nasa.javaGenes.core.ChildMakerProvider
add, get, getChildMaker, removeLastChildMaker, setFitnessFunction, setFitnessFunctionNames, size
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

numberOfGetsPerGeneration

protected int numberOfGetsPerGeneration

numberToKill

protected double numberToKill

childMakerCreator

protected ChildMakerRandomCreator childMakerCreator

numberOfGetsSoFar

protected int numberOfGetsSoFar

evolutionScaleFactor

protected double evolutionScaleFactor

downFractionComparator

protected gov.nasa.javaGenes.core.ChildMakerDownFractionComparator downFractionComparator
Constructor Detail

ChildMakerEvolvingProvider2

public ChildMakerEvolvingProvider2(int numberOfGetsPerGeneration,
                                   int numberOfChildMakers,
                                   int numberToKill,
                                   double evolutionScaleFactor,
                                   ChildMakerRandomCreator childMakerCreator)
Method Detail

get

public ChildMaker get()
Overrides:
get in class ChildMakerProvider

evolve

protected void evolve()

toString

public java.lang.String toString()
Overrides:
toString in class ChildMakerProvider

JavaGenes, NASA Ames. Written largely by Al Globus