Changed a few things in the eoPerf2Worth classes, EO.h and eoSelectOne.h are functionally unchanged
This commit is contained in:
parent
9bbac485f9
commit
665e20b0f8
10 changed files with 331 additions and 80 deletions
|
|
@ -93,12 +93,12 @@ class eoDominanceMap : public eoUF<const eoPop<EoType>&, void>, public std::vect
|
|||
|
||||
for (unsigned j = 0; j < i; ++j)
|
||||
{
|
||||
if (_pop[i].fitness() > _pop[j].fitness())
|
||||
if (_pop[i].fitness().dominates(_pop[j].fitness()))
|
||||
{
|
||||
operator[](i)[j] = true;
|
||||
operator[](j)[i] = false;
|
||||
}
|
||||
else if (_pop[j].fitness() > _pop[i].fitness())
|
||||
else if (_pop[j].fitness().dominates(_pop[i].fitness()))
|
||||
{
|
||||
operator[](i)[j] = false;
|
||||
operator[](j)[i] = true;
|
||||
|
|
|
|||
Reference in a new issue