Operator
Class MeritReplacementStrategy
java.lang.Object
Operator.OperatorModule
Operator.JoinOperator
Operator.MeritReplacementStrategy
- All Implemented Interfaces:
- Module, Operator, Stochastic
public class MeritReplacementStrategy
- extends JoinOperator
MeritReplacementStrategy joins to populations. It has a ReplacementOperation
The population is joined before the ReplacementOperation is performed
- Author:
- Blip
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
replacementOperation
protected ReplacementOperation replacementOperation
MeritReplacementStrategy
public MeritReplacementStrategy(RandomNumberGenerator rng,
Population incPop,
ReplacementOperation rO)
- Creates a new instance of MeritReplacementStrategy
- Parameters:
rng
- random number generatorincPop
- incoming populationrO
- replacement operation
MeritReplacementStrategy
public MeritReplacementStrategy()
- New instance
perform
public void perform()
- A ReplacementOperation is performed after the
populations are joined.
Competition among the children if Selection Size is larger then replacement size
When replacement is done the age of the population is increased by one
- Specified by:
perform
in interface Module
- Specified by:
perform
in class JoinOperator
setOperation
public void setOperation(Operation op)
- Description copied from interface:
Operator
- Set operation that operator performs
- Specified by:
setOperation
in interface Operator
- Specified by:
setOperation
in class JoinOperator
- Parameters:
op
- operation
getOperation
public Operation getOperation()
- Description copied from interface:
Operator
- Get operation that operator performs
- Returns:
- operation