// -*- mode: c++; c-indent-level: 4; c++-member-init-indent: 8; comment-column: 35; -*- //----------------------------------------------------------------------------- // moeoNormalizedSolutionVsSolutionBinaryMetric.h // (c) OPAC Team (LIFL), Dolphin Project (INRIA), 2007 /* This library... Contact: paradiseo-help@lists.gforge.inria.fr, http://paradiseo.gforge.inria.fr */ //----------------------------------------------------------------------------- #ifndef MOEONORMALIZEDSOLUTIONVSSOLUTIONBINARYMETRIC_H_ #define MOEONORMALIZEDSOLUTIONVSSOLUTIONBINARYMETRIC_H_ #include #include #include /** * Base class for binary metrics dedicated to the performance comparison between two solutions's objective vectors using normalized values. * Then, indicator values lie in the interval [-1,1]. * Note that you have to set the bounds for every objective before using the operator(). */ template < class ObjectiveVector, class R > class moeoNormalizedSolutionVsSolutionBinaryMetric : public moeoSolutionVsSolutionBinaryMetric < ObjectiveVector, R > { public: /** * Default ctr for any moeoNormalizedSolutionVsSolutionBinaryMetric object */ moeoNormalizedSolutionVsSolutionBinaryMetric() { bounds.resize(ObjectiveVector::Traits::nObjectives()); // initialize bounds in case someone does not want to use them for (unsigned int i=0; i bounds; }; #endif /*MOEONORMALIZEDSOLUTIONVSSOLUTIONBINARYMETRIC_H_*/