ray icon indicating copy to clipboard operation
ray copied to clipboard

Do multiagent envs support partial step() returns?

Open yannbouteiller opened this issue 6 years ago • 2 comments

Hello, I am using rllib for its support of multi-agent environments.

I am dealing with a use-case where the step() function will be returning transitions for only a random fraction of the agents present in the environment each time. I have the feeling that this might already work seamlessly with the way rllib samples in multi-agent environments, but I am not sure. Could you confirm or infirm, please?

Thanks! Yann.

yannbouteiller avatar Jan 20 '20 19:01 yannbouteiller

Yes, this should work -- you can just return a subset of the agent ids in the dict returned from step. For example, {"agent1": obs} instead of {"agent1": obs, "agent2": obs} if only agent1 is ready.

ericl avatar Jan 21 '20 00:01 ericl

Thanks for creating this ticket! In the future, please post questions like this on our Discourse forum and someone from the community can help support.

hainesmichaelc avatar May 15 '25 21:05 hainesmichaelc