|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectes.udc.gii.common.eaf.stoptest.SimpleStopTest
es.udc.gii.common.eaf.stoptest.EvolveGenerationsStopTest
es.udc.gii.common.eaf.stoptest.mga.MicroGenerationsConvergence
public class MicroGenerationsConvergence
This class implements a simple stop test for the internal cycle of micro-genetic algorithms. The objective is reached after a number of evaluations (given by the user). Thus, the convergence of the population of the micro-genetic algorithm is defined in terms of a number of generations.
For population sizes of 5 individuals (MGA algorithm) good results have been achieved using 2 generations. To use and configure this stop test, you must add the following xml code in the appropriate section of the configuration file:
<StopTest>
<Class>es.udc.gii.common.eaf.stoptest.MicroGenerationsConvergence</Class>
</StopTest>
Constructor Summary | |
---|---|
MicroGenerationsConvergence()
Creates a new instance of MicroGenerationsConvergence |
|
MicroGenerationsConvergence(int generation)
Creates a new instance of MicroGenerationsConvergence |
Method Summary | |
---|---|
void |
configure(org.apache.commons.configuration.Configuration conf)
Configure this stop test. |
boolean |
isReach(EvolutionaryAlgorithm algorithm)
Returns true if the problem had done the generation's number determined by this concrete objective. |
Methods inherited from class es.udc.gii.common.eaf.stoptest.EvolveGenerationsStopTest |
---|
getGenerations, setGenerations, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public MicroGenerationsConvergence()
public MicroGenerationsConvergence(int generation)
generation
- number of generations.Method Detail |
---|
public boolean isReach(EvolutionaryAlgorithm algorithm)
EvolveGenerationsStopTest
isReach
in interface StopTest
isReach
in class EvolveGenerationsStopTest
algorithm
- the algorithm wich has to reach the objective
public void configure(org.apache.commons.configuration.Configuration conf)
EvolveGenerationsStopTest
configure
in interface Configurable
configure
in class EvolveGenerationsStopTest
conf
- Configuration object which contains the configuration values.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |