Interface EvaluationBudgetStrategy
- All Known Implementing Classes:
FixedEvaluationsStrategy,RandomRangeEvaluationsStrategy
public interface EvaluationBudgetStrategy
Interface defining the contract for different evaluation budget strategies in meta-optimization
problems. Implementations of this interface determine how the number of evaluations is determined
for each problem during the optimization process.
- Author:
- Antonio J. Nebro
-
Method Summary
Modifier and TypeMethodDescriptionintgetEvaluations(int problemIndex) Retrieves the number of evaluations to be performed for a specific problem.voidvalidate(int numberOfProblems) Validates the configuration of the evaluation budget strategy against the number of problems.
-
Method Details
-
getEvaluations
int getEvaluations(int problemIndex) Retrieves the number of evaluations to be performed for a specific problem. The implementation should handle the logic for determining the evaluation count, which could be fixed, random, or based on some other criterion.- Parameters:
problemIndex- the zero-based index of the problem in the problem list- Returns:
- the number of evaluations to perform for the specified problem
- Throws:
IndexOutOfBoundsException- if the problemIndex is invalid
-
validate
void validate(int numberOfProblems) Validates the configuration of the evaluation budget strategy against the number of problems. Implementations should throw anIllegalArgumentExceptionif the configuration is invalid for the given number of problems.- Parameters:
numberOfProblems- the total number of problems to be evaluated- Throws:
IllegalArgumentException- if the strategy configuration is invalid for the given number of problems (e.g., insufficient evaluation counts provided)
-