Improve handling of externally set initial population in PSO - minor change.
This commit is contained in:
parent
a8234302f0
commit
4ecb159d5e
@ -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;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user