| optimizer_ga | R Documentation |
Creates a real-coded Genetic Algorithm optimizer object.
optimizer_ga(
pop_size = 30,
max_iter = 100,
crossover_rate = 0.8,
mutation_rate = 0.1,
mutation_sd = 0.1,
elitism = TRUE,
selection = "tournament",
tournament_size = 2
)
pop_size |
Population size. |
max_iter |
Maximum number of iterations. |
crossover_rate |
Probability of crossover. |
mutation_rate |
Probability of mutating each parameter. |
mutation_sd |
Standard deviation of Gaussian mutation noise. |
elitism |
Logical. Whether to preserve the best solution in each generation. |
selection |
Selection method. Currently only |
tournament_size |
Number of individuals used in tournament selection. |
An object of class "met_optimizer".
Goldberg, D. E. (1989). Genetic Algorithms in Search, Optimization, and Machine Learning. Addison-Wesley, Reading, MA.
Montana, D. J., and Davis, L. (1989). Training Feedforward Neural Networks Using Genetic Algorithms. Proceedings of the 11th International Joint Conference on Artificial Intelligence, 762–767.
optimizer_ga()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.