guofei9987 / scikit-opt

Genetic Algorithm, Particle Swarm Optimization, Simulated Annealing, Ant Colony Optimization Algorithm,Immune Algorithm, Artificial Fish Swarm Algorithm, Differential Evolution and TSP(Traveling salesman)
https://scikit-opt.github.io/scikit-opt/#/en/
MIT License
5.27k stars 991 forks source link

pso_ani.py #149

Closed 14725836900 closed 3 years ago

14725836900 commented 3 years ago

运行pso_ani.py并没有报错,但是显示不出粒子运动轨迹,这是为什么呢??

guofei9987 commented 3 years ago

运行pso_ani.py并没有报错,但是显示不出粒子运动轨迹,这是为什么呢??

与你的电脑配置有关,提供了

ani.save('pso.gif', writer='pillow')

可以把动图保存

14725836900 commented 3 years ago

Snipaste_2021-09-27_21-57-36 添加了ani.save('pso.gif', writer='pillow')也不行。。。。。。。

guofei9987 commented 3 years ago

Snipaste_2021-09-27_21-57-36 添加了ani.save('pso.gif', writer='pillow')也不行。。。。。。。

试试用命令行启动 py 脚本