[go: up one dir, main page]

Menu

[925ebb]: / mct / EvaluatorCpp.tpl  Maximize  Restore  History

Download this file

30 lines (21 with data), 509 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#include "Evaluator.h"
using namespace $project;
MyEvaluator::MyEvaluator(ProblemInstance& _p$project): // If necessary, add more parameters
p$project(_p$project)
{
// Put the rest of your code here
}
MyEvaluator::~MyEvaluator()
{
}
Evaluation& MyEvaluator::evaluate(const Rep$project& rep)
{
// 'rep' is the representation of the solution
double fo = 0; // Evaluation Function Value
return * new Evaluation(fo);
}
bool MyEvaluator::isMinimization() const
{
// $minmax
return $isMin
}