inverted pendulum control with Q-learning (Reinforcement Learning)

I want to control an inverterd pendulum with Q-table. I simulated pendulum with simulink, but ''matlab function block'' doesn't work correctly. I want that (phi, phi dot, x, x dot) give to matlab fcn block,after it, action calculate and apply to pendulum . have any one this project or know about my problem? thanks a lot.

4 件のコメント

Daniel Gomez
Daniel Gomez 2016 年 6 月 9 日
I am having the same problem, I tried using a matlab function block but I get an algebraic loop error
Canberk Suat Gurel
Canberk Suat Gurel 2017 年 10 月 11 日
Have you managed to solve this issue? If so can you explain how?
Sara Hamdan
Sara Hamdan 2018 年 7 月 5 日
I am having also the same problem. After a lot of trials, I found that we can't do RL in Matlab function block, so I did it in m-file and I called the Simulink file from the m-file. Did anyone try this? we can discuss the results.
Emmanouil Tzorakoleftherakis
Emmanouil Tzorakoleftherakis 2019 年 4 月 1 日
編集済み: Emmanouil Tzorakoleftherakis 2019 年 4 月 1 日
You can now do RL both in MATLAB and in Simulink with Reinforcement Learning Toolbox. In Simulink you can use the RL agent block (no need to use a MATLAB Fcn block).
See an example here.

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

回答 (0 件)

質問済み:

2015 年 11 月 27 日

Community Treasure Hunt

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

Start Hunting!

Translated by