Difference between revisions of "Termination Criteria"

From jecoliwiki
Jump to: navigation, search
(Created page with "Category:Howtos Termination criteria are used to define how the algorithm stops. ==== Configuring ==== A number of alternatives are available in JECoLi: * Maximum nu...")
 

Latest revision as of 16:32, 5 March 2013


Termination criteria are used to define how the algorithm stops.

[edit] Configuring

A number of alternatives are available in JECoLi:

  • Maximum number of iterations (class IterationTerminationCriteria)
  • Maximum number of function evaluations (class NumberOfFunctionEvaluationsTerminationCriteria);
  • Maximum computation time (class RunTimeTerminationCriteria);
  • Reaching a given fitness target (class FitnessTargetTerminationCriteria).


Example:

ITerminationCriteria terminationCriteria = new IterationTerminationCriteria(numberGenerations);

[edit] Defining new ones

Define a class that implements interface ITerminationCriteria.

The criteria can be defined over the statistics calculated: time, number of iterations, number of function evaluations, maximum/minimum/mean fitness, standard deviation, etc.

Examples are available in the package core.terminationcriteria.

Personal tools