Commit 5a789802 authored by Alexis Lebis's avatar Alexis Lebis

change evaluator with a difference 4 - (preq+job+rep+ects)

parent a5aed863
......@@ -35,8 +35,11 @@ void CursusEval::operator()(Cursus & _cursus){
std::cout << resCPR.first << " " << resCPR.second << std::endl;
std::cout << std::endl << std::endl;
*/
double sum=pCE*resCE.second + pCR*resCR.second + pCP*resCP.second + pCPR*resCPR.second;
fit=1.0/(1+sum)*100;
// double sum=pCE*resCE.second + pCR*resCR.second + pCP*resCP.second + pCPR*resCPR.second;
// fit=1.0/(1+sum)*100;
fit = 4 - (pCE*resCE.second + pCR*resCR.second + pCP*resCP.second + pCPR*resCPR.second);
_cursus.fitness(fit);
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment