small change
This commit is contained in:
parent
1e3cd432d6
commit
a4dd409033
1 changed files with 1 additions and 2 deletions
|
|
@ -152,7 +152,7 @@ class eoChromMutation: public eoMonOp<Chrom>
|
||||||
{
|
{
|
||||||
case 0:
|
case 0:
|
||||||
{
|
{
|
||||||
// gene change
|
// mutation
|
||||||
uniform_generator<int> color(0, num_colors);
|
uniform_generator<int> color(0, num_colors);
|
||||||
chrom[position()] = color();
|
chrom[position()] = color();
|
||||||
break;
|
break;
|
||||||
|
|
@ -162,7 +162,6 @@ class eoChromMutation: public eoMonOp<Chrom>
|
||||||
// transposition
|
// transposition
|
||||||
swap(chrom[position()], chrom[position()]);
|
swap(chrom[position()], chrom[position()]);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
}
|
}
|
||||||
default:
|
default:
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Reference in a new issue