UNPKG

@syntest/core

Version:

The common core of the SynTest Framework

72 lines 1.58 kB
import { Budget } from "./Budget"; import { Encoding } from "../Encoding"; import { SearchAlgorithm } from "../metaheuristics/SearchAlgorithm"; /** * Budget for the number of iterations performed during the search process. * * @author Mitchell Olsthoorn */ export declare class IterationBudget<T extends Encoding> implements Budget<T> { /** * The current number of iterations. * @protected */ protected _currentIterations: number; /** * The maximum number of iterations allowed. * @protected */ protected readonly _maxIterations: number; /** * If the budget is tracking progress * @protected */ protected _tracking: boolean; /** * Constructor. * * @param maxIterations The maximum number of iterations 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(encoding: T): void; } //# sourceMappingURL=IterationBudget.d.ts.map