public class Replace extends TypeSafeMutation<Subset>
This operator is type-safe.
Constructor and Description |
---|
Replace()
Constructs a replacement mutation operator with default settings.
|
Replace(double probability)
Constructs a replacement 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(Subset subset)
Mutates the specified subset using the replacement mutation operator.
|
getProbability, mutate, setProbability
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
applyConfiguration, getConfiguration
public Replace()
public Replace(double probability)
probability
- the probability of mutating a variablepublic java.lang.String getName()
Variation
public void mutate(Subset subset)
mutate
in class TypeSafeMutation<Subset>
subset
- the subset 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.