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

No files matched your search

+3 -1
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;
}