Reinforcement Learning Training Algebraic Loop Delay Blocks
Ältere Kommentare anzeigen
Hi all,
I set up a RL training with a simscape model and I needed to use delay blocks to avoid algebraic loop. However, this causes the following problems:
- The simulation is terminated if an undesired condition happens. Due to the delay block, the simulation was terminated in the next sample time (instead of immediately). This would cause the RL agent to view the wrong experience tuples as the ones that caused the termination, hence record the penalty wrongly.
- All experience tuples would be delayed by one sample time, therefore the recorded 'action' and 'reward' do not correspond to the exact sample time.
What can be done to solve this problem?
3 Kommentare
Yifeng Tang
am 30 Apr. 2021
It's also possible to break the algebraic loop involving Simscape using a first-order transfer function with a small time constant. It can be justified as some kind of sensor delay, assuming the sensor feedback is part of what's causing the algebraic loop (usually it is :). This may solve the problem of extra step/sample time you have.
TRONG LINH VU
am 17 Aug. 2021
I'm getting the same problem when using the memory block or other blocks to solve the algebraic loop. I've tried to use a first-order transfer function, but it didn't work well. Have you fixed your problem, Tech Logg, and any other recommendations from MATLAB staff?
Thanks
Tech Logg Ding
am 12 Okt. 2021
Antworten (0)
Kategorien
Mehr zu Reinforcement Learning finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!