MADDGP代码实现

1.我们首先需要进入openai开放的的多智能体环境中,下载安装包,安装openai开源的多智能体环境:https://github.com/openai/multiagent-particle-envs

进入到代码主路径中,执行命令安装所需的环境:

pip install -e .

之后的话它就自动安装好了

官方的文章以及代码可以在以下链接中找到:https://github.com/openai/maddpg

网上还有一个版本:https://github.com/princewen/tensorflow_practice/tree/master/RL/Basic-MADDPG-Demo

我们先运行three_agent_maddpg.py,这个文件对其进行训练,之后我们再运行test_three_agent_maddpg.py这个文件。

参考链接:

https://ask.hellobi.com/blog/wenwen/12283

https://www.jianshu.com/p/4e4e35d80137

猜你喜欢

转载自blog.csdn.net/weixin_39059031/article/details/83627321