How to avoid algebraic loops in model?

I want to avoid algebraic loop in my model. My model is running in discrete time step with step size of 100usec. To avoid loop I tried using unit delay which resulted in unexpected results. so using delay is not an option for me. Also tried using IC block from simulink library for initializing the signal value but unable to avoid any loop. Please suggest some ways to avoid algebraic loops an discrete time system.

답변 (2개)

Ryan G
Ryan G 2012년 7월 6일

2 개 추천

Here are some good tips for algebraic loops:
If you are running a fully discrete model you can explicitly set all the sample times too 100 usec, run the model at a faster rate and set the unit delay to that faster rate so the data will be available at the beginning of the next time step. Not 100% sure how well that will actually work though.

댓글 수: 4

ANKIT
ANKIT 2012년 7월 11일
Hi Ryan, Thanks for your reply. My model is running in a Triggered subsystem with frequency of 10KHz(100usec), so I am not able to explicitly set sample times to 100usec as it allows only sample time of -1(inherited) or inf. I am looking for some option other than using unit delay.
TAB
TAB 2012년 7월 11일
편집: TAB 2012년 7월 11일
Can you attach the snapshot of part of the model causing algebric loop ?
ANKIT
ANKIT 2012년 7월 11일
Hey Tab, I am not getting any option to upload a snapshot.Can u just guide me how it can be done?
TAB
TAB 2012년 7월 11일
편집: TAB 2012년 7월 11일
@ANKIT
Upload your picture on any image hosting website (like tinypic.com) and link the image in your question, comment or answer(see markup help).

댓글을 달려면 로그인하십시오.

Khim Chhantyal
Khim Chhantyal 2018년 11월 29일

0 개 추천

Hi,
I have the similiar problem.
I can avoid algebriac loop using both "Initial condition" block and "unit delay" block.
However, using unit delay, the system response is different AND unfortunately, I can only build an .exe file by using unit delay option.
For .exe file, initial condition block does not remove algebriac loop. :(
Can you please help me with this?
Thanks.
-Khim

카테고리

도움말 센터File Exchange에서 Modeling에 대해 자세히 알아보기

제품

질문:

2012년 7월 6일

답변:

2018년 11월 29일

Community Treasure Hunt

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

Start Hunting!

Translated by