Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members  

SelectionSituation Class Reference

A temporary situation where pairs of are expected to be select for mating. More...

#include <selection.h>

List of all members.

Public Methods

 SelectionSituation (const SimplePopulation &pop)
const IndividualgetOrdered (int i) const


Detailed Description

A temporary situation where pairs of are expected to be select for mating.

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.


Constructor & Destructor Documentation

SelectionSituation const SimplePopulation   pop
 

Standard constructor.

Parameters:
pop  The population.
ordpop  Individuals of the population ordered according to their fitnesses.

Definition at line 96 of file selection.cc.


Member Function Documentation

const Individual& getOrdered int    i const [inline]
 

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().


The documentation for this class was generated from the following files:
Generated on Thu Feb 10 20:12:01 2005 for NeHeP by doxygen1.2.18