jeco.kernel.algorithm.moge
Class EliteReplacementOperatorMO

java.lang.Object
  extended by Operator.OperatorModule
      extended by Operator.JoinOperator
          extended by 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

Field Summary
 
Fields inherited from class Operator.JoinOperator
incomingPopulation
 
Fields inherited from class Operator.OperatorModule
population, rng
 
Constructor Summary
EliteReplacementOperatorMO(Util.Random.RandomNumberGenerator rng, Individuals.Populations.Population incPop, EliteReplacementOperationMO rO)
          Creates a new instance of EliteReplacementOperator
 
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
 

Constructor Detail

EliteReplacementOperatorMO

public EliteReplacementOperatorMO(Util.Random.RandomNumberGenerator rng,
                                  Individuals.Populations.Population incPop,
                                  EliteReplacementOperationMO rO)
Creates a new instance of EliteReplacementOperator

Parameters:
rng - random number generator
incPop - incomming population
rO - replacement operation
Method Detail

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()