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 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