| Package | Description |
|---|---|
| ec.gp | |
| ec.gp.breed | |
| ec.gp.build | |
| ec.gp.koza | |
| ec.gp.push |
| Modifier and Type | Class and Description |
|---|---|
class |
GPAtomicType
A GPAtomicType is a simple, atomic GPType.
|
class |
GPSetType
A GPSetType is a GPType which contains GPAtomicTypes in a set, and is used
as a generic GP type.
|
| Modifier and Type | Field and Description |
|---|---|
GPType[] |
GPNodeConstraints.childtypes
The children types for a GPNode
|
GPType |
GPNodeConstraints.returntype
The return type for a GPNode
|
GPType |
GPTreeConstraints.treetype
The type of the root of the tree
|
GPType[] |
GPInitializer.types |
| Modifier and Type | Method and Description |
|---|---|
GPType |
GPNode.parentType(GPInitializer initializer)
Returns the argument type of the slot that I fit into in my parent.
|
static GPType |
GPType.typeFor(String typeName,
EvolutionState state)
Returns a type for a given name.
|
| Modifier and Type | Method and Description |
|---|---|
private void |
GPTreeConstraints.checkFunctionSetValidity(EvolutionState state,
Hashtable done,
GPType type) |
boolean |
GPSetType.compatibleWith(GPInitializer initializer,
GPType t) |
boolean |
GPAtomicType.compatibleWith(GPInitializer initializer,
GPType t) |
abstract boolean |
GPType.compatibleWith(GPInitializer initializer,
GPType t)
Am I compatible with ("fit" with) t? For two atomic
types, this is done by direct pointer equality.
|
protected void |
GPNodeBuilder.errorAboutNoNodeWithType(GPType type,
EvolutionState state)
Issues a fatal error that no node (nonterminal or terminal) was found with a return type of the given type, and that an algorithm
had requested one.
|
abstract GPNode |
GPNodeBuilder.newRootedTree(EvolutionState state,
GPType type,
int thread,
GPNodeParent parent,
GPFunctionSet set,
int argposition,
int requestedSize) |
static GPNode |
GPNode.readRootedTree(EvolutionState state,
DataInput dataInput,
GPType expectedType,
GPFunctionSet set,
GPNodeParent parent,
int argposition) |
static GPNode |
GPNode.readRootedTree(int linenumber,
DecodeReturn dret,
GPType expectedType,
GPFunctionSet set,
GPNodeParent parent,
int argposition,
EvolutionState state)
Reads the node and its children from the form printed out by printRootedTree.
|
protected boolean |
GPNodeBuilder.warnAboutNonterminal(boolean test,
GPType type,
boolean fail,
EvolutionState state)
If the given test is true, issues a warning that no terminal was found with a return type of the given type, and that an algorithm
had requested one.
|
protected void |
GPNodeBuilder.warnAboutNonTerminalWithType(GPType type,
boolean fail,
EvolutionState state)
Issues a warning that no nonterminal was found with a return type of the given type, and that an algorithm
had requested one.
|
protected void |
GPNodeBuilder.warnAboutNoTerminalWithType(GPType type,
boolean fail,
EvolutionState state)
Issues a warning that no terminal was found with a return type of the given type, and that an algorithm
had requested one.
|
void |
GPNode.writeRootedTree(EvolutionState state,
GPType expectedType,
GPFunctionSet set,
DataOutput dataOutput) |
| Modifier and Type | Method and Description |
|---|---|
private GPNode |
MutateAllNodesPipeline.generateCompatibleTree(GPNode original,
GPFunctionSet set,
EvolutionState state,
GPType returntype,
int thread)
Returns a brand-new tree which is swap-compatible with returntype, created by making nodes "compatible" with the equivalent nodes in the tree rooted at original.
|
private GPNode |
MutateAllNodesPipeline.pickCompatibleNode(GPNode original,
GPFunctionSet set,
EvolutionState state,
GPType returntype,
int thread)
Returns a node which is swap-compatible with returntype, and whose arguments are swap-compatible with the current children of original.
|
private GPNode |
MutateOneNodePipeline.pickCompatibleNode(GPNode original,
GPFunctionSet set,
EvolutionState state,
GPType returntype,
int thread)
Returns a node which is swap-compatible with returntype, and whose arguments are swap-compatible with the current children of original.
|
| Modifier and Type | Method and Description |
|---|---|
GPNode |
RandTree.newRootedTree(EvolutionState state,
GPType type,
int thread,
GPNodeParent parent,
GPFunctionSet set,
int argposition,
int requestedSize) |
GPNode |
Uniform.newRootedTree(EvolutionState state,
GPType type,
int thread,
GPNodeParent parent,
GPFunctionSet set,
int argposition,
int requestedSize) |
GPNode |
PTC1.newRootedTree(EvolutionState state,
GPType type,
int thread,
GPNodeParent parent,
GPFunctionSet set,
int argposition,
int requestedSize) |
GPNode |
RandomBranch.newRootedTree(EvolutionState state,
GPType type,
int thread,
GPNodeParent parent,
GPFunctionSet set,
int argposition,
int requestedSize) |
GPNode |
PTC2.newRootedTree(EvolutionState state,
GPType type,
int thread,
GPNodeParent parent,
GPFunctionSet set,
int argposition,
int requestedSize) |
private GPNode |
PTC1.ptc1(EvolutionState state,
int current,
GPType type,
int thread,
GPNodeParent parent,
int argposition,
GPFunctionSet set,
PTCFunctionSetForm pset,
double[] nonterminalSelectionProbabilities)
A private function which recursively returns a GROW tree to newRootedTree(...)
|
private GPNode |
RandomBranch.randomBranch(EvolutionState state,
GPType type,
int maxLength,
int thread,
GPNodeParent parent,
int argposition,
GPFunctionSet set) |
| Modifier and Type | Method and Description |
|---|---|
protected GPNode |
KozaBuilder.fullNode(EvolutionState state,
int current,
int max,
GPType type,
int thread,
GPNodeParent parent,
int argposition,
GPFunctionSet set)
A private recursive method which builds a FULL-style tree for newRootedTree(...)
|
protected GPNode |
KozaBuilder.growNode(EvolutionState state,
int current,
int max,
GPType type,
int thread,
GPNodeParent parent,
int argposition,
GPFunctionSet set)
A private function which recursively returns a GROW tree to newRootedTree(...)
|
GPNode |
HalfBuilder.newRootedTree(EvolutionState state,
GPType type,
int thread,
GPNodeParent parent,
GPFunctionSet set,
int argposition,
int requestedSize) |
GPNode |
GrowBuilder.newRootedTree(EvolutionState state,
GPType type,
int thread,
GPNodeParent parent,
GPFunctionSet set,
int argposition,
int requestedSize) |
GPNode |
FullBuilder.newRootedTree(EvolutionState state,
GPType type,
int thread,
GPNodeParent parent,
GPFunctionSet set,
int argposition,
int requestedSize) |
| Modifier and Type | Method and Description |
|---|---|
GPNode |
PushBuilder.newRootedTree(EvolutionState state,
GPType type,
int thread,
GPNodeParent parent,
GPFunctionSet set,
int argposition,
int requestedSize) |
Copyright © 2014 Evolutionary Computation Laboratory at George Mason University. All rights reserved.