Closed marlloseff closed 3 years ago
this is a known behaviour, as Particle swarm will always use the maximum number of iterations. the bug is in the display of the output, not in the result. this happens because the algorithm can't know if the current best solution is the solution to the optimization problem, so its determined to be the result given at the last iteration.
this is a known behaviour, as Particle swarm will always use the maximum number of iterations. the bug is in the display of the output, not in the result. this happens because the algorithm can't know if the current best solution is the solution to the optimization problem, so its determined to be the result given at the last iteration.
Ok longemen3000, thanks.
Yeah, it's a bit of a strange thing to print. Particle swarm is never meant to "settle down", it will always try to escape any local optimum (but will often return if it was indeed at the global optimum). It should be changed so I'll keep it open.
Thanks.
Hello everyone. I need help to understand Particle Swarm a bit. In the following example, the answer is right, but the Status seems to contradict. And why does Particle Swarm always exhaust the number of interactions? Even if you increase the number of interactions, it will still run out. Thank you.