Description Usage Arguments Value
makePopulation
creates a population of untyped individuals, whereas
makeTypedPopulation
creates a population of typed individuals.
fastMakePopulation
is a faster variant of makePopulation
with
fewer options.
print.population
prints the population.
summary.population
returns a summary view of a population.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | makePopulation(size, funcset, inset, conset, maxfuncdepth = 8,
constprob = 0.2, breedingFitness = function(individual) TRUE,
breedingTries = 50, extinctionPrevention = FALSE, funcfactory = NULL)
fastMakePopulation(size, funcset, inset, maxfuncdepth, constMin, constMax)
makeTypedPopulation(size, type, funcset, inset, conset, maxfuncdepth = 8,
constprob = 0.2, breedingFitness = function(individual) TRUE,
breedingTries = 50, extinctionPrevention = FALSE, funcfactory = NULL)
## S3 method for class 'population'
print(x, ...)
## S3 method for class 'population'
summary(object, ...)
|
size |
The population size in number of individuals. |
type |
The (range) type of the individual functions to create. |
funcset |
The function set. |
inset |
The set of input variables. |
conset |
The set of constant factories. |
constMin |
For |
constMax |
For |
maxfuncdepth |
The maximum depth of the functions of the new population. |
constprob |
The probability of generating a constant in a step of growth, if no subtree
is generated. If neither a subtree nor a constant is generated, a randomly chosen input variable
will be generated. Defaults to |
breedingFitness |
A breeding function. See the documentation for
|
breedingTries |
The number of breeding steps. |
extinctionPrevention |
When set to |
funcfactory |
A factory for creating the functions of the new population. Defaults to Koza's "ramped half-and-half" initialization strategy. |
x |
The population to print. |
object |
The population to summarize. |
... |
Additional parameters to the |
A new population of functions.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.