popInitial: support function: popInitial()

Description Usage Arguments Examples

Description

This function intializes the population.

Usage

1
popInitial(popNum = 100, geneLength, zeroRate = 0.5)

Arguments

popNum

integer; What is the population size of chromosomes? Default to 100

geneLength

integer; number of genes (0/1) on a chromosome

zeroRate

numeric; below or equal to 1 and above or equal to 0; What is the rate of zero among the genes of the first generation? Defaults to 0.5

Examples

1

QinganZhao/GA documentation built on May 28, 2019, 6:41 a.m.