Corrected a HUGE bug in eoRealUXover !!!
Thanks to Gilles BAUDRILLARD - EADS
This commit is contained in:
parent
aac8ff6cb9
commit
baeeeec1e5
1 changed files with 1 additions and 1 deletions
|
|
@ -484,7 +484,7 @@ template<class EOT> class eoRealUXover: public eoQuadOp<EOT>
|
||||||
for (unsigned int i=0; i<_eo1.size(); i++)
|
for (unsigned int i=0; i<_eo1.size(); i++)
|
||||||
{
|
{
|
||||||
if (rng.flip(preference))
|
if (rng.flip(preference))
|
||||||
if (_eo1[i] == _eo2[i])
|
if (_eo1[i] != _eo2[i])
|
||||||
{
|
{
|
||||||
double tmp = _eo1[i];
|
double tmp = _eo1[i];
|
||||||
_eo1[i]=_eo2[i];
|
_eo1[i]=_eo2[i];
|
||||||
|
|
|
||||||
Reference in a new issue