initPopulation {ecr} R Documentation

## Helper function to build initial population.

### Description

Generates the initial population. Optionally a set of initial solutions can be passed.

### Usage

initPopulation(mu, gen.fun, initial.solutions = NULL, ...)


### Arguments

 mu [integer(1)] Number of individuals in the population. gen.fun [function] Function used to generate initial solutions, e.g., genBin. initial.solutions [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.

### Value

[ecr_population]

[Package ecr version 2.1.0 Index]