@syntest/search
Version:
The common core of the SynTest Framework
79 lines • 1.83 kB
TypeScript
import { Logger } from "@syntest/logging";
import { SearchAlgorithm } from "../algorithms/SearchAlgorithm";
import { Encoding } from "../Encoding";
import { Budget } from "./Budget";
/**
* Budget for the number of iteration performed without progress during the search process.
*
* @author Mitchell Olsthoorn
*/
export declare class StagnationBudget<T extends Encoding> implements Budget<T> {
protected static LOGGER: Logger;
/**
* The current number of iterations without progress.
* @protected
*/
protected _currentIterations: number;
/**
* The maximum number of evaluations allowed without progress.
* @protected
*/
protected readonly _maxIterations: number;
/**
* The best progress seen so far.
* @protected
*/
protected _bestProgress: number;
/**
* If the budget is tracking progress
* @protected
*/
protected _tracking: boolean;
/**
* Constructor.
*
* @param maxIterations The maximum number of iterations without progress of this budget
*/
constructor(maxIterations?: number);
/**
* @inheritDoc
*/
getRemainingBudget(): number;
/**
* @inheritDoc
*/
getUsedBudget(): number;
/**
* @inheritDoc
*/
getTotalBudget(): number;
/**
* @inheritDoc
*/
reset(): void;
/**
* @inheritDoc
*/
initializationStarted(): void;
/**
* @inheritDoc
*/
initializationStopped(): void;
/**
* @inheritDoc
*/
searchStarted(): void;
/**
* @inheritDoc
*/
searchStopped(): void;
/**
* @inheritDoc
*/
iteration(searchAlgorithm: SearchAlgorithm<T>): void;
/**
* @inheritDoc
*/
evaluation(): void;
}
//# sourceMappingURL=StagnationBudget.d.ts.map