Model free and model based Reinforcement learning program from Simulink to Arduino

30 次查看(过去 30 天)
Hi, I have to use Reinforcement learning (RL) to control my hardware. I am using arduino due board with simulink interface to deploy the simulink program in arduino and run the setup.
My concern is, If I use Reinforcement learning to train model, can I run the final program on my arduino board to run setup?
Also, If I want to use modelfree approach for training the agent with hardware, is it possible with arduino interface?
Please give suggestions and methods for doing the above two tasks.

回答(1 个)

aditi bagora
aditi bagora about 5 hours 前
编辑:aditi bagora about 4 hours 前
Hi Aakash,
I understand that you have a reinforcement learning model that you want to train and deploy the model on the Arduino board.
You can utilize the "Reinforcement Learning Toolbox" in MATLAB to define an RL agent tailored to your hardware setup within a Simulink model. By simulating this model, you can effectively train the agent. Once trained, the model can be deployed on the Arduino board using the "Simulink Support Package for Arduino Hardware".
I recommend training the reinforcement model in Simulink before deploying it on the board rather than directly training on the hardware as Arduino boards, including the Arduino Due, have limited computational resources compared to a full computer. Running an RL algorithm directly on the board is generally impractical due to these constraints. Moreover, direct hardware interaction during training could lead to wear and tear or potential damage if the agent makes unsafe decisions.
Please refer to the following MathWorks documentation for more information:
Hope this helps!

类别

Help CenterFile Exchange 中查找有关 Modeling 的更多信息

产品


版本

R2023a

Community Treasure Hunt

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

Start Hunting!

Translated by