Package ec.evolve

Class RandomRestarts

java.lang.Object
ec.Statistics
ec.evolve.RandomRestarts
All Implemented Interfaces:
Setup, Singleton, Serializable

public class RandomRestarts extends Statistics
A special Statistics class which performs random restarts on the population, effectively reininitializing the population and starting over again. RandomRestarts has two ways of determining when to perform a restart. If the restart type is "fixed", then the restart will occur precisely when the generation is a multiple of restart-upper-bound, minus one. (That's hardly random, of course). If the restart type is "random", then at the beginning of the run, and after every restart, a new restart is chosen randomly from one to restart-upper-bound.

This class is compatible with populations which load from files -- it temporarily disables the load-from-file feature when telling the population to populate itself again, forcing the population to do so by creating random individuals.

See Also:
  • Field Details

  • Constructor Details

    • RandomRestarts

      public RandomRestarts()
  • Method Details