Hi, I am using ode15i to solve some implicit ODEs. I got 7 equations having the form: f(x1,x2,x3,x4,x5,x6,x7,x1',x2',x3',x4',x5',x6',x7')=0 Each of the equation cannot be ignored. Solving this set of equations is easy. But I need to add the following condition into the equations: x7=x3^2-x2*(x4-x2)=0
I have tried taking x3=sqrt(x2*(x4-x2)) into one of the 7 equation, but an error occurred. And the solution of X should not be complex.
Is there another way to add the condition into the ODEs?
Another question is how to use Jacobian in ODESET?

回答 (1 件)

Torsten
Torsten 2018 年 8 月 21 日

0 投票

Remove the original equation to determine x7 and replace it with the new one:
x7-x3^2+x2*(x4-x2) = 0
Best wishes
Torsten.

4 件のコメント

Gary Li
Gary Li 2018 年 8 月 21 日
Each of the equation can not be replaced.
Torsten
Torsten 2018 年 8 月 21 日
Then your system can't be solved since you have 8 equations for 7 unknown functions.
Gary Li
Gary Li 2018 年 8 月 21 日
It can be solved.8 equations, 7 unknown function. If there is 7 equations, 6 or less functions, it cannot be solved then
Torsten
Torsten 2018 年 8 月 21 日
Please include such a system with 8 independent equations for 7 unknown functions that can be solved.

サインインしてコメントする。

カテゴリ

タグ

質問済み:

2018 年 8 月 21 日

コメント済み:

2018 年 8 月 21 日

Community Treasure Hunt

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

Start Hunting!

Translated by