MARLlib icon indicating copy to clipboard operation
MARLlib copied to clipboard

Configuration of custom environment

Open BonnenuIt opened this issue 1 year ago • 2 comments

Hi! When I customize my environment in the MARLlib, I find it difficult to understand the concepts in the env_config file, e.g. mask_flag, global_state_flag, opp_action_in_cc and agent_level_batch_update, and how they work.

It is better to provide some information about how to set the env config.

BonnenuIt avatar Nov 20 '23 08:11 BonnenuIt

Hi. Sorry for the confusion. The mask_flag indicates whether there is a mask available for the action. The global_state_flag is used to indicate whether the natural state is provided for use, such as in SMAC, compared to cases where we need to produce it ourselves, as in MPE. opp_action_in_cc is used to include the actions of other agents in the centralized value function, such as the critic of MAPPO. agent_level_batch_update is a switch that toggles between batch-based RL updates or minibatch-based RL updates.

Theohhhu avatar Dec 03 '23 10:12 Theohhhu

Same question here, I want to use my customized env, pure handmade, wish to find some more examples or tutorials, THANKS!

遇到了类似的问题,我想使用我自定义的环境,但add_new_env.py仍不能解答全部疑惑,希望可以在文档中加入更多普适性示例或教程,谢谢!

HawkQ avatar Dec 11 '23 15:12 HawkQ