Class HistoryWindowIM

All Implemented Interfaces:
InteractionModel, java.io.Serializable

public class HistoryWindowIM
extends ShellIM

This interaction model keeps the last H elites it has seen in a Vector during evolution. If it ever encounters an elite which is less fit than the previous generation's, it will insert the individual that was the elite H generations ago into the population. This is particularly useful to avoid bad mutants replacing superior elites in noisy (1+1) ES runs.

See Also:
Serialized Form

Constructor Summary
HistoryWindowIM(int windowSize, InteractionModel im)
          Creates a new instance of HistoryWindowIM
Method Summary
 void evolve()
          Evolves to the next generation of all/some of the populations involved.
 java.lang.String toString()
Methods inherited from class jaga.control.ShellIM
evaluate, evaluateNext, evaluationsPerGeneration, getMaxFitness, getNextIndividuals, getNumEvolvers, getPopulations, getSnapshotPainter, pickIndividuals, setPopulations
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait

Constructor Detail


public HistoryWindowIM(int windowSize,
                       InteractionModel im)
Creates a new instance of HistoryWindowIM
Method Detail


public void evolve()
Description copied from class: ShellIM
Evolves to the next generation of all/some of the populations involved.
evolve in class ShellIM


public java.lang.String toString()
toString in class ShellIM