next up previous
Next: 10 LQR design techniques Up: guide Previous: 8 Lotka-Volterra system with

Subsections


9 Numerical algorithms of the toolbox

9.1 General remarks

At present theoretical aspects of DDE theory are elaborated with almost the same completeness as the corresponding parts of ordinary differential equations (ODE) theory. However, unlike ODE, even for linear DDE there are no general methods of finding solutions in explicit forms.

Various specific numerical methods are constructed for solving specific delay differential equations. Most of investigations are devoted to numerical methods for systems with discrete delays and Volterra integro-differential equations. Consequent development of DDE numerical analysis and the corresponding bibliography is reflected in [11,6,2,4,5,3] and the corresponding chapters of the books [16,15].

For spesific classes of DDE there were elaborated special codes: [1,9,12,17,29,30,34].

Numerical algorithms, relized in Toolbox, are based on an approach to DDE numerical methods elaborated in [19,20,22].

The distinguishing features of the described numerical methods are the following:

1)
the numerical methods for DDE are direct analogies of the corresponding classical numerical methods of ODE theory, i.e., if delays disappear, then the methods coincide with ODE methods 1 ;

2)
the proposed numerical algorithms do not depend on specific forms of delays, so the corresponding numerical schemes are the same for different classes of DDE.

In the frameworks of the approach one can construct for DDE analogies of all known numerical methods of ODE case.

Of course, the numerical algorithms relized in Toolbox are substantiated under some assumptions on general form of DDE and initial data, however these assumptions are satisfied for many realistic initial value problems.

Specific numerical algorithms of solving some specific delay differential equations can be more efficient than the algorithms realized in Toolbox. Nevertheless in the frameworks of the proposed approach the numerical schemes are the same for different classes of DDE and this fact allows us to elaborate sufficiently simple structure of software algorithms and packages.

An approach to overcoming the problem of handling the discontinuities of derivatives of DDE solutions will be discussed in the next subsection.

9.2 To track or not to track discontinuities of derivatives of DDE solutions?

Exact (analytical) solutions of DDE can have discontinuities of derivatives which can affect the numerical algorithms used for their approximate solving. So at present a big attention is paid to the problem of constructing special numerical algorithms in the regions of discontinuities. Actually, on our opinion, there can be (at lest) two points of view on this problem:

(A)
to construct special algorithms that handle possible discontinuities of solutions;
(B)
to construct numerical algorithms assuming smoothness of DDE solutions on whole interval.

In Toolbox we choose the second way (B) by the following reasons

$ \bullet$
for a specific DDE, an initial function can be approximated, as rule, by a sequence of (initial) functions which generate smooth solutions 2,
$ \bullet$
numerical experiments showed that numerical algorithms, realized in Toolbox, are robast with respect to discontinuities of derivatives of DDE solutions.

So, if the construction of DDE numerical methods is not the end in itself but only the mean of investigating DDE then the assumption of smoothness of solutions is acceptable in many cases and is a suitable compromise. Assumption of smoothness of solutions is one of the key points of our approach to realization of the numerical algorithms in the present version of Toolbox.

Of course, there are problems in which one cannot avoid discontinuities of derivatives of solutions. We reffer readers to the works [2,4,5,3] for effective algorithms and furthere references.

9.3 Runge-Kutta-like numerical methods

In this subsection we describe the numerical methods [19,20,22] realized in Toolbox.

For the sake of simplicity let us consider the uniform partition tk = t0 + k$ \Delta$, k = 0, 1,..., N, of the interval [t0, t0 + $ \theta$] (here $ \Delta$ = $ \theta$/N), and assume that the ratio $ \tau$/$ \Delta$ = N$\scriptstyle \tau$ is a positive integer.

Let uk $ \in$ $ \bf R^{n}_{}$ be the approximation of the true solution x(tk) = xk of system (5.7), (5.15), (5.16) at time tk.

The set of values {ui : i$ \ge$0, k - N$\scriptstyle \tau$$ \le$i$ \le$k} 3will be denoted by {ui}k. This set define at time tk future behavior of the discrete model.

In order to calculate uk + 1 by means of {ui}k it is necessary at time tk to construct :

1)
an interpolation utk( . ) = {u(tk + s), - $ \tau$ $ \leq$ s < 0 } of the pre-history {ui}k of the discrete model on the interval [tk - $ \tau$, tk];
2)
an extrapolation utk + a( . ) (for a constant a > 0) of the pre-history {ui}k of the discrete model on the interval [tk, tk + a].

Definition 9.1. For a constant a > 0 a mapping I : {ui}k$ \to$u( . ) $ \in$ Q[tk - $ \tau$, tk + a) is called the interpolational-extrapolational operator (IE-operator) of the model pre-history.

$ \Box$

We will make the following assumption: IE-operator I({ui}k) satisfies the Lipschitz condition

| u(1)(t) - u(2)(t)|$\displaystyle \le$K $\displaystyle \max_{k - N_\tau \le i \le k}^{}$| u(1)i - u(2)i| (9.1)

for t $ \in$ [tk - $ \tau$, tk + a), pre-histories {u(1)i}k and {u(2)i}k, u(1)( . ) = I({u(1)i}k), u(2)( . ) = I({u(2)i}k).

