Reinforcement Learning with Simulink: timeout an episode

2 views (last 30 days)
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?

Answers (0)

Products


Release

R2021a

Community Treasure Hunt

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

Start Hunting!