cga: Compact Genetic Algorithm
Description
Performs a Compact Genetic Algorithm (CGA) search
for a given chromosome size, population size (mutation rate),
and an objective function.
Usage
cga(chsize, popsize, evalFunc)
Value
Binary vector of size chsize.
Arguments
- chsize
Number of bits.
- popsize
Size of population. The value is used for mutating
the probability vector by 1/popsize.
- evalFunc
Objective function.