Skip to content

Instantly share code, notes, and snippets.

@fearofcode
Created August 27, 2012 11:08
Show Gist options
  • Select an option

  • Save fearofcode/3487507 to your computer and use it in GitHub Desktop.

Select an option

Save fearofcode/3487507 to your computer and use it in GitHub Desktop.
anyone who formats their code like this should be summarily executed
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;
}
@joequery

Copy link
Copy Markdown

I'll be the trigger man. That, or I'll bring chips.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment