add FastGA foundry and eoStandardBitMutation variants
This commit is contained in:
parent
1cdb134ee2
commit
efa6567359
11 changed files with 598 additions and 4 deletions
|
|
@ -106,6 +106,7 @@ public:
|
|||
for (size_t i = 0; i < rates.size(); ++i) {
|
||||
_pop.seekp(pos);
|
||||
do {
|
||||
// std::clog << "Before:" << _pop.offspring().size() << " offsprings" << std::endl;
|
||||
if (eo::rng.flip(rates[i])) {
|
||||
// try
|
||||
// {
|
||||
|
|
@ -126,6 +127,11 @@ public:
|
|||
|
||||
if (!_pop.exhausted())
|
||||
++_pop;
|
||||
|
||||
// std::clog << "After:" << _pop.offspring().size() << " offsprings" << std::endl;
|
||||
// std::clog << _pop.offspring() << std::endl;
|
||||
// std::clog << std::endl;
|
||||
|
||||
}
|
||||
while (!_pop.exhausted());
|
||||
}
|
||||
|
|
@ -155,6 +161,7 @@ public:
|
|||
|
||||
try
|
||||
{
|
||||
// std::clog << "\t" << ops[i]->className() << std::endl;
|
||||
(*ops[i])(_pop);
|
||||
++_pop;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue