I'm using Matlab 2021a to design a reinforcement learning agent. I am in the process of training a series of agents and I am (hopefully) nearing deployment. However, I have a few questions that I have not been able to find direct answers to.
First, can I deploy a RL agent in Simulink Real-Time? I have a Speedgoat available and I have done significant work to close the hardware loop around my agent in Matlab, but I haven't seen anything that says in a straightforward manner that I can deploy it in Simulink. I saw here that you can deploy CUDA code in Simulink but I don't really understand the process. I'm not sure if it applies to this situation or if there is a more straigtforward way to deploy an agent in Simulink.
Second, if I cannot deploy a RL agent in Simulink, what other platforms can I deploy a RL agent in? I would prefer to deploy the agent in Matlab or Simulink since I've done a lot of the hardware work in Matlab, but I'm not sure what to do if Simulink isn't an option. I know that I can hyptothetically generate C and CUDA code, but I'm nout sure what the next step is.
And lastly, I clearly am lacking some vital knowlege on this front - it turns out I'm an electrical engineer, not a computer scientist! What resources should I use to further my understanding of this? I'd rather understand what I need to do than ask others for help. I don't really know anything about CUDA or deploying programs on actual hardware and I'm not sure where to look... and it turns out that there's a pretty steep learning curve.