debug moMonOpPerturb : replace "res = res || monOp(_solution);" by " res = monOp(_solution) || res;" !

This commit is contained in:
verel 2013-03-11 13:47:19 +01:00
commit 814062d01d
2 changed files with 3 additions and 3 deletions

View file

@ -60,8 +60,8 @@ public:
bool operator()(EOT& _solution) { bool operator()(EOT& _solution) {
bool res = false; bool res = false;
for(unsigned int i = 0; i < nbPerturbation; i++) for(unsigned int i = 0; i < nbPerturbation; i++)
res = res || monOp(_solution); res = monOp(_solution) || res;
_solution.invalidate(); _solution.invalidate();
fullEval(_solution); fullEval(_solution);

View file

@ -81,7 +81,7 @@ public:
/* all the neighbors */ /* all the neighbors */
if (neighborhoodSize >= 1000000) { 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; int j;