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?