Sort dissappeared in one-objective
This commit is contained in:
parent
bc1e98a65a
commit
fd2fcc8e2b
1 changed files with 3 additions and 1 deletions
|
|
@ -101,7 +101,9 @@ private :
|
|||
tmp_pop[i].fitness(_pop[i].fitness());
|
||||
tmp_pop[i].index = i;
|
||||
}
|
||||
|
||||
|
||||
sort(tmp_pop.begin(), tmp_pop.end(), std::greater<DummyEO>());
|
||||
|
||||
for (i = 0; i < _pop.size(); ++i)
|
||||
{
|
||||
value()[tmp_pop[i].index] = _pop.size() - i; // set rank
|
||||
|
|
|
|||
Reference in a new issue