필터 지우기
필터 지우기

Reinforcement Learning Training Algebraic Loop Delay Blocks

조회 수: 12 (최근 30일)
Tech Logg Ding
Tech Logg Ding 2021년 4월 28일
댓글: Tech Logg Ding 2021년 10월 12일
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:
  1. 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.
  2. 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
TRONG LINH VU
TRONG LINH VU 2021년 8월 17일
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
Tech Logg Ding 2021년 10월 12일
Hi Trong,
Sorry for the super late reply. I just found your comment today. I opted to use a first-order transfer function and it solved the problem for me. I made sure that the delay from the first order function was lower than the agent's sample time. Doing so, the observations were very close to the actual state, which was sufficient for me.
Kind regards,
Tech Logg

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Reinforcement Learning에 대해 자세히 알아보기

제품


릴리스

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by