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

Why does the reinforcement command 'sim' terminate early? Please refer to the link below for more information on 'sim':

 採用された回答

MathWorks Support Team
MathWorks Support Team 2023 年 11 月 17 日
編集済み: MathWorks Support Team 2023 年 11 月 17 日

0 投票

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:

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeReinforcement Learning Toolbox についてさらに検索

製品

リリース

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by