ec.es
Class MuPlusLambdaBreeder
- java.lang.Object
-
- ec.Breeder
-
- ec.es.MuCommaLambdaBreeder
-
- ec.es.MuPlusLambdaBreeder
-
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.- 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, P_MU_FRACTION, parentPopulation
-
-
Constructor Summary
Constructors Constructor and Description MuPlusLambdaBreeder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description intmaximumMuLambdaDivisor()lambda should be no SMALLER than mu times this value.PopulationpostProcess(Population newpop, Population oldpop, EvolutionState state)A hook for Mu+Lambda, not used in Mu,LambdaPopulationsetToMuPlusLambda(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
-
-
-
-
Method Detail
-
maximumMuLambdaDivisor
public int maximumMuLambdaDivisor()
Description copied from class:MuCommaLambdaBreederlambda should be no SMALLER than mu times this value. This varies between (mu,lambda) (where it's 2) and (mu + lambda) (where it's 1).- Overrides:
maximumMuLambdaDivisorin classMuCommaLambdaBreeder
-
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:MuCommaLambdaBreederA hook for Mu+Lambda, not used in Mu,Lambda- Overrides:
postProcessin classMuCommaLambdaBreeder
-
-
DMelt 3.0 © DataMelt by jWork.ORG