Why is it that when I add an agent to simulink, I get an error indicating that I cannot change the properties
6 views (last 30 days)
Show older comments
When I open an official case, such as by comparing pid and ddpg to control the height of water in the tank, the official original file can be run. But when I will remove the agent of the official case and manually add an "agent" myself, after clicking "Run" in the mlx file, the following error will be reported
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1578471/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1578476/image.png)
ill usage rl.train.SeriesTrainer/run
'RL_dianyesifu_DDPG_test/RL Agent' 中出错: 无法计算封装初始化命令。
error rl.train.TrainingManager/train (第 479 行)
run(trainer);
erro rl.train.TrainingManager/run (第 233 行)
train(this);
erro rl.agent.AbstractAgent/train (第 136 行)
trainingResult = run(trainMgr,checkpoint);
reason:
ill usage rl.env.internal.reportSimulinkSimError
This cannot be changed while the simulation is running 'rlwatertank/RL Agent/RL Agent' the stats of 'Tunable'
I am a beginner, please give me some advice, thank you!
1 Comment
Emmanouil Tzorakoleftherakis
on 9 Jan 2024
Did you update the agent variable everywhere? Make sure to update it on the RL Agent block in the Simulink model as well
Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!