Class Add
- All Implemented Interfaces:
Configurable,Named,Mutation,Variation
Add mutation operator. Randomly add a non-member to the subset.
This operator is type-safe.
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.moeaframework.core.operator.TypeSafeMutation
getProbability, mutate, setProbabilityMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.moeaframework.core.configuration.Configurable
applyConfiguration, getConfiguration
-
Constructor Details
-
Add
public Add()Constructs an add mutation operators with the default settings. -
Add
public Add(double probability) Constructs an add mutation operator with the specified probability of mutating a variable.- Parameters:
probability- the probability of mutating a variable
-
-
Method Details
-
getName
Description copied from interface:VariationReturns the name of this variation operator. This name should also be used as the prefix for any parameters. As such, the name should only contain alphanumeric characters, avoid using whitespace and other symbols.- Returns:
- the name of this variation operator
-
mutate
Mutates the specified subset using the add mutation operator.- Specified by:
mutatein classTypeSafeMutation<Subset>- Parameters:
subset- the subset to be mutated
-