Defined in: packages/evolution/src/evolution.ts:37
Inputs required to construct a deterministic population evolution.
Type Parameters
Section titled “Type Parameters”T
Properties
Section titled “Properties”initialPopulation
Section titled “initialPopulation”
readonlyinitialPopulation: readonlyT[]
Defined in: packages/evolution/src/evolution.ts:38
evaluate
Section titled “evaluate”
readonlyevaluate: (candidate) =>number
Defined in: packages/evolution/src/evolution.ts:39
Parameters
Section titled “Parameters”candidate
Section titled “candidate”T
Returns
Section titled “Returns”number
objective
Section titled “objective”
readonlyobjective:Objective
Defined in: packages/evolution/src/evolution.ts:40
random
Section titled “random”
readonlyrandom:RandomSource
Defined in: packages/evolution/src/evolution.ts:41
nextPopulation
Section titled “nextPopulation”
readonlynextPopulation: (context) => readonlyT[]
Defined in: packages/evolution/src/evolution.ts:42
Parameters
Section titled “Parameters”context
Section titled “context”Returns
Section titled “Returns”readonly T[]