Main Page   Class Hierarchy   Alphabetical List   Compound List   Compound Members  

prapi::ga::SurvivorSelector< T > Class Template Reference

#include <GeneticEngine.h>

Inheritance diagram for prapi::ga::SurvivorSelector< T >:

prapi::ga::RankSelector< T > List of all members.

Detailed Description

template<class T = double>
class prapi::ga::SurvivorSelector< T >

An interface for different survivor selection schemes.

Public Methods

virtual void selectSurvivors (const util::List< Individual< T > > &from, util::List< Individual< T > > &to)=0
 Select some fit individuals that survive to the next generation.

Member Function Documentation

template<class T = double>
virtual void prapi::ga::SurvivorSelector< T >::selectSurvivors const util::List< Individual< T > > &    from,
util::List< Individual< T > > &    to
[pure virtual]

Select some fit individuals that survive to the next generation.

from  the list from which individuals are to be selected. createNextGeneration always sorts from prior to calling this method (ascending fitness order).
to  the list that stores the selected individuals

Implemented in prapi::ga::RankSelector< T >.

The documentation for this class was generated from the following file:
Documentation generated on 11.09.2003 with Doxygen.
The documentation is copyrighted material.
Copyright © Topi Mäenpää 2003. All rights reserved.