Share information between python and parallel simulink models

4 ビュー (過去 30 日間)
Søren Koch
Søren Koch 2018 年 4 月 2 日
コメント済み: Ana Guerra Langan 2020 年 5 月 4 日
I am currently running seperately my deep reinforcement learning algorithms in Python on my simulink model. They are connected by a TCP/IP connection. Python sends action to simulink, simulink send environment values to python.
git: https://github.com/qLience/eligibility_pump
My problem is that my RL algorithm often is stuck in a local minimum where the A3C algorithm would help i thought because we are running multiple at the same time and by sharing memory then avoiding getting stuck in a local minimum.
But how do i run multiple simulink models with my A3C algorithm from python? I have tried to use two algorithms on my simulink running on different TCP/IP ports but i cannot do it.
I have also thought about a shared memory on the RAM between simulink and python but i really do not know how to execute this.
If you have a better suggestion and guide to do this then I will be in eternal dent :D!
  1 件のコメント
Ana Guerra Langan
Ana Guerra Langan 2020 年 5 月 4 日
Hello, did you manage to run your model in parallel in the end? I'm just starting with RL, working my connection between Simulink and Python... What did you do in the end?

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeInteractive Model Editing についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by