Learn R Programming

adana (version 1.1.0)

initialize: Initialize function

Description

The initialize function is a function that wraps various initialization functions.

Usage

initialize(initfunc, n, m, type, ...)

Arguments

initfunc

Initialization function

n

Population size

m

Chromosome length (number of variables)

type

Type of output matrix

Further arguments passed to or from other methods.

Value

The output matrix includes only chromosomes of initial population when type=2, otherwise The output matrix includes chromosomes of initial population and additional two empty columns for generation number and fitness values.

See Also

initbin, initval, initperm, initnorm

Examples

Run this code
# NOT RUN {
initpop = initialize(initfunc=initbin, n=6, m=4) 
initpop
# }

Run the code above in your browser using DataLab