How to solve dot indexing error in matlab reinforcement learning function "sim"?

1 回表示 (過去 30 日間)
Hoby Rabariniaina
Hoby Rabariniaina 2022 年 11 月 26 日
回答済み: Steven Lord 2022 年 11 月 26 日
hello everyone, i'm quite new to reinforcement learning toolbox and i encountered some issues while trying to run a simulation.
I get this error after using the following function :

回答 (1 件)

Steven Lord
Steven Lord 2022 年 11 月 26 日
The documentation page for the sim function in Reinforcement Learning Toolbox states that the env input argument must be a "reinforcement learning environment object" and offers some suggestions on functions that you can use to create such an object. The agents input argument must be a "reinforcement learning agent object or array of agent objects" and suggests some functions that you can use to create those objects. The simOptions input argument must be an rlSimulationOptions object.
Are the inputs in your sim call the correct type of objects? If you're not sure set a breakpoint on the line where you call sim or set an error breakpoint. When MATLAB reaches the breakpoint, look at the variables with which you call sim. Show us the output of the whos function when you're stopped at the breakpoint if you're not certain.

カテゴリ

Help Center および File ExchangeTraining and Simulation についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by