@evolite/core
    Preparing search index...

    Type Alias selectionMethod<Entity>

    selectionMethod: (population: Entity[]) => Promise<[Entity, Entity]>

    Selects two parent individuals from the current population to produce offspring. *

    Type Parameters

    Type Declaration

      • (population: Entity[]): Promise<[Entity, Entity]>
      • Parameters

        • population: Entity[]

          The current population pool.

        Returns Promise<[Entity, Entity]>

        A promise resolving to a tuple containing the two selected parent entities.