dde23 computation time unexpected behavior

4 次查看(过去 30 天)
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 CenterFile Exchange 中查找有关 App Building 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by