Skip to content

Commit

Permalink
fixes an issue with genetic algorithms
Browse files Browse the repository at this point in the history
  • Loading branch information
ptaillandier committed Aug 25, 2021
1 parent 54c7400 commit d9984a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion msi.gama.core/src/msi/gama/kernel/batch/Chromosome.java
Expand Up @@ -78,7 +78,7 @@ public Chromosome(final IScope scope, final List<IParameter.Batch> variables, fi
} else if (var.getType().id() == IType.INT) {
genes[cpt] = Cast.asInt(scope, var.value(scope));
} else {
genes[cpt] = 0;
genes[cpt] = var.value(scope);
}
cpt++;
}
Expand Down

0 comments on commit d9984a1

Please sign in to comment.