dot-ga_crossover_mutation: Crossover and mutation of two parent genomes

.ga_crossover_mutationR Documentation

Crossover and mutation of two parent genomes

Description

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.

Usage

.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).


pathfindR documentation built on July 2, 2026, 1:06 a.m.