@evolite/core
    Preparing search index...

    Type Alias WithFitness

    Represents an individual entity in the population that carries a fitness score. Any custom entity passed to the Genetic Algorithm must implement this type.

    type WithFitness = {
        fitness?: number;
    }
    Index
    fitness?: number

    The evaluated fitness score of the individual. This property is automatically assigned by the algorithm during the evaluation step.