Asked by Shan Yin
on 9 Apr 2019

Dear all,

I try to use the solver 'dde23' to simulate the time-dealy differential equation with single constant delay. But the running time of the solver is too long. Is there any way to speed up the solver without reducing the calculation accuracy?

The main part of my code is attached as follows:

clear all

clc

kc=0.884;

lags=[1.2265834];

tspan=[0,2000];

options=ddeset('RelTol',1e-8,'AbsTol',1e-8,'MaxStep',0.05);

sol=dde23(@(t,y,Z)ddefun(t,y,Z,kc),lags,@(t)history(t),tspan,options);

Opportunities for recent engineering grads.

Apply Today
## 6 Comments

## Jan (view profile)

## Direct link to this comment

https://it.mathworks.com/matlabcentral/answers/455279-how-to-speed-up-the-dde23-solver#comment_691841

## Shan Yin (view profile)

## Direct link to this comment

https://it.mathworks.com/matlabcentral/answers/455279-how-to-speed-up-the-dde23-solver#comment_692081

## Jan (view profile)

## Direct link to this comment

https://it.mathworks.com/matlabcentral/answers/455279-how-to-speed-up-the-dde23-solver#comment_692152

## Steven Lord (view profile)

## Direct link to this comment

https://it.mathworks.com/matlabcentral/answers/455279-how-to-speed-up-the-dde23-solver#comment_692249

## Jan (view profile)

## Direct link to this comment

https://it.mathworks.com/matlabcentral/answers/455279-how-to-speed-up-the-dde23-solver#comment_692252

## Shan Yin (view profile)

## Direct link to this comment

https://it.mathworks.com/matlabcentral/answers/455279-how-to-speed-up-the-dde23-solver#comment_692597

Sign in to comment.