public class PointMutation extends java.lang.Object implements Mutation
This operator is type-safe.
Constructor and Description |
---|
PointMutation()
Constructs a new point mutation operator with the default settings.
|
PointMutation(double probability)
Constructs a new point mutation operator.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getName()
Returns the name of this variation operator.
|
double |
getProbability()
Gets the probability of mutating a node in the tree.
|
protected void |
mutate(Node node,
Rules rules)
Applies point mutation to the specified node.
|
Solution |
mutate(Solution parent)
Mutates the given parent to produce an offspring.
|
void |
setProbability(double probability)
Sets the probability of mutating a node in the tree.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
applyConfiguration, getConfiguration
public PointMutation()
public PointMutation(double probability)
probability
- the probability of mutating a node in the treepublic java.lang.String getName()
Variation
public double getProbability()
public void setProbability(double probability)
probability
- the probability (0.0 - 1.0)public Solution mutate(Solution parent)
Mutation
Copyright 2009-2024 David Hadka and other contributors. All rights reserved.
Licensed under the GNU Lesser General Public License.
Return to the MOEA Framework homepage.