How do I save the output of the optimisation to a variable?
zohimchandani opened this issue · 1 comments
zohimchandani commented
How do I save the output of the optimisation to a variable?
nathanrooy commented
Just replace this line: https://github.com/nathanrooy/particle-swarm-optimization/blob/master/pso/pso_simple.py#L104
with: return pos_best_g