check for the existence of isinf didn't work the way it should so
it has been removed
This commit is contained in:
parent
21e42be6d3
commit
af91557656
1 changed files with 0 additions and 3 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Reference in a new issue