From d6e7fcd286be49ab078e9ca06d7d09f010ef365a Mon Sep 17 00:00:00 2001 From: verel Date: Thu, 29 Apr 2010 15:36:43 +0000 Subject: [PATCH] Ajout de incremental evaluation for the royal road problem git-svn-id: svn://scm.gforge.inria.fr/svnroot/paradiseo@1768 331e1502-861f-0410-8da2-ba01fb791d7f --- trunk/paradiseo-mo/src/problems/eval/moRoyalRoadIncrEval.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/trunk/paradiseo-mo/src/problems/eval/moRoyalRoadIncrEval.h b/trunk/paradiseo-mo/src/problems/eval/moRoyalRoadIncrEval.h index ca85e69de..a20965851 100644 --- a/trunk/paradiseo-mo/src/problems/eval/moRoyalRoadIncrEval.h +++ b/trunk/paradiseo-mo/src/problems/eval/moRoyalRoadIncrEval.h @@ -66,7 +66,7 @@ public: _neighbor.fitness(_solution.fitness() - 1); else { if ((_solution[_neighbor.index()] == 0) && (offset + j == _neighbor.index())) { // can the block be filled? - j++; + j++; // next bit while (_solution[offset + j] && j < k) j++; if (j == k) // the block can be filled, so the fitness increases from one