Resetting S-Function environment for different reinforement learning model
2 次查看(过去 30 天)
显示 更早的评论
I am trying to design a reinforcement learning controller for my model which is defined by a Simulink S-Function block. My model runs for a small time interval [0 tf] for one computation of the reward function. How can I reset the S-Function block so it runs again from the same initial state as often as possible for training the RL controller? Thanks for your help.
0 个评论
回答(1 个)
Anurag Ojha
2024-1-24
Hello Mlaudu,
You can use the “InitializeConditions” method. The "InitializeConditions" method is used to reset values that need reinitialization each time an enabled subsystem, containing the S-function, is executed.
You can refer to following MATLAB Documentation links to get better understanding
1 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Simulink Functions 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!