00001
00012 #ifndef _TournamentSelection_h
00013 #define _TournamentSelection_h
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 #include "SelectionMethod.h"
00024
00025
00026
00027
00028
00029 class TournamentSelection
00030 : public SelectionMethod
00031 {
00032 public:
00033
00034
00037 ~TournamentSelection(void);
00038
00039
00040
00041
00044 virtual std::auto_ptr<SelectionMethod> Clone() const;
00045
00056 virtual void Select(Population& population,
00057 double partOfPopulationToLeave,
00058 EvolutionaryMethodIteration& iteration) const;
00059
00060
00061
00066 virtual wxString ToString() const;
00067
00072 virtual wxString Name() const;
00073
00074
00075
00076 protected:
00077 private:
00078
00081 TournamentSelection(void);
00082
00087 TournamentSelection(const TournamentSelection& from);
00088
00091 static TournamentSelection mTournamentSelection;
00094 static const wxString mName;
00095
00096 };
00097
00098
00099
00100
00101
00102
00103
00104 #endif // _TournamentSelection_h