#include <Recombination_KeepBest.h>
Public Member Functions | |
Recombination_KeepBest (unsigned int nElitists) | |
Constructor. | |
virtual bool | recombine (vector< Chromosome< T > * > ¤tPopulation, vector< Chromosome< T > * > &offsprings) |
Implementation of the recombination strategy. |
<File comment goes here!!>
Copyright (c) 2008 by <Quang Huy / NTU>
The best individuals in the current population are retained and the remaining part of population is replaced by the top individuals in the offpring.
Recombination_KeepBest< T >::Recombination_KeepBest | ( | unsigned int | nElitists | ) | [inline] |
Constructor.
nElitists | Number of elitists |