From 814062d01d9e1c4d41f127d04304047f7e278af1 Mon Sep 17 00:00:00 2001 From: verel Date: Mon, 11 Mar 2013 13:47:19 +0100 Subject: [PATCH] debug moMonOpPerturb : replace "res = res || monOp(_solution);" by " res = monOp(_solution) || res;" ! --- mo/src/perturb/moMonOpPerturb.h | 4 ++-- mo/src/problems/bitString/moBitsWithoutReplNeighborhood.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/mo/src/perturb/moMonOpPerturb.h b/mo/src/perturb/moMonOpPerturb.h index a4bcea574..e0dc138da 100644 --- a/mo/src/perturb/moMonOpPerturb.h +++ b/mo/src/perturb/moMonOpPerturb.h @@ -60,8 +60,8 @@ public: bool operator()(EOT& _solution) { bool res = false; - for(unsigned int i = 0; i < nbPerturbation; i++) - res = res || monOp(_solution); + for(unsigned int i = 0; i < nbPerturbation; i++) + res = monOp(_solution) || res; _solution.invalidate(); fullEval(_solution); diff --git a/mo/src/problems/bitString/moBitsWithoutReplNeighborhood.h b/mo/src/problems/bitString/moBitsWithoutReplNeighborhood.h index 652e8ed02..4584a791a 100644 --- a/mo/src/problems/bitString/moBitsWithoutReplNeighborhood.h +++ b/mo/src/problems/bitString/moBitsWithoutReplNeighborhood.h @@ -81,7 +81,7 @@ public: /* all the neighbors */ if (neighborhoodSize >= 1000000) { - std::cout << "moBitsNeighborhood::Warning : the neighborhood size is larger than 10^6 : " << neighborhoodSize << std::endl; + std::cout << "moBitsWithoutReplNeighborhood::Warning : the neighborhood size is larger than 10^6 : " << neighborhoodSize << std::endl; } int j;