change '*' to '&'
git-svn-id: svn://scm.gforge.inria.fr/svnroot/paradiseo@334 331e1502-861f-0410-8da2-ba01fb791d7f
This commit is contained in:
parent
ba71d00a1e
commit
d0f3b5c3b4
1 changed files with 5 additions and 5 deletions
|
|
@ -34,7 +34,7 @@ public:
|
||||||
* @param _refPoint the reference point
|
* @param _refPoint the reference point
|
||||||
* @param _metric the quality indicator
|
* @param _metric the quality indicator
|
||||||
*/
|
*/
|
||||||
moeoReferencePointIndicatorBasedFitnessAssignment (const ObjectiveVector _refPoint, moeoNormalizedSolutionVsSolutionBinaryMetric < ObjectiveVector, double > * _metric) :
|
moeoReferencePointIndicatorBasedFitnessAssignment (ObjectiveVector & _refPoint, moeoNormalizedSolutionVsSolutionBinaryMetric < ObjectiveVector, double > & _metric) :
|
||||||
refPoint(_refPoint), metric(_metric)
|
refPoint(_refPoint), metric(_metric)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
|
@ -66,9 +66,9 @@ public:
|
||||||
protected:
|
protected:
|
||||||
|
|
||||||
/** the reference point */
|
/** the reference point */
|
||||||
ObjectiveVector refPoint;
|
ObjectiveVector & refPoint;
|
||||||
/** the quality indicator */
|
/** the quality indicator */
|
||||||
moeoNormalizedSolutionVsSolutionBinaryMetric < ObjectiveVector, double > * metric;
|
moeoNormalizedSolutionVsSolutionBinaryMetric < ObjectiveVector, double > & metric;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -88,7 +88,7 @@ protected:
|
||||||
max = std::max(max, _pop[j].objectiveVector()[i]);
|
max = std::max(max, _pop[j].objectiveVector()[i]);
|
||||||
}
|
}
|
||||||
// setting of the bounds for the objective 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++)
|
for (unsigned i=0; i<_pop.size(); i++)
|
||||||
{
|
{
|
||||||
_pop[i].fitness(- (*metric)(_pop[i].objectiveVector(), refPoint) );
|
_pop[i].fitness(- metric(_pop[i].objectiveVector(), refPoint) );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue