maximizing objectives
This commit is contained in:
parent
5a74f9a3c6
commit
c876f0b58b
1 changed files with 2 additions and 2 deletions
|
|
@ -98,11 +98,11 @@ public:
|
||||||
// if _o2 is dominated by _o1
|
// if _o2 is dominated by _o1
|
||||||
if ( paretoComparator(_o2,_o1) )
|
if ( paretoComparator(_o2,_o1) )
|
||||||
{
|
{
|
||||||
result = - hypervolume(_o1, _o2, ObjectiveVector::Traits::nObjectives()-1);
|
result = - hypervolume(o1, o2, ObjectiveVector::Traits::nObjectives()-1);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
result = hypervolume(_o2, _o1, ObjectiveVector::Traits::nObjectives()-1);
|
result = hypervolume(o2, o1, ObjectiveVector::Traits::nObjectives()-1);
|
||||||
}
|
}
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue