Question regarding DDPG PMSM FOC control example
1 view (last 30 days)
Show older comments
Mohamed Hannan Sohail
on 3 Mar 2021
Commented: Emmanouil Tzorakoleftherakis
on 8 Mar 2021
Trying to do PMSM control similar to the DDPG model used but I have modelled the motor in terms of dq frame(vd, vq as input, id,iq,speed as output).
Is there a need to discretize the entire environment with different sampling times and use IIR filters if I am not going to use PWM? Or does the DDPG agent require the environment to be discrete?
0 Comments
Accepted Answer
Emmanouil Tzorakoleftherakis
on 5 Mar 2021
All RL agents in Reinforcement Learning Toolbox operate at fixed discrete-time intervals by default. However, you do not need to do anything particular to discretize your Simulink model. In fact your model can run at variable integration step and the "sample time" parameter of the agent will determine how frequently the RL Agent block will be executed.
2 Comments
Emmanouil Tzorakoleftherakis
on 8 Mar 2021
The FOC example is computationally expensive because the agent sample time is very small. Training speed is a combination of many design choices, including how long it takes for the model to simulate.
Even with parallelization, there is no guarantee of linear scaling in training time. I would still create a technical support case so that we can take a look at the crashing issue
More Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!