|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<Mutation.MutationOperator>
geneticWedge.gp.Mutation.MutationOperator
public static enum Mutation.MutationOperator
Mutation operators should be chosen with care. Most of the operators are neutral with respect to program length, but SHRINK has a bias towards small programs and HOIST has a heavy bias towards small programs. EXPAND can have a large bias towards larger programs, if setMaximumExpandDepth() is called with a large value
Enum Constant Summary | |
---|---|
CONSTANT
CONSTANT changes the value of a Constant node by a random amount (generated with a Gaussian distribution). |
|
EXPAND
EXPAND replaces a randomly chosen Terminal with a randomly chosen subtree. |
|
HOIST
HOIST creates a new Individual from a randomly chosen subtree of the parent. |
|
POINT_REPLACEMENT
POINT_REPLCEMENT replaces a single component with a randomly generated component with the same arity |
|
SHRINK
SHRINK replaces a randomly chosen subtree with a randomly chosen Terminal. |
|
SUBTREE_REPLACEMENT
This is the 'standard' mutation operator. |
|
SWAP
SWAP chooses a non-commutative binary node (such as SUBTRACT) and swaps the subtrees below this node |
Method Summary | |
---|---|
static Mutation.MutationOperator |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static Mutation.MutationOperator[] |
values()
Returns an array containing the constants of this enum type, in the order they're declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final Mutation.MutationOperator SUBTREE_REPLACEMENT
public static final Mutation.MutationOperator POINT_REPLACEMENT
public static final Mutation.MutationOperator HOIST
public static final Mutation.MutationOperator SHRINK
public static final Mutation.MutationOperator EXPAND
public static final Mutation.MutationOperator SWAP
public static final Mutation.MutationOperator CONSTANT
Method Detail |
---|
public static final Mutation.MutationOperator[] values()
for(Mutation.MutationOperator c : Mutation.MutationOperator.values()) System.out.println(c);
public static Mutation.MutationOperator valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified name
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |