Package org.moeaframework.core.operator
Interface Mutation
- All Superinterfaces:
Configurable
,Variation
- All Known Implementing Classes:
Add
,BitFlip
,CompoundMutation
,GrammarMutation
,Insertion
,PM
,PointMutation
,Remove
,Replace
,SelfAdaptiveNormalVariation
,Swap
,TypeSafeMutation
,UM
Identifies mutation operators that evolve exactly one parent.
-
Method Summary
Modifier and TypeMethodDescriptiondefault Solution[]
Evolves one or more parent solutions (specified bygetArity
) and produces one or more child solutions.default int
getArity()
Returns the number of solutions that must be supplied to theevolve
method.Mutates the given parent to produce an offspring.Methods inherited from interface org.moeaframework.core.configuration.Configurable
applyConfiguration, getConfiguration
-
Method Details
-
mutate
Mutates the given parent to produce an offspring.- Parameters:
parent
- the parent solution- Returns:
- the offspring
-
getArity
default int getArity()Description copied from interface:Variation
Returns the number of solutions that must be supplied to theevolve
method. -
evolve
Description copied from interface:Variation
Evolves one or more parent solutions (specified bygetArity
) and produces one or more child solutions. By contract, the parents must not be modified. The copy constructor should be used to create copies of the parents with these copies subsequently modified.
-