UNPKG

tycho-solver

Version:

Evolutionary computation and optimization library

8 lines (7 loc) 577 B
import type { Individual, MemeticOptions } from '../index'; import { LocalSearch } from '../../../search/localSearch'; /** * Orchestrates the main evolutionary loop for the Memetic Algorithm. * This is a standalone component to keep the core class minimal. */ export declare function memeticLoop<T>(population: Individual<T>[], config: MemeticOptions<T>, localSearcher: LocalSearch<T>, updateBest: (population: Individual<T>[]) => Individual<T>, applyLocalSearch: (genome: T, config: MemeticOptions<T>, localSearcher: LocalSearch<T>) => Promise<T>): Promise<Individual<T>>;