More refactoring.. refactor all the things :/
This commit is contained in:
2013-01-29 13:46:28 +00:00
parent c16a592a26
commit 736ada3517
378 changed files with 1837 additions and 1452 deletions

View File

@@ -12,7 +12,9 @@ public class SimpleB1 extends SimpleProblemBinary {
double[] result = new double[1];
int fitness = 0;
for (int i = 0; i < getProblemDimension(); i++) if (b.get(i)) fitness++;
for (int i = 0; i < getProblemDimension(); i++) {
if (b.get(i)) fitness++;
}
result[0] = fitness;
return result;
}