Created
August 27, 2012 11:08
-
-
Save fearofcode/3487507 to your computer and use it in GitHub Desktop.
anyone who formats their code like this should be summarily executed
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for(int q=start;q<n+start;q++) | |
{ | |
IntegerVectorIndividual i = (IntegerVectorIndividual)inds[q]; | |
for(int x=0;x<i.genome.length;x++) | |
if (state.random[thread].nextBoolean(species.mutationProbability)) | |
i.genome[x] = -i.genome[x]; | |
// it's a "new" individual, so it's no longer been evaluated | |
i.evaluated=false; | |
} | |
return n; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'll be the trigger man. That, or I'll bring chips.