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:
parent
750d72313f
commit
32c54f2996
1 changed files with 6 additions and 0 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue