Ajout du moHillClimberSampling, et ajout des méthodes init dans les stats ;)

git-svn-id: svn://scm.gforge.inria.fr/svnroot/paradiseo@1786 331e1502-861f-0410-8da2-ba01fb791d7f
This commit is contained in:
verel 2010-05-05 12:41:53 +00:00
commit 26055cda7f
15 changed files with 103 additions and 8 deletions

View file

@ -56,6 +56,15 @@ public :
moFitnessStat(std::string _description = "fitness"):
moStat<EOT, Fitness>(Fitness(), _description) {}
/**
* store the initial fitness value
* @param _sol the initial solution
*/
virtual void init(EOT & _sol)
{
value() = _sol.fitness();
}
/**
* store fitness value
* @param _sol the corresponding solution