Main Page   Class Hierarchy   Alphabetical List   Compound List   Compound Members  

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

#include <GeneticEngine.h>

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

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

Detailed Description

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

An interface for different offspring production schemes.

Public Methods

virtual void createChildren (const util::List< Individual< T > > &from, util::List< Individual< T > > &to)=0
 Select some pairs of parents and breed them to produce some offspring.

Member Function Documentation

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

Select some pairs of parents and breed them to produce some offspring.

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::CrossingOverBreeder< 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.