Cleared a bug in PSO (missing eval on initialization due to 'reset' flag)
This commit is contained in:
1 parent
68241a0dc0
commit
8258173239
1 file changed
+2
@@ -161,6 +161,8 @@ public class ParticleSwarmOptimization implements InterfaceOptimizer, java.io.Se
|
||||
}
|
||||
this.m_Problem.initPopulation(this.m_Population);
|
||||
tracedVelocity = null;
|
||||
// evaluation needs to be done here now, as its omitted if reset is false
|
||||
this.evaluatePopulation(this.m_Population);
|
||||
initByPopulation(m_Population, false);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user