get error runing TrainTD3Ag​entForPMSM​ControlExa​mple.mlx

win10 matlabR2024a
try to run TrainTD3AgentForPMSMControlExample.mlx example
only change :
106 doTraining = true; %false;
i'm trying to train the agent again.
got error:
out = nestedRunEpisode(policy);
result = run_internal_(this);
result = run_(this);
trainResult = run(trainer);
result = run_(this);
trainingResult = run(tm);
原因:

답변 (2개)

joy wang
joy wang 2024년 5월 25일

0 개 추천

I ‘m also running into this issue, did you solve it
MULI
MULI 2024년 11월 14일
편집: MULI 2024년 11월 14일

0 개 추천

I understand that you are facing an issue in the "TrainTD3AgentForPMSMControl" example model when “doTraining” flag is set to “true”. I encountered a similiar issue and was able to resolve it through the following workaround:
  • In the example model, navigate to the block located at"Current Control/Input Scaling/Calculate Position and Speed/Speed Measurement".
  • Replace the parameter values in the "Speed Measurement" block with their respective numeric values and datatype:
Discrete step size (s):0.0002
Per unit speed (RPM):3476
Speed data type:'single'
For another potential workaround to the issue:
  • In the example model find the "Speed Measurement" block at "Current Control/Input Scaling/Calculate Position and Speed".
  • Replace this block with the Speed Measurement block from the "Motor Control Blockset HDL Support/Sensor Decoders" library.
  • Set the block parameters to the same values as in the original block.
Hope this is helpful!

카테고리

도움말 센터 및 File Exchange에서 Introduction to Installation and Licensing에 대해 자세히 알아보기

제품

릴리스

R2024a

태그

질문:

2024년 4월 8일

편집:

2024년 11월 14일

Community Treasure Hunt

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

Start Hunting!

Translated by