00001 // -*- mode: c++; c-indent-level: 4; c++-member-init-indent: 8; comment-column: 35; -*- 00002 00003 // "moFitComparator.h" 00004 00005 // (c) OPAC Team, LIFL, 2003-2007 00006 00007 /* TEXT LICENCE 00008 00009 Contact: paradiseo-help@lists.gforge.inria.fr 00010 */ 00011 00012 #ifndef __moFitComparator_h 00013 #define __moFitComparator_h 00014 00016 00019 template<class EOT> 00020 class moFitComparator: public moComparator<EOT> 00021 { 00022 public: 00023 bool operator()(const EOT& _solution1, const EOT& _solution2) 00024 { 00025 return _solution1.fitness()>_solution2.fitness(); 00026 } 00027 }; 00028 00029 #endif
1.5.2