gaintegerOnePointCrossover: One-point crossover operator for integer-encoded genetic...

View source: R/gaintegerOnePointCrossover.R

gaintegerOnePointCrossoverR Documentation

One-point crossover operator for integer-encoded genetic algorithms

Description

Performs one-point crossover on two parent individuals. A single crossover point is selected, and all genes before (and including) that point are exchanged between the parents.

Usage

gaintegerOnePointCrossover(object, parents, ...)

Arguments

object

A GA object with a @population slot (a matrix).

parents

A 2-row matrix of values indexing the parents from the current population.

...

Further arguments (unused, included for compatibility).

Value

A list with two elements:

children

A 2-row matrix of the resulting offspring.

fitness

A numeric vector of NA values to be replaced by fitness evaluation.


SIMPLICA documentation built on Sept. 11, 2025, 1:08 a.m.