ec.es
Class MuPlusLambdaBreeder

java.lang.Object
  extended by ec.Breeder
      extended by ec.es.MuCommaLambdaBreeder
          extended by ec.es.MuPlusLambdaBreeder
All Implemented Interfaces:
Setup, Singleton, java.io.Serializable

public class MuPlusLambdaBreeder
extends MuCommaLambdaBreeder

MuPlusLambdaBreeder is a subclass of MuCommaLambdaBreeder which, together with ESSelection, implements the (mu + lambda) breeding strategy and gathers the comparison data you can use to implement a 1/5-rule mutation mechanism. Note that MuPlusLambdaBreeder increases subpopulation sizes by their mu values in the second generation and keep them at that size thereafter. See MuCommaLambdaBreeder for information about how to set mu and lambda.

Version:
1.0
Author:
Sean Luke
See Also:
Serialized Form

Field Summary
 
Fields inherited from class ec.es.MuCommaLambdaBreeder
C_EXACTLY_ONE_FIFTH_BETTER, C_OVER_ONE_FIFTH_BETTER, C_UNDER_ONE_FIFTH_BETTER, comparison, count, lambda, mu, P_LAMBDA, P_MU, parentPopulation
 
Constructor Summary
MuPlusLambdaBreeder()
           
 
Method Summary
 Population postProcess(Population newpop, Population oldpop, EvolutionState state)
          A hook for Mu+Lambda, not used in Mu,Lambda
 Population setToMuPlusLambda(Population pop, EvolutionState state)
          Sets all subpopulations in pop to the expected mu+lambda size.
 
Methods inherited from class ec.es.MuCommaLambdaBreeder
breedPopChunk, breedPopulation, setToLambda, setup
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MuPlusLambdaBreeder

public MuPlusLambdaBreeder()
Method Detail

setToMuPlusLambda

public Population setToMuPlusLambda(Population pop,
                                    EvolutionState state)
Sets all subpopulations in pop to the expected mu+lambda size. Does not fill new slots with individuals.


postProcess

public Population postProcess(Population newpop,
                              Population oldpop,
                              EvolutionState state)
Description copied from class: MuCommaLambdaBreeder
A hook for Mu+Lambda, not used in Mu,Lambda

Overrides:
postProcess in class MuCommaLambdaBreeder