Q Learning Agent Error: error occurred when invoking 'outputImpl' method of 'rl.simulink.blocks.AgentWrapper'
7 次查看(过去 30 天)
显示 更早的评论
Good afternoon everyone,
I am trying to implement a Q-Learning agent into a SimEvents Simulink environment.
But, when I try to run the simulink file with the agent connected, I get the following error:
- MATLAB System block 'model17/RL Agent/AgentWrapper' error occurred when invoking 'outputImpl' method of 'rl.simulink.blocks.AgentWrapper'. The error was thrown from ' 'C:\Program Files\MATLAB\R2020b\toolbox\rl\rl\+rl\+policy\AbstractPolicy.m' at line 237 'C:\Program Files\MATLAB\R2020b\toolbox\rl\rl\simulink\+rl\+simulink\+blocks\AgentWrapper.m' at line 98'.
- Invalid input argument type or size such as observation, reward, isdone or loggedSignals.
- Invalid observation type or size.
- Unable to evaluate representation.
- Invalid data specified. The data must be an element of the rlFiniteSetSpec.
And I don't know how to solve it since we cannot modify the file AgentWrapper and I am already creating the observations and actions using rlFiniteSetSpec.
Has anyone some idea of how to solve it?
Thank you in advance.
Regards,
Mar.
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 GPU Computing 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!