|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectec.Breeder
ec.es.MuCommaLambdaBreeder
MuCommaLambdaBreeder is a Breeder which, together with ESEvolutionState and ESSelection, implements the (mu,lambda) breeding strategy and gathers the comparison data you can use to implement a 1/5-rule mutation mechanism. For more information, see the ESEvolutionState class documentation.
Constructor Summary | |
MuCommaLambdaBreeder()
|
Method Summary | |
void |
breedPopChunk(Population newpop,
ESEvolutionState state,
int[][] bettercount,
int[] numinds,
int[] from,
int threadnum)
A private helper function for breedPopulation which breeds a chunk of individuals in a subpopulation for a given thread. |
Population |
breedPopulation(EvolutionState state)
Breeds state.population, returning a new population. |
boolean |
childBetter(Population newpop,
int subpopulation,
int thread,
ESEvolutionState ess)
|
Population |
postProcess(Population newpop,
Population oldpop,
ESEvolutionState state)
A hook for Mu+Lambda, not used in Mu,Lambda |
Population |
setToLambda(Population pop,
ESEvolutionState state)
Sets all subpopulations in pop to the expected lambda size. |
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public MuCommaLambdaBreeder()
Method Detail |
public void setup(EvolutionState state, Parameter base)
Setup
setup
in interface Setup
public Population setToLambda(Population pop, ESEvolutionState state)
public Population breedPopulation(EvolutionState state) throws java.lang.CloneNotSupportedException
Breeder
breedPopulation
in class Breeder
java.lang.CloneNotSupportedException
public Population postProcess(Population newpop, Population oldpop, ESEvolutionState state)
public boolean childBetter(Population newpop, int subpopulation, int thread, ESEvolutionState ess)
public void breedPopChunk(Population newpop, ESEvolutionState state, int[][] bettercount, int[] numinds, int[] from, int threadnum) throws java.lang.CloneNotSupportedException
java.lang.CloneNotSupportedException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |