Generates the initial population. Optionally a set of initial solutions can be passed.
initPopulation(mu, gen.fun, initial.solutions = NULL, ...)
[ecr_population
]
[integer(1)
]
Number of individuals in the population.
[function
]
Function used to generate initial solutions, e.g., genBin
.
[list
]
List of individuals which should be placed in the initial population.
If the number of passed individuals
is lower than mu
, the population will be filled up
by individuals generated by the corresponding generator.
Default is NULL
, i.e., the entire population is generated by the
population generator.
[any]
Further parameters passed to gen.fun
.