es.udc.gii.common.eaf.algorithm.operator.replace
Class ElitismReevaluateOperator
java.lang.Object
java.util.Observable
es.udc.gii.common.eaf.algorithm.operator.replace.ReplaceOperator
es.udc.gii.common.eaf.algorithm.operator.replace.ElitismReevaluateOperator
- All Implemented Interfaces:
- Operator, Configurable
public class ElitismReevaluateOperator
- extends ReplaceOperator
This operator implements a replace operator with elitism. From the
i-population the operator choose the elitism best individuals
and change it from the elitism worst individuals of the
(i+1)-population. So the parameter elitism indicates the number
of individuals that survive to the next generation.
The survived individuals are re-evaluated.
The code to config this operator is:
<Operator>
<Class>es.udc.gii.common.eaf.algorithm.operator.replace.ElitismReevaluateOperator</Class>
<Elitism>1</Elitism>
</Operator>
- Author:
- pilar
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 |
elitism
private int elitism
ElitismReevaluateOperator
public ElitismReevaluateOperator()
- Creates a new instance of ElitismOperator
ElitismReevaluateOperator
public ElitismReevaluateOperator(int elitism)
configure
public void configure(org.apache.commons.configuration.Configuration conf)
- Specified by:
configure
in interface Configurable
- Overrides:
configure
in class ReplaceOperator
replace
protected java.util.List<Individual> replace(EvolutionaryAlgorithm algorithm,
java.util.List<Individual> toPopulation)
- Specified by:
replace
in class ReplaceOperator