Improve handling of externally set initial population in PSO - minor change.

This commit is contained in:
Marcel Kronfeld 2009-05-04 15:49:31 +00:00
parent a8234302f0
commit 4ecb159d5e

View File

@ -44,7 +44,8 @@ public enum PSOTopologyEnum {
case 4: return tree; case 4: return tree;
case 5: return hpso; case 5: return hpso;
case 6: return random; case 6: return random;
default: System.err.println("Error: invalid old topology ID in PSOTopologyEnum translateOldID! Returning grid.");
return grid;
} }
return random;
} }
} }