How to run the simulink model when implementing custom RL training?
조회 수: 1 (최근 30일)
이전 댓글 표시
Yihao Wan
2023년 5월 25일
댓글: Emmanouil Tzorakoleftherakis
2023년 5월 25일
Hello, I am developing a custom training of RL DQN agent based on the link, however, how should I adapt it to the simulink environment?
Especially for the code below, when applying an action to the environment, the step is not applicable for a simulink model. How should I solve this issue? Thanks in advance.
% Apply the action to the environment
% and obtain the resulting observation and reward.
[nextObs,reward,isdone] = step(env,action{1});
댓글 수: 0
채택된 답변
Emmanouil Tzorakoleftherakis
2023년 5월 25일
The way to do it would be to use runEpisode
댓글 수: 2
Emmanouil Tzorakoleftherakis
2023년 5월 25일
The example you are showing is model-based RL, it's different from what you mentioned at the beginning.
추가 답변 (0개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!