Learn R Programming

ecr (version 1.0)

simpleEA: Simple (mu + lambda) EA implementation.

Description

A simple evolutionary (mu + lambda) strategy for the optimization of real-valued functions.

Usage

simpleEA(task, n.population = 10L, n.offspring = 10L, parent.selector = setupSimpleSelector(), mutator = setupGaussMutator(), recombinator = setupCrossoverRecombinator(), survival.selector = setupTournamentSelector(2L), max.iter = NULL, max.evals = NULL, max.time = NULL, ...)

Arguments

task
[ecr_optimization_task] Optimization task. If a smoof_function is passed it is automatically converted into a task.
n.population
[integer(1)] Population size (mu). Default is 10.
n.offspring
[integer(1)] Number of offspring (lambda) generated in each generation. Default is 10.
parent.selector
[ecr_selector] Selection operator which implements a procedure to copy individuals from a given population to the mating pool, i. e., allow them to become parents.
mutator
[ecr_mutator] Mutation operator of type ecr_mutator.
recombinator
[ecr_recombinator] Recombination operator of type ecr_recombinator.
survival.selector
[ecr_selector] Selection operator which implements a procedurce to extract individuals from a given set, which should survive and set up the next generation.
max.iter
[integer(1)] Maximal number of iterations. Default ist 100L.
max.evals
[integer(1)] Maximal number of iterations/generations. Default is Inf.
max.time
[integer(1)] Time budget in seconds. Default ist Inf.
...
[any] Further arguments passed to setupECRControl.

Value

[ecr_single_objective_result]