|
||||||||||
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.TournamentSelectionStrategy
public class TournamentSelectionStrategy
Perform a tournament selection process on the provided Topology with a predefined tournament size.
Constructor Summary | |
---|---|
TournamentSelectionStrategy()
Create a new instance of TournamentSelectionStrategy. |
|
TournamentSelectionStrategy(TournamentSelectionStrategy copy)
Copy constructor. |
Method Summary | ||
---|---|---|
TournamentSelectionStrategy |
getClone()
Create a cloned copy of the current object and return it. |
|
ControlParameter |
getTournamentSize()
Get the defined size of the tournament. |
|
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. |
|
void |
setTournamentSize(ControlParameter tournamanetSize)
Set the size of the tournament. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TournamentSelectionStrategy()
public TournamentSelectionStrategy(TournamentSelectionStrategy copy)
copy
- The instance to copy.Method Detail |
---|
public TournamentSelectionStrategy 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 ControlParameter getTournamentSize()
public void setTournamentSize(ControlParameter tournamanetSize)
tournamanetSize
- The size of the tournament to set.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 |