UNPKG

maths.ts

Version:

Math utilities library for TypeScript, JavaScript and Node.js

14 lines (13 loc) 653 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 nNeighbors The number of neighbors for the solution generated each * cycle. * @param kDiffer The percentage change of each neighbor from the solution. * @param tlSize The taboo list size. * @param iterations The number of iterations executing the algorithm. * @returns The solution found by this algorithm. */ export declare function tabooSearch<T>(problem: NPProblem<T>, nNeighbors?: number, kDiffer?: number, tlSize?: number, iterations?: number): T;