|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sourceforge.cilib.entity.operators.crossover.CrossoverStrategy net.sourceforge.cilib.entity.operators.crossover.DifferentialEvolutionBinomialCrossover
public class DifferentialEvolutionBinomialCrossover
Binomial crossover operator.
Constructor Summary | |
---|---|
DifferentialEvolutionBinomialCrossover()
|
Method Summary | |
---|---|
List<Entity> |
crossover(List<Entity> parentCollection)
Perform the cross-over based on the binomial method for recombination. |
DifferentialEvolutionBinomialCrossover |
getClone()
Create a cloned copy of the current object and return it. |
void |
performOperation(TopologyHolder holder)
Perform the operator operation given the current TopologyHolder . |
Methods inherited from class net.sourceforge.cilib.entity.operators.crossover.CrossoverStrategy |
---|
getCrossoverProbability, getRandomNumber, getSelectionStrategy, setCrossoverProbability, setRandomNumber, setSelectionStrategy |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DifferentialEvolutionBinomialCrossover()
Method Detail |
---|
public DifferentialEvolutionBinomialCrossover getClone()
getClone
in interface Operator
getClone
in interface Cloneable
getClone
in class CrossoverStrategy
Object.clone()
public List<Entity> crossover(List<Entity> parentCollection)
Perform the cross-over based on the binomial method for recombination. The given
parentCollection
should only contain two Entity objects,
as the crossover operator is only defined for two Entitys.
It is VERY important that the order in which the parents are presented is consistent.
The first Entity within the collection MUST be the trialVector
Entity, followed by the target parent Entity.
This method implements the following logic:
for j = 1, ..., x_n: if ( (U(0,1) < P_c) || (j == i) ) x'_{i,j}(t) = trialVector_{i,j}(t) else x'_{i,j}(t) = x_{i,j}(t)
crossover
in class CrossoverStrategy
parentCollection
- the collection of parent Entity objects.
UnsupportedOperationException
- if the number of parents does not equal the size value of 2.public void performOperation(TopologyHolder holder)
TopologyHolder
.
holder
- The TopologyHolder
representing the required
Topology
instances.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |