Cleared a bug in PSO (missing eval on initialization due to 'reset' flag)

This commit is contained in:
Marcel Kronfeld 2008-08-29 15:04:20 +00:00
parent 68241a0dc0
commit 8258173239

View File

@ -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);
}