'sim' command error

조회 수: 1 (최근 30일)
Haeryong Jeon
Haeryong Jeon 2019년 7월 12일
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
Emmanouil Tzorakoleftherakis 2019년 7월 23일
Hello,
I believe that if you install update 1 (or later) of R2019a release, this issue will be resolved.

Community Treasure Hunt

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

Start Hunting!

Translated by