@syntest/search
Version:
The common core of the SynTest Framework
20 lines • 499 B
TypeScript
import { Encoding } from "../../Encoding";
/**
* Interface for secondary objectives.
*
* @author Mitchell Olsthoorn
*/
export interface SecondaryObjectiveComparator<T extends Encoding> {
/**
* Compare two objectives.
*
* Returns -1 if a < b.
* Returns 0 if a == b.
* Returns 1 if a > b.
*
* @param a The first encoding
* @param b The second encoding
*/
compare(a: T, b: T): number;
}
//# sourceMappingURL=SecondaryObjectiveComparator.d.ts.map