Corrected a serious bug in eoUniformMutation (double declaration of bool HasChanged)
The consequence was that if that mutation was the only operator called on some individual, it was not invalidated, and hence its fitness not recomputed!!!
This commit is contained in:
parent
4fea57e84d
commit
6546cb8c52
1 changed files with 0 additions and 1 deletions
|
|
@ -111,7 +111,6 @@ template<class EOT> class eoUniformMutation: public eoMonOp<EOT>
|
|||
if (_eo.size() != bounds.size())
|
||||
throw runtime_error("Invalid size of indi in eoUniformMutation");
|
||||
|
||||
bool hasChanged=false;
|
||||
for (unsigned lieu=0; lieu<_eo.size(); lieu++)
|
||||
if (rng.flip(p_change[lieu]))
|
||||
{
|
||||
|
|
|
|||
Reference in a new issue