Is there a way to add constraints (other than nonnegativity) on ode15s?
6 ビュー (過去 30 日間)
古いコメントを表示
Georgios Pasias
2019 年 4 月 21 日
コメント済み: Georgios Pasias
2019 年 4 月 21 日
I am using ode15s to solve a DAE system describing oil-water flow in a pipe. Some of the variables in the solution are physically unrealistic, and I was wondering whether there is a way to add specific constraints?
Thank you.
0 件のコメント
採用された回答
Walter Roberson
2019 年 4 月 21 日
Only in the sense that you could add an event function to detect the value going out of range, and terminating when it does. If you wanted it to somehow "bounce off" of the boundary then you would have to signal the termination and then call ode15s again with revised conditions and tspan. See for example ballode()
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Ordinary Differential Equations についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!