Skip to content

Commit 61cf589

Browse files
Merge branch 'iip'
2 parents a57d3ed + 1d995e3 commit 61cf589

File tree

1 file changed

+13
-19
lines changed

1 file changed

+13
-19
lines changed

src/dde_premade_problems.jl

Lines changed: 13 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,7 @@ for ``t \\leq 0``. Hence the problem is discontinuous at ``t = 0`` for all ``u
6363
6464
An analytical solution of this problem is provided for ``t \\in (-\\infty,10]``.
6565
"""
66-
prob_dde_1delay(u₀) = ConstantLagDDEProblem(f_1delay, t->[0.0], [u₀], [1], (0.0, 10.0);
67-
iip=true)
66+
prob_dde_1delay(u₀) = ConstantLagDDEProblem(f_1delay, t->[0.0], [u₀], [1], (0.0, 10.0))
6867

6968
### Not in-place function
7069

@@ -84,7 +83,7 @@ Same as [`prob_dde_1delay`](@ref), but purposefully implemented with a not in-pl
8483
function.
8584
"""
8685
prob_dde_1delay_notinplace(u₀) =
87-
ConstantLagDDEProblem(f_1delay_notinplace, t->[0.0], [u₀], [1], (0.0, 10.0); iip=false)
86+
ConstantLagDDEProblem(f_1delay_notinplace, t->[0.0], [u₀], [1], (0.0, 10.0))
8887

8988
#### Scalar history function
9089

@@ -95,7 +94,7 @@ Same as [`prob_dde_1delay_notinplace`](@ref), but purposefully implemented with
9594
history function.
9695
"""
9796
prob_dde_1delay_scalar_notinplace(u₀) =
98-
ConstantLagDDEProblem(f_1delay_notinplace, t->0.0, u₀, [1], (0.0, 10.0); iip=false)
97+
ConstantLagDDEProblem(f_1delay_notinplace, t->0.0, u₀, [1], (0.0, 10.0))
9998

10099
## Two constant delays
101100

@@ -158,8 +157,7 @@ for ``t \\leq 0``. Hence the problem is discontinuous at ``t = 0`` for all ``u
158157
159158
An analytical solution of this problem is provided for ``t \\in (-\\infty,1]``.
160159
"""
161-
prob_dde_2delays(u₀) = ConstantLagDDEProblem(f_2delays, t->[0.0], [u₀], [1//3, 1//5],
162-
(0.0, 1.0); iip=true)
160+
prob_dde_2delays(u₀) = ConstantLagDDEProblem(f_2delays, t->[0.0], [u₀], [1//3, 1//5],(0.0, 1.0))
163161

164162
### Not in-place function
165163

@@ -179,8 +177,7 @@ Same as [`prob_dde_2delays`](@ref), but purposefully implemented with a not in-p
179177
function.
180178
"""
181179
prob_dde_2delays_notinplace(u₀) =
182-
ConstantLagDDEProblem(f_2delays_notinplace, t->[0.0], [u₀], [1//3, 1//5], (0.0, 1.0);
183-
iip=false)
180+
ConstantLagDDEProblem(f_2delays_notinplace, t->[0.0], [u₀], [1//3, 1//5], (0.0, 1.0))
184181

185182
#### Scalar history function
186183

@@ -191,8 +188,7 @@ Same as [`prob_dde_2delays_notinplace`](@ref), but purposefully implemented with
191188
history function.
192189
"""
193190
prob_dde_2delays_scalar_notinplace(u₀) =
194-
ConstantLagDDEProblem(f_2delays_notinplace, t->0.0, u₀, [1//3, 1//5], (0.0, 1.0);
195-
iip=false)
191+
ConstantLagDDEProblem(f_2delays_notinplace, t->0.0, u₀, [1//3, 1//5], (0.0, 1.0))
196192

197193
# DDE examples without analytical solution
198194

@@ -224,7 +220,7 @@ u(t) = \\begin{cases}
224220
for ``t \\leq 0``. Hence the problem is discontinuous at ``t = 0``.
225221
"""
226222
prob_dde_1delay_long = ConstantLagDDEProblem(f_1delay_long, t->[0.0], [1.0], [0.2],
227-
(0.0, 100.0); iip=true)
223+
(0.0, 100.0))
228224

229225
### Not in-place function
230226

@@ -237,16 +233,14 @@ Same as [`prob_dde_1delay_long`](@ref), but purposefully implemented with a not
237233
function.
238234
"""
239235
prob_dde_1delay_long_notinplace =
240-
ConstantLagDDEProblem(f_1delay_long_notinplace, t->[0.0], [1.0], [0.2], (0.0, 100.0);
241-
iip=false)
236+
ConstantLagDDEProblem(f_1delay_long_notinplace, t->[0.0], [1.0], [0.2], (0.0, 100.0))
242237

243238
"""
244239
Same as [`prob_dde_1delay_long_notinplace`](@ref), but purposefully implemented with a
245240
scalar history function.
246241
"""
247242
prob_dde_1delay_long_scalar_notinplace =
248-
ConstantLagDDEProblem(f_1delay_long_notinplace, t->0.0, 1.0, [0.2], (0.0, 100.0);
249-
iip=false)
243+
ConstantLagDDEProblem(f_1delay_long_notinplace, t->0.0, 1.0, [0.2], (0.0, 100.0))
250244

251245
## Two constant delays
252246

@@ -269,14 +263,14 @@ with history function
269263
```math
270264
u(t) = \\begin{cases}
271265
0 & \\text{if } t < 0,\\
272-
1 & \\text{if } t = 0,
266+
1 & \\text{if } t = 0,
273267
\\end{cases}
274268
```
275269
276270
for ``t < 0``. Hence the problem is discontinuous at ``t = 0``.
277271
"""
278272
prob_dde_2delays_long = ConstantLagDDEProblem(f_2delays_long, t->[0.0], [1.0], [1//3, 1//5],
279-
(0.0, 100.0); iip=true)
273+
(0.0, 100.0))
280274

281275
### Not in-place function
282276

@@ -292,7 +286,7 @@ function.
292286
"""
293287
prob_dde_2delays_long_notinplace =
294288
ConstantLagDDEProblem(f_2delays_long_notinplace, t->[0.0], [1.0], [1//3, 1//5],
295-
(0.0, 100.0); iip=false)
289+
(0.0, 100.0))
296290

297291
#### Scalar history function
298292

@@ -302,4 +296,4 @@ history function.
302296
"""
303297
prob_dde_2delays_long_scalar_notinplace =
304298
ConstantLagDDEProblem(f_2delays_long_notinplace, t->0.0, 1.0, [1//3, 1//5],
305-
(0.0, 100.0); iip=false)
299+
(0.0, 100.0))

0 commit comments

Comments
 (0)