RL Agent Not Found and Keeps Disappearing From Base Workspace
Ältere Kommentare anzeigen
Hi, I'm using the MATLAB RL Toolbox with Simulink to train and deploy a PI controller for DC motor speed control. I exported my trained agent as "agent1" and have set my RL Agent block's Agent Object parameter to "agent1" as well.

When I export the agent, "agent1" is added to my base workspace just well.
However, when I run the model with:
sim("My_Project_Name");
"agent" suddenly disappears and I get the following error:
Error evaluating parameter 'Agent' in '...Path_To_Agent/RL Agent'
Caused by:
Unrecognized function or variable 'agent1'.
Variable 'agent1' does not exist.
I even tried saving it in another matlab file and loading it, but it doesn't make any difference.
save('myAgent.mat','agent1');
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Reinforcement Learning Toolbox 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!