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.
| Modifier and Type | Field and Description |
|---|---|
int |
countdown |
static java.lang.String |
P_RESTART_TYPE |
static java.lang.String |
P_RESTART_UPPERBOUND |
static java.lang.String |
P_START |
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 |
|---|---|
void |
preEvaluationStatistics(EvolutionState state)
Checks the clock; if it's time to restart, we repopulate the population.
|
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 java.lang.String P_RESTART_TYPE
public static final java.lang.String P_RESTART_UPPERBOUND
public static final java.lang.String P_START
public int countdown
public int upperbound
public int start
public void setup(EvolutionState state, Parameter base)
setup in interface Setupsetup in class Statisticspublic void preEvaluationStatistics(EvolutionState state)
preEvaluationStatistics in class Statistics