With probability ga_crossover_rate the parents are recombined (uniform crossover by default); otherwise the children are empty genomes. Mutation flips each bit with probability ga_mutation_rate.

.ga_crossover_mutation(p1, p2, params, crossover_type = "UNIFORM")

Arguments

p1, p2

Parent genomes (logical vectors).

params

A list of run parameters.

crossover_type

One of "UNIFORM", "SINGLEPOINT" or "MULTIPOINT".

Value

A list of two child genomes (logical vectors).