Package | Description |
---|---|
org.oakgp.evolve.crossover |
Provides classes for combining existing
Node instances to create (evolve) new instances. |
org.oakgp.evolve.mutate |
Provides classes for mutating existing
Node instances to create (evolve) new instances. |
org.oakgp.generate |
Provides classes for the creation of an initial population.
|
org.oakgp.primitive |
Provides classes for specifying the contents of a primitive set.
|
org.oakgp.select |
Provides classes for the selection of
Node instances. |
org.oakgp.util |
Utility classes that support the functionality provided by the rest of the framework.
|
Constructor and Description |
---|
OnePointCrossover(Random random)
Creates a
OnePointCrossover that uses the given Random to select crossover points. |
SubtreeCrossover(Random random,
int maxDepth)
Creates a
SubtreeCrossover that uses the given Random to select subtrees from parents. |
Constructor and Description |
---|
ConstantToFunctionMutation(Random random,
TreeGenerator treeGenerator)
Creates a
ConstantToFunctionMutation that uses the given TreeGenerator to generate new subtrees to replace existing terminals. |
HoistMutation(Random random)
Creates a
HoistMutation that uses the given Random to select subtrees as new offspring. |
PointMutation(Random random,
PrimitiveSet primitiveSet)
Creates a
PointMutation that uses the given Random to select nodes to mutate. |
ShrinkMutation(Random random,
PrimitiveSet primitiveSet)
Creates a
ShrinkMutation that uses a Random to select function nodes to replace with terminals from a PrimitiveSet . |
SubTreeMutation(Random random,
TreeGenerator treeGenerator)
Creates a
SubTreeMutation that uses the given TreeGenerator to generate new subtrees to replace existing subtrees. |
Modifier and Type | Method and Description |
---|---|
static TreeGenerator |
TreeGeneratorImpl.grow(PrimitiveSet primitiveSet,
Random random)
Creates a
TreeGenerator that uses the "grow" approach to creating trees. |
Constructor and Description |
---|
PrimitiveSetImpl(FunctionSet functionSet,
ConstantSet constantSet,
VariableSet variableSet,
Random random,
double ratioVariables)
Constructs a new primitive set consisting of the specified components.
|
Constructor and Description |
---|
FitnessProportionateSelection(Random random,
RankedCandidates candidates)
Creates a
FitnessProportionateSelection that uses the given Random to select from the given RankedCandidates . |
FitnessProportionateSelectionFactory(Random random)
Creates a
FitnessProportionateSelectionFactory that creates FitnessProportionateSelection instances that use the given Random . |
RankSelection(Random random,
RankedCandidates candidates)
Creates a
RankSelection that uses the given Random to select from the given RankedCandidates . |
RankSelectionFactory(Random random)
Creates a
RankSelectionFactory that creates RankSelection instances that use the given Random . |
Modifier and Type | Class and Description |
---|---|
class |
JavaUtilRandomAdapter
Allows a
java.util.Random to be used as a org.oakgp.util.Random . |
Modifier and Type | Method and Description |
---|---|
Random |
RunBuilder.Config.getRandom() |
Modifier and Type | Method and Description |
---|---|
static int |
Utils.selectSubNodeIndex(Random random,
int nodeCount)
Returns a int value between 0 (inclusive) and the specified
nodeCount value minus 1 (exclusive). |
static int |
Utils.selectSubNodeIndex(Random random,
Node tree)
Returns randomly selected index of a node from the specified tree.
|
RunBuilder.PrimitiveSetSetter |
RunBuilder.RandomSetter.setRandom(Random random)
Sets the
Random to use to generate random numbers required by the run. |
OakGP Genetic Programming Framework