필터 지우기
필터 지우기

How to solve a system of equations in Simulink?

조회 수: 10 (최근 30일)
Ferran Solà
Ferran Solà 2017년 9월 4일
답변: victor velazquez 2020년 10월 8일
I need to solve a system of equations using Simulink but when I run the model it appears an error that I have an algebraic loop in some blocks. I understand that is because it doesn't have an initial value to start computing so I used the block Initial value to set it, but then it starts to appear some errors in form of event and timed functions and even changing the signal type it doesn't work.
  댓글 수: 3
Omur Bas
Omur Bas 2017년 9월 5일
Do you need to solve a system of differential equations or algebraic equations? Simulink is for solving differential equations over time. We can help you better if you can share the equations.
Ferran Solà
Ferran Solà 2017년 9월 7일
These are my equations, P and V are the solutions I want to solve.

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

답변 (2개)

Nick Choi
Nick Choi 2017년 9월 7일
It would be difficult to determine the root cause of the issue without knowing the architecture of your Simulink model.
However, the following documentation page provides some useful information on how to deal with algebraic loops in models: https://www.mathworks.com/help/simulink/ug/algebraic-loops.html

victor velazquez
victor velazquez 2020년 10월 8일
You can use the memory block in orther to create a delay, this will breack the loop, put one in every variable

카테고리

Help CenterFile Exchange에서 Discontinuities에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by