@syntest/core
Version:
The common core of the SynTest Framework
72 lines • 1.59 kB
TypeScript
import { Budget } from "./Budget";
import { Encoding } from "../Encoding";
import { SearchAlgorithm } from "../metaheuristics/SearchAlgorithm";
/**
* Budget for the number of evaluation performed during the search process.
*
* @author Mitchell Olsthoorn
*/
export declare class EvaluationBudget<T extends Encoding> implements Budget<T> {
/**
* The current number of evaluations.
* @protected
*/
protected _currentEvaluations: number;
/**
* The maximum number of evaluations allowed.
* @protected
*/
protected readonly _maxEvaluations: number;
/**
* If the budget is tracking progress
* @protected
*/
protected _tracking: boolean;
/**
* Constructor.
*
* @param maxEvaluations The maximum number of evaluations of this budget
*/
constructor(maxEvaluations?: 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(encoding: T): void;
}
//# sourceMappingURL=EvaluationBudget.d.ts.map