#ifndef $project_EVALUATOR_HPP_
#define $project_EVALUATOR_HPP_
//#include <cmath>
#include <stdlib.h>
#include <math.h>
#include "../OptFrame/Evaluation.hpp"
#include "../OptFrame/Evaluator.hpp"
#include "Representation.h"
#include "Memory.h"
#include "Solution.h"
#include "Evaluation.h"
#include "ProblemInstance.hpp"
#define EPSILON_$project 0.0001
class $projectEvaluator: public Evaluator<Rep$project $commamproject>
{
private:
$projectProblemInstance& p$project;
// Your private vars
public:
$projectEvaluator($projectProblemInstance& _p$project): // If necessary, add more parameters
p$project(_p$project)
{
// Put the rest of your code here
}
Evaluation$project& evaluate(const Rep$project& rep)
{
// 'rep' is the representation of the solution
double fo = 0; // Evaluation Function Value
return * new Evaluation$project(fo $initializememory);
}
virtual bool betterThan(double a, double b)
{
// $minmax
return $epsilon
}
};
#endif /*$project_EVALUATOR_HPP_*/