moILS has been added, berlin52.tsp too, moComparator, moFitComparator, ...
git-svn-id: svn://scm.gforge.inria.fr/svnroot/paradiseo@606 331e1502-861f-0410-8da2-ba01fb791d7f
This commit is contained in:
parent
98f2988555
commit
b1520dda65
366 changed files with 12063 additions and 1766 deletions
29
trunk/paradiseo-mo/src/moFitComparator.h
Normal file
29
trunk/paradiseo-mo/src/moFitComparator.h
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
// -*- mode: c++; c-indent-level: 4; c++-member-init-indent: 8; comment-column: 35; -*-
|
||||
|
||||
// "moFitComparator.h"
|
||||
|
||||
// (c) OPAC Team, LIFL, 2003-2007
|
||||
|
||||
/* TEXT LICENCE
|
||||
|
||||
Contact: paradiseo-help@lists.gforge.inria.fr
|
||||
*/
|
||||
|
||||
#ifndef __moFitComparator_h
|
||||
#define __moFitComparator_h
|
||||
|
||||
//! Comparison according to the fitness.
|
||||
/*!
|
||||
An EOT is better than an other if its fitness is better.
|
||||
*/
|
||||
template<class EOT>
|
||||
class moFitComparator: public moComparator<EOT>
|
||||
{
|
||||
public:
|
||||
bool operator()(const EOT& _solution1, const EOT& _solution2)
|
||||
{
|
||||
return _solution1.fitness()>_solution2.fitness();
|
||||
}
|
||||
};
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue