
Last chance! 50% off unlimited learning
Sale ends in
The initialize function is a function that wraps various initialization functions.
initialize(initfunc, n, m, type, ...)
Initialization function
Population size
Chromosome length (number of variables)
Type of output matrix
Further arguments passed to or from other methods.
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.
# NOT RUN {
initpop = initialize(initfunc=initbin, n=6, m=4)
initpop
# }
Run the code above in your browser using DataLab