@@ -63,7 +63,7 @@ for ``t \\leq 0``. Hence the problem is discontinuous at ``t = 0`` for all ``u
63
63
64
64
An analytical solution of this problem is provided for ``t \\ in (-\\ infty,10]``.
65
65
"""
66
- prob_dde_1delay (u₀) = ConstantLagDDEProblem (f_1delay, t-> [0.0 ], [u₀], [ 1 ], (0.0 , 10.0 ))
66
+ prob_dde_1delay (u₀) = DDEProblem (f_1delay, t-> [0.0 ], [u₀], (0.0 , 10.0 ), [ 1 ] )
67
67
68
68
# ## Not in-place function
69
69
@@ -83,7 +83,7 @@ Same as [`prob_dde_1delay`](@ref), but purposefully implemented with a not in-pl
83
83
function.
84
84
"""
85
85
prob_dde_1delay_notinplace (u₀) =
86
- ConstantLagDDEProblem (f_1delay_notinplace, t-> [0.0 ], [u₀], [ 1 ], (0.0 , 10.0 ))
86
+ DDEProblem (f_1delay_notinplace, t-> [0.0 ], [u₀], (0.0 , 10.0 ), [ 1 ] )
87
87
88
88
# ### Scalar history function
89
89
@@ -94,7 +94,7 @@ Same as [`prob_dde_1delay_notinplace`](@ref), but purposefully implemented with
94
94
history function.
95
95
"""
96
96
prob_dde_1delay_scalar_notinplace (u₀) =
97
- ConstantLagDDEProblem (f_1delay_notinplace, t-> 0.0 , u₀, [ 1 ], (0.0 , 10.0 ))
97
+ DDEProblem (f_1delay_notinplace, t-> 0.0 , u₀, (0.0 , 10.0 ), [ 1 ] )
98
98
99
99
# # Two constant delays
100
100
@@ -157,7 +157,7 @@ for ``t \\leq 0``. Hence the problem is discontinuous at ``t = 0`` for all ``u
157
157
158
158
An analytical solution of this problem is provided for ``t \\ in (-\\ infty,1]``.
159
159
"""
160
- prob_dde_2delays (u₀) = ConstantLagDDEProblem (f_2delays, t-> [0.0 ], [u₀], [1 // 3 , 1 // 5 ],( 0.0 , 1.0 ) )
160
+ prob_dde_2delays (u₀) = DDEProblem (f_2delays, t-> [0.0 ], [u₀], ( 0.0 , 1.0 ), [1 // 3 , 1 // 5 ])
161
161
162
162
# ## Not in-place function
163
163
@@ -177,7 +177,7 @@ Same as [`prob_dde_2delays`](@ref), but purposefully implemented with a not in-p
177
177
function.
178
178
"""
179
179
prob_dde_2delays_notinplace (u₀) =
180
- ConstantLagDDEProblem (f_2delays_notinplace, t-> [0.0 ], [u₀], [1 // 3 , 1 // 5 ], ( 0.0 , 1.0 ) )
180
+ DDEProblem (f_2delays_notinplace, t-> [0.0 ], [u₀], ( 0.0 , 1.0 ), [1 // 3 , 1 // 5 ])
181
181
182
182
# ### Scalar history function
183
183
@@ -188,7 +188,7 @@ Same as [`prob_dde_2delays_notinplace`](@ref), but purposefully implemented with
188
188
history function.
189
189
"""
190
190
prob_dde_2delays_scalar_notinplace (u₀) =
191
- ConstantLagDDEProblem (f_2delays_notinplace, t-> 0.0 , u₀, [1 // 3 , 1 // 5 ], ( 0.0 , 1.0 ) )
191
+ DDEProblem (f_2delays_notinplace, t-> 0.0 , u₀, ( 0.0 , 1.0 ), [1 // 3 , 1 // 5 ])
192
192
193
193
# DDE examples without analytical solution
194
194
@@ -219,8 +219,8 @@ u(t) = \\begin{cases}
219
219
220
220
for ``t \\ leq 0``. Hence the problem is discontinuous at ``t = 0``.
221
221
"""
222
- prob_dde_1delay_long = ConstantLagDDEProblem (f_1delay_long, t-> [0.0 ], [1.0 ], [ 0.2 ],
223
- (0.0 , 100.0 ))
222
+ prob_dde_1delay_long = DDEProblem (f_1delay_long, t-> [0.0 ], [1.0 ],
223
+ (0.0 , 100.0 ),[ 0.2 ] )
224
224
225
225
# ## Not in-place function
226
226
@@ -233,14 +233,14 @@ Same as [`prob_dde_1delay_long`](@ref), but purposefully implemented with a not
233
233
function.
234
234
"""
235
235
prob_dde_1delay_long_notinplace =
236
- ConstantLagDDEProblem (f_1delay_long_notinplace, t-> [0.0 ], [1.0 ], [ 0.2 ], (0.0 , 100.0 ))
236
+ DDEProblem (f_1delay_long_notinplace, t-> [0.0 ], [1.0 ], (0.0 , 100.0 ), [ 0.2 ] )
237
237
238
238
"""
239
239
Same as [`prob_dde_1delay_long_notinplace`](@ref), but purposefully implemented with a
240
240
scalar history function.
241
241
"""
242
242
prob_dde_1delay_long_scalar_notinplace =
243
- ConstantLagDDEProblem (f_1delay_long_notinplace, t-> 0.0 , 1.0 , [ 0.2 ], (0.0 , 100.0 ))
243
+ DDEProblem (f_1delay_long_notinplace, t-> 0.0 , 1.0 , (0.0 , 100.0 ), [ 0.2 ] )
244
244
245
245
# # Two constant delays
246
246
@@ -269,8 +269,8 @@ u(t) = \\begin{cases}
269
269
270
270
for ``t < 0``. Hence the problem is discontinuous at ``t = 0``.
271
271
"""
272
- prob_dde_2delays_long = ConstantLagDDEProblem (f_2delays_long, t-> [0.0 ], [1.0 ], [ 1 // 3 , 1 // 5 ],
273
- (0.0 , 100.0 ))
272
+ prob_dde_2delays_long = DDEProblem (f_2delays_long, t-> [0.0 ], [1.0 ],
273
+ (0.0 , 100.0 ), [ 1 // 3 , 1 // 5 ] )
274
274
275
275
# ## Not in-place function
276
276
@@ -285,8 +285,8 @@ Same as [`prob_dde_2delays_long`](@ref), but purposefully implemented with a not
285
285
function.
286
286
"""
287
287
prob_dde_2delays_long_notinplace =
288
- ConstantLagDDEProblem (f_2delays_long_notinplace, t-> [0.0 ], [1.0 ], [ 1 // 3 , 1 // 5 ],
289
- (0.0 , 100.0 ))
288
+ DDEProblem (f_2delays_long_notinplace, t-> [0.0 ], [1.0 ],
289
+ (0.0 , 100.0 ), [ 1 // 3 , 1 // 5 ] )
290
290
291
291
# ### Scalar history function
292
292
@@ -295,5 +295,5 @@ Same as [`prob_dde_2delays_long_notinplace`](@ref), but purposefully implemented
295
295
history function.
296
296
"""
297
297
prob_dde_2delays_long_scalar_notinplace =
298
- ConstantLagDDEProblem (f_2delays_long_notinplace, t-> 0.0 , 1.0 , [ 1 // 3 , 1 // 5 ] ,
299
- (0.0 , 100.0 ))
298
+ DDEProblem (f_2delays_long_notinplace, t-> 0.0 , 1.0 ,
299
+ (0.0 , 100.0 ), [ 1 // 3 , 1 // 5 ] )
0 commit comments