createOffspring: Create new offspring

Description Usage Arguments Value Examples

Description

Generate a new offspring from the genome of two parents.

Usage

1
2
createOffspring(genome1, genome2, min_val, max_val, p_mut = 0.25,
  w_mut = 0.2, p_cross = 0.1)

Arguments

genome1

Vector containing the gene values for individual 1.

genome2

Vector containing the gene values for individual 2.

min_val

A vector of the minimum acceptable values for each gene.

max_val

A vector of the maximum acceptable values for each gene.

p_mut

Probability of a gene mutating (default: 0.25).

w_mut

Maximum variation allowed through mutation (default: 0.25).

p_cross

Probability of crossover (default: 0.1).

Value

A vector containing the gene values of the new individual.

Examples

1
#TODO

swarm-lab/geneOptimQAD documentation built on May 30, 2019, 9:35 p.m.