|
MOEA Framework 2.5 API Specification |
|||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||
java.lang.Objectorg.moeaframework.core.operator.program.PointMutation
public class PointMutation
Mutates a program by randomly selecting nodes in the expression tree and replacing the node with a new, compatible, randomly-selected node.
This operator is type-safe.
| Constructor Summary | |
|---|---|
PointMutation(double probability)
Constructs a new point mutation instance. |
|
| Method Summary | |
|---|---|
Solution[] |
evolve(Solution[] parents)
Evolves one or more parent solutions (specified by getArity) and
produces one or more child solutions. |
int |
getArity()
Returns the number of solutions that must be supplied to the evolve method. |
protected void |
mutate(Node node,
Rules rules)
Applies point mutation to the specified node. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PointMutation(double probability)
probability - the probability of mutating a node in the tree| Method Detail |
|---|
public int getArity()
Variationevolve method.
getArity in interface Variationevolve methodpublic Solution[] evolve(Solution[] parents)
VariationgetArity) 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.
evolve in interface Variationparents - the array of parent solutions
protected void mutate(Node node,
Rules rules)
node - the node undergoing point mutationrules - the rules defining the program syntax
|
MOEA Framework 2.5 API Specification |
|||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||