Effacer les filtres
Effacer les filtres

How to avoid algebraic loops and to handle multiple delay units?

5 vues (au cours des 30 derniers jours)
Arijit Bhattacharjee
Arijit Bhattacharjee le 2 Nov 2021
The following error is appearing while running a simulation environment for a Reinforcement Learning based UAV data gathering system:
Caused by:
Error using rl.env.SimulinkEnvWithAgent>localHandleSimoutErrors
(line 667)
Error due to multiple causes.
Error using
rl.env.SimulinkEnvWithAgent>localHandleSimoutErrors (line
667)
'envDQN/GD' or the model referenced by it contains a block
that updates persistent or state variables while computing
outputs and is not supported in an algebraic loop. It is in
an algebraic loop with the following blocks.
Error using
rl.env.SimulinkEnvWithAgent>localHandleSimoutErrors (line
667)
Input ports (12) of 'envDQN/GD' are involved in the loop.
Error using
rl.env.SimulinkEnvWithAgent>localHandleSimoutErrors (line
667)
Input ports (1) of 'envDQN/RL GD Chooser/AgentWrapper' are
involved in the loop. This message is related to a hidden
SignalConversion block.
This block is added for block 'envDQN/RL GD
Chooser/AgentWrapper' at input port 1 as result of block
insertion or expansion. The hidden block's parameter
'Output' is set to 'Signal copy' Consider manually inserting
such a block to debug the problem.
Error using
rl.env.SimulinkEnvWithAgent>localHandleSimoutErrors (line
667)
Input ports (3, 4) of 'envDQN/Energy Calculation' are
involved in the loop.
  2 commentaires
Arijit Bhattacharjee
Arijit Bhattacharjee le 25 Nov 2021
Thank you Cris for your help. The correct placement of the delay block resolved the issue.

Connectez-vous pour commenter.

Réponses (0)

Community Treasure Hunt

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

Start Hunting!

Translated by