'sim' command error
显示 更早的评论
We developed reinforcement learning code using DDPG algorithm.
The agent properly learned the learing data. we want to simulate using the 'sim' command.
At this time, if MaxSteps is set to 1 by using the following command, the following error will be displayed.
simOptions = rlSimulationOptions('MaxSteps',1);
experience = sim(env,agent,simOptions);
The goal of the code is to find the appropriate value in step 1, but when the step ends with 1, an error always appears.
The index exceeds the number of array elements (1)
error : rl.env.AbstractEnv/sim (line 165)
action = experience{2};
error : DDPG_code (line 90)
experience = sim(env,agent,simOptions);
Do you know how to solve it?
回答(1 个)
Emmanouil Tzorakoleftherakis
2019-7-23
0 个投票
Hello,
I believe that if you install update 1 (or later) of R2019a release, this issue will be resolved.
类别
在 帮助中心 和 File Exchange 中查找有关 Introduction to Installation and Licensing 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!