Description Usage Arguments Author(s) Examples
The function controls all steps needed in an Genetic Algoritm
1 |
popSize |
Population size. By default = 1000 |
iters |
Number of MAX iterations. By default = 100 |
crossOver |
How many children from CrossOver should be generated. By default = 5000 |
mutationChance |
A mutation chance on crossOver, between 0.00 and 1.00. By default = 0.00 |
suggestions |
A possible suggestion for the initial population |
clone |
Number of clones of the population (integer). By default is about 2% of the population size |
cloneAndMutate |
Number of clones and mutating of the population (integer). By default is about 0.5% of the population size |
elitism |
The number of chromosomes that are kept into the next generation. By default is about 1% of the population size |
foreigners |
The number of new random chromosomes to be inserted in each generation. |
chromosomeRandFunc |
REQUIRED: User supplied method to generate a random chromosome |
evalFunc |
REQUIRED: User supplied method to calculate the evaluation function for the given chromosome |
monitorFunc |
Method run after each generation to allow monitoring of the optimization |
crossOverFunc |
Method to crossOver 2 parents into 1 or more children. By default the method EMF.Gen.CrossOver.Simple is called. This default method mix 2 parents into 2 children. |
mutationFunc |
Method to mutate a chromosome. By default the method EMF.Gen.Mutate.Simple is called. This default method mix some gens of a random chromosome generated with the method chromosomeRandFunc. |
parentProb |
ParentProb defines the probability for every population-position, to get crossed over. By default a normal distribution is applyed based on the fitness (evalFunc, fast). If it is NA, the probability for all chromosomes, to get crossed, is the same (faster). If it is NULL, the probability for chromosomes will be based on te fitness (evalFunc). |
verbose |
If true the algorithm will be more verbose. By default False. |
Elthon Manhas de Freitas
1 2 3 4 5 6 7 8 | ##---- Should be DIRECTLY executable !! ----
##-- ==> Define data, use random,
##-- or do help(data=index) for the standard data sets.
## The function is currently defined as
function (x)
{
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.