jaga.control
Class HistoryWindowIM
java.lang.Object
|
+--jaga.control.ShellIM
|
+--jaga.control.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
Method Summary |
void |
evolve()
Evolves to the next generation of all/some of the populations involved. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
HistoryWindowIM
public HistoryWindowIM(int windowSize,
InteractionModel im)
- Creates a new instance of HistoryWindowIM
evolve
public void evolve()
- Description copied from class:
ShellIM
- Evolves to the next generation of all/some of the populations involved.
- Overrides:
evolve
in class ShellIM
toString
public java.lang.String toString()
- Overrides:
toString
in class ShellIM