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:
evomarc 2002-02-09 05:01:48 +00:00
commit 6546cb8c52

View file

@ -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]))
{