add default bounds init

git-svn-id: svn://scm.gforge.inria.fr/svnroot/paradiseo@343 331e1502-861f-0410-8da2-ba01fb791d7f
This commit is contained in:
liefooga 2007-06-21 14:27:20 +00:00
commit 32c54f2996

View file

@ -14,6 +14,7 @@
#define MOEONORMALIZEDSOLUTIONVSSOLUTIONBINARYMETRIC_H_
#include <stdexcept>
#include <utils/eoRealBounds.h>
#include <metric/moeoMetric.h>
@ -33,6 +34,11 @@ public:
moeoNormalizedSolutionVsSolutionBinaryMetric()
{
bounds.resize(ObjectiveVector::Traits::nObjectives());
// initialize bounds in case someone does not want to use them
for (unsigned i=0; i<ObjectiveVector::Traits::nObjectives(); i++)
{
bounds[i] = eoRealInterval(0,1);
}
}