|
JGAP | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jgap.audit.FitnessImprovementMonitor
public class FitnessImprovementMonitor
Monitors the evolution and stops it if evolution does not make a progress as desired.
| Constructor Summary | |
|---|---|
FitnessImprovementMonitor(int a_initialWaitSeconds,
int a_checkIntervalSeconds,
double a_improvedFitnessExpected)
Constructor. |
|
| Method Summary | |
|---|---|
boolean |
nextCycle(Population a_pop,
java.util.List<java.lang.String> a_messages)
Called after another evolution cycle has been executed. |
void |
start(Configuration a_config)
Called just before the evolution starts. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FitnessImprovementMonitor(int a_initialWaitSeconds,
int a_checkIntervalSeconds,
double a_improvedFitnessExpected)
a_initialWaitSeconds - number of seconds to wait until first checka_checkIntervalSeconds - number of seconds to wait after the previous
check (except for the first check, where a_initialWaitSeconds is taken)a_improvedFitnessExpected - number of fitness units the current best
solution evolved is better than the best solution from the previously check| Method Detail |
|---|
public boolean nextCycle(Population a_pop,
java.util.List<java.lang.String> a_messages)
nextCycle in interface IEvolutionMonitora_pop - the currently evolved populationa_messages - the monitor can append messages here to indicate why
it asks evolution to stop
public void start(Configuration a_config)
start in interface IEvolutionMonitora_config - the configuration used
|
JGAP | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||