|
||||||||||
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.FEsStopTest
es.udc.gii.common.eaf.stoptest.DimensionFEsStopTest
public class DimensionFEsStopTest
The maximum numbers of FEs that has to run an algorithm depends on the dimension of the individuals. 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.DimensionFEsStopTest;/Class>
<Factor>value</Factor>
</StopTest>
Field Summary | |
---|---|
private int |
dimension
Dimension of the problem |
private int |
factor
Factor that multiply the dimension of the algorithm and establish the maximum number of function evaluations |
Constructor Summary | |
---|---|
DimensionFEsStopTest()
Creates a new instance of DimensionFEsStopTest |
|
DimensionFEsStopTest(int factor)
Create a new instance of DimensionFEsStopTest. |
Method Summary | |
---|---|
void |
configure(org.apache.commons.configuration.Configuration conf)
Configure this stop test. |
int |
getFEs()
Returns the maximun nunmber of function evaluations that the algorithm will perform. |
boolean |
isReach(EvolutionaryAlgorithm algorithm)
Returns true if the problem had done the number of function evaluations determined by this concrete objective. |
java.lang.String |
toString()
Returns a String representing this objective. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private int factor
private int dimension
Constructor Detail |
---|
public DimensionFEsStopTest()
public DimensionFEsStopTest(int factor)
factor
- factor that multiply the dimension of the algorithm and
establish the maximum number of function evaluations.Method Detail |
---|
public void configure(org.apache.commons.configuration.Configuration conf)
configure
in interface Configurable
conf
- Configuration object which contains the configuration values.Configuration
public boolean isReach(EvolutionaryAlgorithm algorithm)
isReach
in interface StopTest
algorithm
- the algorithm wich has to reach the objective
public java.lang.String toString()
toString
in class java.lang.Object
public int getFEs()
getFEs
in class FEsStopTest
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |