Error in port widths or dimensions. in RL output agent
28 ビュー (過去 30 日間)
古いコメントを表示
hello everyone,
i try to learn my agent in simulink but it gave me this error any idea ?
the Error is "Invalid setting for input port dimensions of 'untitled/Demux'. The dimensions are being set to [1x1]. This is not valid because the total number of input and output elements are not the same
Component:Simulink | Category:Model error
Error in port widths or dimensions. 'Output Port 1' of 'untitled/RL Agent' is a [1x1] matrix." the problem in the output of RL agent
i use the matlab 2022a any idea please ?
0 件のコメント
回答 (1 件)
Arkadiy Turevskiy
2024 年 1 月 10 日
Hi, there is not enough information to really help you. Can you share the code where you define and train your agent.
The error you are getting says that the action that agent creates is basically a scalar, but based on your Simulink model, it seems you expect it to be a vector with two signals.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Reinforcement Learning Toolbox についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!