UNPKG

@syntest/core

Version:

The common core of the SynTest Framework

21 lines 564 B
import { Encoding } from "../Encoding"; import { SearchSubject } from "../SearchSubject"; /** * Function that models the objective. * * @author Mitchell Olsthoorn */ export interface ObjectiveFunction<T extends Encoding> { /** * Calculate distance from the objective to an encoding. * * @param encoding Encoding */ calculateDistance(encoding: T): number; /** * Return the identifier of the objective. */ getIdentifier(): string; getSubject(): SearchSubject<T>; } //# sourceMappingURL=ObjectiveFunction.d.ts.map