@evolite/core
    Preparing search index...

    Type Alias fitnessFunction<Entity>

    fitnessFunction: (individual: Entity) => Promise<number>

    Evaluates an individual and returns a promise resolving to its raw, numerical fitness score. *

    Type Parameters

    • Entity

      The type of individual being evaluated.

    Type Declaration

      • (individual: Entity): Promise<number>
      • Parameters

        • individual: Entity

          The individual entity to evaluate.

        Returns Promise<number>

        A promise resolving to the calculated numerical fitness value.