Internal problem happened during training DDPGagent
조회 수: 2 (최근 30일)
이전 댓글 표시
I use the TruckSim2016 S function as the environment of my DDPG agent. Everything is ok in episode1. However, it seems that some errors occurred between episode1 and episode2. After Episode 1, matlab crash reporter showed and shut down. I wonder that the problem is caused by restart or reset. Besides, my Environment Reset Function is empty, that is, I don't reset anything after an episode. Can anyone help me, please
![Trucksim](https://www.mathworks.com/matlabcentral/answers/uploaded_files/278066/Trucksim.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/278067/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/278068/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/278069/image.png)
채택된 답변
Drew Davis
2020년 3월 19일
By default the Simulink environment leverages Simulink fast-restart feature. Some work needs to be done to ensure that the S-functions will work properly in fast-restart. See this doc page for more info.
Assuming you can't (or don't want to modify the S-function :) ), set the UseFastRestart property to off in the environment object
env.UseFastRestart = "off";
Please comment if this does not resolve your issue.
Drew
추가 답변 (0개)
참고 항목
카테고리
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!