SISL¶
SISL 环境是三组合作式多智能体基准环境,由 SISL (Stanford Intelligent Systems Laboratory,斯坦福智能系统实验室) 创建,并作为“使用深度强化学习的合作多智能体控制”研究的一部分发布。原始代码发布于:https://github.com/sisl/MADRL
安装¶
可以通过以下方式安装这组环境的特有依赖项:
pip install 'pettingzoo[sisl]'
用法¶
要启动带有随机智能体的 水世界 (Waterworld) 环境,请执行:
from pettingzoo.sisl import waterworld_v4
env = waterworld_v4.env(render_mode='human')
env.reset()
for agent in env.agent_iter():
observation, reward, termination, truncation, info = env.last()
if termination or truncation:
action = None
else:
action = env.action_space(agent).sample() # this is where you would insert your policy
env.step(action)
env.close()
请注意,我们对所有包含的环境进行了重大错误修复。因此,我们不建议直接将这些环境上的结果与原始论文中的结果进行比较。
如果您使用这些环境,请额外引用:
@inproceedings{gupta2017cooperative,
title={Cooperative multi-agent control using deep reinforcement learning},
author={Gupta, Jayesh K and Egorov, Maxim and Kochenderfer, Mykel},
booktitle={International Conference on Autonomous Agents and Multiagent Systems},
pages={66--83},
year={2017},
organization={Springer}
}