Improve handling of externally set initial population in PSO - minor change.
This commit is contained in:
@@ -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 random;
|
return grid;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
Reference in New Issue
Block a user