Description Usage Arguments Value Examples
Minimization of a function using a quick & dirty algorithm.
1 2 |
fn |
Function to minimize The ouput of the function should be a single numeric value. |
N |
Number of individual in the population (default: 100). |
G |
Number of "generations". A generation actually corresponds to a reproductive event between the best two individuals of a group of four individuals randomly chosen in the population (default: 500). |
min_val |
A vector of the minimum acceptable values for each gene. |
max_val |
A vector of the maximum acceptable values for each gene. |
p_mut |
Probability of a gene mutating (default: 0.25). |
w_mut |
Maximum variation allowed through mutation (default: 0.25). |
p_cross |
Probability of crossover (default: 0.1). |
n_cores |
Number of available cores for parallel computation (default: 1). |
A matrix of the final population.
1 | #TODO
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.