c++ Genetic Algorithm Mutation error
I Have a problem with the mutation function within my genetic Algorithm. I can't quite see what I am doing wrong either. I've looked at this code for a while and I think the logic is correct, it's just not producing the results i want. The problem When i output the Binary array located in the Child Struct, If mutation has occured on any of the bits, then a random number will be changed, and not the one that should be. for example 0000000 is the binary string mutation has occured on the second bit 0001000 would be the result This section is located within the main. for (int Child = 0; Child <