|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.Observable
es.udc.gii.common.eaf.algorithm.EvolutionaryAlgorithm
es.udc.gii.common.eaf.algorithm.GeneticAlgorithm
es.udc.gii.common.eaf.algorithm.mga.AbstractMGAAlgorithm
public abstract class AbstractMGAAlgorithm
This class implements the generic code for a micro-genetic algorithm.
For an implementation of a micro-genetic algorithm for singleobjective problems
see MGAAlgorithm
.
For an implementation of a micro-genetic algorithm for multiobjective problems
see MMGAAlgorithm
.
Field Summary | |
---|---|
private int |
elitism
Defines the elitism. |
private java.util.List<Individual> |
initialSolutions
The user can provide some initial solutions that must have been already evaluated. |
private int |
microgenerations
Stores the current generations of the micro-evolution. |
private StopTest |
nominalConvergence
The stop test that states that nominal convergence has been reached for the current micro-evolution. |
Fields inherited from class es.udc.gii.common.eaf.algorithm.EvolutionaryAlgorithm |
---|
CLOSE_LOGS_STATE, EVALUATE_STATE, FINAL_STATE, generations, INIT_EVALUATE_STATE, INIT_STATE, REPLACE_STATE, REPRODUCTION_STATE, SELECT_STATE, state |
Constructor Summary | |
---|---|
AbstractMGAAlgorithm()
Creates a new instance of AbstractMGAAlgorithm |
Method Summary | |
---|---|
protected abstract void |
afterMicroEvolution()
Performs the operations needed after a micro-evolution. |
protected abstract void |
beforeMicroEvolution()
Performs the operations needed for the next micro-evolution. |
void |
configure(org.apache.commons.configuration.Configuration conf)
Configures the algorithm. |
int |
getElitism()
|
java.util.List<Individual> |
getInitialSolutions()
|
int |
getMicrogenerations()
|
StopTest |
getNominalConvergence()
|
protected void |
init()
Initialization. |
void |
resolve(StopTest objective)
Performs the algorithm. |
void |
setElitism(int elitism)
|
void |
setInitialSolutions(java.util.List<Individual> initialSolutions)
|
void |
setMicrogenerations(int microgenerations)
|
void |
setNominalConvergence(StopTest nominalConvergence)
|
Methods inherited from class es.udc.gii.common.eaf.algorithm.GeneticAlgorithm |
---|
getAlgorithmID |
Methods inherited from class es.udc.gii.common.eaf.algorithm.EvolutionaryAlgorithm |
---|
evaluate, evaluate, evaluate, getBestIndividual, getComparator, getEvalChain, getEvaluationStrategy, getFEs, getFinish, getGenerations, getMaxGenerations, getPopulation, getProblem, getReplaceChain, getReproductionChain, getSelectionChain, getState, getStopTest, getUserTag, replace, reproduce, resolve, select, setComparator, setEvalChain, setEvaluationStrategy, setFEs, setFinish, setMaxGenerations, setPopulation, setProblem, setReplaceChain, setReproductionChain, setSelectionChain, setUserTag, updateParameters |
Methods inherited from class java.util.Observable |
---|
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private java.util.List<Individual> initialSolutions
private int elitism
private int microgenerations
private StopTest nominalConvergence
Constructor Detail |
---|
public AbstractMGAAlgorithm()
Method Detail |
---|
protected void init()
init
in class EvolutionaryAlgorithm
public void resolve(StopTest objective)
resolve
in class EvolutionaryAlgorithm
protected abstract void beforeMicroEvolution()
protected abstract void afterMicroEvolution()
public void configure(org.apache.commons.configuration.Configuration conf)
configure
in interface Configurable
configure
in class EvolutionaryAlgorithm
public java.util.List<Individual> getInitialSolutions()
public void setInitialSolutions(java.util.List<Individual> initialSolutions)
public int getElitism()
public void setElitism(int elitism)
public int getMicrogenerations()
public void setMicrogenerations(int microgenerations)
public StopTest getNominalConvergence()
public void setNominalConvergence(StopTest nominalConvergence)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |