check for the existence of isinf didn't work the way it should so

it has been removed
This commit is contained in:
jeggermo 2001-07-17 13:06:28 +00:00
commit af91557656

View file

@ -202,14 +202,11 @@ class RegFitness: public eoEvalFunc< eoParseTree<FType, TreeNode> >
fit += pow(target - output, 2);
}
// check if the fitness is valid
// some versions of gcc (e.g. 2.95.2 on solaris) don't have isinf(x) defined
#ifdef isinf
if (isinf(fit) == 0)
fitness[NORMAL] = fit;
else
fitness[NORMAL] = MAXFLOAT;
#endif
fitness[SMALLESTSIZE] = _eo.size() / (1.0*parameter.MaxSize);
_eo.fitness(fitness);