dde23 computation time unexpected behavior

1 回表示 (過去 30 日間)
Mika
Mika 2015 年 5 月 19 日
Dear all,
Consider the following two solutions obtained with dde23:
t = 10e3;
T = 1800e3;
solution_A = dde23(@large_dde_system,lags,some_initial_condition,[0, t]);
for i=1:(T/t);
solution_A = dde23(@large_dde_system,lags,solution_A,[i, i+1]*t);
end
solution_B = dde23(@large_dde_system,lags,some_initial_condition,[0, T]);
I find that solution A is quite fast (a couple of hours) but solution B takes forever (at least a week). In principle (ignoring numerical error) the two solutions should give the same results.
Why is there such a big time discrepancy between A and B? Is this some kind of a memory problem? I would prefer to get Solution B directly, but at the moment it takes way too much time.
Many thanks for any help.

回答 (0 件)

カテゴリ

Help Center および File ExchangeApp Building についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by