jeco.kernel.algorithm.moge
Class EliteReplacementOperatorMO
java.lang.Object
Operator.OperatorModule
Operator.JoinOperator
jeco.kernel.algorithm.moge.EliteReplacementOperatorMO
- All Implemented Interfaces:
- Operator.Module, Operator.Operator, Util.Random.Stochastic
public class EliteReplacementOperatorMO
- extends Operator.JoinOperator
EliteReplacementOperatorMO has a EliteReplacementOperationMO.
Use this module for Elite replacement
- Author:
- J. M. Colmenar
Fields inherited from class Operator.JoinOperator |
incomingPopulation |
Fields inherited from class Operator.OperatorModule |
population, rng |
Method Summary |
Operator.Operations.Operation |
getOperation()
|
void |
perform()
Remove worst individuals form the elite population. |
void |
setOperation(Operator.Operations.Operation op)
|
Methods inherited from class Operator.JoinOperator |
getIncomingPopulation, increaseAge, setIncomingPopulation |
Methods inherited from class Operator.OperatorModule |
getRNG, setPopulation, setRNG |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EliteReplacementOperatorMO
public EliteReplacementOperatorMO(Util.Random.RandomNumberGenerator rng,
Individuals.Populations.Population incPop,
EliteReplacementOperationMO rO)
- Creates a new instance of EliteReplacementOperator
- Parameters:
rng
- random number generatorincPop
- incomming populationrO
- replacement operation
perform
public void perform()
- Remove worst individuals form the elite population.
Add the elites to the original population.
Remove the worst individuals from the origninal population.
- Specified by:
perform
in interface Operator.Module
- Specified by:
perform
in class Operator.JoinOperator
setOperation
public void setOperation(Operator.Operations.Operation op)
- Specified by:
setOperation
in interface Operator.Operator
- Specified by:
setOperation
in class Operator.JoinOperator
getOperation
public Operator.Operations.Operation getOperation()