crossover: Crossover of Chromosomes in Genetic Algorithm

Description Usage Arguments

Description

Crossover is used in genetic algorithms for optimization when two parent chromosomes recombine to produce a child chromosome for the following generation. Crossover randomly picks a location on the chrosome to split the genetic alleles of both parents and then recombines the segments of genes to produce a new chromosome.

Usage

1
crossover(pop, P_combn, P, C)

Arguments

pop

a nested list represented the parent population of models or chromosomes

P_combn

a list of all unique pairwise combinations of chromosome index (see combn)

C

a value representing chromosome size (number of 'alleles'). Should be of class integer, corresponding to the number of columns of input matrix x.


slwu89/GA documentation built on May 14, 2019, 5:20 p.m.