Definition 9.2. The interpolational-interpolational operator I has an order p on a class of functions X $ \subset$ Q[tk - $ \tau$, tk + a) if there exist a constant C1 such that for all x( . ) $ \in$ X, discrete pre-history {xi = x(ti), k - N$\scriptstyle \tau$$ \le$i$ \le$k}, $ \bar{x}$( . ) = I({ui}k) and t $ \in$ [tk - $ \tau$, tk + a) the following inequality is satisfied

|$\displaystyle \bar{x}$(t) - x(t)|$\displaystyle \le$C1$\displaystyle \Delta^{p}_{}$ . (9.2)

$ \Box$

Interpolation by spline of (p - 1)-order is one of methods of pre-history interpolation [20,22]. In this case one can realize the extrapolation by continuation of the last polynomial to the right side of point tn. For this method of interpolation and extrapolation the Lipschitz condition (9.1) is satisfyed; moreover if the set X consists of p-times continuous differentiable functions then the operator I has the order p on the class X.

m-Stage explicit Runge-Kutta method (with an IE-operator I) is the discrete model

u0 = x0; (9.3)

ui = y0(t0 - ti), i = - m,..., - 1, (9.4)

uk + 1 = uk + $\displaystyle \Delta$$\displaystyle \sum_{i=1}^{m}$$\displaystyle \sigma_{i}^{}$ hi(uk, utk( . )),  k = 1,..., N - 1, (9.5)

hi(uk, utk( . )) = f (tk + ai$\displaystyle \Delta$, uk + $\displaystyle \Delta$$\displaystyle \sum_{j=1}^{i-1}$bijhj(uk, utk( . )), utk + ai$\scriptstyle \Delta$( . )) . (9.6)

h1(uk, utk( . )) = f (tk, uk, utk( . )) . (9.7)

The pre-history of the model is defined as ut(s) = {I({ui}k) for  tk - $ \tau$$ \le$t + s < tk + a$ \Delta$}, a = max{| ai|, 1$ \le$i$ \le$m}.

Let us consider the functions z(t) = u(t) - x(t) and zk = z(tk) = uk - xk. One can derive

zk + 1 = zk + $\displaystyle \Delta$($\displaystyle \psi^{(1)}_{k}$ + $\displaystyle \psi^{(2)}_{k}$) , (9.8)

where

$\displaystyle \psi^{(1)}_{k}$ = $\displaystyle {\frac{x_k - x_{k+1}}{\Delta }}$ + $\displaystyle \sum_{i=1}^{m}$$\displaystyle \sigma_{i}^{}$ hi(xk, xtk( . )), (9.9)

$\displaystyle \psi^{(2)}_{k}$ = $\displaystyle \sum_{i=1}^{k}$$\displaystyle \sigma_{i}^{}$ (hi(uk, utk( . )) - hi(xk, xtk( . ))) . (9.10)

The function $ \psi^{(1)}_{k}$, k = 0, 1,..., N, is called the residual or the approximation error of method (9.3) - (9.7).

Definition 9.3. Method (9.3) - (9.7) :
1) has the approximation order p, if |$ \psi^{(1)}_{k}$|$ \le$C$ \Delta^{p}_{}$ for all k = 0,..., N ;
2) converges, if zk$ \to$ 0 as N$ \to$$ \infty$ for all k = 1,..., N;
3) has the convergence order p if | zk|$ \le$C$ \Delta^{p}_{}$ for all k = 0, 1,..., N. $ \Box$

Theorem 9.1. Let method (9.3) - (9.7) have an approximation order p > 0 and an IE-operator I has the order p on a class of functions X (which contains the true solution of problem (5.7), (5.15), (5.16)), then Runge-Kutta-like method (9.3) - (9.7) converges and has the convergence order p. $ \Box$

Conditions that determine approximation orders of numerical methods can be obtained by the expansion of the exact solution x(t) and the functionals hi into the Taylor series at point tk [22].

It is important to note that methods (9.3) - (9.7) are complete analogies of corresponding numerical methods of ODEs, that is approximation orders are the same for ODEs and DDEs with the same coefficients of numerical methods. For example, for DDE (5.7) the Runge-Kutta-like numerical schemes of the order 4 has the form

un + 1 = un + $\displaystyle {\textstyle\frac{1}{6}}$$\displaystyle \Delta$$\displaystyle \left(\vphantom{ h_1 + 2 h_2 + 2 h_3 + h_4 }\right.$h1 + 2h2 + 2h3 + h4$\displaystyle \left.\vphantom{ h_1 + 2 h_2 + 2 h_3 + h_4 }\right)$,

h1 = f (tn, un, utn( . )) ,

h2 = f (tn + $\displaystyle {\frac{\Delta}{2}}$, un + $\displaystyle {\frac{\Delta}{2}}$h1, utn + $\scriptstyle {\frac{\Delta}{2}}$( . )) ,

h3 = f (tn + $\displaystyle {\frac{\Delta}{2}}$, un + $\displaystyle {\frac{\Delta}{2}}$h2, utn + $\scriptstyle {\frac{\Delta}{2}}$( . )) ,

h4 = f (tn + $\displaystyle \Delta$, un + $\displaystyle \Delta$h3, utn + $\scriptstyle \Delta$( . )) .

Note, all results are valid for non-uniform partition of the time interval [t0, t0 + $ \theta$]. It allows to use variable steps for constructing numerical models.

In Toolbox the Runge-Kutta-Fehlberg-like numerical schemes of the order 4(5) with automatic step size control and the interpolation and extrapolation by cubic splines are realized.


next up previous
Next: 10 LQR design techniques Up: guide Previous: 8 Lotka-Volterra system with