gov.nasa.javaGenes.core
Class BreederWithTeachers
java.lang.Object
gov.nasa.javaGenes.core.Breeder
gov.nasa.javaGenes.core.BreederSteadyState
gov.nasa.javaGenes.core.BreederWithTeachers
- All Implemented Interfaces:
- java.io.Serializable
- public class BreederWithTeachers
- extends BreederSteadyState
- See Also:
- Serialized Form
Methods inherited from class gov.nasa.javaGenes.core.Breeder |
antiTournamentGetIndex, breed, chooseBest, chooseWorst, generationIsComplete, generationJustStarting, generationNotComplete, getFitnessFunction, getGenerationIndex, getTotalNumberOfKidsProduced, isProtected, newChild, newChildrenCreated, pickOne, reportOnGeneration, setFitnessFunction, setGenerationIndex, setTotalNumberOfKidsProduced, stateRestore, stateSave, tournament, useTournament |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
_teacherIndex
protected int _teacherIndex
_numberOfTeachers
protected int _numberOfTeachers
_newTeachersPerGeneration
protected int _newTeachersPerGeneration
_teacherPopulation
protected TeacherPopulation _teacherPopulation
_teacherFitnessFunction
protected TeacherFitnessFunction _teacherFitnessFunction
_teacherChildMakers
protected ChildMakerProvider _teacherChildMakers
BreederWithTeachers
public BreederWithTeachers(Parameters p,
int numberOfTeachers,
int newTeachersPerGeneration,
ChildMakerProvider teacherChildMakers)
getTeachers
public TeacherPopulation getTeachers()
createAlleleTemplate
public static AlleleTemplate createAlleleTemplate(FitnessFunction studentFitness)
- return each interval is from best to worst possible fitness for each objective
createAlleleTemplate
public static AlleleTemplate createAlleleTemplate(Population students)
- return based on the population given. Intervals will be from lowest to highest
fitness for each objective
breed
public Population breed(Population students,
int kidsPerGeneration)
- Overrides:
breed
in class BreederSteadyState