Must centralized trained groups of agents have the same action specification?

조회 수: 3 (최근 30일)
Hello:
numObservations = 4;
observationInfo = rlNumericSpec([numObservations 1],...
'LowerLimit',[-inf -inf -inf -inf]',...
'UpperLimit',[ inf inf inf inf]');
observationInfo.Name = 'observations';
observationInfo.Description = 'force bias, position';
numActions1 = 1;
actionInfo1 = rlNumericSpec([1 1],...
'LowerLimit',[0]',...
'UpperLimit',[66]');
actionInfo1.Name = 'onlyb';
numActions2 = 1;
actionInfo2 = rlNumericSpec([1 1],...
'LowerLimit',[0]',...
'UpperLimit',[13]');
actionInfo2.Name = 'onlyK';
mdl = "ER3AC60A";
blks = ["ER3AC60A/RL AgentA", "ER3AC60A/RL AgentB"];
obsInfos = {observationInfo,observationInfo};
actInfos = {actionInfo1,actionInfo2};
env.ResetFcn = @(in)localResetFcn(in);
env = rlSimulinkEnv(mdl,blks, obsInfos,actInfos);
%行为克隆与探索平衡2.5是平衡
Ts = 0.001;
Tf = 1;
rng(0)
Must groups of agents using centralized training have the same output specification?
错误使用 rl.train.marl.util.validateMultiAgentTrainingOptions
Agents in group [1 2] must have the same observation and action specifications.

채택된 답변

Ayush Aniket
Ayush Aniket 2024년 9월 18일
Hi Lin,
From the error statement: 'Agents in group [1 2] must have the same observation and action specifications.', it seems that you have used the same group for agent1 and agent2 with the 'centralized' LearningStrategy option in the rlMultiAgentTrainingOptions function.
In centralized training, agents share their collected experiences and learn collaboratively, necessitating that the observation and action information for all agents in the group have the same structure.
Refer to the following MATLAB answer for a detailed distinction between centralized and decentralized learning strategies: https://www.mathworks.com/matlabcentral/answers/2002007-centralized-vs-decentralized-training-for-multi-agent-reinforcement-learning

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Reinforcement Learning에 대해 자세히 알아보기

제품


릴리스

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by