update comparators
git-svn-id: svn://scm.gforge.inria.fr/svnroot/paradiseo@307 331e1502-861f-0410-8da2-ba01fb791d7f
This commit is contained in:
parent
8d887505f9
commit
0886bab551
1 changed files with 4 additions and 4 deletions
|
|
@ -68,7 +68,7 @@ public:
|
||||||
*/
|
*/
|
||||||
static double tiny()
|
static double tiny()
|
||||||
{
|
{
|
||||||
return 1e-6;
|
return 1e-6;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -193,8 +193,8 @@ public:
|
||||||
double operator()(const ObjectiveVector & _o1, const ObjectiveVector & _o2)
|
double operator()(const ObjectiveVector & _o1, const ObjectiveVector & _o2)
|
||||||
{
|
{
|
||||||
double result;
|
double result;
|
||||||
// if _o1 dominates _o2
|
// if _o2 is dominated by _o1
|
||||||
if ( paretoComparator(_o1,_o2) )
|
if ( paretoComparator(_o2,_o1) )
|
||||||
{
|
{
|
||||||
result = - hypervolume(_o1, _o2, ObjectiveVector::Traits::nObjectives()-1);
|
result = - hypervolume(_o1, _o2, ObjectiveVector::Traits::nObjectives()-1);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue