We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b1cc279 commit 13955a8Copy full SHA for 13955a8
test/dde_tests.jl
@@ -8,7 +8,7 @@ h = (t) -> [0.5, 0.5]
8
u0 = [0.5, 0.5]
9
tspan = (0., 10.)
10
11
-prob = ConstantLagDDEProblem((t,u,h,du)->f_lotka(t,u,h,[0.5, 1.],du),h,u0,[0.5], tspan)
+prob = DDEProblem((t,u,h,du)->f_lotka(t,u,h,[0.5, 1.],du),h,u0,tspan,[0.5])
12
sol = solve(prob, MethodOfSteps(Tsit5()))
13
14
t = collect(linspace(0,10,30))
@@ -17,7 +17,7 @@ data = convert(Array, randomized)
17
18
using DiffEqParamEstim, NLopt
19
20
-prob_opt = ConstantLagDDEProblem((t,u,h,p,du)->f_lotka(t,u,h,[p[1],1.],du), h, u0, [0.5], tspan)
+prob_opt = DDEProblem((t,u,h,p,du)->f_lotka(t,u,h,[p[1],1.],du), h, u0, tspan,[0.5])
21
cost_function = build_loss_objective(prob_opt, MethodOfSteps(Tsit5()),L2Loss(t,data),maxiter=10000,abstol=1e-8,reltol=1e-8)
22
23
opt = Opt(:GN_ESCH, 1)
0 commit comments