Reinforcement Learning with Simulink: timeout an episode

조회 수: 2 (최근 30일)
Tobias Schindler
Tobias Schindler 2021년 10월 5일
Setup:
  • Using RL train function in a parfor loop to optimize hyperparameters
  • Simulink model with RL Agent
Problem:
  • Some hyperparameters do not produce sensible Agents, some of which might lock the simulation in a timestep forever (happens occassionally) due to solver adjustments
Desired solution:
  • Have a timeout for individual epsidodes, e.g., 10min, that just kills the simulation if it does not finish in the specified time
  • Usually, the way to do this is to pass "TimeOut" to the Simulink simulation object
  • Is there a way to pass the simulink object into train or any other way to to set a timeout in the model parameters?

답변 (0개)

제품


릴리스

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by