debug moMonOpPerturb : replace "res = res || monOp(_solution);" by " res = monOp(_solution) || res;" !
This commit is contained in:
parent
b06250dc39
commit
814062d01d
2 changed files with 3 additions and 3 deletions
|
|
@ -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);
|
||||||
|
|
|
||||||
|
|
@ -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;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue