printf("Creating symbol closure for placement %u\n", i);
struct placement **clos_symbols = get_closure(&(parent1->placements[i]));
- int x = randint(1, 2);
+ int x = randint(0, 2);
- if (x == 1)
+ if (x == 0)
{
if (dbg_breeding >= VERBOSITY_PLACEMENT)
printf("Copying parent->child 1->1 and 2->2\n");
{
if (dbg_mutation >= VERBOSITY_INDIVIDUAL)
printf("Creating %d-th individual by mutation\n", i);
- int ind = randint(1, mutate_rbest_size);
+ int ind = randint(0, mutate_rbest_size);
if (dbg_mutation >= VERBOSITY_INDIVIDUAL)
printf("Mutating %d-th individual of original population\n", ind);
population2[pop2_ind] = ep_alloc(ep_individuals);