|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectec.Breeder
ec.simple.SimpleBreeder
ec.steadystate.SteadyStateBreeder
public class SteadyStateBreeder
| Field Summary | |
|---|---|
BreedingPipeline[] |
bp
If st.firstTimeAround, this acts exactly like SimpleBreeder. |
SelectionMethod[] |
deselectors
Loaded during the first iteration of breedPopulation |
int |
numDuplicateRetries
Do we allow duplicates? |
static java.lang.String |
P_DESELECTOR
|
static java.lang.String |
P_RETRIES
|
| Fields inherited from class ec.simple.SimpleBreeder |
|---|
elite, P_ELITE |
| Constructor Summary | |
|---|---|
SteadyStateBreeder()
|
|
| Method Summary | |
|---|---|
Individual |
breedIndividual(EvolutionState state,
int subpop,
int thread)
|
void |
finishPipelines(EvolutionState state)
|
void |
individualReplaced(SteadyStateEvolutionState state,
int subpopulation,
int thread,
int individual)
Called whenever individuals have been replaced by new individuals in the population. |
void |
prepareToBreed(EvolutionState state,
int thread)
|
void |
setup(EvolutionState state,
Parameter base)
Sets up the object by reading it from the parameters stored in state, built off of the parameter base base. |
void |
sourcesAreProperForm(SteadyStateEvolutionState state,
BreedingPipeline[] breedingPipelines)
Called to check to see if the breeding sources are correct -- if you use this method, you must call state.output.exitIfErrors() immediately afterwards. |
| Methods inherited from class ec.simple.SimpleBreeder |
|---|
breedPopChunk, breedPopulation, loadElites |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public BreedingPipeline[] bp
public static final java.lang.String P_DESELECTOR
public static final java.lang.String P_RETRIES
public SelectionMethod[] deselectors
public int numDuplicateRetries
| Constructor Detail |
|---|
public SteadyStateBreeder()
| Method Detail |
|---|
public void setup(EvolutionState state,
Parameter base)
Setup
setup in interface Setupsetup in class SimpleBreeder
public void sourcesAreProperForm(SteadyStateEvolutionState state,
BreedingPipeline[] breedingPipelines)
public void individualReplaced(SteadyStateEvolutionState state,
int subpopulation,
int thread,
int individual)
public void finishPipelines(EvolutionState state)
public void prepareToBreed(EvolutionState state,
int thread)
public Individual breedIndividual(EvolutionState state,
int subpop,
int thread)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||