Clear Filters
Clear Filters

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

5 views (last 30 days)
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.

Answers (0)

Products


Release

R2023b

Community Treasure Hunt

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

Start Hunting!