Skip to content

Commit 925e069

Browse files
Concrete time
1 parent 70ed389 commit 925e069

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

benchmarks/ParameterEstimation/LotkaVolterraParameterEstimation.jmd

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,8 @@ opt = Opt(:LD_TNEWTON_PRECOND_RESTART, 4)
197197
Vern9 solver with reltol=1e-9 and abstol=1e-9 is used and the dataset is increased to 3000 observations per variable with the same integration time step of 0.01.
198198

199199
```julia
200-
obj = build_loss_objective(prob,Vern9(),L2Loss(t,data),tstops=t,reltol=1e-9,abstol=1e-9)
200+
t_concrete = collect(0.0:dt:tf)
201+
obj = build_loss_objective(prob,Vern9(),L2Loss(t_concrete,data),tstops=t_concrete,reltol=1e-9,abstol=1e-9)
201202
optprob = OptimizationProblem(obj, glo_init, lb = first.(glo_bounds), ub = last.(glo_bounds))
202203
```
203204

0 commit comments

Comments
 (0)