- rlOptimizerOptions: https://www.mathworks.com/help/reinforcement-learning/ref/rl.option.rloptimizeroptions.html
- rlEpsilonGreedyPolicy: https://www.mathworks.com/help/reinforcement-learning/ref/rl.policy.rlepsilongreedypolicy.html
- rlAdditiveNoisePolicy: https://www.mathworks.com/help/reinforcement-learning/ref/rl.policy.rladditivenoisepolicy.html
- rlStochasticActorPolicy: https://www.mathworks.com/help/reinforcement-learning/ref/rl.policy.rlstochasticactorpolicy.html
- rlMaxQPolicy: https://www.mathworks.com/help/reinforcement-learning/ref/rl.policy.rlmaxqpolicy.html
- rlDeterministicActorPolicy: https://www.mathworks.com/help/reinforcement-learning/ref/rl.policy.rldeterministicactorpolicy.html
Training of RL DDPG Agent is not working (Control of an Inverted pendulum)
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Roy Nordstrom
el 13 de Abr. de 2023
Respondida: Yash Sharma
el 24 de Nov. de 2023
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 ?
0 comentarios
Respuesta aceptada
Yash Sharma
el 24 de Nov. de 2023
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 comentarios
Más respuestas (0)
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!