Class ESSelection
- All Implemented Interfaces:
Prototype,Setup,RandomChoiceChooserD,Serializable,Cloneable
To do evolution strategies evolution, the breeding pipelines should contain at least one ESSelection selection method. While a child is being generated by the pipeline, the ESSelection object will return a parent from the pool of mu parents. The particular parent is chosen round-robin, so all the parents will have an equal number of children. It's perfectly fine to have more than one ESSelection object in the tree, or to call the same one repeatedly during the course of generating a child; all such objects will consistently return the same parent. They only increment to the next parent in the pool of mu parents after the child has been created from the pipeline. You can also mix ESSelection operators with other operators (like Tournament Selection). But you ought to have at least one ESSelection operator in the pipeline -- else it wouldn't be Evolution Strategies, would it?
Default Base
es.select
- See Also:
-
Field Summary
FieldsFields inherited from class ec.SelectionMethod
INDS_PRODUCED, KEY_PARENTSFields inherited from class ec.BreedingSource
NO_PROBABILITY, P_PROB, probability -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the default base for this prototype.voidprepareToProduce(EvolutionState state, int subpopulation, int thread) A default version of prepareToProduce which does nothing.intproduce(int subpopulation, EvolutionState state, int thread) An alternative form of "produce" special to Selection Methods; selects an individual from the given subpopulation and returns its position in that subpopulation.intproduceWithoutCloning(int min, int max, int subpopulation, ArrayList<Individual> inds, EvolutionState state, int thread, HashMap<String, Object> misc) Methods inherited from class ec.SelectionMethod
finishProducing, produce, produces, typicalIndsProducedMethods inherited from class ec.BreedingSource
clone, fillStubs, getProbability, pickRandom, preparePipeline, setProbability, setup, setupProbabilities
-
Field Details
-
P_ESSELECT
- See Also:
-
-
Constructor Details
-
ESSelection
public ESSelection()
-
-
Method Details
-
defaultBase
Description copied from interface:PrototypeReturns the default base for this prototype. This should generally be implemented by building off of the static base() method on the DefaultsForm object for the prototype's package. This should be callable during setup(...). -
prepareToProduce
Description copied from class:SelectionMethodA default version of prepareToProduce which does nothing.- Overrides:
prepareToProducein classSelectionMethod
-
produce
Description copied from class:SelectionMethodAn alternative form of "produce" special to Selection Methods; selects an individual from the given subpopulation and returns its position in that subpopulation.- Specified by:
producein classSelectionMethod
-
produceWithoutCloning
public int produceWithoutCloning(int min, int max, int subpopulation, ArrayList<Individual> inds, EvolutionState state, int thread, HashMap<String, Object> misc) - Overrides:
produceWithoutCloningin classSelectionMethod
-