fix(mo): comment out unused parameters

Removes -Wunused-parameters warnings.
This commit is contained in:
Johann Dreo 2022-09-10 06:26:34 +02:00
commit c2a3ed4e7f
69 changed files with 159 additions and 159 deletions

View file

@ -48,7 +48,7 @@ public:
* @param _sol2 the new solution after local search * @param _sol2 the new solution after local search
* @return always true * @return always true
*/ */
bool operator()(EOT& _sol1, EOT& _sol2) { bool operator()(EOT& /*_sol1*/, EOT& /*_sol2*/) {
return true; return true;
} }

View file

@ -47,7 +47,7 @@ public:
* Do nothing on the solution * Do nothing on the solution
* @param _solution the related solution * @param _solution the related solution
*/ */
virtual bool operator()(EOT & _solution) { virtual bool operator()(EOT & /*_solution*/) {
return true; return true;
} }
}; };

View file

@ -61,7 +61,7 @@ public :
* Set the average of fitness in the neighborhood * Set the average of fitness in the neighborhood
* @param _sol the first solution * @param _sol the first solution
*/ */
virtual void init(EOT & _sol) { virtual void init(EOT & /*_sol*/) {
value() = nhStat.getMean(); value() = nhStat.getMean();
} }
@ -69,7 +69,7 @@ public :
* Set the average of fitness in the neighborhood * Set the average of fitness in the neighborhood
* @param _sol the corresponding solution * @param _sol the corresponding solution
*/ */
virtual void operator()(EOT & _sol) { virtual void operator()(EOT & /*_sol*/) {
value() = nhStat.getMean(); value() = nhStat.getMean();
} }

View file

@ -93,7 +93,7 @@ public:
* reset the counter of iteration * reset the counter of iteration
* @param _solution a solution * @param _solution a solution
*/ */
virtual void init(EOT & _solution) { virtual void init(EOT & /*_solution*/) {
cpt = 0; cpt = 0;
} }

View file

@ -56,7 +56,7 @@ public :
* Init the number of iteration * Init the number of iteration
* @param _sol a solution * @param _sol a solution
*/ */
virtual void init(EOT & _sol) { virtual void init(EOT & /*_sol*/) {
value() = *b; value() = *b;
} }
@ -64,7 +64,7 @@ public :
* Set the number of iteration * Set the number of iteration
* @param _sol a solution * @param _sol a solution
*/ */
virtual void operator()(EOT & _sol) { virtual void operator()(EOT & /*_sol*/) {
value() = *b; value() = *b;
} }

View file

@ -52,13 +52,13 @@ public:
* Init Continuator parameters * Init Continuator parameters
* @param _solution the related solution * @param _solution the related solution
*/ */
virtual void init(EOT& _solution) {}; virtual void init(EOT& /*_solution*/) {};
/** /**
* Last Call to terminate the checkpoint * Last Call to terminate the checkpoint
* @param _solution the related solution * @param _solution the related solution
*/ */
virtual void lastCall(EOT& _solution) {}; virtual void lastCall(EOT& /*_solution*/) {};
}; };
#endif #endif

View file

@ -56,7 +56,7 @@ public :
* Init the number of iteration * Init the number of iteration
* @param _sol a solution * @param _sol a solution
*/ */
virtual void init(EOT & _sol) { virtual void init(EOT & /*_sol*/) {
value() = 0; value() = 0;
} }
@ -64,7 +64,7 @@ public :
* Set the number of iteration * Set the number of iteration
* @param _sol a solution * @param _sol a solution
*/ */
virtual void operator()(EOT & _sol) { virtual void operator()(EOT & /*_sol*/) {
value() = value() + 1; value() = value() + 1;
} }

View file

