fix(mo): comment out unused parameters
Removes -Wunused-parameters warnings.
This commit is contained in:
parent
1a980c442d
commit
843aa6fc37
69 changed files with 159 additions and 159 deletions
|
|
@ -61,7 +61,7 @@ public :
|
|||
* Set the average of fitness in the neighborhood
|
||||
* @param _sol the first solution
|
||||
*/
|
||||
virtual void init(EOT & _sol) {
|
||||
virtual void init(EOT & /*_sol*/) {
|
||||
value() = nhStat.getMean();
|
||||
}
|
||||
|
||||
|
|
@ -69,7 +69,7 @@ public :
|
|||
* Set the average of fitness in the neighborhood
|
||||
* @param _sol the corresponding solution
|
||||
*/
|
||||
virtual void operator()(EOT & _sol) {
|
||||
virtual void operator()(EOT & /*_sol*/) {
|
||||
value() = nhStat.getMean();
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -93,7 +93,7 @@ public:
|
|||
* reset the counter of iteration
|
||||
* @param _solution a solution
|
||||
*/
|
||||
virtual void init(EOT & _solution) {
|
||||
virtual void init(EOT & /*_solution*/) {
|
||||
cpt = 0;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -56,7 +56,7 @@ public :
|
|||
* Init the number of iteration
|
||||
* @param _sol a solution
|
||||
*/
|
||||
virtual void init(EOT & _sol) {
|
||||
virtual void init(EOT & /*_sol*/) {
|
||||
value() = *b;
|
||||
}
|
||||
|
||||
|
|
@ -64,7 +64,7 @@ public :
|
|||
* Set the number of iteration
|
||||
* @param _sol a solution
|
||||
*/
|
||||
virtual void operator()(EOT & _sol) {
|
||||
virtual void operator()(EOT & /*_sol*/) {
|
||||
value() = *b;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -52,13 +52,13 @@ public:
|
|||
* Init Continuator parameters
|
||||
* @param _solution the related solution
|
||||
*/
|
||||
virtual void init(EOT& _solution) {};
|
||||
virtual void init(EOT& /*_solution*/) {};
|
||||
|
||||
/**
|
||||
* Last Call to terminate the checkpoint
|
||||
* @param _solution the related solution
|
||||
*/
|
||||
virtual void lastCall(EOT& _solution) {};
|
||||
virtual void lastCall(EOT& /*_solution*/) {};
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -56,7 +56,7 @@ public :
|
|||
* Init the number of iteration
|
||||
* @param _sol a solution
|
||||
*/
|
||||
virtual void init(EOT & _sol) {
|
||||
virtual void init(EOT & /*_sol*/) {
|
||||
value() = 0;
|
||||
}
|
||||
|
||||
|
|
@ -64,7 +64,7 @@ public :
|
|||
* Set the number of iteration
|
||||
* @param _sol a solution
|
||||
*/
|
||||
virtual void operator()(EOT & _sol) {
|
||||
virtual void operator()(EOT & /*_sol*/) {
|
||||
value() = value() + 1;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -65,7 +65,7 @@ public:
|
|||
* @param _solution a solution
|
||||
* @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);
|
||||
}
|
||||
|
||||
|
|
@ -73,7 +73,7 @@ public:
|
|||
* Reset the number of evaluations
|
||||
* @param _solution a solution
|
||||
*/
|
||||
virtual void init(EOT & _solution) {
|
||||
virtual void init(EOT & /*_solution*/) {
|
||||
if (restartCounter)
|
||||
nbEval_start = fullEval.value() + neighborEval.value();
|
||||
else
|
||||
|
|
|
|||
|
|
@ -63,7 +63,7 @@ public:
|
|||
* @param _solution a solution
|
||||
* @return true if number of evaluations < maxFullEval
|
||||
*/
|
||||
virtual bool operator()(EOT & _solution) {
|
||||
virtual bool operator()(EOT & /*_solution*/) {
|
||||
return (eval.value() - nbEval_start < maxFullEval);
|
||||
}
|
||||
|
||||
|
|
@ -71,7 +71,7 @@ public:
|
|||
* Reset the number of evaluations
|
||||
* @param _solution a solution
|
||||
*/
|
||||
virtual void init(EOT & _solution) {
|
||||
virtual void init(EOT & /*_solution*/) {
|
||||
if (restartCounter)
|
||||
nbEval_start = eval.value();
|
||||
else
|
||||
|
|
|
|||
|
|
@ -52,7 +52,7 @@ public:
|
|||
*@param _solution a solution
|
||||
*@return true if counter < maxIter
|
||||
*/
|
||||
virtual bool operator()(EOT & _solution) {
|
||||
virtual bool operator()(EOT & /*_solution*/) {
|
||||
bool res;
|
||||
cpt++;
|
||||
res = (cpt < maxIter);
|
||||
|
|
@ -65,7 +65,7 @@ public:
|
|||
* reset the counter of iteration
|
||||
* @param _solution a solution
|
||||
*/
|
||||
virtual void init(EOT & _solution) {
|
||||
virtual void init(EOT & /*_solution*/) {
|
||||
cpt = 0;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -62,7 +62,7 @@ public :
|
|||
* Set the max fitness in the neighborhood
|
||||
* @param _sol the first solution
|
||||
*/
|
||||
virtual void init(EOT & _sol) {
|
||||
virtual void init(EOT & /*_sol*/) {
|
||||
value() = nhStat.getMax();
|
||||
}
|
||||
|
||||
|
|
@ -70,7 +70,7 @@ public :
|
|||
* Set the max fitness in the neighborhood
|
||||
* @param _sol the corresponding solution
|
||||
*/
|
||||
virtual void operator()(EOT & _sol) {
|
||||
virtual void operator()(EOT & /*_sol*/) {
|
||||
value() = nhStat.getMax();
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -63,7 +63,7 @@ public :
|
|||
* Set the median fitness in the neighborhood
|
||||
* @param _sol the first solution
|
||||
*/
|
||||
virtual void init(EOT & _sol) {
|
||||
virtual void init(EOT & /*_sol*/) {
|
||||
value() = nhStat.getMedian();
|
||||
}
|
||||
|
||||
|
|
@ -71,7 +71,7 @@ public :
|
|||
* Set the median fitness in the neighborhood
|
||||
* @param _sol the corresponding solution
|
||||
*/
|
||||
virtual void operator()(EOT & _sol) {
|
||||
virtual void operator()(EOT & /*_sol*/) {
|
||||
value() = nhStat.getMedian();
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -62,7 +62,7 @@ public :
|
|||
* Set the worst fitness in the neighborhood
|
||||
* @param _sol the first solution
|
||||
*/
|
||||
virtual void init(EOT & _sol) {
|
||||
virtual void init(EOT & /*_sol*/) {
|
||||
value() = nhStat.getMin();
|
||||
}
|
||||
|
||||
|
|
@ -70,7 +70,7 @@ public :
|
|||
* Set the worst fitness in the neighborhood
|
||||
* @param _sol the corresponding solution
|
||||
*/
|
||||
virtual void operator()(EOT & _sol) {
|
||||
virtual void operator()(EOT & /*_sol*/) {
|
||||
value() = nhStat.getMin();
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -58,7 +58,7 @@ public :
|
|||
* Init the number of iteration
|
||||
* @param _sol a solution
|
||||
*/
|
||||
virtual void init(EOT & _sol) {
|
||||
virtual void init(EOT & /*_sol*/) {
|
||||
counter = 0;
|
||||
value() = 0;
|
||||
}
|
||||
|
|
@ -67,7 +67,7 @@ public :
|
|||
* Set the number of iteration
|
||||
* @param _sol a solution
|
||||
*/
|
||||
virtual void operator()(EOT & _sol) {
|
||||
virtual void operator()(EOT & /*_sol*/) {
|
||||
counter++;
|
||||
if (counter > 0)
|
||||
value() = counter - 1;
|
||||
|
|
|
|||
|
|
@ -63,7 +63,7 @@ public :
|
|||
* Set the number of solutions in the neighborhood with (strictly) lower fitness than the current solution
|
||||
* @param _sol the first solution
|
||||
*/
|
||||
virtual void init(EOT & _sol) {
|
||||
virtual void init(EOT & /*_sol*/) {
|
||||
value() = nhStat.getNbInf();
|
||||
}
|
||||
|
||||
|
|
@ -71,7 +71,7 @@ public :
|
|||
* Set the number of solutions in the neighborhood with (strictly) lower fitness than the current solution
|
||||
* @param _sol the corresponding solution
|
||||
*/
|
||||
virtual void operator()(EOT & _sol) {
|
||||
virtual void operator()(EOT & /*_sol*/) {
|
||||
value() = nhStat.getNbInf();
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -63,7 +63,7 @@ public :
|
|||
* Set the number of solutions in the neighborhood with better fitness than the current solution
|
||||
* @param _sol the first solution
|
||||
*/
|
||||
virtual void init(EOT & _sol) {
|
||||
virtual void init(EOT & /*_sol*/) {
|
||||
value() = nhStat.getNbSup();
|
||||
}
|
||||
|
||||
|
|
@ -71,7 +71,7 @@ public :
|
|||
* Set the number of solutions in the neighborhood with better fitness than the current solution
|
||||
* @param _sol the corresponding solution
|
||||
*/
|
||||
virtual void operator()(EOT & _sol) {
|
||||
virtual void operator()(EOT & /*_sol*/) {
|
||||
value() = nhStat.getNbSup();
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -61,7 +61,7 @@ public:
|
|||
* @param _solution a solution
|
||||
* @return true if number of evaluations < maxNeighborEval
|
||||
*/
|
||||
virtual bool operator()(EOT & _solution) {
|
||||
virtual bool operator()(EOT & /*_solution*/) {
|
||||
return (eval.value() - nbEval_start < maxNeighborEval);
|
||||
}
|
||||
|
||||
|
|
@ -69,7 +69,7 @@ public:
|
|||
* Reset the number of evaluations
|
||||
* @param _solution a solution
|
||||
*/
|
||||
virtual void init(EOT & _solution) {
|
||||
virtual void init(EOT & /*_solution*/) {
|
||||
if (restartCounter)
|
||||
nbEval_start = eval.value();
|
||||
else
|
||||
|
|
|
|||
|
|
@ -63,7 +63,7 @@ public :
|
|||
* Set the neutral degree of the solution which is the number of solutions in the neighborhood with equals fitness
|
||||
* @param _sol the first solution
|
||||
*/
|
||||
virtual void init(EOT & _sol) {
|
||||
virtual void init(EOT & /*_sol*/) {
|
||||
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
|
||||
* @param _sol the corresponding solution
|
||||
*/
|
||||
virtual void operator()(EOT & _sol) {
|
||||
virtual void operator()(EOT & /*_sol*/) {
|
||||
value() = nhStat.getNbEqual();
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -63,7 +63,7 @@ public :
|
|||
* Set the first quartile of fitness in the neighborhood
|
||||
* @param _sol the first solution
|
||||
*/
|
||||
virtual void init(EOT & _sol) {
|
||||
virtual void init(EOT & /*_sol*/) {
|
||||
value() = nhStat.getQ1();
|
||||
}
|
||||
|
||||
|
|
@ -71,7 +71,7 @@ public :
|
|||
* Set the first quartile of fitness in the neighborhood
|
||||
* @param _sol the corresponding solution
|
||||
*/
|
||||
virtual void operator()(EOT & _sol) {
|
||||
virtual void operator()(EOT & /*_sol*/) {
|
||||
value() = nhStat.getQ1();
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -63,7 +63,7 @@ public :
|
|||
* Set the third quartile of fitness in the neighborhood
|
||||
* @param _sol the third solution
|
||||
*/
|
||||
virtual void init(EOT & _sol) {
|
||||
virtual void init(EOT & /*_sol*/) {
|
||||
value() = nhStat.getQ3();
|
||||
}
|
||||
|
||||
|
|
@ -71,7 +71,7 @@ public :
|
|||
* Set the third quartile of fitness in the neighborhood
|
||||
* @param _sol the corresponding solution
|
||||
*/
|
||||
virtual void operator()(EOT & _sol) {
|
||||
virtual void operator()(EOT & /*_sol*/) {
|
||||
value() = nhStat.getQ3();
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -61,7 +61,7 @@ public :
|
|||
* Set the average and the standard deviation of fitness in the neighborhood
|
||||
* @param _sol the first solution
|
||||
*/
|
||||
virtual void init(EOT & _sol) {
|
||||
virtual void init(EOT & /*_sol*/) {
|
||||
value().first = nhStat.getMean();
|
||||
value().second = nhStat.getSD();
|
||||
}
|
||||
|
|
@ -70,7 +70,7 @@ public :
|
|||
* Set the average and the standard deviation of fitness in the neighborhood
|
||||
* @param _sol the corresponding solution
|
||||
*/
|
||||
virtual void operator()(EOT & _sol) {
|
||||
virtual void operator()(EOT & /*_sol*/) {
|
||||
value().first = nhStat.getMean();
|
||||
value().second = nhStat.getSD();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -62,7 +62,7 @@ public :
|
|||
* Set the number of solutions in the neighborhood
|
||||
* @param _sol the first solution
|
||||
*/
|
||||
virtual void init(EOT & _sol) {
|
||||
virtual void init(EOT & /*_sol*/) {
|
||||
value() = nhStat.getSize();
|
||||
}
|
||||
|
||||
|
|
@ -70,7 +70,7 @@ public :
|
|||
* Set the number of solutions in the neighborhood
|
||||
* @param _sol the corresponding solution
|
||||
*/
|
||||
virtual void operator()(EOT & _sol) {
|
||||
virtual void operator()(EOT & /*_sol*/) {
|
||||
value() = nhStat.getSize();
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -52,7 +52,7 @@ public :
|
|||
* Constructor
|
||||
* @param _description a description of the parameter
|
||||
*/
|
||||
moSolutionStat(std::string _description = "solution"):
|
||||
moSolutionStat(std::string /*_description */= "solution"):
|
||||
moStat<EOT, EOT>(EOT(), "fitness solution") { }
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -57,7 +57,7 @@ public :
|
|||
* The value of this stat is a copy of the value of the initial stat
|
||||
* @param _sol a solution
|
||||
*/
|
||||
virtual void init(EOT & _sol) {
|
||||
virtual void init(EOT & /*_sol*/) {
|
||||
value() = stat.value();
|
||||
}
|
||||
|
||||
|
|
@ -65,7 +65,7 @@ public :
|
|||
* The value of this stat is a copy of the value of the initial stat
|
||||
* @param _sol a solution
|
||||
*/
|
||||
virtual void operator()(EOT & _sol) {
|
||||
virtual void operator()(EOT & /*_sol*/) {
|
||||
value() = stat.value();
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -61,7 +61,7 @@ public :
|
|||
* Set the average and the standard deviation of fitness in the neighborhood
|
||||
* @param _sol the first solution
|
||||
*/
|
||||
virtual void init(EOT & _sol) {
|
||||
virtual void init(EOT & /*_sol*/) {
|
||||
value() = nhStat.getSD();
|
||||
}
|
||||
|
||||
|
|
@ -69,7 +69,7 @@ public :
|
|||
* Set the average and the standard deviation of fitness in the neighborhood
|
||||
* @param _sol the corresponding solution
|
||||
*/
|
||||
virtual void operator()(EOT & _sol) {
|
||||
virtual void operator()(EOT & /*_sol*/) {
|
||||
value() = nhStat.getSD();
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -88,7 +88,7 @@ public:
|
|||
* Returns false when the running time is reached.
|
||||
* @param _sol the current solution
|
||||
*/
|
||||
virtual bool operator() (EOT& _sol)
|
||||
virtual bool operator() (EOT& /*_sol*/)
|
||||
{
|
||||
bool res;
|
||||
time_t elapsed = (time_t) difftime(time(NULL), start);
|
||||
|
|
@ -102,7 +102,7 @@ public:
|
|||
* reset the start time
|
||||
* @param _solution a solution
|
||||
*/
|
||||
virtual void init(EOT & _solution) {
|
||||
virtual void init(EOT & /*_solution*/) {
|
||||
if (!external)
|
||||
start = time(NULL);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -53,7 +53,7 @@ public:
|
|||
* @param _solution a solution
|
||||
* @return always true
|
||||
*/
|
||||
virtual bool operator()(EOT & _solution) {
|
||||
virtual bool operator()(EOT & /*_solution*/) {
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
@ -61,7 +61,7 @@ public:
|
|||
* NOTHING TO DO
|
||||
* @param _solution a solution
|
||||
*/
|
||||
virtual void init(EOT & _solution) {}
|
||||
virtual void init(EOT & /*_solution*/) {}
|
||||
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -56,7 +56,7 @@ public :
|
|||
* Init the number of iteration
|
||||
* @param _sol a solution
|
||||
*/
|
||||
virtual void init(EOT & _sol) {
|
||||
virtual void init(EOT & /*_sol*/) {
|
||||
value() = *b;
|
||||
}
|
||||
|
||||
|
|
@ -64,7 +64,7 @@ public :
|
|||
* Set the number of iteration
|
||||
* @param _sol a solution
|
||||
*/
|
||||
virtual void operator()(EOT & _sol) {
|
||||
virtual void operator()(EOT & /*_sol*/) {
|
||||
value() = *b;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -60,7 +60,7 @@ public :
|
|||
* Init the number of iteration
|
||||
* @param _sol a solution
|
||||
*/
|
||||
virtual void init(EOT & _sol) {
|
||||
virtual void init(EOT & /*_sol*/) {
|
||||
if (restart)
|
||||
value_start = valueParam.value();
|
||||
else
|
||||
|
|
@ -73,7 +73,7 @@ public :
|
|||
* Set the number of iteration
|
||||
* @param _sol a solution
|
||||
*/
|
||||
virtual void operator()(EOT & _sol) {
|
||||
virtual void operator()(EOT & /*_sol*/) {
|
||||
value() = (double) (valueParam.value() - value_start);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -126,7 +126,7 @@ public:
|
|||
* @param _param unvalid Parameter
|
||||
*/
|
||||
template <class T>
|
||||
moVectorMonitor(eoValueParam<T> & _param) : doubleParam(NULL), intParam(NULL), intLongParam(NULL), intLongLongParam(NULL), eotParam(NULL)
|
||||
moVectorMonitor(eoValueParam<T> & /*_param*/) : doubleParam(NULL), intParam(NULL), intLongParam(NULL), intLongLongParam(NULL), eotParam(NULL)
|
||||
{
|
||||
std::cerr << "Sorry the type can not be in a vector of moVectorMonitor" << std::endl;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue