Mix action channels are not supported in DDPG

My action space is mixed. Except one, all variables are continuous. So, I have defined the action apace as shown in the code below for a DDPG agent. But I get the error as shown in the attached image.
actInfoCont = rlNumericSpec([255 1],"UpperLimit",1,"LowerLimit",0); % (0 to 1 probabilistic mask)
actInfoDIsc = rlFiniteSetSpec([0 3.141592654]);
actInfo = [actInfoCont actInfoDIsc];

 Accepted Answer

Ayush Aniket
Ayush Aniket on 18 Sep 2024
Edited: Ayush Aniket on 18 Sep 2024
Hi Sania,
Currently, Reinforcement Learning Toolbox does not support mixed action spaces. As an alternative you could consider training two agents, one for the continuous action and another for the discrete. Refer to the following MATLAB Answer: https://www.mathworks.com/matlabcentral/answers/2015776-reinforcement-learning-agent-for-mixed-action-space

More Answers (0)

Categories

Find more on Reinforcement Learning Toolbox in Help Center and File Exchange

Asked:

on 18 Sep 2024

Commented:

on 18 Sep 2024

Community Treasure Hunt

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

Start Hunting!