From c876f0b58bf4e3d04b2ef56cd868cb7cfbd55958 Mon Sep 17 00:00:00 2001 From: Arnaud Liefooghe Date: Wed, 22 Oct 2014 12:35:00 +0200 Subject: [PATCH] maximizing objectives --- moeo/src/metric/moeoHypervolumeBinaryMetric.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/moeo/src/metric/moeoHypervolumeBinaryMetric.h b/moeo/src/metric/moeoHypervolumeBinaryMetric.h index bf4fb7418..3fbc42031 100644 --- a/moeo/src/metric/moeoHypervolumeBinaryMetric.h +++ b/moeo/src/metric/moeoHypervolumeBinaryMetric.h @@ -98,11 +98,11 @@ public: // if _o2 is dominated by _o1 if ( paretoComparator(_o2,_o1) ) { - result = - hypervolume(_o1, _o2, ObjectiveVector::Traits::nObjectives()-1); + result = - hypervolume(o1, o2, ObjectiveVector::Traits::nObjectives()-1); } else { - result = hypervolume(_o2, _o1, ObjectiveVector::Traits::nObjectives()-1); + result = hypervolume(o2, o1, ObjectiveVector::Traits::nObjectives()-1); } return result; }