Removed debugging printouts
This commit is contained in:
parent
395ca20a5c
commit
149ad68cb5
1 changed files with 0 additions and 6 deletions
|
|
@ -65,8 +65,6 @@ public:
|
||||||
|
|
||||||
void operator()(eoPop<EOT> & _parents, eoPop<EOT> & _offspring)
|
void operator()(eoPop<EOT> & _parents, eoPop<EOT> & _offspring)
|
||||||
{
|
{
|
||||||
cout << "Entering MGGReplacement" << endl;
|
|
||||||
|
|
||||||
eoPop<EOT> temp;
|
eoPop<EOT> temp;
|
||||||
split(_parents, temp);
|
split(_parents, temp);
|
||||||
unsigned toKeep = temp.size(); // how many to keep from merged populations
|
unsigned toKeep = temp.size(); // how many to keep from merged populations
|
||||||
|
|
@ -83,21 +81,17 @@ public:
|
||||||
|
|
||||||
// merge temp into offspring
|
// merge temp into offspring
|
||||||
plus(temp, _offspring);
|
plus(temp, _offspring);
|
||||||
cout << "MGGReplacement - after merge" << endl;
|
|
||||||
|
|
||||||
// repeatedly add selected offspring to parents
|
// repeatedly add selected offspring to parents
|
||||||
for (unsigned i=0; i<toKeep-1; i++)
|
for (unsigned i=0; i<toKeep-1; i++)
|
||||||
{
|
{
|
||||||
cout << "Loop " << i << " " << toKeep << endl;
|
|
||||||
// select
|
// select
|
||||||
it = deterministic_tournament(_offspring.begin(), _offspring.end(), tSize);
|
it = deterministic_tournament(_offspring.begin(), _offspring.end(), tSize);
|
||||||
cout << "Loop after tournament " << *it << endl;
|
|
||||||
// add to parents
|
// add to parents
|
||||||
_parents.push_back(*it);
|
_parents.push_back(*it);
|
||||||
// remove from offspring
|
// remove from offspring
|
||||||
_offspring.erase(it);
|
_offspring.erase(it);
|
||||||
}
|
}
|
||||||
cout << "Leaving MGGReplacement" << endl;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
|
||||||
Reference in a new issue