Please help me with "is an invalid algebraic loop because of a self loop around the parent non-virtual subsystem"
3 次查看(过去 30 天)
显示 更早的评论
Hi members of mathworks.com ,
I am asking this question on behalf of a friend, Attached is simulink design and code for an Mppt system using ant optimization algorithm , The code gives an error on execution 'invalid algebraic loop because of a self loop around the parent non-virtual subsystem' , Any advise or help in this matter would be greatly appreciated.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/163043/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/163044/image.png)
<</matlabcentral/answers/upload
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/163046/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/163047/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/163048/image.png)
回答(1 个)
Dimitris Kalogiros
2018-9-15
You have to put some delay, at these three signals that goes from the output, directly to the input of the "MATLAB Function" block
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/195732/image.png)
Good luck
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!