Realize MADDPG in Matlab

45 views (last 30 days)
Huan Yang
Huan Yang on 3 Jan 2021
Commented: MAZBAHUR KHAN on 11 Sep 2023
I am working on a multi agent DRL issue. My environment is created by the MATLAB environment template. As MADDPG uses a common critic but different actors during the training process, I'm afraid that I still cannot realize this DRL model currently. The experience buffer is also different from the one of DDPG agent.

Answers (1)

Emmanouil Tzorakoleftherakis
To create agents that share critics I believe you would have to implement that using a custom agent/training loop (see here and here). The built-in algorithms don't allow you to do that.
Also, as of R2020b, you can have (decentralized) multi-agent training in Simulink only (not with a MATLAB environment). If this is of interest to you, you can turn your MATLAB environment into a Simulink one using a MATLAB Function block.
  3 Comments
Emmanouil Tzorakoleftherakis
Unfortunately, this is not possible as of R2023a unless you write your own custom loop, but this is something we are looking at.
MAZBAHUR KHAN
MAZBAHUR KHAN on 11 Sep 2023
@Emmanouil Tzorakoleftherakis thank you very much for replying.
I am going through one more issue I was hoping you could help me with.
For a decentralised multi agent training for multiple mobile robot path planning, I have set the episode termination criteria ( in simulink :isdone) for each robot individually such that when the robot clashes with an obstacle or reaches the goal position, the episode is terminated. But I noticed that when one robot has reached its episode termination criteria but the other robots haven’t, the episode terminates and new episode begins. And in the next episode all the robots are assigned into new initial positions. Hence inefficiency is induced in training of each robot since their reward collection is getting interrupted for the other robots episode termination even though they havent reached their own termination criteria.
I was wondering, is there a way to make a robot wait for other robots to reach their termination criteria after it reaches its own episode termination criteria before a new episode starts for all robots?

Sign in to comment.

Products


Release

R2020b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!