|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.brownsoft.ag.GeneracionSimple | +--com.brownsoft.ag.GeneracionSimpleDeJong
Esta clase implementa los criterios de performance de DeJong y los aplica como criterios de parada. Al constructor se le pasa la escala de convergencia esperada
GeneracionSimple
Field Summary | |
protected double |
bestFitnessSoFar
|
(package private) double |
diff
|
protected double |
escala
|
protected double |
lastOffLinePerformance
|
protected double |
lastOnLinePerformance
|
protected double |
offLinePerformance
|
protected double |
onLinePerformance
|
protected int |
T
|
Fields inherited from class com.brownsoft.ag.GeneracionSimple |
individuo, motor, pCross, pMutacion, pobSize |
Constructor Summary | |
GeneracionSimpleDeJong(IIndividuo individuo,
int pobSize,
double pCross,
double pMutacion)
Constructor |
|
GeneracionSimpleDeJong(IIndividuo individuo,
int pobSize,
double pCross,
double pMutacion,
double escala)
Constructor |
Method Summary | |
void |
finIteracion()
Indica que se finaliza la iteracion |
boolean |
getFinalizarIteracion()
Indica cuando debo finalizar las iteraciones |
double |
getOffLinePerformance()
Obtiene la offline performance |
double |
getOnLinePerformance()
Obtiene la online performance |
Methods inherited from class com.brownsoft.ag.GeneracionSimple |
finAlgoritmo, getMatingSize, getpCross, getpMutacion, getPoblacionInicial, inicializar, inicioIteracion |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected double escala
protected int T
protected double onLinePerformance
protected double offLinePerformance
protected double bestFitnessSoFar
protected double lastOffLinePerformance
protected double lastOnLinePerformance
double diff
Constructor Detail |
public GeneracionSimpleDeJong(IIndividuo individuo, int pobSize, double pCross, double pMutacion) throws MotorException
individuo
- Instancia de un individuopobSize
- tamaño de la poblaciónpCross
- probabilidad de cruzamientopMutacion
- probabilidad de mutaciónpublic GeneracionSimpleDeJong(IIndividuo individuo, int pobSize, double pCross, double pMutacion, double escala) throws MotorException
individuo
- Instancia de un individuopobSize
- tamaño de la poblaciónpCross
- probabilidad de cruzamientopMutacion
- probabilidad de mutaciónescala
- de convergencia (performance on-line) esperadoMethod Detail |
public void finIteracion()
finIteracion
in interface IMotorListener
finIteracion
in class GeneracionSimple
public double getOnLinePerformance()
public double getOffLinePerformance()
public boolean getFinalizarIteracion()
getFinalizarIteracion
in interface IGeneracion
getFinalizarIteracion
in class GeneracionSimple
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |