MATLAB Answers

'sim' command error

12 views (last 30 days)
Haeryong Jeon
Haeryong Jeon on 12 Jul 2019
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?

  0 Comments

Sign in to comment.

Answers (1)

Emmanouil Tzorakoleftherakis
Hello,
I believe that if you install update 1 (or later) of R2019a release, this issue will be resolved.

  0 Comments

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!