フィルターのクリア

Debugging - ODE solver freezing

2 ビュー (過去 30 日間)
Josh
Josh 2016 年 7 月 6 日
コメント済み: Torsten 2016 年 7 月 7 日
Hi everyone,
I am solving a set of stiff ODEs using ODE23s and it is taking a really long time. By a really long time, I mean hours! I'm hoping there is a way to watch the iterations in the ODE solver as they happen so that I can modify the parameters to speed things up.
Any help on how to do this or what may speed it up would be greatly appreciated.
Thanks, Josh
  3 件のコメント
Josh
Josh 2016 年 7 月 6 日
編集済み: Josh 2016 年 7 月 6 日
I think a large issue is that I have my equations included in an if else statement. I'm using one set of equations under one condition, and a modified set under a different condition. Basically, I'm simulating switched converter which requires modeling both states.
I would just like to know if there's some way to see the status of the code as it's runs for debugging. Even something simple like Spice where it shows the simulation time so that I can determine if the hangup is at "switching" or somewhere else in the simulation.
Torsten
Torsten 2016 年 7 月 7 日
Why not including print-statements in the function where you define your equations ?
Best wishes
Torsten.

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

回答 (0 件)

カテゴリ

Help Center および File ExchangeOrdinary Differential Equations についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by