From 0886bab551706765ed9ba16b7bb0f14950ebd9f2 Mon Sep 17 00:00:00 2001 From: liefooga Date: Mon, 18 Jun 2007 15:35:35 +0000 Subject: [PATCH] update comparators git-svn-id: svn://scm.gforge.inria.fr/svnroot/paradiseo@307 331e1502-861f-0410-8da2-ba01fb791d7f --- .../metric/moeoNormalizedSolutionVsSolutionBinaryMetric.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/branches/paradiseo-moeo-1.0/src/metric/moeoNormalizedSolutionVsSolutionBinaryMetric.h b/branches/paradiseo-moeo-1.0/src/metric/moeoNormalizedSolutionVsSolutionBinaryMetric.h index be9e6659c..0de4352f2 100644 --- a/branches/paradiseo-moeo-1.0/src/metric/moeoNormalizedSolutionVsSolutionBinaryMetric.h +++ b/branches/paradiseo-moeo-1.0/src/metric/moeoNormalizedSolutionVsSolutionBinaryMetric.h @@ -68,9 +68,9 @@ public: */ static double tiny() { - return 1e-6; + return 1e-6; } - + protected: @@ -193,8 +193,8 @@ public: double operator()(const ObjectiveVector & _o1, const ObjectiveVector & _o2) { double result; - // if _o1 dominates _o2 - if ( paretoComparator(_o1,_o2) ) + // if _o2 is dominated by _o1 + if ( paretoComparator(_o2,_o1) ) { result = - hypervolume(_o1, _o2, ObjectiveVector::Traits::nObjectives()-1); }