/* * GENESIS Copyright (c) 1986, 1990 by John J. Grefenstette * This program may be freely copied for educational * and research purposes. All other rights reserved. * * file: evaluate.c * * purpose: evaluate the current population by * calling the user-defined function "eval" * * modified: 13 feb 86 * 12 nov 86: pass Length to Unpack() * 15 sep 90: handle floating pt representation, * change args to eval */ #include "extern.h" extern double eval(); Evaluate() { register double performance; register int i; Trace("Evaluate entered"); Dtrace("evaluate"); for (i=0; i