update moIndexedVectorTabuList

This commit is contained in:
verel 2014-06-27 21:25:08 +02:00
commit fa03cd7efe
2 changed files with 29 additions and 4 deletions

View file

@ -70,7 +70,7 @@ public:
bool res = false;
if (rndPerturb)
nbPerturbation = nbPerturbationMin + rng.random(nbPerturbationMax);
nbPerturbation = nbPerturbationMin + rng.random(nbPerturbationMax - nbPerturbationMin);
for(unsigned int i = 0; i < nbPerturbation; i++)
res = monOp(_solution) || res;