A3C on simulink model

时间:2018-03-31 07:36:24

标签: python parallel-processing simulink reinforcement-learning

I am currently running seperately my deep reinforcement learning algorithms 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 dent :D!

1 个答案:

答案 0 :(得分:1)

您可以在python中使用多线程为每个A3C工作者运行单独的matlab引擎。在这种情况下,你的env应该在python中使用matlab引擎调用。

AKHIL