|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sourceforge.cilib.entity.operators.selection.SelectionStrategy net.sourceforge.cilib.entity.operators.selection.RouletteWheelSelectionStrategy
public class RouletteWheelSelectionStrategy
This class implements Roulette Wheel selection, also known as proportionate selection. The probability of selecting an Entity is equal to the ratio of its fitness to the sum total of the fitness of all the Entitys in the population.
This method of selection is not particularly useful if a single solution has very high fitness as compared to the rest. This results in selecting the fittest solution every time we make a selection.
Constructor Summary | |
---|---|
RouletteWheelSelectionStrategy()
Create an instance of the RouletteWheelSelectionStrategy. |
|
RouletteWheelSelectionStrategy(RouletteWheelSelectionStrategy copy)
Create a copy of the provided instance. |
Method Summary | ||
---|---|---|
SelectionStrategy |
getClone()
Create a cloned copy of the current object and return it. |
|
void |
performOperation(TopologyHolder holder)
Perform the operator operation given the current TopologyHolder . |
|
|
select(Topology<T> population)
Apply the selection strategy and return a single Entity. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RouletteWheelSelectionStrategy()
public RouletteWheelSelectionStrategy(RouletteWheelSelectionStrategy copy)
copy
- The instance to copy.Method Detail |
---|
public SelectionStrategy getClone()
getClone
in interface Operator
getClone
in interface Cloneable
getClone
in class SelectionStrategy
Object.clone()
public <T extends Entity> T select(Topology<T> population)
select
in class SelectionStrategy
T
- The Entity type.population
- The Topology to make the selection from.
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 |