Training of RL DDPG Agent is not working (Control of an Inverted pendulum)

2 ビュー (過去 30 日間)
Roy Nordstrom
Roy Nordstrom 2023 年 4 月 13 日
回答済み: Yash Sharma 2023 年 11 月 24 日
This project initially started with a Mathworks example: Train DDPG Agent to swing up and balance pendulum.
The pendulum block in the model has been replaced with simscape components. Also the following have been added: a DC electric motor, and a controllable voltage supply. See my_simscape_pendulum_model.slx
I trained the agent is using the settings in training.m
The session was stopped after 17 hours and 796 episodes. Early on I could see the pendulum rising up to about 30 degrees above the downward hanging position before it stalled. This indicates to me that there was enough torque being applied to enable the agent use a back and forth rocking motion to raise the pendulum. However, after many hours the agent had not learned to do the back and forth rocking motion, and seemed to be stalled in a bad policy. See the screenshot of the RL episode manager after it was stopped.
My research indicates that my learning rate or exploration options may need to be modified. However I have not been able to find documentation on how to do this.
Do you have any suggestions ?

採用された回答

Yash Sharma
Yash Sharma 2023 年 11 月 24 日
I understand that you have a reinforcement learning DDPG agent and wants to set learning rate and exploration options of that agent. You can set learning rate using “rlOptimizerOptions”.
Here is the documentation for optimizer options and different exploration policies.
Hope this helps!

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeReinforcement Learning についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by