- Main Page
- Classes
- Files

- Search for |

# moFitComparator.h

    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
    00025
    00030   bool operator()(const EOT& _solution1, const EOT& _solution2)
    00031   {
    00032     return _solution1.fitness()>_solution2.fitness();
    00033   }
    00034 };
    00035
    00036 #endif