From d0f3b5c3b479137e5c9081cf67b3a5e04a8d808a Mon Sep 17 00:00:00 2001 From: liefooga Date: Tue, 19 Jun 2007 09:28:32 +0000 Subject: [PATCH] change '*' to '&' git-svn-id: svn://scm.gforge.inria.fr/svnroot/paradiseo@334 331e1502-861f-0410-8da2-ba01fb791d7f --- ...moeoReferencePointIndicatorBasedFitnessAssignment.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/branches/paradiseo-moeo-1.0/src/moeoReferencePointIndicatorBasedFitnessAssignment.h b/branches/paradiseo-moeo-1.0/src/moeoReferencePointIndicatorBasedFitnessAssignment.h index 097ee16e5..f000b844c 100755 --- a/branches/paradiseo-moeo-1.0/src/moeoReferencePointIndicatorBasedFitnessAssignment.h +++ b/branches/paradiseo-moeo-1.0/src/moeoReferencePointIndicatorBasedFitnessAssignment.h @@ -34,7 +34,7 @@ public: * @param _refPoint the reference point * @param _metric the quality indicator */ - moeoReferencePointIndicatorBasedFitnessAssignment (const ObjectiveVector _refPoint, moeoNormalizedSolutionVsSolutionBinaryMetric < ObjectiveVector, double > * _metric) : + moeoReferencePointIndicatorBasedFitnessAssignment (ObjectiveVector & _refPoint, moeoNormalizedSolutionVsSolutionBinaryMetric < ObjectiveVector, double > & _metric) : refPoint(_refPoint), metric(_metric) {} @@ -66,9 +66,9 @@ public: protected: /** the reference point */ - ObjectiveVector refPoint; + ObjectiveVector & refPoint; /** the quality indicator */ - moeoNormalizedSolutionVsSolutionBinaryMetric < ObjectiveVector, double > * metric; + moeoNormalizedSolutionVsSolutionBinaryMetric < ObjectiveVector, double > & metric; /** @@ -88,7 +88,7 @@ protected: max = std::max(max, _pop[j].objectiveVector()[i]); } // setting of the bounds for the objective i - (*metric).setup(min, max, i); + metric.setup(min, max, i); } } @@ -100,7 +100,7 @@ protected: { for (unsigned i=0; i<_pop.size(); i++) { - _pop[i].fitness(- (*metric)(_pop[i].objectiveVector(), refPoint) ); + _pop[i].fitness(- metric(_pop[i].objectiveVector(), refPoint) ); } }