MATLAB Mathematics - SERC - Index of
MATLAB Mathematics - SERC - Index of MATLAB Mathematics - SERC - Index of
5 Differential Equations Function ddeset ddeget Description Create/alter the DDE options structure. Extract properties from options structure created with ddeset. DDE Initial Value Problem Examples These examples illustrate the kind of problems you can solve using dde23. Click the example name to see the code in an editor. Type the example name at the command line to run it. Note The Differential Equations Examples browser enables you to view the code for the DDE examples, and also run them. Click on the link to invoke the browser, or type odeexamples('dde')at the command line. Example ddex1 ddex2 Description Straightforward example Cardiovascular model with discontinuities Additional examples are provided by “Tutorial on Solving DDEs with DDE23,” available at http://www.mathworks.com/dde_tutorial. Introduction to Initial Value DDE Problems The DDE solver can solve systems of ordinary differential equations y′ () t = ftyt ( , ()yt , ( – τ 1 ),…, yt ( – τ k )) where t is the independent variable, y is the dependent variable, and y′ represents dy ⁄ dt . The delays (lags) τ 1 , …, τ k are positive constants. 5-50
Initial Value Problems for DDEs Using a History to Specify the Solution of Interest In an initial value problem, we seek the solution on an interval [ t 0 , t f ]. with t 0 < t f . The DDE shows that y′ () t depends on values of the solution at times prior to t. In particular, y′ ( t 0 ) depends on yt ( 0 – τ 1 ),…, yt ( 0 – τ k ). Because of this, a solution on [ t 0 , t f ] depends on its values for t ≤ t 0 , i.e., its history St (). Propagation of Discontinuities Generally, the solution yt () of an IVP for a system of DDEs has a jump in its first derivative at the initial point t 0 because the first derivative of the history function does not satisfy the DDE there. – + S′ ( t 0 ) ≠ y′ ( t 0 ) = ft ( 0 , yt ( 0 ), St ( 0 – τ 1 ), …, St ( 0 – τ k )) A discontinuity in any derivative propagates into the future at spacings of τ 1 , τ 2 , …, τ k . For reliable and efficient integration of DDEs, a solver must track discontinuities in low order derivatives and deal with them. For DDEs with constant lags, the solution gets smoother as the integration progresses, so after a while the solver can stop tracking a discontinuity. See “Discontinuities” on page 5-57 for more information. DDE Solver This section describes: • The DDE solver, dde23 • DDE solver basic syntax The DDE Solver The function dde23 solves initial value problems for delay differential equations (DDEs) with constant delays. It integrates a system of first-order differential equations y′ () t = ftyt ( , ()yt , ( – τ 1 ),…, yt ( – τ k )) on the interval [ t 0 , t f ], with t 0 < t f and given history yt () = St () for t ≤ t 0 . 5-51
- Page 134 and 135: 4 Function Functions “Anonymous F
- Page 136 and 137: 5 Differential Equations Initial Va
- Page 138 and 139: 5 Differential Equations odephas3 o
- Page 140 and 141: 5 Differential Equations This secti
- Page 142 and 143: 5 Differential Equations The basic
- Page 144 and 145: 5 Differential Equations 2 Code the
- Page 146 and 147: 5 Differential Equations function.
- Page 148 and 149: 5 Differential Equations One way to
- Page 150 and 151: 5 Differential Equations y0, yp0 Ve
- Page 152 and 153: 5 Differential Equations For exampl
- Page 154 and 155: 5 Differential Equations 1 0.8 0.6
- Page 156 and 157: 5 Differential Equations 2.5 Soluti
- Page 158 and 159: 5 Differential Equations To run thi
- Page 160 and 161: 5 Differential Equations 2 u′ i =
- Page 162 and 163: 5 Differential Equations dydt(i+1,:
- Page 164 and 165: 5 Differential Equations refine = 4
- Page 166 and 167: 5 Differential Equations Example: A
- Page 168 and 169: 5 Differential Equations function [
- Page 170 and 171: 5 Differential Equations Note The R
- Page 172 and 173: 5 Differential Equations 1 Robertso
- Page 174 and 175: 5 Differential Equations The MATLAB
- Page 176 and 177: 5 Differential Equations Summary of
- Page 178 and 179: 5 Differential Equations Problem Si
- Page 180 and 181: 5 Differential Equations Error Tole
- Page 182 and 183: 5 Differential Equations Troublesho
- Page 186 and 187: 5 Differential Equations dde23 prod
- Page 188 and 189: 5 Differential Equations The exampl
- Page 190 and 191: 5 Differential Equations solution y
- Page 192 and 193: 5 Differential Equations Example: C
- Page 194 and 195: 5 Differential Equations Changing D
- Page 196 and 197: 5 Differential Equations BVP Functi
- Page 198 and 199: 5 Differential Equations two-point
- Page 200 and 201: 5 Differential Equations The input
- Page 202 and 203: 5 Differential Equations 2 Pass the
- Page 204 and 205: 5 Differential Equations 3 Code the
- Page 206 and 207: 5 Differential Equations Finding Un
- Page 208 and 209: 5 Differential Equations vectorized
- Page 210 and 211: 5 Differential Equations There is a
- Page 212 and 213: 5 Differential Equations 3 Solve on
- Page 214 and 215: 5 Differential Equations hold off T
- Page 216 and 217: 5 Differential Equations Note The d
- Page 218 and 219: 5 Differential Equations legend('An
- Page 220 and 221: 5 Differential Equations Here, v(1-
- Page 222 and 223: 5 Differential Equations solution v
- Page 224 and 225: 5 Differential Equations Note The D
- Page 226 and 227: 5 Differential Equations After disc
- Page 228 and 229: 5 Differential Equations The output
- Page 230 and 231: 5 Differential Equations 2 Code the
- Page 232 and 233: 5 Differential Equations Note See t
5 Differential Equations<br />
Function<br />
ddeset<br />
ddeget<br />
Description<br />
Create/alter the DDE options structure.<br />
Extract properties from options structure created with ddeset.<br />
DDE Initial Value Problem Examples<br />
These examples illustrate the kind <strong>of</strong> problems you can solve using dde23.<br />
Click the example name to see the code in an editor. Type the example name at<br />
the command line to run it.<br />
Note The Differential Equations Examples browser enables you to view the<br />
code for the DDE examples, and also run them. Click on the link to invoke the<br />
browser, or type odeexamples('dde')at the command line.<br />
Example<br />
ddex1<br />
ddex2<br />
Description<br />
Straightforward example<br />
Cardiovascular model with discontinuities<br />
Additional examples are provided by “Tutorial on Solving DDEs with DDE23,”<br />
available at http://www.mathworks.com/dde_tutorial.<br />
Introduction to Initial Value DDE Problems<br />
The DDE solver can solve systems <strong>of</strong> ordinary differential equations<br />
y′ () t = ftyt ( , ()yt , ( – τ 1 ),…,<br />
yt ( – τ k ))<br />
where t is the independent variable, y is the dependent variable, and y′<br />
represents dy ⁄ dt . The delays (lags) τ 1 , …,<br />
τ k are positive constants.<br />
5-50