This is a pytorch implementation of multi-agent deep deterministic policy gradient algorithm.
The experimental environment is a modified version of Waterworld based on MADRL.
The main features (different from MADRL) of the modified Waterworld environment are:
- evaders and poisons now bounce at the wall obeying physical rules
- sizes of the evaders, pursuers and poisons are now the same so that random actions will lead to average rewards around 0.
- need exactly n_coop agents to catch food.
- pytorch
- visdom
python==3.6.1
(recommend using the anaconda/miniconda)- if you need to render the environments,
opencv
is required
- Install MADRL.
- Replace the
madrl_environments/pursuit
directory with the one in this repo. python main.py
if scene rendering is enabled, recommend to install opencv
through conda-forge.
The two agents need to cooperate to achieve the food for reward 10.
the average
- reproduce the experiments in the paper with competitive environments.