From 80aa04d6da1a0e949441381d80c5016f0f5db668 Mon Sep 17 00:00:00 2001 From: Johann Dreo Date: Fri, 21 Jun 2013 09:52:12 +0200 Subject: [PATCH] Overload setup in the dual fitness assignment, to handle comparison overloading --- ...inaryIndicatorBasedDualFitnessAssignment.h | 35 +++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/moeo/src/fitness/moeoExpBinaryIndicatorBasedDualFitnessAssignment.h b/moeo/src/fitness/moeoExpBinaryIndicatorBasedDualFitnessAssignment.h index 78c3d08fe..af57e372f 100644 --- a/moeo/src/fitness/moeoExpBinaryIndicatorBasedDualFitnessAssignment.h +++ b/moeo/src/fitness/moeoExpBinaryIndicatorBasedDualFitnessAssignment.h @@ -77,6 +77,41 @@ public: protected: using moeoExpBinaryIndicatorBasedFitnessAssignment::kappa; + using moeoExpBinaryIndicatorBasedFitnessAssignment::metric; + + + /** + * Sets the bounds for every objective using the min and the max value for every objective vector of _pop + * @param _pop the population + */ + void setup(const eoPop < MOEOT > & _pop) + { + Type worst, best; + typename MOEOT::ObjectiveVector::Type::Compare cmp; + + for (unsigned int i=0; i