Integral absolute error /Simulink/ to workspace/Error with input data
5 次查看(过去 30 天)
显示 更早的评论
i am trying to optimize the pi controller gain with the help of IAE. the model is presented in figure but in the code it is showing th error
"Unable to perform assignment because the left and right sides have a different number of elements.
Error in PSO (line 60)
average_objective(t) = average_objective(t) + Swarm.Particles(k).O;"
i have tried to chnage the To workspace block output like, STRUCTURE,TIMESERIES,ARRAY etc.
Please help me out![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/403915/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/403915/image.png)
0 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Schedule Model Components 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!