public class Insertion extends TypeSafeMutation<Permutation>
This operator is type-safe.
Constructor and Description |
---|
Insertion()
Constructs an insertion mutation operator with the default settings.
|
Insertion(double probability)
Constructs an insertion mutation operator with the specified probability of mutating a variable.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getName()
Returns the name of this variation operator.
|
void |
mutate(Permutation permutation)
Evolves the specified permutation using the insertion mutation operator.
|
getProbability, mutate, setProbability
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
applyConfiguration, getConfiguration
public Insertion()
public Insertion(double probability)
probability
- the probability of mutating a variablepublic java.lang.String getName()
Variation
public void mutate(Permutation permutation)
mutate
in class TypeSafeMutation<Permutation>
permutation
- the permutation to be mutatedCopyright 2009-2024 David Hadka and other contributors. All rights reserved.
Licensed under the GNU Lesser General Public License.
Return to the MOEA Framework homepage.