cz.cuni.mff.ksi.jinfer.iss.experiments.interfaces
Interface TerminationCriterion
- All Known Implementing Classes:
- TimeIterations
public interface TerminationCriterion
Interface encapsulating the decision whether to stop running the metaheuristics.
This is based on the total time already spent as well as any properties of
the solutions found so far.
terminate
Pair<Boolean,String> terminate(Experiment experiment,
long time,
List<IdSet> solutions)
- Returns a flag whether to terminate the iterations of the metaheuristic.
- Parameters:
experiment
- Experiment in context of which to measure the quality.time
- Total time taken so far.solutions
- The pool solutions that were produced in the last run.
- Returns:
- The first item of the pair is
true
if the
metaheuristic should be terminated, false otherwise. The second
is a string describing why the metaheuristics was terminated, in
user-friendly language.
Generated on Fri Dec 9 00:01:25 CET 2011