Observation data dimension error (numObservations)

Hello,
I've been trying to fix this issue for more than a week now however I can't crack it. When trying to run my simkulink model for reinforcement learning I get an error stating:
Error using rl.env.SimulinkEnvWithAgent>localHandleSimoutErrors (line 667)
Invalid observation type or size.
When running from simulink the error is the same. My code for the observation data is:
obsInfo = rlNumericSpec([3 1],...
'LowerLimit', [0 0 0]',...
'UpperLimit', [1 500 500]');
obsInfo.Name = 'observations';
obsInfo.Description = 'pulse, voltage error, integrated error';
numObservations = obsInfo.Dimension(1);
In my simulink model the observation signal has a dimension of 8; however whenever I try to modify my code to take this into account and have the dimensions match up - I get an error.
Does anyone have any advcie as to how to modify the matlab code such that the dimensions will match up? Or is this error perhaps a result of something else entirely! Any thoughts or ideas are more than welcome.
Best,
Abd

댓글 수: 1

Apologies; for clarification the error could be due to the action signal diemsnions however the action signal dimension needs to be what it currently is set to (1) so I dont think this is where the issue is as the simulink error message takes me to code where the error is in the observation information.

댓글을 달려면 로그인하십시오.

답변 (0개)

커뮤니티

더 많은 답변 보기:  Power Electronics Community

카테고리

도움말 센터File Exchange에서 Simulink에 대해 자세히 알아보기

질문:

2021년 7월 13일

댓글:

2021년 7월 13일

Community Treasure Hunt

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

Start Hunting!

Translated by