Why does the Reinforcement Learning 'sim' command terminate early?

 Respuesta aceptada

MathWorks Support Team
MathWorks Support Team el 30 de Sept. de 2026 a las 0:00
Editada: MathWorks Support Team el 30 de Sept. de 2026 a las 10:23
The 'sim' command for a Reinforcement Learning environment terminates early because the default number of 'MaxSteps' in 'sim' is 500. To increase the number of steps taken in 'sim', use:
>> simOptions = rlSimulationOptions('MaxSteps', <number of steps>);
Then simulate using the command:
>> sim(env, agent, simOptions);
More information on 'rlSimulationOptions' can be found by referencing the link below:
More information on 'sim' can be found by referencing the link below:

Más respuestas (0)

Productos

Versión

R2022a

Preguntada:

el 19 de Jul. de 2022

Editada:

el 30 de Sept. de 2026 a las 10:23

Community Treasure Hunt

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

Start Hunting!

Translated by