@ -65,7 +65,7 @@ public:
* @param _solution a solution * @param _solution a solution
* @return true if number of evaluations < maxEvals * @return true if number of evaluations < maxEvals
*/ */
virtual bool operator()(EOT & _solution) { virtual bool operator()(EOT & /*_solution*/) {
return (fullEval.value() + neighborEval.value() - nbEval_start < maxEvals); return (fullEval.value() + neighborEval.value() - nbEval_start < maxEvals);
} }
@ -73,7 +73,7 @@ public:
* Reset the number of evaluations * Reset the number of evaluations
* @param _solution a solution * @param _solution a solution
*/ */
virtual void init(EOT & _solution) { virtual void init(EOT & /*_solution*/) {
if (restartCounter) if (restartCounter)
nbEval_start = fullEval.value() + neighborEval.value(); nbEval_start = fullEval.value() + neighborEval.value();
else else

View file

@ -63,7 +63,7 @@ public:
* @param _solution a solution * @param _solution a solution
* @return true if number of evaluations < maxFullEval * @return true if number of evaluations < maxFullEval
*/ */
virtual bool operator()(EOT & _solution) { virtual bool operator()(EOT & /*_solution*/) {
return (eval.value() - nbEval_start < maxFullEval); return (eval.value() - nbEval_start < maxFullEval);
} }
@ -71,7 +71,7 @@ public:
* Reset the number of evaluations * Reset the number of evaluations
* @param _solution a solution * @param _solution a solution
*/ */
virtual void init(EOT & _solution) { virtual void init(EOT & /*_solution*/) {
if (restartCounter) if (restartCounter)
nbEval_start = eval.value(); nbEval_start = eval.value();
else else

View file

@ -52,7 +52,7 @@ public:
*@param _solution a solution *@param _solution a solution
*@return true if counter < maxIter *@return true if counter < maxIter
*/ */
virtual bool operator()(EOT & _solution) { virtual bool operator()(EOT & /*_solution*/) {
bool res; bool res;
cpt++; cpt++;
res = (cpt < maxIter); res = (cpt < maxIter);
@ -65,7 +65,7 @@ public:
* reset the counter of iteration * reset the counter of iteration
* @param _solution a solution * @param _solution a solution
*/ */
virtual void init(EOT & _solution) { virtual void init(EOT & /*_solution*/) {
cpt = 0; cpt = 0;
} }

View file

@ -62,7 +62,7 @@ public :
* Set the max fitness in the neighborhood * Set the max fitness in the neighborhood
* @param _sol the first solution * @param _sol the first solution
*/ */
virtual void init(EOT & _sol) { virtual void init(EOT & /*_sol*/) {
value() = nhStat.getMax(); value() = nhStat.getMax();
} }
@ -70,7 +70,7 @@ public :
* Set the max fitness in the neighborhood * Set the max fitness in the neighborhood
* @param _sol the corresponding solution * @param _sol the corresponding solution
*/ */
virtual void operator()(EOT & _sol) { virtual void operator()(EOT & /*_sol*/) {
value() = nhStat.getMax(); value() = nhStat.getMax();
} }

View file

@ -63,7 +63,7 @@ public :
* Set the median fitness in the neighborhood * Set the median fitness in the neighborhood
* @param _sol the first solution * @param _sol the first solution
*/ */
virtual void init(EOT & _sol) { virtual void init(EOT & /*_sol*/) {
value() = nhStat.getMedian(); value() = nhStat.getMedian();
} }
@ -71,7 +71,7 @@ public :
* Set the median fitness in the neighborhood * Set the median fitness in the neighborhood
* @param _sol the corresponding solution * @param _sol the corresponding solution
*/ */
virtual void operator()(EOT & _sol) { virtual void operator()(EOT & /*_sol*/) {
value() = nhStat.getMedian(); value() = nhStat.getMedian();
} }

View file

@ -62,7 +62,7 @@ public :
* Set the worst fitness in the neighborhood * Set the worst fitness in the neighborhood
* @param _sol the first solution * @param _sol the first solution
*/ */
virtual void init(EOT & _sol) { virtual void init(EOT & /*_sol*/) {
value() = nhStat.getMin(); value() = nhStat.getMin();
} }
@ -70,7 +70,7 @@ public :
* Set the worst fitness in the neighborhood * Set the worst fitness in the neighborhood
* @param _sol the corresponding solution * @param _sol the corresponding solution
*/ */
virtual void operator()(EOT & _sol) { virtual void operator()(EOT & /*_sol*/) {
value() = nhStat.getMin(); value() = nhStat.getMin();
} }

View file

@ -58,7 +58,7 @@ public :
* Init the number of iteration * Init the number of iteration
* @param _sol a solution * @param _sol a solution
*/ */
virtual void init(EOT & _sol) { virtual void init(EOT & /*_sol*/) {
counter = 0; counter = 0;
value() = 0; value() = 0;
} }
@ -67,7 +67,7 @@ public :
* Set the number of iteration * Set the number of iteration
* @param _sol a solution * @param _sol a solution
*/ */
virtual void operator()(EOT & _sol) { virtual void operator()(EOT & /*_sol*/) {
counter++; counter++;
if (counter > 0) if (counter > 0)
value() = counter - 1; value() = counter - 1;

View file

@ -63,7 +63,7 @@ public :
* Set the number of solutions in the neighborhood with (strictly) lower fitness than the current solution * Set the number of solutions in the neighborhood with (strictly) lower fitness than the current solution
* @param _sol the first solution * @param _sol the first solution
*/ */
virtual void init(EOT & _sol) { virtual void init(EOT & /*_sol*/) {
value() = nhStat.getNbInf(); value() = nhStat.getNbInf();
} }
@ -71,7 +71,7 @@ public :
* Set the number of solutions in the neighborhood with (strictly) lower fitness than the current solution * Set the number of solutions in the neighborhood with (strictly) lower fitness than the current solution
* @param _sol the corresponding solution * @param _sol the corresponding solution
*/ */
virtual void operator()(EOT & _sol) { virtual void operator()(EOT & /*_sol*/) {
value() = nhStat.getNbInf(); value() = nhStat.getNbInf();
} }

View file

@ -63,7 +63,7 @@ public :
* Set the number of solutions in the neighborhood with better fitness than the current solution * Set the number of solutions in the neighborhood with better fitness than the current solution
* @param _sol the first solution * @param _sol the first solution
*/ */
virtual void init(EOT & _sol) { virtual void init(EOT & /*_sol*/) {
value() = nhStat.getNbSup(); value() = nhStat.getNbSup();
} }
@ -71,7 +71,7 @@ public :
* Set the number of solutions in the neighborhood with better fitness than the current solution * Set the number of solutions in the neighborhood with better fitness than the current solution
* @param _sol the corresponding solution * @param _sol the corresponding solution
*/ */
virtual void operator()(EOT & _sol) { virtual void operator()(EOT & /*_sol*/) {
value() = nhStat.getNbSup(); value() = nhStat.getNbSup();
} }

View file

@ -61,7 +61,7 @@ public:
* @param _solution a solution * @param _solution a solution
* @return true if number of evaluations < maxNeighborEval * @return true if number of evaluations < maxNeighborEval
*/ */
virtual bool operator()(EOT & _solution) { virtual bool operator()(EOT & /*_solution*/) {
return (eval.value() - nbEval_start < maxNeighborEval); return (eval.value() - nbEval_start < maxNeighborEval);
} }
@ -69,7 +69,7 @@ public:
* Reset the number of evaluations * Reset the number of evaluations
* @param _solution a solution * @param _solution a solution
*/ */
virtual void init(EOT & _solution) { virtual void init(EOT & /*_solution*/) {
if (restartCounter) if (restartCounter)
nbEval_start = eval.value(); nbEval_start = eval.value();
else else

View file

@ -63,7 +63,7 @@ public :
* Set the neutral degree of the solution which is the number of solutions in the neighborhood with equals fitness * Set the neutral degree of the solution which is the number of solutions in the neighborhood with equals fitness
* @param _sol the first solution * @param _sol the first solution
*/ */
virtual void init(EOT & _sol) { virtual void init(EOT & /*_sol*/) {
value() = nhStat.getNbEqual(); value() = nhStat.getNbEqual();
} }
@ -71,7 +71,7 @@ public :
* Set the neutral degree of the solution which is the number of solutions in the neighborhood with equals fitness * Set the neutral degree of the solution which is the number of solutions in the neighborhood with equals fitness
* @param _sol the corresponding solution * @param _sol the corresponding solution
*/ */
virtual void operator()(EOT & _sol) { virtual void operator()(EOT & /*_sol*/) {
value() = nhStat.getNbEqual(); value() = nhStat.getNbEqual();
} }

View file

@ -63,7 +63,7 @@ public :
* Set the first quartile of fitness in the neighborhood * Set the first quartile of fitness in the neighborhood
* @param _sol the first solution * @param _sol the first solution
*/ */
virtual void init(EOT & _sol) { virtual void init(EOT & /*_sol*/) {
value() = nhStat.getQ1(); value() = nhStat.getQ1();
} }
@ -71,7 +71,7 @@ public :
* Set the first quartile of fitness in the neighborhood * Set the first quartile of fitness in the neighborhood
* @param _sol the corresponding solution * @param _sol the corresponding solution
*/ */
virtual void operator()(EOT & _sol) { virtual void operator()(EOT & /*_sol*/) {
value() = nhStat.getQ1(); value() = nhStat.getQ1();
} }

View file

@ -63,7 +63,7 @@ public :
* Set the third quartile of fitness in the neighborhood * Set the third quartile of fitness in the neighborhood
* @param _sol the third solution * @param _sol the third solution
*/ */
virtual void init(EOT & _sol) { virtual void init(EOT & /*_sol*/) {
value() = nhStat.getQ3(); value() = nhStat.getQ3();
} }
@ -71,7 +71,7 @@ public :
* Set the third quartile of fitness in the neighborhood * Set the third quartile of fitness in the neighborhood
* @param _sol the corresponding solution * @param _sol the corresponding solution
*/ */
virtual void operator()(EOT & _sol) { virtual void operator()(EOT & /*_sol*/) {
value() = nhStat.getQ3(); value() = nhStat.getQ3();
} }

Some files were not shown because too many files have changed in this diff Show more