UNPKG

maths.ts

Version:

Math utilities library for TypeScript, JavaScript and Node.js

14 lines (13 loc) 628 B
import { NPProblem } from './'; /** * * @param problem The problem which must have a solution generator, a * calculator for the solution and a neighbor generator for each solution. * @param hms Harmonic memory size. * @param hmcr Harmonic memory consideration rate represents the probability * to use the harmonic memory to generate a solution. * @param kDiffer Percentage of change of each neighbor from the solution. * @param maxIt * @returns The solution found by this algorithm. */ export declare function harmonicSearch<T>(problem: NPProblem<T>, hms?: number, hmcr?: number, kDiffer?: number, maxIt?: number): T;