#include <selection.h>
Public Methods | |
SelectionSituation (const SimplePopulation &pop) | |
const Individual & | getOrdered (int i) const |
Handles the selection calculations for a population's individuals; generates a SelectionMatrix.
This class is primarily used by EAStrategy and similar classes.
Definition at line 89 of file selection.h.
|
Standard constructor.
Definition at line 96 of file selection.cc. |
|
Returns the i:th fittest Individual from the population. Fittest individual has index 0! Const version. Definition at line 106 of file selection.h. Referenced by SelectionMatrix::calculateMatrix(), EAStrategy::evolve(), Selector::proportionalSelection(), and EAStrategy::recombine(). |