'sim' command error
Afficher commentaires plus anciens
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?
Réponses (1)
Emmanouil Tzorakoleftherakis
le 23 Juil 2019
0 votes
Hello,
I believe that if you install update 1 (or later) of R2019a release, this issue will be resolved.
Catégories
En savoir plus sur Introduction to Installation and Licensing dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!