55 Pool *pool,
double bias)
69 while (first == second)
91 double max = (double) pool_size;
104 sqrtval = (bias * bias) - 4.0 * (bias - 1.0) *
geqo_rand(
root);
106 sqrtval = sqrt(sqrtval);
107 index = max * (bias - sqrtval) / 2.0 / (bias - 1.0);
void geqo_copy(PlannerInfo *root, Chromosome *chromo1, Chromosome *chromo2, int string_length)
double geqo_rand(PlannerInfo *root)
static int linear_rand(PlannerInfo *root, int pool_size, double bias)
void geqo_selection(PlannerInfo *root, Chromosome *momma, Chromosome *daddy, Pool *pool, double bias)