Skip to content

Commit 1f2cb6a

Browse files
Vaibhavdixit02ChrisRackauckas
authored andcommitted
Apply suggestions from code review
1 parent 23c2a3d commit 1f2cb6a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/src/getting_started/fit_simulation.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -311,9 +311,9 @@ More details about callbacks in Optimization.jl can be found
311311
[here](https://docs.sciml.ai/Optimization/stable/API/solve/).
312312

313313
```@example odefit
314-
function callback(p, l)
314+
function callback(state, l)
315315
display(l)
316-
newprob = remake(prob, p = p)
316+
newprob = remake(prob, p = state.u)
317317
sol = solve(newprob, saveat = 1)
318318
plt = plot(sol, ylim = (0, 6), label = ["Current x Prediction" "Current y Prediction"])
319319
scatter!(plt, t_data, xy_data', label = ["x Data" "y Data"])

0 commit comments

Comments
 (0)