public class RandomRestarts extends Statistics
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.
Parameters
| base.start int >= 0 (default = 1) |
The first generation where the clock may be started. |
| base.restart-type random (default) or fixed |
Either initiates clock at a random value or a fixed one. |
| base.restart-upper-bound 1 < int < \inf |
Maximum time clock can initiate with. |
| Modifier and Type | Field and Description |
|---|---|
int |
countdown |
static String |
P_RESTART_TYPE |
static String |
P_RESTART_UPPERBOUND |
static String |
P_START |
(package private) String |
restartType |
int |
start |
int |
upperbound |
children, P_CHILD, P_MUZZLE, P_NUMCHILDREN, P_SILENT, P_SILENT_FILE, P_SILENT_PRINT, silentFile, silentPrint| Constructor and Description |
|---|
RandomRestarts() |
| Modifier and Type | Method and Description |
|---|---|
(package private) void |
possiblyRestart(EvolutionState state) |
void |
preEvaluationStatistics(EvolutionState state)
Checks the clock; if it's time to restart, we repopulate the population.
|
(package private) void |
resetClock(EvolutionState state) |
void |
setup(EvolutionState state,
Parameter base)
Gets the clock ticking.
|
enteringInitialPopulationStatistics, enteringSteadyStateStatistics, finalStatistics, generationBoundaryStatistics, individualsBredStatistics, individualsEvaluatedStatistics, postBreedingStatistics, postCheckpointStatistics, postEvaluationStatistics, postInitializationStatistics, postPostBreedingExchangeStatistics, postPreBreedingExchangeStatistics, preBreedingStatistics, preCheckpointStatistics, preInitializationStatistics, prePostBreedingExchangeStatistics, prePreBreedingExchangeStatisticspublic static final String P_RESTART_TYPE
public static final String P_RESTART_UPPERBOUND
public static final String P_START
public int countdown
public int upperbound
public int start
String restartType
public void setup(EvolutionState state, Parameter base)
setup in interface Setupsetup in class Statisticspublic void preEvaluationStatistics(EvolutionState state)
preEvaluationStatistics in class Statisticsvoid possiblyRestart(EvolutionState state)
void resetClock(EvolutionState state)
Copyright © 2014 Evolutionary Computation Laboratory at George Mason University. All rights reserved.