The initialpop parameter's rows first, then uniform draws up to n rows, when it is given (it used to be dropped: runDEoptim() ignores its own initialpop argument, so a population seeded from elsewhere never reached DEoptim, 2026-10-26); otherwise NULL, DEoptim's own draw. The rows were drawn between lower and upper, so one outside them is a changed bound or a bug and stops, rather than being clamped.

startPopulation(initialpop, n, lower, upper, seed)

Arguments

initialpop

the initialpop parameter: a matrix with the columns of lower, or NULL.

n

rows of the population (at least the rows of initialpop).

lower, upper

the bounds, named.

seed

seed for the uniform draws.

Value

A matrix or NULL.